What is the optimal way for a developer to get the total number of Opportunities for the Lightning Component?

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?
A . Apex Batch job that counts the number of Opportunity records
B . SUM() SOQL aggregate query on the Opportunity object
C . SOQL for loop that counts the number of Opportunities records
D . COUNT() SOQL aggregate query on the Opportunity object

Answer: D

Latest PDII Dumps Valid Version with 280 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments