Salesforce Certified Platform Developer II Practice Test - Questions Answers, Page 23
List of questions
Question 221
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
A developer is inserting, updating, and deleting multiple lists of records in a Single transaction and wants to ensure that any error prevents all execution.
How should the developer implement error exception handling in their code to handle this?
Question 222
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
A company has reference data stored in multiple Custom Metadata records that represent default information for certain.
When a Contact is inserted, the default information should be set on the Contact from the Custom Metadata records .. Address information.
What is the optimal way to automate this?
Question 223
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
As part of a custom development, a developer creates a Lightning Component to show how a particular opportunity progresses over time. The component must display the date stamp when any of the following fields change:
• Amount Probability, Stage, or Close Date
What is the most efficient way to Query such information?
Question 224
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
A developer must perform a complex SOQL query that joins two objects in a Lightning component. how can the Lightning component execute the query?
Question 225
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
A company needs to automatically delete sensitive information after 7 years. This could delete almost a million records every day.
How can this be achieved?
Question 226
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
A company has a custom object. Order__c, that has a custom picklist field. Status__c, with values of New, In Progress," or Fulfilled and a lookup field, Contact_c, to Contact.
Which SOQL query wrii return a unique list of all the Contact records that have no Fulfilled Orders?
Question 227
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
How should a developer assert that a trigger with an asynchronous process has successfully run?
Question 228
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
A corporation has many different Salesforce orgs, with some different objects and some common objects, and wants to build an application that can create, retrieve, and update common object records in all of the different orgs.
Which method of integration should the application use?
Question 229
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
A business process requires sending new Account records to an external system. The Account Name, Id, CreatedDate. and CreatedByld must be passed to the external system in near real-time when an Account is Inserted without error.
How should a developer achieve this?
Question 230
![Export Export](https://examgecko.com/assets/images/icon-download-24.png)
Given the following code:
Assuming there were 10 Contacts and five Accounts created today, what is the expected result?
Question