Free Platform-Developer-II Exam Braindumps

Pass your Platform Developer II exam with these free Questions and Answers

Page 23 of 35
QUESTION 106

- (Exam Topic 1)
A developer has written the following method: static void processList(List input){ Which code block can be used to call the method?

  1. A. processList (ace)
  2. B. processList ([FIND 'Acme" 'RETURNING Account])
  3. C. processList([SELECT Id, Name FROM sObject WHERE Type = 'Account'])
  4. D. for Account ace : [SELECT Id, Name FROM Account])

Correct Answer: C

QUESTION 107

- (Exam Topic 3)
A developer wrote an Apex method to update a list of Contacts and wants to make it available for use by Lightning web components.
Which annotation should the developer add to the Apex method to achieve this?

  1. A. @AuraEnabled
  2. B. @RemoteAction
  3. C. @RemoteAction(cacheable=true)
  4. D. @AuraEnable

Correct Answer: D

QUESTION 108

- (Exam Topic 3)
Salesforce users consistently receive a "Maximum trigger depth exceeded" error when saving m Account. How can a developer fix this error?

  1. A. Split the trigger logic into two separate triggers.
  2. B. Modify the trigger to use the isMultiThread=true annotation.
  3. C. Convert trigger to use the ©future annotation, and chain any subsequent trigger invocations to the Account object.
  4. D. Use a helper class to set a Boolean to TRUE the first time a trigger is fired, and then; modify the trigger to only fire when modify the trigger to only fire when the Boolean is FALSE.

Correct Answer: D

QUESTION 109

- (Exam Topic 1)
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.
* 1. Before Triggers
* 2. After Triggers
* 3. Post commit logic such as sending email
* 4. DML committed to the database
* 5. Workflow rules
* 6. Roll-up summary calculations
In what order do the following operations execute?

  1. A. 1,2,5,6,4,3
  2. B. 1,5,6,2,4,3
  3. C. 1,2,4,5,6,3
  4. D. 1,6,5,2,4,3

Correct Answer: A

QUESTION 110

- (Exam Topic 1)
The Bulk API .

  1. A. Is based on REST principles and is optimized for loading or deleting large sets of dat
  2. B. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches
  3. C. Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforc
  4. D. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects
  5. E. Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to maintain passwords, perform searches, and much more
  6. F. Is used to retrieve, deploy, create, update, or delete customizations for your or
  7. G. The most common use is to migrate changes from a sandbox or testing org to your production environment

Correct Answer: A

Page 23 of 35

Post your Comments and Discuss Salesforce Platform-Developer-II exam with other Community members: