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 368 discussion

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

Consider the following code snippet:



Which two best practices should the developer implement to optimize this code? (Choose two.)

  • A. Query the Pricing_Structure__c records outside of the loop.
  • B. Use a collection for the DML statement.
  • C. Change the trigger context to after update, after insert.
  • D. Remove the DML statement.
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
goldy_666
2 months, 2 weeks ago
Selected Answer: AD
Sorry it is A and D as it is a before trigger so update dml operation is not required
upvoted 3 times
...
goldy_666
3 months, 1 week ago
Selected Answer: AB
It should be A and B.
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 ...