Question 520
The Terraform change owner at Northgate IT Platforms seeks a verifiable outcome for: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. Which controlled check would validate the remediation?
Explanation
Correct Answer
The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys. This directly verifies the corrective action: Pass root variable values into child module arguments rather than relying on tfvars propagation. The measured result specifically addresses the failure at Northgate IT Platforms: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically.
Incorrect Answers
The reviewed plan detects the controlled manual change instead of relying solely on stale state. This evidence would validate a DIFFERENT correction: Use a normal refreshed plan when current remote drift must be evaluated and review the resulting differences. That different correction addresses: A developer tries to prove there is no drift by using terraform plan -refresh=false in a system with known manual changes. It does not establish that the Northgate IT Platforms issue has been corrected: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. The relevant measured outcome is: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.
terraform init finds the directory and validation resolves its variables and resources. This evidence would validate a DIFFERENT correction: Correct the relative module source path and initialize the configuration to load the existing local module. That different correction addresses: A module declaration points to a local relative folder, but the folder has been renamed and initialization cannot find it. It does not establish that the Northgate IT Platforms issue has been corrected: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. The relevant measured outcome is: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.
The plan clearly shows replacement of the intended resource address while other resources remain unchanged. This evidence would validate a DIFFERENT correction: Use an appropriate documented replacement action such as terraform apply -replace with review. That different correction addresses: An application needs an isolated replacement of a damaged object, but the operator tries to edit its serialized state to mark it broken. It does not establish that the Northgate IT Platforms issue has been corrected: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. The relevant measured outcome is: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.