What is the optimal...
 
Notifications
Clear all

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

1 Posts
1 Users
0 Likes
147 Views
(@ozolinsezequiel)
Noble Member
Joined: 2 years ago
Posts: 701
Topic starter  

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

Show Answer Hide Answer

Suggested Answer: C

   
Quote

Latest Salesforce PDII Dumps Valid Version

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