HashiCorp Terraform Associate Practice Test 67
Question 660
A deployment runner changes backend location from a staging bucket to production but reuses the same local .terraform metadata without reinitialization. The team has implemented an approved Terraform change. Which observed result most directly confirms that the original requirement is now met, beyond a successful command exit code?
- The runner reads the intended production state instead of stale staging metadata.
- Only a genuinely stale lock is released under an auditable incident procedure.
- Auditors receive only approved evidence without broad raw state disclosure.
- The correct state scope is selected without duplicating production objects.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: The runner reads the intended production state instead of stale staging metadata. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Use explicit environment separation and do not disable locking.
Incorrect Answers
B:“Only a genuinely stale lock is released under an auditable incident procedure” would address a different Terraform configuration concern; the source instead describes A deployment runner changes backend location from a staging bucket to production but reuses the same local .terraform metadata without reinitialization. The appropriate design is to run a controlled backend reinitialization and confirm the selected backend and state before planning. Confirm whether the runner reads the intended production state instead of stale staging metadata.
C:“Auditors receive only approved evidence without broad raw state disclosure” would address a different Terraform configuration concern; the source instead describes A deployment runner changes backend location from a staging bucket to production but reuses the same local .terraform metadata without reinitialization. The appropriate design is to run a controlled backend reinitialization and confirm the selected backend and state before planning. Confirm whether the runner reads the intended production state instead of stale staging metadata.
D:“The correct state scope is selected without duplicating production objects” would address a different Terraform configuration concern; the source instead describes A deployment runner changes backend location from a staging bucket to production but reuses the same local .terraform metadata without reinitialization. The appropriate design is to run a controlled backend reinitialization and confirm the selected backend and state before planning. Confirm whether the runner reads the intended production state instead of stale staging metadata.
Question 661
A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy.
- Use an appropriate removed block with destroy=false or a controlled state removal, documenting the change in ownership.
- Use an appropriate refresh-only plan/apply after reviewing what state values would be updated.
- Coordinate an explicit state ownership transfer with a write freeze and verify exactly one authoritative binding.
Explanation
Correct Answer
A:The proposed intervention addresses the reported Terraform engineering failure: A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. It applies the design choice Compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Review the primary diagnostic: Inspect the last reviewed subnet CIDR and changed provider observation. The expected outcome is: The approved subnet design is restored or configuration is updated deliberately. The rollout safeguard is: Coordinate network owner review and preserve the incident change record.
Incorrect Answers
B:“Use an appropriate removed block with destroy=false or a controlled state removal, documenting the change in ownership” would address a different Terraform configuration concern; the source instead describes A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The appropriate design is to compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Confirm whether the approved subnet design is restored or configuration is updated deliberately.
C:“Use an appropriate refresh-only plan/apply after reviewing what state values would be updated” would address a different Terraform configuration concern; the source instead describes A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The appropriate design is to compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Confirm whether the approved subnet design is restored or configuration is updated deliberately.
D:“Coordinate an explicit state ownership transfer with a write freeze and verify exactly one authoritative binding” would address a different Terraform configuration concern; the source instead describes A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The appropriate design is to compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Confirm whether the approved subnet design is restored or configuration is updated deliberately.
Question 662
A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. Before choosing a remedy, the team needs independent evidence of the actual root cause. Which TWO checks most directly test this case? (Select TWO.)
- Inspect Terraform workspace name and backend key.
- Review planned update or replacement actions associated with drift.
- Inspect the last reviewed subnet CIDR and changed provider observation.
- Inspect the provider-observed attribute and recorded state value.
- Inspect the required DNS output and current state-sharing permissions.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Review planned update or replacement actions associated with drift. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. The expected confirmation is The approved subnet design is restored or configuration is updated deliberately.
C:This is directly relevant evidence for the reported behavior: Inspect the last reviewed subnet CIDR and changed provider observation. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. The expected confirmation is The approved subnet design is restored or configuration is updated deliberately.
Incorrect Answers
A:“Inspect Terraform workspace name and backend key” would address a different Terraform configuration concern; the source instead describes A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The appropriate design is to compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Confirm whether the approved subnet design is restored or configuration is updated deliberately.
D:“Inspect the provider-observed attribute and recorded state value” would address a different Terraform configuration concern; the source instead describes A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The appropriate design is to compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Confirm whether the approved subnet design is restored or configuration is updated deliberately.
E:“Inspect the required DNS output and current state-sharing permissions” would address a different Terraform configuration concern; the source instead describes A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The appropriate design is to compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Confirm whether the approved subnet design is restored or configuration is updated deliberately.
Question 663
A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Publicly exposed state can disclose secrets and infrastructure topology.
- Refreshing state alone does not change the declared desired configuration.
- Blind drift correction can overwrite a legitimate emergency fix.
- Uninitialized backend changes can target the wrong infrastructure.
Explanation
Correct Answer
C:The reported condition creates the specific potential exposure: Blind drift correction can overwrite a legitimate emergency fix. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect the last reviewed subnet CIDR and changed provider observation. Second diagnostic: Review planned update or replacement actions associated with drift.
Incorrect Answers
A:“Publicly exposed state can disclose secrets and infrastructure topology” would address a different Terraform configuration concern; the source instead describes A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The appropriate design is to compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Confirm whether the approved subnet design is restored or configuration is updated deliberately.
B:“Refreshing state alone does not change the declared desired configuration” would address a different Terraform configuration concern; the source instead describes A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The appropriate design is to compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Confirm whether the approved subnet design is restored or configuration is updated deliberately.
D:“Uninitialized backend changes can target the wrong infrastructure” would address a different Terraform configuration concern; the source instead describes A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The appropriate design is to compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Confirm whether the approved subnet design is restored or configuration is updated deliberately.
Question 664
A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Use an approved backend migration with a backup instead of resetting resource identity mappings.
- Use environment-specific backends and explicit migration review.
- Compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy.
- Coordinate network owner review and preserve the incident change record.
- Review key management and rotate compromised credentials.
Explanation
Correct Answers
C:This is one of the two necessary decisions for a safe design: Compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Together the corrective action and its implementation safeguard need to address the recorded condition: A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. Acceptance requires The approved subnet design is restored or configuration is updated deliberately.
D:This is one of the two necessary decisions for a safe design: Coordinate network owner review and preserve the incident change record. Together the corrective action and its implementation safeguard need to address the recorded condition: A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. Acceptance requires The approved subnet design is restored or configuration is updated deliberately.
Incorrect Answers
A:“Use an approved backend migration with a backup instead of resetting resource identity mappings” would address a different Terraform configuration concern; the source instead describes A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The appropriate design is to compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Confirm whether the approved subnet design is restored or configuration is updated deliberately.
B:“Use environment-specific backends and explicit migration review” would address a different Terraform configuration concern; the source instead describes A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The appropriate design is to compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Confirm whether the approved subnet design is restored or configuration is updated deliberately.
E:“Review key management and rotate compromised credentials” would address a different Terraform configuration concern; the source instead describes A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The appropriate design is to compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Confirm whether the approved subnet design is restored or configuration is updated deliberately.
Question 665
A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The team has implemented an approved Terraform change. Which observed result most directly confirms that the original requirement is now met, beyond a successful command exit code?
- Recorded state reflects the accepted external attribute without rewriting resources.
- Terraform initializes the intended state backend without invalid HCL interpolation.
- A damaged snapshot can be recovered with resource bindings preserved.
- The approved subnet design is restored or configuration is updated deliberately.
Explanation
Correct Answer
D:This is the appropriate measurable post-change acceptance criterion: The approved subnet design is restored or configuration is updated deliberately. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Coordinate network owner review and preserve the incident change record.
Incorrect Answers
A:“Recorded state reflects the accepted external attribute without rewriting resources” would address a different Terraform configuration concern; the source instead describes A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The appropriate design is to compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Confirm whether the approved subnet design is restored or configuration is updated deliberately.
B:“Terraform initializes the intended state backend without invalid HCL interpolation” would address a different Terraform configuration concern; the source instead describes A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The appropriate design is to compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Confirm whether the approved subnet design is restored or configuration is updated deliberately.
C:“A damaged snapshot can be recovered with resource bindings preserved” would address a different Terraform configuration concern; the source instead describes A site reliability engineer sees manual changes in a cloud subnet and runs terraform apply without reviewing whether configuration or remote state should win. The appropriate design is to compare configuration, state and remote observations in a plan and choose an authorized reconciliation strategy. Confirm whether the approved subnet design is restored or configuration is updated deliberately.
Question 666
An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Use an approved backend migration with a backup instead of resetting resource identity mappings.
- Confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name.
- Use terraform state show for the known managed resource address and review its stored values securely.
- Use an appropriate refresh-only plan/apply after reviewing what state values would be updated.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. It applies the design choice Use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Review the primary diagnostic: Inspect the provider-observed attribute and recorded state value. The expected outcome is: Recorded state reflects the accepted external attribute without rewriting resources. The rollout safeguard is: Document whether configuration later needs a corresponding update.
Incorrect Answers
A:“Use an approved backend migration with a backup instead of resetting resource identity mappings” would address a different Terraform configuration concern; the source instead describes An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The appropriate design is to use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Confirm whether recorded state reflects the accepted external attribute without rewriting resources.
B:“Confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name” would address a different Terraform configuration concern; the source instead describes An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The appropriate design is to use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Confirm whether recorded state reflects the accepted external attribute without rewriting resources.
C:“Use terraform state show for the known managed resource address and review its stored values securely” would address a different Terraform configuration concern; the source instead describes An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The appropriate design is to use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Confirm whether recorded state reflects the accepted external attribute without rewriting resources.
Question 667
An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. Before choosing a remedy, the team needs independent evidence of the actual root cause. Which TWO checks most directly test this case? (Select TWO.)
- Inspect state version lineage and resource binding details.
- Inspect the provider-observed attribute and recorded state value.
- Review the refresh-only plan before authorizing state update.
- Inspect the lock identifier and backend run logs.
- Inspect the backend state resource addresses.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Inspect the provider-observed attribute and recorded state value. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Use an appropriate refresh-only plan/apply after reviewing what state values would be updated. The expected confirmation is Recorded state reflects the accepted external attribute without rewriting resources.
C:This is directly relevant evidence for the reported behavior: Review the refresh-only plan before authorizing state update. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Use an appropriate refresh-only plan/apply after reviewing what state values would be updated. The expected confirmation is Recorded state reflects the accepted external attribute without rewriting resources.
Incorrect Answers
A:“Inspect state version lineage and resource binding details” would address a different Terraform configuration concern; the source instead describes An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The appropriate design is to use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Confirm whether recorded state reflects the accepted external attribute without rewriting resources.
D:“Inspect the lock identifier and backend run logs” would address a different Terraform configuration concern; the source instead describes An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The appropriate design is to use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Confirm whether recorded state reflects the accepted external attribute without rewriting resources.
E:“Inspect the backend state resource addresses” would address a different Terraform configuration concern; the source instead describes An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The appropriate design is to use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Confirm whether recorded state reflects the accepted external attribute without rewriting resources.
Question 668
An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Concurrent duplicate state owners can damage the shared database.
- Blind drift correction can overwrite a legitimate emergency fix.
- Refreshing state alone does not change the declared desired configuration.
- Transport encryption alone does not secure stored snapshots.
Explanation
Correct Answer
C:The reported condition creates the specific potential exposure: Refreshing state alone does not change the declared desired configuration. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect the provider-observed attribute and recorded state value. Second diagnostic: Review the refresh-only plan before authorizing state update.
Incorrect Answers
A:“Concurrent duplicate state owners can damage the shared database” would address a different Terraform configuration concern; the source instead describes An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The appropriate design is to use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Confirm whether recorded state reflects the accepted external attribute without rewriting resources.
B:“Blind drift correction can overwrite a legitimate emergency fix” would address a different Terraform configuration concern; the source instead describes An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The appropriate design is to use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Confirm whether recorded state reflects the accepted external attribute without rewriting resources.
D:“Transport encryption alone does not secure stored snapshots” would address a different Terraform configuration concern; the source instead describes An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The appropriate design is to use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Confirm whether recorded state reflects the accepted external attribute without rewriting resources.
Question 669
An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Use an appropriate refresh-only plan/apply after reviewing what state values would be updated.
- Use backend initialization configuration or explicit approved backend settings instead of ordinary input-variable expressions in backend blocks.
- Treat exposed values as compromised and purge copies under incident policy.
- Coordinate network owner review and preserve the incident change record.
- Document whether configuration later needs a corresponding update.
Explanation
Correct Answers
A:This is one of the two necessary decisions for a safe design: Use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Together the corrective action and its implementation safeguard need to address the recorded condition: An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. Acceptance requires Recorded state reflects the accepted external attribute without rewriting resources.
E:This is one of the two necessary decisions for a safe design: Document whether configuration later needs a corresponding update. Together the corrective action and its implementation safeguard need to address the recorded condition: An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. Acceptance requires Recorded state reflects the accepted external attribute without rewriting resources.
Incorrect Answers
B:“Use backend initialization configuration or explicit approved backend settings instead of ordinary input-variable expressions in backend blocks” would address a different Terraform configuration concern; the source instead describes An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The appropriate design is to use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Confirm whether recorded state reflects the accepted external attribute without rewriting resources.
C:“Treat exposed values as compromised and purge copies under incident policy” would address a different Terraform configuration concern; the source instead describes An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The appropriate design is to use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Confirm whether recorded state reflects the accepted external attribute without rewriting resources.
D:“Coordinate network owner review and preserve the incident change record” would address a different Terraform configuration concern; the source instead describes An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The appropriate design is to use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Confirm whether recorded state reflects the accepted external attribute without rewriting resources.
Question 670
An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The team has implemented an approved Terraform change. Which observed result most directly confirms that the original requirement is now met, beyond a successful command exit code?
- Recorded state reflects the accepted external attribute without rewriting resources.
- Auditors receive only approved evidence without broad raw state disclosure.
- The team distinguishes state ownership from all possible cloud resources.
- The remote backend retains the original managed resource bindings.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: Recorded state reflects the accepted external attribute without rewriting resources. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Document whether configuration later needs a corresponding update.
Incorrect Answers
B:“Auditors receive only approved evidence without broad raw state disclosure” would address a different Terraform configuration concern; the source instead describes An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The appropriate design is to use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Confirm whether recorded state reflects the accepted external attribute without rewriting resources.
C:“The team distinguishes state ownership from all possible cloud resources” would address a different Terraform configuration concern; the source instead describes An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The appropriate design is to use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Confirm whether recorded state reflects the accepted external attribute without rewriting resources.
D:“The remote backend retains the original managed resource bindings” would address a different Terraform configuration concern; the source instead describes An operations team wants to update Terraform state after an authorized external service changed only an automatically computed attribute, without reverting the remote change. The appropriate design is to use an appropriate refresh-only plan/apply after reviewing what state values would be updated. Confirm whether recorded state reflects the accepted external attribute without rewriting resources.