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 292 discussion

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

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?

  • A.
  • B.
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
kajalr
6 months, 4 weeks ago
C is correct option
upvoted 1 times
...
BrucePark
1 year, 3 months ago
Selected Answer: C
All Rows keyword is not allowed to AccountHistory object. D is wrong.
upvoted 2 times
moitam
1 year, 2 months ago
I have tried out on Anonymous Console and I got no issue using ALL ROWS, "14:19:15:000 CUMULATIVE_PROFILING AnonymousBlock: line 3, column 1: [SELECT AccountId, DataType, Field, NewValue, OldValue, CreatedById, CreatedDate FROM AccountHistory WHERE CreatedDate >= :initialDate AND CreatedDate <= :endDate ALL ROWS]: executed 1 time in 103 ms" So based on this, and considering that this is for auditing purposes I guess D is correct since including the ones that are deleted or archived must be displayed too
upvoted 3 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 ...