HashiCorp Terraform Associate Practice Test 79
Question 780
A migration guide tells developers to run terraform import from inside a child module's directory even though the active backend is configured by the root module. 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 resource is managed under the correct root state and child address.
- Detailed logs are available when needed without becoming routine public build artifacts.
- The declared configuration accurately captures intended queue settings.
- The VM remains running while it is no longer bound in that state.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: The existing resource is managed under the correct root state and child address. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Keep root boundaries documented and use explicit addresses.
Incorrect Answers
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 migration guide tells developers to run terraform import from inside a child module's directory even though the active backend is configured by the root module. The appropriate design is to run imports from the correct initialized root and address the child-managed resource using its full module path. Confirm whether the existing resource is managed under the correct root state and child address.
C:“The declared configuration accurately captures intended queue settings” would address a different Terraform configuration concern; the source instead describes A migration guide tells developers to run terraform import from inside a child module's directory even though the active backend is configured by the root module. The appropriate design is to run imports from the correct initialized root and address the child-managed resource using its full module path. Confirm whether the existing resource is managed under the correct root state and child address.
D:“The VM remains running while it is no longer bound in that state” would address a different Terraform configuration concern; the source instead describes A migration guide tells developers to run terraform import from inside a child module's directory even though the active backend is configured by the root module. The appropriate design is to run imports from the correct initialized root and address the child-managed resource using its full module path. Confirm whether the existing resource is managed under the correct root state and child address.
Question 781
A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Set diagnostics in the actual remote execution environment or use supported remote run logs.
- Use a carefully documented supported state replace-provider migration after verifying source and target provider identities.
- Write matching resource configuration and import the existing provider ID into the intended Terraform resource address.
- Use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. It applies the design choice Use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Review the primary diagnostic: Inspect the declared import block to and id fields. The expected outcome is: Legacy objects become managed through a traceable reviewed onboarding change. The rollout safeguard is: Preserve one-to-one ownership and provider-specific import syntax.
Incorrect Answers
A:“Set diagnostics in the actual remote execution environment or use supported remote run logs” would address a different Terraform configuration concern; the source instead describes A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. The appropriate design is to use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Confirm whether legacy objects become managed through a traceable reviewed onboarding change.
B:“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 wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. The appropriate design is to use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Confirm whether legacy objects become managed through a traceable reviewed onboarding change.
C:“Write matching resource configuration and import the existing provider ID into the intended Terraform resource address” would address a different Terraform configuration concern; the source instead describes A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. The appropriate design is to use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Confirm whether legacy objects become managed through a traceable reviewed onboarding change.
Question 782
A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. 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 module for_each map keys and target resource names.
- Inspect the declared import block to and id fields.
- Inspect effective TF_LOG level and log destination.
- Review the associated plan and resulting state binding after apply.
- Inspect the service API's actual resource ID and region.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Inspect the declared import block to and id fields. 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 Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. The expected confirmation is Legacy objects become managed through a traceable reviewed onboarding change.
D:This is directly relevant evidence for the reported behavior: Review the associated plan and resulting state binding after apply. 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 Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. The expected confirmation is Legacy objects become managed through a traceable reviewed onboarding change.
Incorrect Answers
A:“Inspect module for_each map keys and target resource names” would address a different Terraform configuration concern; the source instead describes A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. The appropriate design is to use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Confirm whether legacy objects become managed through a traceable reviewed onboarding change.
C:“Inspect effective TF_LOG level and log destination” would address a different Terraform configuration concern; the source instead describes A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. The appropriate design is to use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Confirm whether legacy objects become managed through a traceable reviewed onboarding change.
E:“Inspect the service API's actual resource ID and region” would address a different Terraform configuration concern; the source instead describes A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. The appropriate design is to use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Confirm whether legacy objects become managed through a traceable reviewed onboarding change.
Question 783
A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Plugin modification defeats checksum verification and reproducibility.
- Untracked manual imports can be impossible to reproduce or audit.
- Import is not a general-purpose repair for already managed resource settings.
- Incorrect addresses can attach the cloud object to the wrong logical resource.
Explanation
Correct Answer
B:The reported condition creates the specific potential exposure: Untracked manual imports can be impossible to reproduce or audit. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect the declared import block to and id fields. Second diagnostic: Review the associated plan and resulting state binding after apply.
Incorrect Answers
A:“Plugin modification defeats checksum verification and reproducibility” would address a different Terraform configuration concern; the source instead describes A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. The appropriate design is to use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Confirm whether legacy objects become managed through a traceable reviewed onboarding change.
C:“Import is not a general-purpose repair for already managed resource settings” would address a different Terraform configuration concern; the source instead describes A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. The appropriate design is to use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Confirm whether legacy objects become managed through a traceable reviewed onboarding change.
D:“Incorrect addresses can attach the cloud object to the wrong logical resource” would address a different Terraform configuration concern; the source instead describes A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. The appropriate design is to use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Confirm whether legacy objects become managed through a traceable reviewed onboarding change.
Question 784
A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Protect raw state contents and document backend ownership.
- Use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration.
- Snapshot state and verify migration in a nonproduction environment.
- Preserve one-to-one ownership and provider-specific import syntax.
- Use terraform state list in the correct backend and workspace to enumerate managed addresses.
Explanation
Correct Answers
B:This is one of the two necessary decisions for a safe design: Use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Together the corrective action and its implementation safeguard need to address the recorded condition: A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. Acceptance requires Legacy objects become managed through a traceable reviewed onboarding change.
D:This is one of the two necessary decisions for a safe design: Preserve one-to-one ownership and provider-specific import syntax. Together the corrective action and its implementation safeguard need to address the recorded condition: A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. Acceptance requires Legacy objects become managed through a traceable reviewed onboarding change.
Incorrect Answers
A:“Protect raw state contents and document backend ownership” would address a different Terraform configuration concern; the source instead describes A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. The appropriate design is to use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Confirm whether legacy objects become managed through a traceable reviewed onboarding change.
C:“Snapshot state and verify migration in a nonproduction environment” would address a different Terraform configuration concern; the source instead describes A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. The appropriate design is to use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Confirm whether legacy objects become managed through a traceable reviewed onboarding change.
E:“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 wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. The appropriate design is to use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Confirm whether legacy objects become managed through a traceable reviewed onboarding change.
Question 785
A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. 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 resource is managed under the correct root state and child address.
- Legacy objects become managed through a traceable reviewed onboarding change.
- The root cause is identified with bounded diagnostic exposure.
- The imported database has accurate reviewed desired-state configuration.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: Legacy objects become managed through a traceable reviewed onboarding change. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Preserve one-to-one ownership and provider-specific import syntax.
Incorrect Answers
A:“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 wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. The appropriate design is to use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Confirm whether legacy objects become managed through a traceable reviewed onboarding change.
C:“The root cause is identified with bounded diagnostic exposure” would address a different Terraform configuration concern; the source instead describes A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. The appropriate design is to use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Confirm whether legacy objects become managed through a traceable reviewed onboarding change.
D:“The imported database has accurate reviewed desired-state configuration” would address a different Terraform configuration concern; the source instead describes A team wants repeatable imports during a datacenter migration but currently records one-off CLI import commands in private operator notes. The appropriate design is to use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration. Confirm whether legacy objects become managed through a traceable reviewed onboarding change.
Question 786
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 infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Configure an appropriate TF_LOG level alongside TF_LOG_PATH and verify the log destination.
- Stop and verify the current workspace, backend, provider identity and remote object ID before accepting an import.
- Enable scoped TF_LOG settings only for a controlled reproduction, then disable and delete sensitive traces securely.
- Inspect current state ownership before importing and use normal plan/config reconciliation for existing managed objects.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: 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. It applies the design choice Inspect current state ownership before importing and use normal plan/config reconciliation for existing managed objects. Review the primary diagnostic: Check current state list and database ID at the target address. The expected outcome is: The managed database is corrected through its intended configuration. The rollout safeguard is: Avoid duplicate import declarations and review the resource plan.
Incorrect Answers
A:“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 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:“Stop and verify the current workspace, backend, provider identity and remote object ID before accepting an import” 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.
C:“Enable scoped TF_LOG settings only for a controlled reproduction, then disable and delete sensitive traces securely” 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 787
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. 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.
- Check current state list and database ID at the target address.
- Review planned configuration changes rather than repeating import.
- Inspect the service API's actual resource ID and region.
- Read terraform workspace show and current backend address.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Check current state list and database ID at the target 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: Inspect current state ownership before importing and use normal plan/config reconciliation for existing managed objects. The expected confirmation is The managed database is corrected through its intended configuration.
C:This is directly relevant evidence for the reported behavior: Review planned configuration changes rather than repeating import. 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: Inspect current state ownership before importing and use normal plan/config reconciliation for existing managed objects. The expected confirmation is The managed database is corrected through its intended configuration.
Incorrect Answers
A:“Inspect managed addresses and select only required nonsecret identifiers” 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:“Inspect the service API's actual resource ID and region” 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.
E:“Read terraform workspace show and current backend address” 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 788
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. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Incorrect IDs may import another resource or fail with confusing diagnostics.
- 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.
- Import is not a general-purpose repair for already managed resource settings.
Explanation
Correct Answer
D:The reported condition creates the specific potential exposure: Import is not a general-purpose repair for already managed resource settings. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Check current state list and database ID at the target address. Second diagnostic: Review planned configuration changes rather than repeating import.
Incorrect Answers
A:“Incorrect IDs may import another resource or fail with confusing diagnostics” 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:“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 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.
C:“State import alone may leave a resource with incomplete desired configuration” 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 789
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. 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 terraform state list in the correct backend and workspace to enumerate managed addresses.
- Avoid duplicate import declarations and review the resource plan.
- Scope debug variables and avoid leaking workspace secrets.
- Inspect current state ownership before importing and use normal plan/config reconciliation for existing managed objects.
- Use a protected path and remove the log after triage.
Explanation
Correct Answers
B:This is one of the two necessary decisions for a safe design: Avoid duplicate import declarations and review the resource plan. Together the corrective action and its implementation safeguard need to address the recorded condition: 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. Acceptance requires The managed database is corrected through its intended configuration.
D:This is one of the two necessary decisions for a safe design: Inspect current state ownership before importing and use normal plan/config reconciliation for existing managed objects. Together the corrective action and its implementation safeguard need to address the recorded condition: 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. Acceptance requires The managed database is corrected through its intended configuration.
Incorrect Answers
A:“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 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.
C:“Scope debug variables and avoid leaking workspace secrets” 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.
E:“Use a protected path and remove the log after triage” 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 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.