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

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

A company uses Opportunities to track sales to their customers and their org has millions of Opportunities. They want to begin to track revenue over time through a related Revenue object.

As part of their initial implementation, they want to perform a one-time seeding of their data by automatically creating and populating Revenue records for Opportunities, based on complex logic.

They estimate that roughly 100,000 Opportunities will have Revenue records created and populated.

What is the optimal way to automate this?

  • A. Use System.enqueueJob() to invoke a Queueable class.
  • B. Use Database.executeBatch() to invoke a Queueable dass.
  • C. Use System.scheduleJob() to schedule a Database.Scheduleable class.
  • D. Use Database.executeBatch() to invoke a Database.Batchable class.
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
4fc475e
7 months, 3 weeks ago
The answer is D. Why would you need to schedule a job that is going to run once...
upvoted 3 times
...
stan_malta
1 year ago
Selected Answer: D
Don't schedule an one-timer
upvoted 2 times
...
Sapphire808
1 year, 1 month ago
C. Even though it is not required to run multiple times, it would be best practice to run this after hours therefore it would be best to schedule a batch apex job to handle this logic.
upvoted 1 times
...
cPickle
1 year, 7 months ago
Selected Answer: D
D is Correct
upvoted 1 times
...
AppleDash
1 year, 8 months ago
Ans should be D, it only needs to be implemented once, no need to use a scheduleJob.
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 ...