Question 1 of 11
A Dataverse Create operation must be rejected before the initial database transaction when a prohibited account number is detected. Which plug-in stage should be used? Explain why each of the other options is incorrect.
Strong Interview Answer
PreValidation can cancel the initial operation before entering the database transaction, while PreOperation runs inside the transaction and can change target values before the main operation. PostOperation runs after the main operation; asynchronous PostOperation work executes outside the original database transaction.
What to Listen For
- PreValidation can cancel the initial operation before entering the database transaction.
- PreOperation can change target data but cancellation there incurs transactional rollback cost.
- PostOperation occurs after the main operation and is too late for early rejection.
- Asynchronous PostOperation runs after commit and cannot cancel the original request.
Caution
Listen for a clear explanation of the PreValidation stage’s role in rejecting invalid requests before the transaction begins.