Salesforce
PDII · Question #77
PDII Question #77: Real Exam Question with Answer & Explanation
The correct answer is C. 4. See the full explanation below for the reasoning.
Question
1 Contact con = new Contact( LastName ='Smith', Department = 'Admin') 2 insert con; 3 Contact insertedContact=[select Name from Contact where id=:con.Id]; 4 Savepoint sp_admin = Database.setSavepoint(); 5 con.Department = 'HR'; 6 update con; 7 Database.rollback(sp_admin); 8 System.debug(Limits.getDmlStatements()); Given the following code, what value will be output in the logs by line #8?
Options
- A5
- B3
- C4
- D2
Community Discussion
No community discussion yet for this question.