HashiCorp Terraform Associate Practice Test 71
Question 700
A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. 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 database is managed by one designated root without recreation.
- Stored resource details are inspected without applying changes.
- The runner reads the intended production state instead of stale staging metadata.
- The selected remote backend serializes supported writes as intended.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: Stored resource details are inspected without applying changes. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Limit state read privileges and redact sensitive outputs.
Incorrect Answers
A:“The database is managed by one designated root without recreation” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.
C:“The runner reads the intended production state instead of stale staging metadata” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.
D:“The selected remote backend serializes supported writes as intended” would address a different Terraform configuration concern; the source instead describes A service owner needs to inspect a specific stored resource attribute without making a provider API change and assumes terraform show is the only way. The appropriate design is to use terraform state show for the known managed resource address and review its stored values securely. Confirm whether stored resource details are inspected without applying changes.
Question 701
A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. 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.
- Remove state from version control and move its management to an approved encrypted backend with locking.
- Confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name.
- Prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. It applies the design choice Prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Review the primary diagnostic: Inspect the required DNS output and current state-sharing permissions. The expected outcome is: The consuming stack receives only required public values under least privilege. The rollout safeguard is: Use explicit outputs only when access scope is justified.
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 production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. The appropriate design is to prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Confirm whether the consuming stack receives only required public values under least privilege.
B:“Remove state from version control and move its management to an approved encrypted backend with locking” would address a different Terraform configuration concern; the source instead describes A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. The appropriate design is to prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Confirm whether the consuming stack receives only required public values under least privilege.
C:“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 A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. The appropriate design is to prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Confirm whether the consuming stack receives only required public values under least privilege.
Question 702
A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. 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 binding for the legacy database.
- Read backend documentation and configured lock options.
- Compare remote-state access scope with a direct provider data lookup or service interface.
- Inspect actual provider resource ID and desired Terraform address.
- Inspect the required DNS output and current state-sharing permissions.
Explanation
Correct Answers
C:This is directly relevant evidence for the reported behavior: Compare remote-state access scope with a direct provider data lookup or service interface. 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: Prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. The expected confirmation is The consuming stack receives only required public values under least privilege.
E:This is directly relevant evidence for the reported behavior: Inspect the required DNS output and current state-sharing permissions. 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: Prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. The expected confirmation is The consuming stack receives only required public values under least privilege.
Incorrect Answers
A:“Inspect state binding for the legacy database” would address a different Terraform configuration concern; the source instead describes A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. The appropriate design is to prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Confirm whether the consuming stack receives only required public values under least privilege.
B:“Read backend documentation and configured lock options” would address a different Terraform configuration concern; the source instead describes A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. The appropriate design is to prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Confirm whether the consuming stack receives only required public values under least privilege.
D:“Inspect actual provider resource ID and desired Terraform address” would address a different Terraform configuration concern; the source instead describes A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. The appropriate design is to prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Confirm whether the consuming stack receives only required public values under least privilege.
Question 703
A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Unverified locking assumptions can allow conflicting state updates.
- Backup existence alone does not guarantee a viable restore.
- Broad remote-state read permissions can reveal unrelated sensitive data.
- Force-unlocking a live writer risks state corruption and concurrent applies.
Explanation
Correct Answer
C:The reported condition creates the specific potential exposure: Broad remote-state read permissions can reveal unrelated sensitive data. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect the required DNS output and current state-sharing permissions. Second diagnostic: Compare remote-state access scope with a direct provider data lookup or service interface.
Incorrect Answers
A:“Unverified locking assumptions can allow conflicting state updates” would address a different Terraform configuration concern; the source instead describes A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. The appropriate design is to prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Confirm whether the consuming stack receives only required public values under least privilege.
B:“Backup existence alone does not guarantee a viable restore” would address a different Terraform configuration concern; the source instead describes A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. The appropriate design is to prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Confirm whether the consuming stack receives only required public values under least privilege.
D:“Force-unlocking a live writer risks state corruption and concurrent applies” would address a different Terraform configuration concern; the source instead describes A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. The appropriate design is to prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Confirm whether the consuming stack receives only required public values under least privilege.
Question 704
A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Require environment-specific review and abort on identity mismatch.
- Use explicit outputs only when access scope is justified.
- Use environment-specific backends and explicit migration review.
- Prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot.
- Document a controlled backend state version restoration process with tested snapshots and lock coordination.
Explanation
Correct Answers
B:This is one of the two necessary decisions for a safe design: Use explicit outputs only when access scope is justified. Together the corrective action and its implementation safeguard need to address the recorded condition: A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. Acceptance requires The consuming stack receives only required public values under least privilege.
D:This is one of the two necessary decisions for a safe design: Prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Together the corrective action and its implementation safeguard need to address the recorded condition: A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. Acceptance requires The consuming stack receives only required public values under least privilege.
Incorrect Answers
A:“Require environment-specific review and abort on identity mismatch” would address a different Terraform configuration concern; the source instead describes A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. The appropriate design is to prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Confirm whether the consuming stack receives only required public values under least privilege.
C:“Use environment-specific backends and explicit migration review” would address a different Terraform configuration concern; the source instead describes A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. The appropriate design is to prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Confirm whether the consuming stack receives only required public values under least privilege.
E:“Document a controlled backend state version restoration process with tested snapshots and lock coordination” would address a different Terraform configuration concern; the source instead describes A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. The appropriate design is to prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Confirm whether the consuming stack receives only required public values under least privilege.
Question 705
A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. 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?
- Only a genuinely stale lock is released under an auditable incident procedure.
- The consuming stack receives only required public values under least privilege.
- The runner reads the intended production state instead of stale staging metadata.
- Auditors receive only approved evidence without broad raw state disclosure.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: The consuming stack receives only required public values under least privilege. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Use explicit outputs only when access scope is justified.
Incorrect Answers
A:“Only a genuinely stale lock is released under an auditable incident procedure” would address a different Terraform configuration concern; the source instead describes A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. The appropriate design is to prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Confirm whether the consuming stack receives only required public values under least privilege.
C:“The runner reads the intended production state instead of stale staging metadata” would address a different Terraform configuration concern; the source instead describes A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. The appropriate design is to prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Confirm whether the consuming stack receives only required public values under least privilege.
D:“Auditors receive only approved evidence without broad raw state disclosure” would address a different Terraform configuration concern; the source instead describes A production root has a remote backend, and a developer proposes using the terraform_remote_state data source just to retrieve one DNS name from another stack. The appropriate design is to prefer a narrow published interface when possible, since remote state access may expose a broader sensitive snapshot. Confirm whether the consuming stack receives only required public values under least privilege.
Question 706
A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Document a controlled backend state version restoration process with tested snapshots and lock coordination.
- Add a moved block or use controlled state move operations so the existing remote ID retains the new address.
- Configure supported server-side state storage encryption plus transport security and restricted backend access.
- Store state in a controlled backend with restricted access and encryption rather than a public file share.
Explanation
Correct Answer
A:The proposed intervention addresses the reported Terraform engineering failure: A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. It applies the design choice Document a controlled backend state version restoration process with tested snapshots and lock coordination. Review the primary diagnostic: Inspect the backend's object versioning and retention configuration. The expected outcome is: A damaged snapshot can be recovered with resource bindings preserved. The rollout safeguard is: Rehearse recovery offline and prevent simultaneous writers.
Incorrect Answers
B:“Add a moved block or use controlled state move operations so the existing remote ID retains the new address” would address a different Terraform configuration concern; the source instead describes A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. The appropriate design is to document a controlled backend state version restoration process with tested snapshots and lock coordination. Confirm whether a damaged snapshot can be recovered with resource bindings preserved.
C:“Configure supported server-side state storage encryption plus transport security and restricted backend access” would address a different Terraform configuration concern; the source instead describes A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. The appropriate design is to document a controlled backend state version restoration process with tested snapshots and lock coordination. Confirm whether a damaged snapshot can be recovered with resource bindings preserved.
D:“Store state in a controlled backend with restricted access and encryption rather than a public file share” would address a different Terraform configuration concern; the source instead describes A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. The appropriate design is to document a controlled backend state version restoration process with tested snapshots and lock coordination. Confirm whether a damaged snapshot can be recovered with resource bindings preserved.
Question 707
A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. Before choosing a remedy, the team needs independent evidence of the actual root cause. Which TWO checks most directly test this case? (Select TWO.)
- Compare local state files and actual resource IDs on the shared cloud account.
- Inspect the backend's object versioning and retention configuration.
- Check previous state lineage and representative restore tests.
- Inspect the provider-observed attribute and recorded state value.
- Inspect actual provider resource ID and desired Terraform address.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Inspect the backend's object versioning and retention configuration. 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: Document a controlled backend state version restoration process with tested snapshots and lock coordination. The expected confirmation is A damaged snapshot can be recovered with resource bindings preserved.
C:This is directly relevant evidence for the reported behavior: Check previous state lineage and representative restore tests. 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: Document a controlled backend state version restoration process with tested snapshots and lock coordination. The expected confirmation is A damaged snapshot can be recovered with resource bindings preserved.
Incorrect Answers
A:“Compare local state files and actual resource IDs on the shared cloud account” would address a different Terraform configuration concern; the source instead describes A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. The appropriate design is to document a controlled backend state version restoration process with tested snapshots and lock coordination. Confirm whether a damaged snapshot can be recovered with resource bindings preserved.
D:“Inspect the provider-observed attribute and recorded state value” would address a different Terraform configuration concern; the source instead describes A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. The appropriate design is to document a controlled backend state version restoration process with tested snapshots and lock coordination. Confirm whether a damaged snapshot can be recovered with resource bindings preserved.
E:“Inspect actual provider resource ID and desired Terraform address” would address a different Terraform configuration concern; the source instead describes A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. The appropriate design is to document a controlled backend state version restoration process with tested snapshots and lock coordination. Confirm whether a damaged snapshot can be recovered with resource bindings preserved.
Question 708
A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Transport encryption alone does not secure stored snapshots.
- Cross-environment state mix-ups can create or delete production infrastructure.
- Backup existence alone does not guarantee a viable restore.
- Blind drift correction can overwrite a legitimate emergency fix.
Explanation
Correct Answer
C:The reported condition creates the specific potential exposure: Backup existence alone does not guarantee a viable restore. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect the backend's object versioning and retention configuration. Second diagnostic: Check previous state lineage and representative restore tests.
Incorrect Answers
A:“Transport encryption alone does not secure stored snapshots” would address a different Terraform configuration concern; the source instead describes A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. The appropriate design is to document a controlled backend state version restoration process with tested snapshots and lock coordination. Confirm whether a damaged snapshot can be recovered with resource bindings preserved.
B:“Cross-environment state mix-ups can create or delete production infrastructure” would address a different Terraform configuration concern; the source instead describes A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. The appropriate design is to document a controlled backend state version restoration process with tested snapshots and lock coordination. Confirm whether a damaged snapshot can be recovered with resource bindings preserved.
D:“Blind drift correction can overwrite a legitimate emergency fix” would address a different Terraform configuration concern; the source instead describes A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. The appropriate design is to document a controlled backend state version restoration process with tested snapshots and lock coordination. Confirm whether a damaged snapshot can be recovered with resource bindings preserved.
Question 709
A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Rehearse recovery offline and prevent simultaneous writers.
- Use tested backend versions and controlled concurrency.
- Document a controlled backend state version restoration process with tested snapshots and lock coordination.
- Separate high-risk production identities and review workspace selection.
- Verify that no active operation owns the lock before using the supported force-unlock workflow.
Explanation
Correct Answers
A:This is one of the two necessary decisions for a safe design: Rehearse recovery offline and prevent simultaneous writers. Together the corrective action and its implementation safeguard need to address the recorded condition: A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. Acceptance requires A damaged snapshot can be recovered with resource bindings preserved.
C:This is one of the two necessary decisions for a safe design: Document a controlled backend state version restoration process with tested snapshots and lock coordination. Together the corrective action and its implementation safeguard need to address the recorded condition: A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. Acceptance requires A damaged snapshot can be recovered with resource bindings preserved.
Incorrect Answers
B:“Use tested backend versions and controlled concurrency” would address a different Terraform configuration concern; the source instead describes A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. The appropriate design is to document a controlled backend state version restoration process with tested snapshots and lock coordination. Confirm whether a damaged snapshot can be recovered with resource bindings preserved.
D:“Separate high-risk production identities and review workspace selection” would address a different Terraform configuration concern; the source instead describes A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. The appropriate design is to document a controlled backend state version restoration process with tested snapshots and lock coordination. Confirm whether a damaged snapshot can be recovered with resource bindings preserved.
E:“Verify that no active operation owns the lock before using the supported force-unlock workflow” would address a different Terraform configuration concern; the source instead describes A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. The appropriate design is to document a controlled backend state version restoration process with tested snapshots and lock coordination. Confirm whether a damaged snapshot can be recovered with resource bindings preserved.
Question 710
A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. 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?
- A damaged snapshot can be recovered with resource bindings preserved.
- State correctly associates the existing database with its declared address.
- Only a genuinely stale lock is released under an auditable incident procedure.
- The plan reads the intended state and targets the correct environment.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: A damaged snapshot can be recovered with resource bindings preserved. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Rehearse recovery offline and prevent simultaneous writers.
Incorrect Answers
B:“State correctly associates the existing database with its declared address” would address a different Terraform configuration concern; the source instead describes A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. The appropriate design is to document a controlled backend state version restoration process with tested snapshots and lock coordination. Confirm whether a damaged snapshot can be recovered with resource bindings preserved.
C:“Only a genuinely stale lock is released under an auditable incident procedure” would address a different Terraform configuration concern; the source instead describes A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. The appropriate design is to document a controlled backend state version restoration process with tested snapshots and lock coordination. Confirm whether a damaged snapshot can be recovered with resource bindings preserved.
D:“The plan reads the intended state and targets the correct environment” would address a different Terraform configuration concern; the source instead describes A cloud team has a versioned object-storage backend but no documented recovery procedure after accidental corruption of the latest state version. The appropriate design is to document a controlled backend state version restoration process with tested snapshots and lock coordination. Confirm whether a damaged snapshot can be recovered with resource bindings preserved.