Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

Salesforce DEV-501 - Certified Force.com Advanced Developer

Page: 3 / 8
Total 239 questions

Object X has a lookup field to Object Y. X needs to display a text value from a Text field on Y. To ensure data Integrity, how would a developer implement this?

A.

Create a roll-up summary field on Object X that retrieves the value from Y.

B.

Create a text field on Object X and use a workflow rule to fill in the value upon the creation of X

C.

Create a cross-object formula field on Object X that retrieves the value from Y.

D.

Create a text field on Object X and use Apex to populate the value.

In a bug tracking application. Universal Containers has created a time-based workflow action that will execute 30 days after a Bug record is created. The developer would like to test to make sure that rule is working the way that it should.

Which feature is available for testing? Choose 2 answers

A.

Time-based workflow queue

B.

Activity History related list

C.

Bug History related list

D.

Debug Log

Which field is available as part of the translation workbench for a validation rule?

A.

Formula

B.

Description

C.

Error Message

D.

Rule Criteria

In a recruiting application, a Position custom object is related to a Salary custom object. Sensitive information, such as current salary, is stored on the Salary object. All users should be able to at least view position information. However, only select individuals should be able to read salary records.

How should a developer accomplish this?

A.

Create a lookup relationship between Position and Salary; set organization-wide defaults to Public Read-Only for Position and Private for Salary

B.

Create a master-detail relationship between Position and Salary; set organization-wide defaults to Private for Position and Salary

C.

Create a master-detail relationship between Position and Salary; set organization-wide defaults to Public Read only for Position and Private for Salary

D.

Create a lookup relationship between Position and Salary; set organization-wide defaults to Private for Position and Salary

If the error message contains HTML markup, the escaped markup displays as text and isn't rendered in the user interface. (Select all that apply)

A.

Strongly Typed.

B.

Object Oriented.

C.

Uses Java-like syntax.

D.

Acts like database stored procedures.

Which of the following statements are true about components of dynamic Apex?

    Schema describe is a way to program matically learn about the metadata of your data model within Apex.

    Dynamic SOQL refers to the creation of a SOQL string before runtime within an Apex script,

    In dynamic SQQL, you use Sring.escapeSinqIeQuoLes (sLrng)to prevent SQQL injection.

    You can use dynamic SOSL to create a tree structure of all the objects and fields in your schema browser.

A.

In, like, and, or, not, group by, order by, all rows, limit

B.

Schema describe is a way to program magically learn about the metadata of your data model within Apex.

C.

Web service methods must be static, webservice methods cannot be overloaded

D.

Create complex functionality declarative features cannot provide.

Although Trigger.new is a collection of records, when used as a bind variable in a SOQL query, Apex automatically....

A.

Passes the collection to the query, as long as the calling class implements the Trigger.QueryBind class.

B.

Transforms the list of records into a list of corresponding Ids.

C.

Truncates the collection so that only the Id and Name fields.

D.

Throws a DMLException with the ILLEGAL_QUERY status.

E.

Transforms the SOQL to an in-place SOSL query and returns the FIND results.

F.

None of these

A Flash movie, rendered with the HTML object and embed tags.

A.

apex:actionStatus

B.

apex:flash

C.

apex:inputField

D.

apex:pageBlockSectionItem

Which of the following guidelines are used for creating custom Web Services? (Select all that apply.)

    webservice methods must be static.

    webservice methods cannot be overloaded.

    A system-defined enum can be used anywhere in a webservice method.

    All classes that contain methods defined with the webService keyword must be declared as private.

A.

FALSE, they must be static

B.

Developer edition production org, Enterprise edition sandbox org

C.

Static methods can only be declared in a top-level class definition.

D.

webservice methods must be static, webservice methods cannot be overloaded

Which fields are returned by sosl by default?

A.

Ids

B.

200

C.

6

D.

1