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

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 270 discussion

Actual exam question from Salesforce's CRT-450
Question #: 270
Topic #: 1
[All CRT-450 Questions]

A developer has a requirement to write Apex code to update a large number of account records on a nightly basis. The system administrator needs to be able to schedule the class to run after business hours on an as-needed basis.

Which class definition should be used to successfully implement this requirement?

  • A. global inherited sharing class ProcessAccountProcessor implements Database.Batchable, Schedulable
  • B. global inherited sharing class ProcessAccountProcessor implements Schedulable
  • C. global inherited sharing class ProcessAccountProcesscr implements Database.Batchable
  • D. global inherited sharing class ProcessAccountProcessor implements Queueable
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
irina_735
1 year, 2 months ago
Selected Answer: B
B is correct. To schedule a class you need to implement Schedulable interface. But in A answer there is a syntax error: shoud be Database.Batchable<sObject>
upvoted 1 times
...
Envy_Pouki
1 year, 2 months ago
Why not A here? If this is for a large number, batchable might be of interest as well
upvoted 1 times
irina_735
1 year, 2 months ago
A is incorrect. If you try declare class in this way you`ll get the error: No type arguments provided for a parameterized type: Database.Batchable. If declaration was global inherited sharing class ProcessAccountProcessor implements Database.Batchable<sObject>, Schedulable then A would be correct answer
upvoted 2 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 ...