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

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

A Salesforce org has more than 50,000 contacts. A new business process requires a calculation that aggregates data from all of these contact records. This calculation needs to run once a day after business hours.

Which two steps should a developer take to accomplish this? (Choose two.)

  • A. Use the @future annotation on the method that performs the aggregate calculation.
  • B. Implement the Schedulable interface in the class that contains the aggregate calculation method.
  • C. Use the @readOnly annotation on the method that performs the aggregate calculation.
  • D. Implement the Queuable interface in the class that contains the aggregate calculation method.
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Ullr
1 year, 8 months ago
BC "The @ReadOnly annotation allows you to perform less restrictive queries against the Lightning Platform database by increasing the limit of the number of returned rows for a request to 1,000,000. All other limits still apply. The annotation blocks the following operations within the request: DML operations, calls to System.schedule, and enqueued asynchronous Apex jobs."
upvoted 3 times
likithsn
7 months, 1 week ago
ew restrictions that a developer should keep in mind before making use of @ReadOnly. No DML operations are allowed on the records which are queried. No System.schedule call. Enqueued asynchronous Apex jobs are not allowed
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 ...