Question 340
A team asks a data-platform team to defer a root output until a side-effect resource finishes even though its value does not reference that resource. Which Terraform mechanism should be used?
Explanation
Correct Answer
Output depends_on declares hidden ordering requirements for published values. This meets the stated requirement to defer a root output until a side-effect resource finishes even though its value does not reference that resource.
Incorrect Answers
output block is intended to expose an applied root module's service URL to deployment automation; outputs publish selected Terraform values for consumers. That is not the specific requirement to defer a root output until a side-effect resource finishes even though its value does not reference that resource.
Sensitive output marking is intended to prevent sensitive output values from appearing in ordinary CLI output displays; sensitive marking changes presentation but does not remove the value from state. That is not the specific requirement to defer a root output until a side-effect resource finishes even though its value does not reference that resource.
Output description is intended to document an output's meaning for people consuming a module interface; descriptions make module return values understandable. That is not the specific requirement to defer a root output until a side-effect resource finishes even though its value does not reference that resource.






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