Question 710
At Westfield Financial Systems, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a deployment passes long-lived storage credentials through -backend-config on the CLI and publishes plan artifacts. Choose the technically best Terraform Associate 004 practice response to this particular infrastructure case. What mechanism explains why the original approach fails?
Explanation
Correct Answer
Backend configuration values can be copied into local initialization files and saved plan metadata. That mechanism distinguishes backend credentials embedded in plan files in the Westfield Financial Systems case. The corresponding appropriate correction is: Use approved environment-based backend credential injection rather than embedding secrets in backend configuration. The measurable acceptance test is: Reviewed plan artifacts omit embedded long-lived backend secrets.
Incorrect Answers
“Vault can issue time-bounded credentials instead of long-lived shared static secrets” reflects the mechanism: Vault can issue time-bounded credentials instead of long-lived shared static secrets. The actual reported symptoms are better explained by: Backend configuration values can be copied into local initialization files and saved plan metadata.
The offered principle describes: Nested collection structures may need conversion before iteration over instances. The situation in this question instead depends on: Backend configuration values can be copied into local initialization files and saved plan metadata. These are different technical conditions.
“State records tracked object metadata but does not substitute for desired configuration” reflects the mechanism: State records tracked object metadata but does not substitute for desired configuration. The actual reported symptoms are better explained by: Backend configuration values can be copied into local initialization files and saved plan metadata.