Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 248 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 248
Topic #: 1
[All Certified Platform Developer II Questions]

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?

  • A. Use aggregate functions to query for records older than seven years, and then delete the AggregateResult objects
  • B. Perform a SOSL statement to find records older than 7 years, and then delete the entire result set
  • C. Schedule a batch Apex process to run every day that queries and deletes records older than seven years
  • D. Schedule an @future process to query records older than seven years, and then recursively invoke itself in 1,000 record batches to delete them
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
singhkar
Highly Voted 3 years, 5 months ago
The correct Ans should be C
upvoted 7 times
...
stan_malta
Most Recent 1 year ago
Selected Answer: C
Aggregate queries can only query aggregated information, not single rows.
upvoted 1 times
...
shanky1823
2 years ago
C is correct.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...