Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 97 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 97
Topic #: 1
[All Certified Platform Developer II Questions]

What is a recommended practice with regard to the Apex CPU limit? (Choose two.)

  • A. Optimize SOQL query performance
  • B. Use Map collections to cache sObjects
  • C. Avoid nested Apex iterations
  • D. Reduce view state in Visualforce pages
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
drwebber
Highly Voted 2 years, 11 months ago
What's not counted: Database operations, e.g. the portion of execution time spent in the database for DML, SOQL, and SOSL isn’t counted, nor is waiting time for Apex callouts., SOQL https://help.salesforce.com/s/articleView?id=000339361&type=1
upvoted 8 times
...
Avinash_14
Most Recent 1 month ago
A and C Optimizing SOQL query performance and avoiding nested iterations are directly related to reducing CPU usage in Apex, making A and C the best practices for managing the Apex CPU limit. Using Map collections helps with memory efficiency and reduces the number of SOQL queries or DML operations, but it doesn't directly affect the CPU limit. It's more about avoiding the SOQL query limit or improving data access performance.
upvoted 1 times
...
beardAnt
1 month, 1 week ago
Selected Answer: BC
BC is the answer
upvoted 1 times
...
Sapphire808
1 year, 1 month ago
Selected Answer: AC
CPU time is consumed by SOQL queries and nested Apex iterations.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...