Question 580
A Terraform module creates a managed database but stores a generated password in state persisted in an open storage bucket. Which limitation must be considered before claiming the issue is fully resolved?
Explanation
Correct Answer
Marking a Terraform output sensitive does not necessarily remove its value from state. This caution prevents extrapolating beyond the specific evidence or product boundary. IaC state is a privileged operational artifact requiring data protections. The unresolved point should be tested using remote state bucket IAM, versioning settings and state inspection under approval rather than assuming a working interface proves full compliance or resilience.
Incorrect Answers
State files cannot contain sensitive values if the module uses encryption. This limitation is framed as a blanket exception, but the case requires a different, narrower caution. The relevant boundary is that marking a Terraform output sensitive does not necessarily remove its value from state. IaC state is a privileged operational artifact requiring data protections. Inspect remote state bucket IAM, versioning settings and state inspection under approval.
A sensitive value is never stored in state if its UI representation is masked. The proposed claim mistakes an incomplete signal or product feature for a universal guarantee. The relevant boundary is that marking a Terraform output sensitive does not necessarily remove its value from state. IaC state is a privileged operational artifact requiring data protections. Inspect remote state bucket IAM, versioning settings and state inspection under approval.
Deleting the current state file makes its previously exposed credential invalid. This claim exceeds the evidence and ignores an important risk or operational dependency. The relevant boundary is that marking a Terraform output sensitive does not necessarily remove its value from state. IaC state is a privileged operational artifact requiring data protections. Inspect remote state bucket IAM, versioning settings and state inspection under approval.