ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 304 - Certified Platform Developer II discussion

Report
Export

A developer is debugging an Apex-based order creation process that has a requirement to have three savepoints, SP1, SP2, and SP3 (created in order), before the final execution of the process.

During the final execution process, the developer has a routine to roll back to SP1 for a given condition. Once the condition is fixed, the code then calls a roll back to SP3 to continue with final execution. However, when the roll, back to SP3 is called, a runtime error occurs.

Why does the developer receive a runtime error?

A.
The developer should have called SP2 before calling SP3.
Answers
A.
The developer should have called SP2 before calling SP3.
B.
SP3 became invalid when SP1 was rolled back.
Answers
B.
SP3 became invalid when SP1 was rolled back.
C.
The developer has too many DML statements between the savepoints.
Answers
C.
The developer has too many DML statements between the savepoints.
D.
The developer used too many savepoints in one trigger session.
Answers
D.
The developer used too many savepoints in one trigger session.
Suggested answer: B
asked 23/09/2024
EVA LITA
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first