HashiCorp Terraform Associate Practice Test 80
Question 790
An engineer writes an import block for a database already managed at that same address in state and expects repeated import to repair its access settings. 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 expected diagnostic file is generated for the authorized troubleshooting run.
- Resources retain identity under an authorized provider address migration.
- The managed database is corrected through its intended configuration.
- The resource is imported only into the correct environment's state.
Explanation
Correct Answer
C:This is the appropriate measurable post-change acceptance criterion: The managed database is corrected through its intended configuration. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Avoid duplicate import declarations and review the resource plan.
Incorrect Answers
A:“The expected diagnostic file is generated for the authorized troubleshooting run” would address a different Terraform configuration concern; the source instead describes An engineer writes an import block for a database already managed at that same address in state and expects repeated import to repair its access settings. The appropriate design is to inspect current state ownership before importing and use normal plan/config reconciliation for existing managed objects. Confirm whether the managed database is corrected through its intended configuration.
B:“Resources retain identity under an authorized provider address migration” would address a different Terraform configuration concern; the source instead describes An engineer writes an import block for a database already managed at that same address in state and expects repeated import to repair its access settings. The appropriate design is to inspect current state ownership before importing and use normal plan/config reconciliation for existing managed objects. Confirm whether the managed database is corrected through its intended configuration.
D:“The resource is imported only into the correct environment's state” would address a different Terraform configuration concern; the source instead describes An engineer writes an import block for a database already managed at that same address in state and expects repeated import to repair its access settings. The appropriate design is to inspect current state ownership before importing and use normal plan/config reconciliation for existing managed objects. Confirm whether the managed database is corrected through its intended configuration.
Question 791
A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Consult provider import documentation and use the exact remote identifier format supported by that resource.
- Use the full indexed Terraform resource address for the target module and resource instance during import.
- Configure an appropriate TF_LOG level alongside TF_LOG_PATH and verify the log destination.
- Use terraform state show with the full target address to inspect stored remote identity.
Explanation
Correct Answer
A:The proposed intervention addresses the reported Terraform engineering failure: A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. It applies the design choice Consult provider import documentation and use the exact remote identifier format supported by that resource. Review the primary diagnostic: Inspect the service API's actual resource ID and region. The expected outcome is: The object is matched to the intended managed resource without guessing. The rollout safeguard is: Confirm target identity through a read-only API lookup.
Incorrect Answers
B:“Use the full indexed Terraform resource address for the target module and resource instance during import” would address a different Terraform configuration concern; the source instead describes A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. The appropriate design is to consult provider import documentation and use the exact remote identifier format supported by that resource. Confirm whether the object is matched to the intended managed resource without guessing.
C:“Configure an appropriate TF_LOG level alongside TF_LOG_PATH and verify the log destination” would address a different Terraform configuration concern; the source instead describes A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. The appropriate design is to consult provider import documentation and use the exact remote identifier format supported by that resource. Confirm whether the object is matched to the intended managed resource without guessing.
D:“Use terraform state show with the full target address to inspect stored remote identity” would address a different Terraform configuration concern; the source instead describes A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. The appropriate design is to consult provider import documentation and use the exact remote identifier format supported by that resource. Confirm whether the object is matched to the intended managed resource without guessing.
Question 792
A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. 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 managed addresses and select only required nonsecret identifiers.
- Read terraform workspace show and current backend address.
- Test import in a nonproduction state with the provider's documented syntax.
- Inspect validate diagnostics and applied provider API error responses.
- Inspect the service API's actual resource ID and region.
Explanation
Correct Answers
C:This is directly relevant evidence for the reported behavior: Test import in a nonproduction state with the provider's documented syntax. 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: Consult provider import documentation and use the exact remote identifier format supported by that resource. The expected confirmation is The object is matched to the intended managed resource without guessing.
E:This is directly relevant evidence for the reported behavior: Inspect the service API's actual resource ID and region. 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: Consult provider import documentation and use the exact remote identifier format supported by that resource. The expected confirmation is The object is matched to the intended managed resource without guessing.
Incorrect Answers
A:“Inspect managed addresses and select only required nonsecret identifiers” would address a different Terraform configuration concern; the source instead describes A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. The appropriate design is to consult provider import documentation and use the exact remote identifier format supported by that resource. Confirm whether the object is matched to the intended managed resource without guessing.
B:“Read terraform workspace show and current backend address” would address a different Terraform configuration concern; the source instead describes A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. The appropriate design is to consult provider import documentation and use the exact remote identifier format supported by that resource. Confirm whether the object is matched to the intended managed resource without guessing.
D:“Inspect validate diagnostics and applied provider API error responses” would address a different Terraform configuration concern; the source instead describes A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. The appropriate design is to consult provider import documentation and use the exact remote identifier format supported by that resource. Confirm whether the object is matched to the intended managed resource without guessing.
Question 793
A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Working in a child directory can initialize an unintended separate root state.
- Raw state output in logs can leak infrastructure secrets.
- Incorrect IDs may import another resource or fail with confusing diagnostics.
- A log path alone does not necessarily enable verbose logging.
Explanation
Correct Answer
C:The reported condition creates the specific potential exposure: Incorrect IDs may import another resource or fail with confusing diagnostics. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect the service API's actual resource ID and region. Second diagnostic: Test import in a nonproduction state with the provider's documented syntax.
Incorrect Answers
A:“Working in a child directory can initialize an unintended separate root state” would address a different Terraform configuration concern; the source instead describes A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. The appropriate design is to consult provider import documentation and use the exact remote identifier format supported by that resource. Confirm whether the object is matched to the intended managed resource without guessing.
B:“Raw state output in logs can leak infrastructure secrets” would address a different Terraform configuration concern; the source instead describes A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. The appropriate design is to consult provider import documentation and use the exact remote identifier format supported by that resource. Confirm whether the object is matched to the intended managed resource without guessing.
D:“A log path alone does not necessarily enable verbose logging” would address a different Terraform configuration concern; the source instead describes A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. The appropriate design is to consult provider import documentation and use the exact remote identifier format supported by that resource. Confirm whether the object is matched to the intended managed resource without guessing.
Question 794
A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Take snapshots and sequence state ownership cutover.
- Use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration.
- Verify every imported address and ensure no root duplicates.
- Confirm target identity through a read-only API lookup.
- Consult provider import documentation and use the exact remote identifier format supported by that resource.
Explanation
Correct Answers
D:This is one of the two necessary decisions for a safe design: Confirm target identity through a read-only API lookup. Together the corrective action and its implementation safeguard need to address the recorded condition: A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. Acceptance requires The object is matched to the intended managed resource without guessing.
E:This is one of the two necessary decisions for a safe design: Consult provider import documentation and use the exact remote identifier format supported by that resource. Together the corrective action and its implementation safeguard need to address the recorded condition: A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. Acceptance requires The object is matched to the intended managed resource without guessing.
Incorrect Answers
A:“Take snapshots and sequence state ownership cutover” would address a different Terraform configuration concern; the source instead describes A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. The appropriate design is to consult provider import documentation and use the exact remote identifier format supported by that resource. Confirm whether the object is matched to the intended managed resource without guessing.
B:“Use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration” would address a different Terraform configuration concern; the source instead describes A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. The appropriate design is to consult provider import documentation and use the exact remote identifier format supported by that resource. Confirm whether the object is matched to the intended managed resource without guessing.
C:“Verify every imported address and ensure no root duplicates” would address a different Terraform configuration concern; the source instead describes A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. The appropriate design is to consult provider import documentation and use the exact remote identifier format supported by that resource. Confirm whether the object is matched to the intended managed resource without guessing.
Question 795
A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. 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 existing instance is bound to the intended keyed module instance.
- Detailed logs are available when needed without becoming routine public build artifacts.
- The object is matched to the intended managed resource without guessing.
- Exactly one active root manages the interface without deleting it.
Explanation
Correct Answer
C:This is the appropriate measurable post-change acceptance criterion: The object is matched to the intended managed resource without guessing. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Confirm target identity through a read-only API lookup.
Incorrect Answers
A:“The existing instance is bound to the intended keyed module instance” would address a different Terraform configuration concern; the source instead describes A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. The appropriate design is to consult provider import documentation and use the exact remote identifier format supported by that resource. Confirm whether the object is matched to the intended managed resource without guessing.
B:“Detailed logs are available when needed without becoming routine public build artifacts” would address a different Terraform configuration concern; the source instead describes A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. The appropriate design is to consult provider import documentation and use the exact remote identifier format supported by that resource. Confirm whether the object is matched to the intended managed resource without guessing.
D:“Exactly one active root manages the interface without deleting it” would address a different Terraform configuration concern; the source instead describes A legacy service has no Terraform configuration, and an engineer wants to discover the provider's import identifier by guessing the visible display label. The appropriate design is to consult provider import documentation and use the exact remote identifier format supported by that resource. Confirm whether the object is matched to the intended managed resource without guessing.
Question 796
A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Coordinate a single-authority state transfer or import transition with old ownership removed and a write freeze.
- Use terraform state list in the correct backend and workspace to enumerate managed addresses.
- Use a carefully documented supported state replace-provider migration after verifying source and target provider identities.
- Use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. It applies the design choice Use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Review the primary diagnostic: Inspect the VM remote identity before state removal. The expected outcome is: The VM remains running while it is no longer bound in that state. The rollout safeguard is: Assign new ownership and record the remaining costs and access rules.
Incorrect Answers
A:“Coordinate a single-authority state transfer or import transition with old ownership removed and a write freeze” would address a different Terraform configuration concern; the source instead describes A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. The appropriate design is to use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Confirm whether the VM remains running while it is no longer bound in that state.
B:“Use terraform state list in the correct backend and workspace to enumerate managed addresses” would address a different Terraform configuration concern; the source instead describes A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. The appropriate design is to use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Confirm whether the VM remains running while it is no longer bound in that state.
C:“Use a carefully documented supported state replace-provider migration after verifying source and target provider identities” would address a different Terraform configuration concern; the source instead describes A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. The appropriate design is to use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Confirm whether the VM remains running while it is no longer bound in that state.
Question 797
A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. 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 imported database ID and resource address.
- Inspect the declared import block to and id fields.
- Inspect provider subnet IDs and planned HCL resource addresses.
- Check post-operation cloud inventory and Terraform state list.
- Inspect the VM remote identity before state removal.
Explanation
Correct Answers
D:This is directly relevant evidence for the reported behavior: Check post-operation cloud inventory and Terraform state list. 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 state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. The expected confirmation is The VM remains running while it is no longer bound in that state.
E:This is directly relevant evidence for the reported behavior: Inspect the VM remote identity before state removal. 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 state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. The expected confirmation is The VM remains running while it is no longer bound in that state.
Incorrect Answers
A:“Inspect the imported database ID and resource address” would address a different Terraform configuration concern; the source instead describes A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. The appropriate design is to use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Confirm whether the VM remains running while it is no longer bound in that state.
B:“Inspect the declared import block to and id fields” would address a different Terraform configuration concern; the source instead describes A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. The appropriate design is to use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Confirm whether the VM remains running while it is no longer bound in that state.
C:“Inspect provider subnet IDs and planned HCL resource addresses” would address a different Terraform configuration concern; the source instead describes A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. The appropriate design is to use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Confirm whether the VM remains running while it is no longer bound in that state.
Question 798
A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Confusing state removal and provider destroy can leave unmanaged assets.
- An empty state with a new resource block may plan a conflicting bucket creation.
- State import alone may leave a resource with incomplete desired configuration.
- Sharing raw state can expose passwords and infrastructure topology.
Explanation
Correct Answer
A:The reported condition creates the specific potential exposure: Confusing state removal and provider destroy can leave unmanaged assets. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect the VM remote identity before state removal. Second diagnostic: Check post-operation cloud inventory and Terraform state list.
Incorrect Answers
B:“An empty state with a new resource block may plan a conflicting bucket creation” would address a different Terraform configuration concern; the source instead describes A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. The appropriate design is to use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Confirm whether the VM remains running while it is no longer bound in that state.
C:“State import alone may leave a resource with incomplete desired configuration” would address a different Terraform configuration concern; the source instead describes A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. The appropriate design is to use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Confirm whether the VM remains running while it is no longer bound in that state.
D:“Sharing raw state can expose passwords and infrastructure topology” would address a different Terraform configuration concern; the source instead describes A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. The appropriate design is to use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Confirm whether the VM remains running while it is no longer bound in that state.
Question 799
A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Take snapshots and sequence state ownership cutover.
- Restrict access and redact diagnostic artifacts.
- Run imports from the correct initialized root and address the child-managed resource using its full module path.
- Assign new ownership and record the remaining costs and access rules.
- Use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required.
Explanation
Correct Answers
D:This is one of the two necessary decisions for a safe design: Assign new ownership and record the remaining costs and access rules. Together the corrective action and its implementation safeguard need to address the recorded condition: A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. Acceptance requires The VM remains running while it is no longer bound in that state.
E:This is one of the two necessary decisions for a safe design: Use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Together the corrective action and its implementation safeguard need to address the recorded condition: A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. Acceptance requires The VM remains running while it is no longer bound in that state.
Incorrect Answers
A:“Take snapshots and sequence state ownership cutover” would address a different Terraform configuration concern; the source instead describes A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. The appropriate design is to use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Confirm whether the VM remains running while it is no longer bound in that state.
B:“Restrict access and redact diagnostic artifacts” would address a different Terraform configuration concern; the source instead describes A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. The appropriate design is to use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Confirm whether the VM remains running while it is no longer bound in that state.
C:“Run imports from the correct initialized root and address the child-managed resource using its full module path” would address a different Terraform configuration concern; the source instead describes A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. The appropriate design is to use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Confirm whether the VM remains running while it is no longer bound in that state.
Question 800
A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. 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 imported database has accurate reviewed desired-state configuration.
- The existing resource is managed under the correct root state and child address.
- The diagnostic retains provider integrity and reveals useful request context.
- The VM remains running while it is no longer bound in that state.
Explanation
Correct Answer
D:This is the appropriate measurable post-change acceptance criterion: The VM remains running while it is no longer bound in that state. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Assign new ownership and record the remaining costs and access rules.
Incorrect Answers
A:“The imported database has accurate reviewed desired-state configuration” would address a different Terraform configuration concern; the source instead describes A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. The appropriate design is to use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Confirm whether the VM remains running while it is no longer bound in that state.
B:“The existing resource is managed under the correct root state and child address” would address a different Terraform configuration concern; the source instead describes A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. The appropriate design is to use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Confirm whether the VM remains running while it is no longer bound in that state.
C:“The diagnostic retains provider integrity and reveals useful request context” would address a different Terraform configuration concern; the source instead describes A team runs terraform state rm on a running virtual machine to stop tracking it but interprets the removal as an instruction to delete the server. The appropriate design is to use state rm only when deliberately ending Terraform ownership, and record a separate decommission plan if deletion is required. Confirm whether the VM remains running while it is no longer bound in that state.