ExamGecko
Ask Question

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

List of questions

Question 61

Report
Export
Collapse

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?

workflow
workflow
@future
@future
Queueable
Queueable
Process Builder
Process Builder
Suggested answer: D
asked 23/09/2024
Frau Abir Bouassida
34 questions

Question 62

Report
Export
Collapse

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

The SOQL governor limits are being hit.
The SOQL governor limits are being hit.
A Process Builder is running that sends mass emails.
A Process Builder is running that sends mass emails.
Trigger is recursively invoked more than 16 times.
Trigger is recursively invoked more than 16 times.
There are numerous DML operations in the trigger logic.
There are numerous DML operations in the trigger logic.
Suggested answer: C
asked 23/09/2024
Bouchtig, Yassine
40 questions

Question 63

Report
Export
Collapse

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?

write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic.
write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic.
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.
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.
write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.
write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.
write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.
write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.
Suggested answer: A
asked 23/09/2024
Ronakkumar Shyani
47 questions

Question 64

Report
Export
Collapse

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?

RecordType
RecordType
Profile
Profile
User
User
Report
Report
Suggested answer: D
asked 23/09/2024
Saksith Tangthong
33 questions

Question 65

Report
Export
Collapse

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

Which options are valid? (Choose two.)

Use the Apex Jobs page in setup
Use the Apex Jobs page in setup
Query the Queueable Apex record
Query the Queueable Apex record
Query the AsyncApexJob record
Query the AsyncApexJob record
Use the Scheduled Jobs page in setup
Use the Scheduled Jobs page in setup
Suggested answer: A, C
asked 23/09/2024
Ellee Chen
40 questions

Question 66

Report
Export
Collapse

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

Log lines in the execution log panel can be analyzed for details about specific events
Log lines in the execution log panel can be analyzed for details about specific events
The performance tree should be use to analyze events further starting from the one that take the least amount of time
The performance tree should be use to analyze events further starting from the one that take the least amount of time
The execution tree can be used with the execution log to filter and get specific information about events
The execution tree can be used with the execution log to filter and get specific information about events
Multiple short bursts of Apex events should be analyzed since they can add up to a significant amount of time
Multiple short bursts of Apex events should be analyzed since they can add up to a significant amount of time
Suggested answer: A, D
asked 23/09/2024
Sergio da Costa
35 questions

Question 67

Report
Export
Collapse

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.

Before Triggers
Before Triggers
After Triggers
After Triggers
Post commit logic such as sending email
Post commit logic such as sending email
DML committed to the database
DML committed to the database
Workflow rules
Workflow rules
Roll-up summary calculationsIn what order do the following operations execute?
Roll-up summary calculationsIn what order do the following operations execute?
1,2,5,6,4,3
1,2,5,6,4,3
1,5,6,2,4,3
1,5,6,2,4,3
1,2,4,5,6,3
1,2,4,5,6,3
1,6,5,2,4,3
1,6,5,2,4,3
Suggested answer: A
asked 23/09/2024
Michael Crowson
46 questions

Question 68

Report
Export
Collapse

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?

©future (callout=true)
©future (callout=true)
Database.AllowCallouts interface
Database.AllowCallouts interface
Schedulable interface
Schedulable interface
Queueable interface
Queueable interface
Suggested answer: D
asked 23/09/2024
Weisi Huang
39 questions

Question 69

Report
Export
Collapse

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?

Developer Console
Developer Console
Force.com Migration Tool
Force.com Migration Tool
Workbench
Workbench
Force.com IDE
Force.com IDE
Suggested answer: C
asked 23/09/2024
Jessy Kevin NGANE OBAME
32 questions

Question 70

Report
Export
Collapse

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

Simulate user interaction by leveraging Test.setMock()
Simulate user interaction by leveraging Test.setMock()
Verify correct references by using getURL()
Verify correct references by using getURL()
Access test data by using seeAIIData=true
Access test data by using seeAIIData=true
Set query parameters by using getParameters().put
Set query parameters by using getParameters().put
Suggested answer: B, D
asked 23/09/2024
Christina Chelioti
36 questions
Total 438 questions
Go to page: of 44
Search

Related questions