ExamGecko
Home Home / Salesforce / Certified Platform Developer II

Salesforce Certified Platform Developer II Practice Test - Questions Answers, Page 7

Question list
Search
Search

List of questions

Search

Related questions











A developer needs to send Account records to an external system for backup purposes. The process must take a snapshot of Accounts as they are saved and then make a callout to a RESTful web service. The web service can only receive, at most, one record per call. Which feature should be used to implement these requirements?

A.
workflow
A.
workflow
Answers
B.
@future
B.
@future
Answers
C.
Queueable
C.
Queueable
Answers
D.
Process Builder
D.
Process Builder
Answers
Suggested answer: D

A developer gets an error saying 'Maximum Trigger Depth Exceeded.' What is a possible reason to get this error message?

A.
The SOQL governor limits are being hit.
A.
The SOQL governor limits are being hit.
Answers
B.
A Process Builder is running that sends mass emails.
B.
A Process Builder is running that sends mass emails.
Answers
C.
Trigger is recursively invoked more than 16 times.
C.
Trigger is recursively invoked more than 16 times.
Answers
D.
There are numerous DML operations in the trigger logic.
D.
There are numerous DML operations in the trigger logic.
Answers
Suggested answer: C

An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecting one Contact will de-select any others. The client wants a checkbox on the Contact called 'Is Primary' to control this feature. The client also wants to ensure that the last name of every Contact is stored entirely in uppercase characters. What is the optimal way to implement these requirements?

A.
write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic.
A.
write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic.
Answers
B.
Write an after update trigger on Contact for the Is Primary logic and a separate before update trigger on Contact for the last name logic.
B.
Write an after update trigger on Contact for the Is Primary logic and a separate before update trigger on Contact for the last name logic.
Answers
C.
write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.
C.
write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.
Answers
D.
write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.
D.
write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.
Answers
Suggested answer: A

A developer is trying to access org data from within a test class. Which sObject type requires the test class to have the (seeAllData=true) annotation?

A.
RecordType
A.
RecordType
Answers
B.
Profile
B.
Profile
Answers
C.
User
C.
User
Answers
D.
Report
D.
Report
Answers
Suggested answer: D

The progress of an apex job queued is using the System.enqueueJob method and needs to be monitored.

Which options are valid? (Choose two.)

A.
Use the Apex Jobs page in setup
A.
Use the Apex Jobs page in setup
Answers
B.
Query the Queueable Apex record
B.
Query the Queueable Apex record
Answers
C.
Query the AsyncApexJob record
C.
Query the AsyncApexJob record
Answers
D.
Use the Scheduled Jobs page in setup
D.
Use the Scheduled Jobs page in setup
Answers
Suggested answer: A, C

Which are relevant practices while analyzing the timeline of different types of transactions in the execution overview panel? (Choose two.)

A.
Log lines in the execution log panel can be analyzed for details about specific events
A.
Log lines in the execution log panel can be analyzed for details about specific events
Answers
B.
The performance tree should be use to analyze events further starting from the one that take the least amount of time
B.
The performance tree should be use to analyze events further starting from the one that take the least amount of time
Answers
C.
The execution tree can be used with the execution log to filter and get specific information about events
C.
The execution tree can be used with the execution log to filter and get specific information about events
Answers
D.
Multiple short bursts of Apex events should be analyzed since they can add up to a significant amount of time
D.
Multiple short bursts of Apex events should be analyzed since they can add up to a significant amount of time
Answers
Suggested answer: A, D

A developer is writing a complex application involving triggers, workflow rules, Apex classes, and processes. The developer needs to carefully consider the order of execution when developing the application.

A.
Before Triggers
A.
Before Triggers
Answers
B.
After Triggers
B.
After Triggers
Answers
C.
Post commit logic such as sending email
C.
Post commit logic such as sending email
Answers
D.
DML committed to the database
D.
DML committed to the database
Answers
E.
Workflow rules
E.
Workflow rules
Answers
F.
Roll-up summary calculationsIn what order do the following operations execute?
F.
Roll-up summary calculationsIn what order do the following operations execute?
Answers
G.
1,2,5,6,4,3
G.
1,2,5,6,4,3
Answers
H.
1,5,6,2,4,3
H.
1,5,6,2,4,3
Answers
I.
1,2,4,5,6,3
I.
1,2,4,5,6,3
Answers
J.
1,6,5,2,4,3
J.
1,6,5,2,4,3
Answers
Suggested answer: A

A developer has been asked to create code that will meet the following requirements:

Receives input of: Map<ld, Project_c), List<Account>

Performs a potentially long-running callout to an outside web service Provides a way to confirm that the process executed successfully Which asynchronous feature should be used?

A.
©future (callout=true)
A.
©future (callout=true)
Answers
B.
Database.AllowCallouts interface
B.
Database.AllowCallouts interface
Answers
C.
Schedulable interface
C.
Schedulable interface
Answers
D.
Queueable interface
D.
Queueable interface
Answers
Suggested answer: D

A developer wants to retrieve and deploy metadata, perform simple CSV export of query results, and debug Apex REST calls by viewing JSON responses.

Which tool should the developer use?

A.
Developer Console
A.
Developer Console
Answers
B.
Force.com Migration Tool
B.
Force.com Migration Tool
Answers
C.
Workbench
C.
Workbench
Answers
D.
Force.com IDE
D.
Force.com IDE
Answers
Suggested answer: C

What is a best practice when unit testing a controller? (Choose two.)

A.
Simulate user interaction by leveraging Test.setMock()
A.
Simulate user interaction by leveraging Test.setMock()
Answers
B.
Verify correct references by using getURL()
B.
Verify correct references by using getURL()
Answers
C.
Access test data by using seeAIIData=true
C.
Access test data by using seeAIIData=true
Answers
D.
Set query parameters by using getParameters().put
D.
Set query parameters by using getParameters().put
Answers
Suggested answer: B, D
Total 408 questions
Go to page: of 41