New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Platform Developer I Topic 6 Question 81 Discussion

Actual exam question for Salesforce's Platform Developer I exam
Question #: 81
Topic #: 6
[All Platform Developer I Questions]

When the code executes, a DML exception is thrown.

How should a developer modify the code to ensure exceptions are handled gracefully?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Karl
5 months ago
Removing null items from the list? That's just avoiding the problem, not solving it. I'm all about C!
upvoted 0 times
...
Glynda
5 months ago
Change Data Capture? Nah, that's overkill for this use case. Gotta go with option C.
upvoted 0 times
Karon
4 months ago
Yeah, a try/catch block will handle the exceptions gracefully.
upvoted 0 times
...
Caprice
5 months ago
I agree, option C is the way to go.
upvoted 0 times
...
...
Tanja
6 months ago
Implementing upsert seems like a band-aid solution. I'd go with the try/catch block to properly address the exception.
upvoted 0 times
...
Vilma
6 months ago
Haha, I bet the exam question writer is sitting back and laughing at all the silly answers we're coming up with. Gotta love these tricky questions!
upvoted 0 times
Peggie
5 months ago
A) Implement the upsert DML statement.
upvoted 0 times
...
Na
5 months ago
C) Implement a try/catch block for the DML.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77