HashiCorp Terraform Associate Practice Test 72
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.
Question 711
A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Verify the chosen backend's actual locking implementation and configure it correctly before concurrent team usage.
- Confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name.
- Retain state locking and queue the changes rather than disabling locking to make both apply at once.
- Scope state-read access tightly and treat the snapshot as sensitive, including generated identifiers and provider attributes.
Explanation
Correct Answer
B:The proposed intervention addresses the reported Terraform engineering failure: A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. It applies the design choice Confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Review the primary diagnostic: Compare backend object key contents and state lineage. The expected outcome is: The correct state scope is selected without duplicating production objects. The rollout safeguard is: Use environment-specific backends and explicit migration review.
Incorrect Answers
A:“Verify the chosen backend's actual locking implementation and configure it correctly before concurrent team usage” would address a different Terraform configuration concern; the source instead describes A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. The appropriate design is to confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Confirm whether the correct state scope is selected without duplicating production objects.
C:“Retain state locking and queue the changes rather than disabling locking to make both apply at once” would address a different Terraform configuration concern; the source instead describes A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. The appropriate design is to confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Confirm whether the correct state scope is selected without duplicating production objects.
D:“Scope state-read access tightly and treat the snapshot as sensitive, including generated identifiers and provider attributes” would address a different Terraform configuration concern; the source instead describes A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. The appropriate design is to confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Confirm whether the correct state scope is selected without duplicating production objects.
Question 712
A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. 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 the provider-observed attribute and recorded state value.
- Review planned creates against cloud resource IDs after changing the key.
- Compare state addresses and remote IDs across both roots.
- Inspect state version lineage and resource binding details.
- Compare backend object key contents and state lineage.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Review planned creates against cloud resource IDs after changing the key. 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: Confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. The expected confirmation is The correct state scope is selected without duplicating production objects.
E:This is directly relevant evidence for the reported behavior: Compare backend object key contents and state lineage. 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: Confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. The expected confirmation is The correct state scope is selected without duplicating production objects.
Incorrect Answers
A:“Inspect the provider-observed attribute and recorded state value” would address a different Terraform configuration concern; the source instead describes A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. The appropriate design is to confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Confirm whether the correct state scope is selected without duplicating production objects.
C:“Compare state addresses and remote IDs across both roots” would address a different Terraform configuration concern; the source instead describes A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. The appropriate design is to confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Confirm whether the correct state scope is selected without duplicating production objects.
D:“Inspect state version lineage and resource binding details” would address a different Terraform configuration concern; the source instead describes A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. The appropriate design is to confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Confirm whether the correct state scope is selected without duplicating production objects.
Question 713
A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Pointing at an empty state can plan duplicate resource creation.
- CLI workspaces alone may share credentials and insufficient isolation.
- Force-unlocking a live writer risks state corruption and concurrent applies.
- Independent local states can manage duplicate objects and conflict.
Explanation
Correct Answer
A:The reported condition creates the specific potential exposure: Pointing at an empty state can plan duplicate resource creation. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Compare backend object key contents and state lineage. Second diagnostic: Review planned creates against cloud resource IDs after changing the key.
Incorrect Answers
B:“CLI workspaces alone may share credentials and insufficient isolation” would address a different Terraform configuration concern; the source instead describes A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. The appropriate design is to confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Confirm whether the correct state scope is selected without duplicating production objects.
C:“Force-unlocking a live writer risks state corruption and concurrent applies” would address a different Terraform configuration concern; the source instead describes A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. The appropriate design is to confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Confirm whether the correct state scope is selected without duplicating production objects.
D:“Independent local states can manage duplicate objects and conflict” would address a different Terraform configuration concern; the source instead describes A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. The appropriate design is to confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Confirm whether the correct state scope is selected without duplicating production objects.
Question 714
A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name.
- Provide sanitized reports rather than unrestricted state snapshots.
- Use environment-specific backends and explicit migration review.
- Migrate production state to an approved shared remote backend with access controls and locking.
- Rotate potentially exposed credentials and restrict backend identity.
Explanation
Correct Answers
A:This is one of the two necessary decisions for a safe design: Confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Together the corrective action and its implementation safeguard need to address the recorded condition: A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. Acceptance requires The correct state scope is selected without duplicating production objects.
C:This is one of the two necessary decisions for a safe design: Use environment-specific backends and explicit migration review. Together the corrective action and its implementation safeguard need to address the recorded condition: A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. Acceptance requires The correct state scope is selected without duplicating production objects.
Incorrect Answers
B:“Provide sanitized reports rather than unrestricted state snapshots” would address a different Terraform configuration concern; the source instead describes A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. The appropriate design is to confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Confirm whether the correct state scope is selected without duplicating production objects.
D:“Migrate production state to an approved shared remote backend with access controls and locking” would address a different Terraform configuration concern; the source instead describes A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. The appropriate design is to confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Confirm whether the correct state scope is selected without duplicating production objects.
E:“Rotate potentially exposed credentials and restrict backend identity” would address a different Terraform configuration concern; the source instead describes A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. The appropriate design is to confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Confirm whether the correct state scope is selected without duplicating production objects.
Question 715
A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. 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 correct state scope is selected without duplicating production objects.
- Only approved operators and deployment identities can retrieve state.
- The approved subnet design is restored or configuration is updated deliberately.
- Sensitive state data is protected both during transfer and in storage.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: The correct state scope is selected without duplicating production objects. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Use environment-specific backends and explicit migration review.
Incorrect Answers
B:“Only approved operators and deployment identities can retrieve state” would address a different Terraform configuration concern; the source instead describes A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. The appropriate design is to confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Confirm whether the correct state scope is selected without duplicating production objects.
C:“The approved subnet design is restored or configuration is updated deliberately” would address a different Terraform configuration concern; the source instead describes A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. The appropriate design is to confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Confirm whether the correct state scope is selected without duplicating production objects.
D:“Sensitive state data is protected both during transfer and in storage” would address a different Terraform configuration concern; the source instead describes A developer changes the storage backend key from prod/network.tfstate to test/network.tfstate and assumes the second empty key automatically references the same resources. The appropriate design is to confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name. Confirm whether the correct state scope is selected without duplicating production objects.
Question 716
A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Configure supported server-side state storage encryption plus transport security and restricted backend access.
- Verify the chosen backend's actual locking implementation and configure it correctly before concurrent team usage.
- Use an appropriate refresh-only plan/apply after reviewing what state values would be updated.
- Confirm actual state location and migrate or intentionally isolate resources, never infer identity from the backend key name.
Explanation
Correct Answer
A:The proposed intervention addresses the reported Terraform engineering failure: A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. It applies the design choice Configure supported server-side state storage encryption plus transport security and restricted backend access. Review the primary diagnostic: Inspect backend encryption-at-rest settings. The expected outcome is: Sensitive state data is protected both during transfer and in storage. The rollout safeguard is: Review key management and rotate compromised credentials.
Incorrect Answers
B:“Verify the chosen backend's actual locking implementation and configure it correctly before concurrent team usage” would address a different Terraform configuration concern; the source instead describes A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. The appropriate design is to configure supported server-side state storage encryption plus transport security and restricted backend access. Confirm whether sensitive state data is protected both during transfer and in storage.
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 compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. The appropriate design is to configure supported server-side state storage encryption plus transport security and restricted backend access. Confirm whether sensitive state data is protected both during transfer and in storage.
D:“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 compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. The appropriate design is to configure supported server-side state storage encryption plus transport security and restricted backend access. Confirm whether sensitive state data is protected both during transfer and in storage.
Question 717
A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. 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 backend encryption-at-rest settings.
- Inspect backend block contents and initialization errors.
- Check access policies and audit records for state reads/writes.
- Compare local state files and actual resource IDs on the shared cloud account.
- Inspect backend lock metadata and active run history.
Explanation
Correct Answers
A:This is directly relevant evidence for the reported behavior: Inspect backend encryption-at-rest settings. 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: Configure supported server-side state storage encryption plus transport security and restricted backend access. The expected confirmation is Sensitive state data is protected both during transfer and in storage.
C:This is directly relevant evidence for the reported behavior: Check access policies and audit records for state reads/writes. 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: Configure supported server-side state storage encryption plus transport security and restricted backend access. The expected confirmation is Sensitive state data is protected both during transfer and in storage.
Incorrect Answers
B:“Inspect backend block contents and initialization errors” would address a different Terraform configuration concern; the source instead describes A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. The appropriate design is to configure supported server-side state storage encryption plus transport security and restricted backend access. Confirm whether sensitive state data is protected both during transfer and in storage.
D:“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 compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. The appropriate design is to configure supported server-side state storage encryption plus transport security and restricted backend access. Confirm whether sensitive state data is protected both during transfer and in storage.
E:“Inspect backend lock metadata and active run history” would address a different Terraform configuration concern; the source instead describes A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. The appropriate design is to configure supported server-side state storage encryption plus transport security and restricted backend access. Confirm whether sensitive state data is protected both during transfer and in storage.
Question 718
A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. 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.
- Independent local states can manage duplicate objects and conflict.
- CLI workspaces alone may share credentials and insufficient isolation.
- Cross-environment state mix-ups can create or delete production infrastructure.
Explanation
Correct Answer
A:The reported condition creates the specific potential exposure: Transport encryption alone does not secure stored snapshots. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect backend encryption-at-rest settings. Second diagnostic: Check access policies and audit records for state reads/writes.
Incorrect Answers
B:“Independent local states can manage duplicate objects and conflict” would address a different Terraform configuration concern; the source instead describes A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. The appropriate design is to configure supported server-side state storage encryption plus transport security and restricted backend access. Confirm whether sensitive state data is protected both during transfer and in storage.
C:“CLI workspaces alone may share credentials and insufficient isolation” would address a different Terraform configuration concern; the source instead describes A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. The appropriate design is to configure supported server-side state storage encryption plus transport security and restricted backend access. Confirm whether sensitive state data is protected both during transfer and in storage.
D:“Cross-environment state mix-ups can create or delete production infrastructure” would address a different Terraform configuration concern; the source instead describes A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. The appropriate design is to configure supported server-side state storage encryption plus transport security and restricted backend access. Confirm whether sensitive state data is protected both during transfer and in storage.
Question 719
A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Verify the state backend identity, workspace and provider account selection before any plan or import attempt.
- Review key management and rotate compromised credentials.
- Configure supported server-side state storage encryption plus transport security and restricted backend access.
- Require environment-specific review and abort on identity mismatch.
- Coordinate network owner review and preserve the incident change record.
Explanation
Correct Answers
B:This is one of the two necessary decisions for a safe design: Review key management and rotate compromised credentials. Together the corrective action and its implementation safeguard need to address the recorded condition: A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. Acceptance requires Sensitive state data is protected both during transfer and in storage.
C:This is one of the two necessary decisions for a safe design: Configure supported server-side state storage encryption plus transport security and restricted backend access. Together the corrective action and its implementation safeguard need to address the recorded condition: A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. Acceptance requires Sensitive state data is protected both during transfer and in storage.
Incorrect Answers
A:“Verify the state backend identity, workspace and provider account selection before any plan or import attempt” would address a different Terraform configuration concern; the source instead describes A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. The appropriate design is to configure supported server-side state storage encryption plus transport security and restricted backend access. Confirm whether sensitive state data is protected both during transfer and in storage.
D:“Require environment-specific review and abort on identity mismatch” would address a different Terraform configuration concern; the source instead describes A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. The appropriate design is to configure supported server-side state storage encryption plus transport security and restricted backend access. Confirm whether sensitive state data is protected both during transfer and in storage.
E:“Coordinate network owner review and preserve the incident change record” would address a different Terraform configuration concern; the source instead describes A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. The appropriate design is to configure supported server-side state storage encryption plus transport security and restricted backend access. Confirm whether sensitive state data is protected both during transfer and in storage.
Question 720
A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. 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?
- Sensitive state data is protected both during transfer and in storage.
- The runner reads the intended production state instead of stale staging metadata.
- State remains structurally valid and accurately represents intended objects.
- Terraform initializes the intended state backend without invalid HCL interpolation.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: Sensitive state data is protected both during transfer and in storage. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Review key management and rotate compromised credentials.
Incorrect Answers
B:“The runner reads the intended production state instead of stale staging metadata” would address a different Terraform configuration concern; the source instead describes A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. The appropriate design is to configure supported server-side state storage encryption plus transport security and restricted backend access. Confirm whether sensitive state data is protected both during transfer and in storage.
C:“State remains structurally valid and accurately represents intended objects” would address a different Terraform configuration concern; the source instead describes A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. The appropriate design is to configure supported server-side state storage encryption plus transport security and restricted backend access. Confirm whether sensitive state data is protected both during transfer and in storage.
D:“Terraform initializes the intended state backend without invalid HCL interpolation” would address a different Terraform configuration concern; the source instead describes A compliance team requires encryption at rest for state, but an engineer relies only on TLS encryption when uploading the file. The appropriate design is to configure supported server-side state storage encryption plus transport security and restricted backend access. Confirm whether sensitive state data is protected both during transfer and in storage.