Question 520
A team sets sensitive=true on a password variable and assumes this prevents the value from being stored in every Terraform artifact. Which action most directly satisfies the requirement in this situation?
Explanation
Correct Answer
Sensitive metadata generally redacts presentation; it is not equivalent to no state persistence. Logs redact the password and access to stored Terraform artifacts remains restricted.
Incorrect Answers
Resource and data blocks differ by management intent, not visual similarity of attributes. Use sensitive markings for redaction but separately secure state and plan artifacts and prefer ephemeral handling where applicable.
For_each resource instances are addressed by their keys, not by guessed list positions. Logs redact the password and access to stored Terraform artifacts remains restricted.
Module outputs encapsulate child implementation details. Use sensitive markings for redaction but separately secure state and plan artifacts and prefer ephemeral handling where applicable.