Salesforce
PDII · Question #229
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?
The correct answer is C. Schedule a batch Apex process to run every day that queries and deletes records older than. See the full explanation below for the reasoning.
Question
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?
Options
- AUse aggregate functions to query for records older than seven years, and then delete the
- BPerform a SOSL statement to find records older than 7 years, and then delete the entire result set
- CSchedule a batch Apex process to run every day that queries and deletes records older than
- DSchedule an @future process to query records older than seven years, and then recursively
How the community answered
(24 responses)- A4% (1)
- B4% (1)
- C79% (19)
- D13% (3)
Community Discussion
No community discussion yet for this question.