Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Salesforce Certified Platform Developer II (PDII) · Salesforce
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
D is correct: COUNT() runs directly on the database and returns the total without retrieving individual records, making it much faster. No need to iterate over millions of records in Apex, avoiding governor limits.
Count is the answer
Count should be used in an aggregate SOQL