Salesforce Certified Platform Developer II (Plat-Dev-301) PDII Question # 49 Topic 5 Discussion

Salesforce Certified Platform Developer II (Plat-Dev-301) PDII Question # 49 Topic 5 Discussion

PDII Exam Topic 5 Question 49 Discussion:
Question #: 49
Topic #: 5

Part of a custom Lightning component displays the total number of Opportunities in the org, which are in the millions. The Lightning

component uses an Apex method 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.

SOQL for loop that counts the number of Opportunities records


B.

Apex batch job that counts the number of Opportunity records


C.

SUM () SOQL aggregate query on the Opportunity object


D.

COUNT () SOQL aggregate query on the Opportunity object


Get Premium PDII Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.