nerdexam
Salesforce

PDII · Question #39

PDII Question #39: Real Exam Question with Answer & Explanation

Sign in or unlock PDII to reveal the answer and full explanation for question #39. The question stem and answer options stay visible for context.

Question

Part of a custom Lightning Component displays the total number of Opportunities in the org, which is in the millions. The Lightning Component uses an Apex Controller to get the data it needs. What is the optimal way for a developer to get the total number of Opportunities for the Lightning Component?

Options

  • AApex Batch job that counts the number of Opportunity records
  • BSUM() SOQL aggregate query on the Opportunity object
  • CSOQL for loop that counts the number of Opportunities records
  • DCOUNT() SOQL aggregate query on the Opportunity object

Unlock PDII to see the answer

You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full PDII Practice