Labour Day Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: mxmas70

Home > Salesforce > Salesforce Certification > DEV-501

DEV-501 Certified Force.com Advanced Developer Question and Answers

Question # 4

What is the size of the batches in which triggers execute?

A.

No

B.

200

C.

FALSE

D.

Java

Full Access
Question # 5

Universal Containers requires that all job applications have a unique code that is auto-populated when records are created. The code must be different from the record ID.

What would a developer use to accomplish this declaratively?

A.

Custom auto number field

B.

Custom master-detail field

C.

Custom read-only number field

D.

Custom lookup relationship field

Full Access
Question # 6

For objects where data access is granted through the role hierarchy, how is access granted?

A.

Users are granted access to data accessible by users below them in the role hierarchy.

B.

Users are only granted access to data owned by users below them In the role hierarchy.

C.

Users are only granted read access to data owned by users above them in the role hierarchy.

D.

Users are granted access to data accessible to users in the same role in the role hierarchy.

Full Access
Question # 7

A text area input element. Use this component to get user input for a controller method that does not correspond to a field on a Salesforce object, for a value that requires a text area.

A.

apex:inputTextarea

B.

apex:facet

C.

apex:include

D.

apex:attribute

Full Access
Question # 8

A section of data within an component, similar to a section in a standard Salesforce page layout definition.

An component consists of one or more columns, each of which spans two cells: one for a field's label, and one for its value. Each component found in the body of an is placed into the next cell in a row until the number of columns is reached. At that point, the next component wraps to the next row and is placed in the first cell.

To add a field from a Salesforce object to an , use an or component. Each of these components automatically displays with the field's associated label. To add fields for variables or methods that are not based on Salesforce object fields, or to customize the format of Salesforce object field labels, use an component. Each , , or component spans both cells of a single column.

A.

apex:outputLabel

B.

apex:actionPoller

C.

apex:pageblockSection

D.

apex:facet

Full Access
Question # 9

What are some RESTful service callout HTTP verbs? (No Answer)

A.

GET, POST, PUT, DELETE

B.

System, debug

C.

List of List Objects

D.

Setup menu

Full Access
Question # 10

Which developer tool can be used to create a data model? Choose 2 answers

A.

Force.com IDE

B.

Schema Builder

C.

Application Data Model Wizard

D.

Force.com Data Loader

Full Access
Question # 11

What can cross-object formulas reference?

A.

Both parent and child object records

B.

Parent object records only

C.

Child object records only

D.

Other records of the same object

Full Access
Question # 12

A data series to be rendered as bars in a Visualforce chart. At a minimum you must specify the fields in the data collection to use as X and Y values for each bar, as well as the X and Y axes to scale against.

Note: This component must be enclosed within an component. You can have multiple and components in a single chart.

A.

apex:barSeries

B.

apex:inputHidden

C.

apex:outputLink

D.

apex:outputField

Full Access
Question # 13

How should one prevent soql injection when using dynamic soql? (No Answer)

A.

XMLStreanWriter, XMLStreamReader

B.

Messaging.InboundEmailHandler

C.

with sharing keyword

D.

Utilize the String.escapeSingleQuotes(string) method

Full Access
Question # 14

Defines an axis for a chart. Use this to set the units, scale, labeling, and other visual options for the axis. You can define up to four axes for a single chart, one for each edge.

Note: This component must be enclosed within an component. This component is only applicable to bar and line charts.

A.

apex:emailPublisher

B.

apex:messages

C.

apex:image

D.

apex:axis

Full Access
Question # 15

Which dashboard component displays a grand total across a set of data? Choose 2 answers

A.

Chart

B.

Pivot

C.

Metric

D.

Table

Full Access
Question # 16

Which keywords do developers use to handle exceptions in Apex?

A.

Through class itself

B.

Throw, try, catch, finally

C.

Static and final

D.

GET, POST, PUT, DELETE

Full Access
Question # 17

A developer would like to modify the contents of the hover details for a custom object called Position. What would a developer customize to accomplish this?

A.

Imposition page layouts

B.

Position search layouts

C.

Position record types

D.

Position field dependencies

Full Access
Question # 18

Which trigger context variable allows you to modify field values before they are written to the database in the before trigger? (No Answer)

A.

Trigger.new

B.

Trigger.old

C.

@ReadOnly

D.

TRUE

Full Access
Question # 19

Object B has a lookup relationship to Object A. Object C has a lookup relationship to Object B. A developer needs to run a report on A records with C records.

How can the developer accomplish this?

A.

Create a matrix report with A and B records as column headings and C records as row headings

B.

Create a custom report type that includes A with B with C

C.

Create a summary report with a custom summary formula summarizing by A, then B, then C

D.

Run a report using the standard report type: A with B with C

Full Access
Question # 20

What are two ways to invoke a custom web service?

A.

Apex process classes

B.

A governor limit

C.

List of List Objects

D.

Ajax toolkit, client program

Full Access
Question # 21

Apex code can be initiated in what ways? (Select all that apply)

A.

Web service requests.

B.

Triggers on objects.

C.

More?? Is "Button Clicks" a valid choice?

Full Access
Question # 22

Which invocation method occurs when triggers are called by the Force.com platform during the save process?

  • Explicit invocation
  • Implicit invocation
  • Explicit invocation using anonymous blocks
  • External API invocation

A.

RETURNING

B.

Implicit invocation

C.

Primitive

D.

SOQL for loops

Full Access
Question # 23

Which statement is TRUE about master-detail relationships in the Force.com platform? Choose 2 answers

A.

The master-detail relationship field is required on the page layout of the detail record.

B.

When defining a master-detail relationship, the custom object on which you are working is the master.

C.

The security settings for the master record control the detail record.

D.

When a master record is deleted, the child records remain in the system without a master record.

Full Access
Question # 24

The markup defines the user interface components that should be included on the page, and the way they should appear.

A.

True

B.

False

Full Access
Question # 25

Hiring managers at Universal Containers would like a visual mechanism for determining review score outliers. Review scores are captured as a custom field on a custom Review object and can range from l to 10. Any review score that is > 8 should be highlighted in green.

Any review score that is < 4 should be highlighted In red.

How would a developer accomplish this?

A.

Use custom summary formulas

B.

Use matrix reports

C.

Use charts

D.

Use conditional highlighting

Full Access
Question # 26

Which type of tab can a developer create? Choose 3 answers.

A.

Apex tabs

B.

web tabs

C.

standard object tabs

D.

Visualforce tabs

E.

custom object tabs

Full Access
Question # 27

Positions is a custom object in a recruiting application built on the Force.com platform. Department is a field on the Position object.

Which type of report should a developer create to show hiring managers the number of positions grouped by department?

A.

Summary

B.

Pivot

C.

Reporting Snapshot

D.

Tabular

Full Access
Question # 28

A component that adds AJAX support to another component, allowing the component to be refreshed asynchronously by the server when a particular event occurs, such as a button click or mouseover.

See also: .

A.

apex:form

B.

apex:attribute

C.

apex:page

D.

apex:actionSupport

Full Access
Question # 29

This tag allows a custom component author to define a location where a user can insert content into the custom component. This is especially useful for generating custom iteration components. This component is valid only within an tag, and only a single definition per custom component is allowed.

A.

apex:facet

B.

apex:chart

C.

apex:include

D.

apex:componentBody

Full Access
Question # 30

What components of apex are available to improve the processing of data in Salesforce?

A.

Database class method

B.

GET, POST, PUT, DELETE

C.

Batch apex, apex scheduler.

D.

Internal and external

Full Access
Question # 31

How can a wireless device user approve a record? Choose 3 answers

A.

via a text message

B.

via Approvals in Chatter

C.

via voice recognition

D.

via email from a wireless device

E.

via Salesforce1

Full Access
Question # 32

A developer can use optional catch statements for any exception type in a try-catch block. However, the general exception type, 'Exception', must only be used by the last catch() block.

EXAMPLE:

try{

// Some risky code.

}

catch(SomeExceptionType e){

// Handle one exception type.

}

catch(SomeOtherExceptionType e){

// Handle another exception type.

}

catch(Exception e){

// This must be the last catch block.

}

~|~

(Select all that apply)

A.

Make calls to methods using both valid and invalid inputs.

B.

In the case of conditional logic (including ternary operators), execute each branch of code logic.

C.

Only test code using the System Administrator profile.

D.

Focus solely on test coverage percentage score.

E.

Complete successfully without throwing any exceptions, unless those errors are expected and caught in a try...catch block.

F.

None of these

Full Access
Question # 33

A template component that declares a named area that must be defined by an component in another Visualforce page. Use this component with the and components to share data between multiple pages.

A.

apex:outputText

B.

apex:barSeries

C.

apex:insert

D.

apex:inputFile

Full Access
Question # 34

Can apex code be created directly in the production environment?

A.

Ids

B.

1

C.

10

D.

No

Full Access
Question # 35

What is the default return type of a sosl statement?

A.

Apex process classes

B.

Apex classes

C.

List of List Objects

D.

SOQL for loops

Full Access