ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 240 - Certified Advanced Administrator (CRT-211) discussion

Report
Export

The administrator at Cloud Kicks noticed that a before trigger, which handles saving the original version of a record to an external database, fails. However, a flow configured for fast field updates runs successfully.

How should the administrator advise the developer?

A.
Record-triggered flows that are configured to run before save execute prior to all before triggers.
Answers
A.
Record-triggered flows that are configured to run before save execute prior to all before triggers.
B.
A validation rule could be preventing records from ever meeting the conitions in the trigger.
Answers
B.
A validation rule could be preventing records from ever meeting the conitions in the trigger.
C.
The trigger is writing the data to the wrong place in the external data archive.
Answers
C.
The trigger is writing the data to the wrong place in the external data archive.
D.
The code could be trying to create duplicates in the archieve when it is unable to.
Answers
D.
The code could be trying to create duplicates in the archieve when it is unable to.
Suggested answer: D

Explanation:

One possible reason why the before trigger fails is that the code could be trying to create duplicates in the archive when it is unable to. A before trigger is a type of trigger that executes before a record is saved and can be used to validate or modify record data. In this case, the before trigger is supposed to save the original version of a record to an external database before it is updated or deleted in Salesforce. However, if the code does not handle errors or exceptions properly, it could try to create duplicate records in the external database when it is not allowed or possible. This could cause the trigger to fail and prevent the record from being saved in Salesforce.

Reference: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers.htm https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_context_variables.htm

asked 23/09/2024
Daniel Hernandez Villar
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first