Valid PDII Dumps shared by EduDump.com for Helping Passing PDII Exam! EduDump.com now offer the newest PDII exam dumps, the EduDump.com PDII exam questions have been updated and answers have been corrected get the newest EduDump.com PDII dumps with Test Engine here:
Access PDII Dumps Premium Version
(163 Q&As Dumps, 35%OFF Special Discount Code: freecram)
Recent Comments (The most recent comments are at the top.)
Satish It cannot be C because saveResult can be added just in case when you will set database flag to false
Answer is A not C. "ensure that any error prevents all execution". What C does is save the error on Database.SaveResults object but the process will continue to execute.
Database.setSavePoint();
try{
// do DML operation
}catch(Exception e){
//if any error
Database.rollBack();
//log error
System.debug(e);
}
The correct one is A anyway, because it says 'you want to make sure that any error prevents all execution'.
The Correct Answer is C. Since if there are any DML Error with List of records we should use Database methods to allow partial save and collect results of failed records and do return back with error etc...