Question 950
At Elmriver Data Platforms, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a CI runner supplies a storage secret as a backend-config parameter and uploads its saved plan publicly. 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 may be persisted in local .terraform metadata and saved plans. That mechanism distinguishes backend credential leak via -backend-config in the Elmriver Data Platforms case. The corresponding appropriate correction is: Move sensitive backend credentials to supported environment injection and restrict artifacts. The measurable acceptance test is: Published artifacts no longer carry storage passwords while authorized init works.
Incorrect Answers
“Backend operations use their own authentication path and may fail before resources are planned” reflects the mechanism: Backend operations use their own authentication path and may fail before resources are planned. The actual reported symptoms are better explained by: Backend configuration may be persisted in local.terraform metadata and saved plans.
The offered principle describes: Terraform compares real object attributes against state and declared desired configuration. The situation in this question instead depends on: Backend configuration may be persisted in local.terraform metadata and saved plans. These are different technical conditions.
“An expression-controlled instance collection can suppress optional resources” reflects the mechanism: An expression-controlled instance collection can suppress optional resources. The actual reported symptoms are better explained by: Backend configuration may be persisted in local.terraform metadata and saved plans.