Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 222 discussion

Actual exam question from Salesforce's CRT-450
Question #: 222
Topic #: 1
[All CRT-450 Questions]

A recursive transaction is initiated by a DML statement creating records for these two objects:
1. Accounts
2. Contacts
The Account trigger hits a stack depth of 16.
Which statement is true regarding the outcome of the transaction?

  • A. The transaction fails and all the changes are rolled back.
  • B. The transaction succeeds as long as the Contact trigger stack depth is less than 16.
  • C. The transaction fails only if the Contact trigger stack depth is greater or equal to 16.
  • D. The transaction succeeds and all changes are committed to the database.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
DonAldos
Highly Voted 3 years ago
transaction fails only if GREATER than 16 thats why B & C are incorrect
upvoted 5 times
...
SanjeevOnForce
Most Recent 1 year ago
D is correct. The maximum trigger depth exceeded error in Salesforce occurs when a trigger recursively invokes triggers more than 16 times. In this case its reach the 16 which is still in the limit.
upvoted 1 times
...
justarandomguy
2 years, 8 months ago
Since is a recursion, it's just going to keep going indefinitely until its force to hit the max stack depth. . Unless explicitly specified in the question, So b and c wouldn't make sense, since u won't have control over the amount of times the recursion is going to run. By default dml transactions that fail will rollback unless specified otherwise by using allornone = false.
upvoted 2 times
...
illyaOsiyuk
2 years, 11 months ago
Why not 'A' ???
upvoted 4 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 ...