ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 57 - Certified Platform Developer II discussion

Report
Export

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.
SUM() SOQL aggregate query on the Opportunity object
Answers
A.
SUM() SOQL aggregate query on the Opportunity object
B.
SOQL for loop that counts the number of Opportunities records
Answers
B.
SOQL for loop that counts the number of Opportunities records
C.
COUNT() SOQL aggregate query on the Opportunity object
Answers
C.
COUNT() SOQL aggregate query on the Opportunity object
D.
Apex Batch job that counts the number of Opportunity records
Answers
D.
Apex Batch job that counts the number of Opportunity records
Suggested answer: C
asked 23/09/2024
Gennaro Migliaccio
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first