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

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

An Apex trigger and Apex class increment a counter, Edit_Count_c, any time that the Case is changed.



A new process on the Case object was just created in production for when a Case is created or updated. Since the process was added, there are reports that the Edit_Count_c is being incremented by more than one on Case edits.

Which change in the Apex code will fix the problem?

  • A.
  • B.
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
stan_malta
1 year ago
Selected Answer: B
You need a static variable
upvoted 2 times
...
cPickle
1 year, 7 months ago
Selected Answer: B
B is Correct. https://www.forcetalks.com/salesforce-topic/trigger-in-salesforce/
upvoted 4 times
...
AppleDash
1 year, 8 months ago
Pretty sure its B, the boolean has to be static, and only set at the beginning (option C sets the value twice).
upvoted 2 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 ...