Free CERTIFIED-PLATFORM-DEVELOPER-II Salesforce CERTIFIED-PLATFORM-DEVELOPER-II Practice Test Question

Loading demo links...

Showing 22–24 of 28 questions

Question 22 (Topic 1)

A company needs to automatically delete sensitive information after seven years. This could delete almost a million records every day. How can this be achieved?

Select an option, then click Submit answer.

  • Use aggregate functions to query for records older than seven years, and then delete the AggregateResult objects
  • Perform a SOSL statement to find records older than 7 years, and then delete the entire result set
  • Schedule a batch Apex process to run every day that queries and deletes records older than seven years
  • Schedule an @future process to query records older than seven years, and then recursively invoke itself in 1,000 record batches to delete them
Question 23 (Topic 1)

A developer needs to implement a system audit feature that allows users, assigned to a custom profile named “Auditors”, to perform searches against the historical records in the Account object. The developer must ensure the search is able to return history records that are between 12 and 24 months old. Given the code below, which select statement should be inserted below as a valid way to retrieve the Account History records ranging from 12 to 24 month old?

Select an option, then click Submit answer.

Question 24 (Topic 1)

Refer to the markup below: A Lightning web component displays the Account name and two custom fields out of 275 that exist on the object. The custom fields are correctly declared and populated. However, the developer receives complaints that the component performs slowly. What can the developer do to improve the performance?

Select an option, then click Submit answer.

  • Add density="compact" to the component.
  • Replace layout-type="Full" with layout-type="Partial".
  • Add cache="true" to the component.
  • Replace layouts-type="Full" with fields={fields}.