SFDC PD1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

PDI

Salesforce - PDI
Platform Developer I

https://xcerts.com 1
PDI

QUESTION: 1
What are two uses for External IDs? (Choose two.)

A. To create relationships between records imported from an external system.


B. To create a record in a development environment with the same Salesforce ID as in another
environment
C. To identify the sObject type in Salesforce
D. To prevent an import from creating duplicate records using Upsert

Answer(s): A, D

QUESTION: 2
In a single record, a user selects multiple values from a multi-select picklist.
How are the selected values represented in Apex?

A. As a List<String> with each value as an element in the list


B. As a String with each value separated by a comma
C. As a String with each value separated by a semicolon
D. As a Set<String> with each value as an element in the set

Answer(s): C

QUESTION: 3
Map<ID, Account> accountMap = new Map>ID, Account> ([SELECT Id, Name FROM
Account]); What are three valid Apex loop structures for iterating through items in the collection?
(Choose three.)

A. for (ID accountID : accountMap.keySet()) {...}


B. for (Account accountRecord : accountMap.values()) {...}
C. for (Integer i=0; I < accountMap.size(); i++) {...}
D. for (ID accountID : accountMap) {...}
E. for (Account accountRecord : accountMap.keySet()) {...}

Answer(s): A, B, C

QUESTION: 4
For which three items can a trace flag be configured? (Choose three.)

A. Apex Trigger
B. Apex Class
C. Process Builder
D. User
E. Visualforce

Answer(s): A, B, D

QUESTION: 5

https://xcerts.com 2
PDI

Which set of roll-up types are available when creating a roll-up summary field?

A. COUNT, SUM, MIN, MAX


B. AVERAGE, SUM, MIN, MAX
C. SUM, MIN, MAX
D. AVRAGE, COUNT, SUM, MIN, MAX

Answer(s): A

QUESTION: 6
Using the Schema Builder, a developer tries to change the API name of a field that is
referenced in an Apex test class.
What is the end result?

A. The API name is not changed and there are no other impacts.
B. The API name of the field and the reference in the test class is changed.
C. The API name of the field is changed, and a warning is issued to update the class.
D. The API name of the field and the reference in the test class is updated.

Answer(s): C

QUESTION: 7
Which approach should be used to provide test data for a test class?

A. Query for existing records in the database.


B. Execute anonymous code blocks that create data.
C. Use a test data factory class to create test data.
D. Access data in @TestVisible class variables.

Answer(s): C

QUESTION: 8
When an Account's custom picklist field called Customer Sentiment is changed to a value of
"Confused", a new related Case should automatically be created.
Which two methods should a developer use to create this case? (Choose two.)

A. Process Builder
B. Apex Trigger
C. Custom Button
D. Workflow Rule

Answer(s): A, B

QUESTION: 9
Which two strategies should a developer use to avoid hitting governor limits when developing in
a multi-tenant environment? (Choose two.)

https://xcerts.com 3

You might also like