Question 550
A deployment engineer has a new workflow using Custom error_message to give the operator actionable feedback when a variable validation condition fails. What is the most meaningful acceptance criterion?
Explanation
Correct Answer
This finding directly verifies Custom error_message: validation blocks provide custom error descriptions. It establishes the stated outcome rather than merely confirming a resource exists.
Incorrect Answers
That evidence concerns check block, used to monitor a nonblocking service health assertion during infrastructure operations. It does not verify whether Custom error_message meets its acceptance criteria.
That evidence concerns Resource postcondition, used to ensure a created service exposes the required endpoint attribute before dependent changes continue. It does not verify whether Custom error_message meets its acceptance criteria.
That evidence concerns Output precondition, used to require a child module's exported URL to satisfy a declared rule before presenting it. It does not verify whether Custom error_message meets its acceptance criteria.






HashiCorp Certified: Terraform Associate (004) (Terraform Associate 004) Practice Tests