Question 550
A root module outputs a secret-like string needed by an authorized downstream automation and must avoid displaying it casually in CLI summaries. Which observation would be the most direct evidence that this requirement has been satisfied?
Explanation
Correct Answer
A sensitive output flag controls presentation but does not guarantee absence from state. Mark the output sensitive and restrict downstream state/artifact access independently.
Incorrect Answers
Explicit depends_on is appropriate for behavioral dependencies not visible through value references. Mark the output sensitive and restrict downstream state/artifact access independently.
Terraform conditional expressions select values based on a boolean condition. Ordinary CLI output redacts the sensitive output while authorized storage remains protected.
A secrets manager centralizes issuance and policy; Terraform storage still requires careful treatment. Mark the output sensitive and restrict downstream state/artifact access independently.