HashiCorp Terraform Associate Practice Test 69
Question 680
An application team wants Terraform to stop managing an existing legacy database but insists the database remain running for historical reports. 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 persists but no longer appears as Terraform-managed in that root.
- State correctly associates the existing database with its declared address.
- Source code remains reviewable while state is securely stored separately.
- Recorded state reflects the accepted external attribute without rewriting resources.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: The database persists but no longer appears as Terraform-managed in that root. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Record the new operational owner and protect backups.
Incorrect Answers
B:“State correctly associates the existing database with its declared address” would address a different Terraform configuration concern; the source instead describes An application team wants Terraform to stop managing an existing legacy database but insists the database remain running for historical reports. The appropriate design is to use an appropriate removed block with destroy=false or a controlled state removal, documenting the change in ownership. Confirm whether the database persists but no longer appears as Terraform-managed in that root.
C:“Source code remains reviewable while state is securely stored separately” would address a different Terraform configuration concern; the source instead describes An application team wants Terraform to stop managing an existing legacy database but insists the database remain running for historical reports. The appropriate design is to use an appropriate removed block with destroy=false or a controlled state removal, documenting the change in ownership. Confirm whether the database persists but no longer appears as Terraform-managed in that root.
D:“Recorded state reflects the accepted external attribute without rewriting resources” would address a different Terraform configuration concern; the source instead describes An application team wants Terraform to stop managing an existing legacy database but insists the database remain running for historical reports. The appropriate design is to use an appropriate removed block with destroy=false or a controlled state removal, documenting the change in ownership. Confirm whether the database persists but no longer appears as Terraform-managed in that root.
Question 681
A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Store state in a controlled backend with restricted access and encryption rather than a public file share.
- Use backend initialization configuration or explicit approved backend settings instead of ordinary input-variable expressions in backend blocks.
- Scope state-read access tightly and treat the snapshot as sensitive, including generated identifiers and provider attributes.
- Rebind the existing object through controlled import rather than creating a second database.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. It applies the design choice Rebind the existing object through controlled import rather than creating a second database. Review the primary diagnostic: Inspect actual provider resource ID and desired Terraform address. The expected outcome is: State correctly associates the existing database with its declared address. The rollout safeguard is: Back up recovered state and test imports in staging.
Incorrect Answers
A:“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 resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. The appropriate design is to rebind the existing object through controlled import rather than creating a second database. Confirm whether state correctly associates the existing database with its declared address.
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 A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. The appropriate design is to rebind the existing object through controlled import rather than creating a second database. Confirm whether state correctly associates the existing database with its declared address.
C:“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 resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. The appropriate design is to rebind the existing object through controlled import rather than creating a second database. Confirm whether state correctly associates the existing database with its declared address.
Question 682
A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. 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 backend state resource addresses.
- Inspect old and new configuration resource addresses.
- Inspect actual provider resource ID and desired Terraform address.
- Inspect the lock identifier and backend run logs.
- Check post-import plan for unexpected resource changes.
Explanation
Correct Answers
C:This is directly relevant evidence for the reported behavior: Inspect actual provider resource ID and desired Terraform address. 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: Rebind the existing object through controlled import rather than creating a second database. The expected confirmation is State correctly associates the existing database with its declared address.
E:This is directly relevant evidence for the reported behavior: Check post-import plan for unexpected resource changes. 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: Rebind the existing object through controlled import rather than creating a second database. The expected confirmation is State correctly associates the existing database with its declared address.
Incorrect Answers
A:“Inspect the backend state resource addresses” would address a different Terraform configuration concern; the source instead describes A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. The appropriate design is to rebind the existing object through controlled import rather than creating a second database. Confirm whether state correctly associates the existing database with its declared address.
B:“Inspect old and new configuration resource addresses” would address a different Terraform configuration concern; the source instead describes A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. The appropriate design is to rebind the existing object through controlled import rather than creating a second database. Confirm whether state correctly associates the existing database with its declared address.
D:“Inspect the lock identifier and backend run logs” would address a different Terraform configuration concern; the source instead describes A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. The appropriate design is to rebind the existing object through controlled import rather than creating a second database. Confirm whether state correctly associates the existing database with its declared address.
Question 683
A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. 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.
- Starting with empty state can cause duplicate resource create plans.
- Lost state binding can make Terraform plan duplicate create actions.
- Disabling locking may cause lost state updates and resource corruption.
Explanation
Correct Answer
C:The reported condition creates the specific potential exposure: Lost state binding can make Terraform plan duplicate create actions. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect actual provider resource ID and desired Terraform address. Second diagnostic: Check post-import plan for unexpected resource changes.
Incorrect Answers
A:“Transport encryption alone does not secure stored snapshots” would address a different Terraform configuration concern; the source instead describes A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. The appropriate design is to rebind the existing object through controlled import rather than creating a second database. Confirm whether state correctly associates the existing database with its declared address.
B:“Starting with empty state can cause duplicate resource create plans” would address a different Terraform configuration concern; the source instead describes A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. The appropriate design is to rebind the existing object through controlled import rather than creating a second database. Confirm whether state correctly associates the existing database with its declared address.
D:“Disabling locking may cause lost state updates and resource corruption” would address a different Terraform configuration concern; the source instead describes A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. The appropriate design is to rebind the existing object through controlled import rather than creating a second database. Confirm whether state correctly associates the existing database with its declared address.
Question 684
A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Separate high-risk production identities and review workspace selection.
- Back up recovered state and test imports in staging.
- Obtain owner approval and preserve lock metadata.
- Rebind the existing object through controlled import rather than creating a second database.
- Use terraform state show for the known managed resource address and review its stored values securely.
Explanation
Correct Answers
B:This is one of the two necessary decisions for a safe design: Back up recovered state and test imports in staging. Together the corrective action and its implementation safeguard need to address the recorded condition: A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. Acceptance requires State correctly associates the existing database with its declared address.
D:This is one of the two necessary decisions for a safe design: Rebind the existing object through controlled import rather than creating a second database. Together the corrective action and its implementation safeguard need to address the recorded condition: A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. Acceptance requires State correctly associates the existing database with its declared address.
Incorrect Answers
A:“Separate high-risk production identities and review workspace selection” would address a different Terraform configuration concern; the source instead describes A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. The appropriate design is to rebind the existing object through controlled import rather than creating a second database. Confirm whether state correctly associates the existing database with its declared address.
C:“Obtain owner approval and preserve lock metadata” would address a different Terraform configuration concern; the source instead describes A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. The appropriate design is to rebind the existing object through controlled import rather than creating a second database. Confirm whether state correctly associates the existing database with its declared address.
E:“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 A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. The appropriate design is to rebind the existing object through controlled import rather than creating a second database. Confirm whether state correctly associates the existing database with its declared address.
Question 685
A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. 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?
- Terraform initializes the intended state backend without invalid HCL interpolation.
- State correctly associates the existing database with its declared address.
- The plan reads the intended state and targets the correct environment.
- Terraform recognizes the same managed server at the new address without recreation.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: State correctly associates the existing database with its declared address. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Back up recovered state and test imports in staging.
Incorrect Answers
A:“Terraform initializes the intended state backend without invalid HCL interpolation” would address a different Terraform configuration concern; the source instead describes A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. The appropriate design is to rebind the existing object through controlled import rather than creating a second database. Confirm whether state correctly associates the existing database with its declared address.
C:“The plan reads the intended state and targets the correct environment” would address a different Terraform configuration concern; the source instead describes A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. The appropriate design is to rebind the existing object through controlled import rather than creating a second database. Confirm whether state correctly associates the existing database with its declared address.
D:“Terraform recognizes the same managed server at the new address without recreation” would address a different Terraform configuration concern; the source instead describes A resource ID is absent from Terraform state following a backend restore, while the database still exists in the cloud account. The appropriate design is to rebind the existing object through controlled import rather than creating a second database. Confirm whether state correctly associates the existing database with its declared address.
Question 686
A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Retain state locking and queue the changes rather than disabling locking to make both apply at once.
- Use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing.
- Rebind the existing object through controlled import rather than creating a second database.
- Use backend initialization configuration or explicit approved backend settings instead of ordinary input-variable expressions in backend blocks.
Explanation
Correct Answer
B:The proposed intervention addresses the reported Terraform engineering failure: A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. It applies the design choice Use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Review the primary diagnostic: Inspect state version lineage and resource binding details. The expected outcome is: State remains structurally valid and accurately represents intended objects. The rollout safeguard is: Retain snapshots and use an approved change window.
Incorrect Answers
A:“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 team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
C:“Rebind the existing object through controlled import rather than creating a second database” would address a different Terraform configuration concern; the source instead describes A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
D:“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 A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
Question 687
A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. 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 backend's object versioning and retention configuration.
- Inspect the backend state resource addresses.
- Compare state addresses and remote IDs across both roots.
- Review supported state pull/move/remove options and plan effects.
- Inspect state version lineage and resource binding details.
Explanation
Correct Answers
D:This is directly relevant evidence for the reported behavior: Review supported state pull/move/remove options and plan effects. 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 supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. The expected confirmation is State remains structurally valid and accurately represents intended objects.
E:This is directly relevant evidence for the reported behavior: Inspect state version lineage and resource binding details. 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 supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. The expected confirmation is State remains structurally valid and accurately represents intended objects.
Incorrect Answers
A:“Inspect the backend's object versioning and retention configuration” would address a different Terraform configuration concern; the source instead describes A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
B:“Inspect the backend state resource addresses” would address a different Terraform configuration concern; the source instead describes A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
C:“Compare state addresses and remote IDs across both roots” would address a different Terraform configuration concern; the source instead describes A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
Question 688
A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Disabling locking may cause lost state updates and resource corruption.
- Manual state JSON edits can corrupt lineage, versions or dependencies.
- Assuming state list is global may omit manually created security exposures.
- Unmapped address renames can cause unnecessary downtime.
Explanation
Correct Answer
B:The reported condition creates the specific potential exposure: Manual state JSON edits can corrupt lineage, versions or dependencies. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect state version lineage and resource binding details. Second diagnostic: Review supported state pull/move/remove options and plan effects.
Incorrect Answers
A:“Disabling locking may cause lost state updates and resource corruption” would address a different Terraform configuration concern; the source instead describes A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
C:“Assuming state list is global may omit manually created security exposures” would address a different Terraform configuration concern; the source instead describes A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
D:“Unmapped address renames can cause unnecessary downtime” would address a different Terraform configuration concern; the source instead describes A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
Question 689
A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. 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 supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing.
- Rotate potentially exposed credentials and restrict backend identity.
- Take backups and sequence state migration and configuration changes.
- Configure supported server-side state storage encryption plus transport security and restricted backend access.
- Retain snapshots and use an approved change window.
Explanation
Correct Answers
A:This is one of the two necessary decisions for a safe design: Use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Together the corrective action and its implementation safeguard need to address the recorded condition: A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. Acceptance requires State remains structurally valid and accurately represents intended objects.
E:This is one of the two necessary decisions for a safe design: Retain snapshots and use an approved change window. Together the corrective action and its implementation safeguard need to address the recorded condition: A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. Acceptance requires State remains structurally valid and accurately represents intended objects.
Incorrect Answers
B:“Rotate potentially exposed credentials and restrict backend identity” would address a different Terraform configuration concern; the source instead describes A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
C:“Take backups and sequence state migration and configuration changes” would address a different Terraform configuration concern; the source instead describes A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
D:“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 team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
Question 690
A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. 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 approved subnet design is restored or configuration is updated deliberately.
- State remains structurally valid and accurately represents intended objects.
- Only approved operators and deployment identities can retrieve state.
- Only one writer updates a shared state snapshot at a time.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: State remains structurally valid and accurately represents intended objects. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Retain snapshots and use an approved change window.
Incorrect Answers
A:“The approved subnet design is restored or configuration is updated deliberately” would address a different Terraform configuration concern; the source instead describes A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
C:“Only approved operators and deployment identities can retrieve state” would address a different Terraform configuration concern; the source instead describes A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.
D:“Only one writer updates a shared state snapshot at a time” would address a different Terraform configuration concern; the source instead describes A team proposes editing raw terraform.tfstate JSON by hand to fix an attribute mismatch during an outage. The appropriate design is to use supported Terraform state subcommands or provider-aware reconciliation rather than manual JSON editing. Confirm whether state remains structurally valid and accurately represents intended objects.