HashiCorp Terraform Associate Practice Test 76
Question 750
A developer believes a state file contains only resource names, so a read-only audit account is given unrestricted access to the production backend. 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?
- Auditors receive only approved evidence without broad raw state disclosure.
- The remote backend retains the original managed resource bindings.
- The team distinguishes state ownership from all possible cloud resources.
- Stored resource details are inspected without applying changes.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: Auditors receive only approved evidence without broad raw state disclosure. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Provide sanitized reports rather than unrestricted state snapshots.
Incorrect Answers
B:“The remote backend retains the original managed resource bindings” would address a different Terraform configuration concern; the source instead describes A developer believes a state file contains only resource names, so a read-only audit account is given unrestricted access to the production backend. The appropriate design is to scope state-read access tightly and treat the snapshot as sensitive, including generated identifiers and provider attributes. Confirm whether auditors receive only approved evidence without broad raw state disclosure.
C:“The team distinguishes state ownership from all possible cloud resources” would address a different Terraform configuration concern; the source instead describes A developer believes a state file contains only resource names, so a read-only audit account is given unrestricted access to the production backend. The appropriate design is to scope state-read access tightly and treat the snapshot as sensitive, including generated identifiers and provider attributes. Confirm whether auditors receive only approved evidence without broad raw state disclosure.
D:“Stored resource details are inspected without applying changes” would address a different Terraform configuration concern; the source instead describes A developer believes a state file contains only resource names, so a read-only audit account is given unrestricted access to the production backend. The appropriate design is to scope state-read access tightly and treat the snapshot as sensitive, including generated identifiers and provider attributes. Confirm whether auditors receive only approved evidence without broad raw state disclosure.
Question 751
An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Stop and verify the current workspace, backend, provider identity and remote object ID before accepting an import.
- Import each distinct remote object ID to its corresponding unique Terraform resource address.
- Treat TRACE as high-verbosity diagnostic output and enable it only for a short privileged troubleshooting run.
- Write matching resource configuration and import the existing provider ID into the intended Terraform resource address.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. It applies the design choice Write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Review the primary diagnostic: Inspect the provider's actual bucket identifier and current bucket settings. The expected outcome is: The existing bucket is bound to Terraform state without creating a replacement object. The rollout safeguard is: Back up state and validate imported configuration before applying.
Incorrect Answers
A:“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 operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The appropriate design is to write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Confirm whether the existing bucket is bound to Terraform state without creating a replacement object.
B:“Import each distinct remote object ID to its corresponding unique Terraform resource address” would address a different Terraform configuration concern; the source instead describes An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The appropriate design is to write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Confirm whether the existing bucket is bound to Terraform state without creating a replacement object.
C:“Treat TRACE as high-verbosity diagnostic output and enable it only for a short privileged troubleshooting run” would address a different Terraform configuration concern; the source instead describes An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The appropriate design is to write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Confirm whether the existing bucket is bound to Terraform state without creating a replacement object.
Question 752
An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. 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 provider's actual bucket identifier and current bucket settings.
- Read terraform workspace show and current backend address.
- Inspect the VM remote identity before state removal.
- Compare the Terraform configuration and planned changes after import.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Inspect the provider's actual bucket identifier and current bucket settings. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Write matching resource configuration and import the existing provider ID into the intended Terraform resource address. The expected confirmation is The existing bucket is bound to Terraform state without creating a replacement object.
E:This is directly relevant evidence for the reported behavior: Compare the Terraform configuration and planned changes after 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: Write matching resource configuration and import the existing provider ID into the intended Terraform resource address. The expected confirmation is The existing bucket is bound to Terraform state without creating a replacement object.
Incorrect Answers
A:“Inspect module for_each map keys and target resource names” would address a different Terraform configuration concern; the source instead describes An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The appropriate design is to write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Confirm whether the existing bucket is bound to Terraform state without creating a replacement object.
C:“Read terraform workspace show and current backend address” would address a different Terraform configuration concern; the source instead describes An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The appropriate design is to write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Confirm whether the existing bucket is bound to Terraform state without creating a replacement object.
D:“Inspect the VM remote identity before state removal” would address a different Terraform configuration concern; the source instead describes An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The appropriate design is to write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Confirm whether the existing bucket is bound to Terraform state without creating a replacement object.
Question 753
An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- An empty state with a new resource block may plan a conflicting bucket creation.
- Example IDs may correspond to nonexistent or unrelated resources.
- Import is not a general-purpose repair for already managed resource settings.
- Reusing one ID across multiple state addresses can lead to conflicting management.
Explanation
Correct Answer
A:The reported condition creates the specific potential exposure: An empty state with a new resource block may plan a conflicting bucket creation. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect the provider's actual bucket identifier and current bucket settings. Second diagnostic: Compare the Terraform configuration and planned changes after import.
Incorrect Answers
B:“Example IDs may correspond to nonexistent or unrelated resources” would address a different Terraform configuration concern; the source instead describes An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The appropriate design is to write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Confirm whether the existing bucket is bound to Terraform state without creating a replacement object.
C:“Import is not a general-purpose repair for already managed resource settings” would address a different Terraform configuration concern; the source instead describes An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The appropriate design is to write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Confirm whether the existing bucket is bound to Terraform state without creating a replacement object.
D:“Reusing one ID across multiple state addresses can lead to conflicting management” would address a different Terraform configuration concern; the source instead describes An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The appropriate design is to write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Confirm whether the existing bucket is bound to Terraform state without creating a replacement object.
Question 754
An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Back up state and validate imported configuration before applying.
- Restrict state reads and avoid exposing sensitive fields.
- Run imports from the correct initialized root and address the child-managed resource using its full module path.
- Write matching resource configuration and import the existing provider ID into the intended Terraform resource address.
- Use a protected path and remove the log after triage.
Explanation
Correct Answers
A:This is one of the two necessary decisions for a safe design: Back up state and validate imported configuration before applying. Together the corrective action and its implementation safeguard need to address the recorded condition: An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. Acceptance requires The existing bucket is bound to Terraform state without creating a replacement object.
D:This is one of the two necessary decisions for a safe design: Write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Together the corrective action and its implementation safeguard need to address the recorded condition: An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. Acceptance requires The existing bucket is bound to Terraform state without creating a replacement object.
Incorrect Answers
B:“Restrict state reads and avoid exposing sensitive fields” would address a different Terraform configuration concern; the source instead describes An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The appropriate design is to write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Confirm whether the existing bucket is bound to Terraform state without creating a replacement object.
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 An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The appropriate design is to write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Confirm whether the existing bucket is bound to Terraform state without creating a replacement object.
E:“Use a protected path and remove the log after triage” would address a different Terraform configuration concern; the source instead describes An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The appropriate design is to write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Confirm whether the existing bucket is bound to Terraform state without creating a replacement object.
Question 755
An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The team has implemented an approved Terraform change. Which observed result most directly confirms that the original requirement is now met, beyond a successful command exit code?
- Only the intended real database is imported into management.
- The imported database has accurate reviewed desired-state configuration.
- The resource is imported only into the correct environment's state.
- The existing bucket is bound to Terraform state without creating a replacement object.
Explanation
Correct Answer
D:This is the appropriate measurable post-change acceptance criterion: The existing bucket is bound to Terraform state without creating a replacement object. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Back up state and validate imported configuration before applying.
Incorrect Answers
A:“Only the intended real database is imported into management” would address a different Terraform configuration concern; the source instead describes An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The appropriate design is to write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Confirm whether the existing bucket is bound to Terraform state without creating a replacement object.
B:“The imported database has accurate reviewed desired-state configuration” would address a different Terraform configuration concern; the source instead describes An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The appropriate design is to write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Confirm whether the existing bucket is bound to Terraform state without creating a replacement object.
C:“The resource is imported only into the correct environment's state” would address a different Terraform configuration concern; the source instead describes An operations engineer has manually created a production object-storage bucket and now wants Terraform to manage it without creating a duplicate bucket. The appropriate design is to write matching resource configuration and import the existing provider ID into the intended Terraform resource address. Confirm whether the existing bucket is bound to Terraform state without creating a replacement object.
Question 756
A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Run imports from the correct initialized root and address the child-managed resource using its full module path.
- 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 the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. It applies the design choice Use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Review the primary diagnostic: Inspect the imported database ID and resource address. The expected outcome is: The imported database has accurate reviewed desired-state configuration. The rollout safeguard is: Review provider schema and protect production database backups.
Incorrect Answers
A:“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 company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. The appropriate design is to use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Confirm whether the imported database has accurate reviewed desired-state configuration.
B:“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 company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. The appropriate design is to use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Confirm whether the imported database has accurate reviewed desired-state configuration.
C:“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 company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. The appropriate design is to use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Confirm whether the imported database has accurate reviewed desired-state configuration.
Question 757
A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle 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.)
- Review resulting plan and any generated HCL for missing settings.
- Inspect the old root's state address and interface ID.
- Inspect the old state address and new configuration address.
- Inspect the imported database ID and resource address.
- Inspect workspace execution mode and actual agent location.
Explanation
Correct Answers
A:This is directly relevant evidence for the reported behavior: Review resulting plan and any generated HCL for missing settings. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. The expected confirmation is The imported database has accurate reviewed desired-state configuration.
D:This is directly relevant evidence for the reported behavior: Inspect the imported database ID and resource 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: Use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. The expected confirmation is The imported database has accurate reviewed desired-state configuration.
Incorrect Answers
B:“Inspect the old root's state address and interface ID” would address a different Terraform configuration concern; the source instead describes A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. The appropriate design is to use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Confirm whether the imported database has accurate reviewed desired-state configuration.
C:“Inspect the old state address and new configuration address” would address a different Terraform configuration concern; the source instead describes A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. The appropriate design is to use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Confirm whether the imported database has accurate reviewed desired-state configuration.
E:“Inspect workspace execution mode and actual agent location” would address a different Terraform configuration concern; the source instead describes A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. The appropriate design is to use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Confirm whether the imported database has accurate reviewed desired-state configuration.
Question 758
A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- A log path alone does not necessarily enable verbose logging.
- Sharing raw state can expose passwords and infrastructure topology.
- Incorrect addresses can attach the cloud object to the wrong logical resource.
- State import alone may leave a resource with incomplete desired configuration.
Explanation
Correct Answer
D:The reported condition creates the specific potential exposure: State import alone may leave a resource with incomplete desired configuration. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect the imported database ID and resource address. Second diagnostic: Review resulting plan and any generated HCL for missing settings.
Incorrect Answers
A:“A log path alone does not necessarily enable verbose logging” would address a different Terraform configuration concern; the source instead describes A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. The appropriate design is to use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Confirm whether the imported database has accurate reviewed desired-state configuration.
B:“Sharing raw state can expose passwords and infrastructure topology” would address a different Terraform configuration concern; the source instead describes A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. The appropriate design is to use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Confirm whether the imported database has accurate reviewed desired-state configuration.
C:“Incorrect addresses can attach the cloud object to the wrong logical resource” would address a different Terraform configuration concern; the source instead describes A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. The appropriate design is to use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Confirm whether the imported database has accurate reviewed desired-state configuration.
Question 759
A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle 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.)
- Scope debug variables and avoid leaking workspace secrets.
- Review provider schema and protect production database backups.
- Use state list and selective state show output with secret-safe redaction rather than sharing the entire state file.
- Assign new ownership and record the remaining costs and access rules.
- Use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow.
Explanation
Correct Answers
B:This is one of the two necessary decisions for a safe design: Review provider schema and protect production database backups. Together the corrective action and its implementation safeguard need to address the recorded condition: A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. Acceptance requires The imported database has accurate reviewed desired-state configuration.
E:This is one of the two necessary decisions for a safe design: Use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Together the corrective action and its implementation safeguard need to address the recorded condition: A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. Acceptance requires The imported database has accurate reviewed desired-state configuration.
Incorrect Answers
A:“Scope debug variables and avoid leaking workspace secrets” would address a different Terraform configuration concern; the source instead describes A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. The appropriate design is to use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Confirm whether the imported database has accurate reviewed desired-state configuration.
C:“Use state list and selective state show output with secret-safe redaction rather than sharing the entire state file” would address a different Terraform configuration concern; the source instead describes A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. The appropriate design is to use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Confirm whether the imported database has accurate reviewed desired-state configuration.
D:“Assign new ownership and record the remaining costs and access rules” would address a different Terraform configuration concern; the source instead describes A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. The appropriate design is to use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Confirm whether the imported database has accurate reviewed desired-state configuration.
Question 760
A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle 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 imported database has accurate reviewed desired-state configuration.
- Troubleshooting evidence is sufficient without broad state disclosure.
- Authorized maintainers can compare state safely without broad secret disclosure.
- Exactly one active root manages the interface without deleting it.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: The imported database has accurate reviewed desired-state configuration. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Review provider schema and protect production database backups.
Incorrect Answers
B:“Troubleshooting evidence is sufficient without broad state disclosure” would address a different Terraform configuration concern; the source instead describes A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. The appropriate design is to use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Confirm whether the imported database has accurate reviewed desired-state configuration.
C:“Authorized maintainers can compare state safely without broad secret disclosure” would address a different Terraform configuration concern; the source instead describes A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. The appropriate design is to use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Confirm whether the imported database has accurate reviewed desired-state configuration.
D:“Exactly one active root manages the interface without deleting it” would address a different Terraform configuration concern; the source instead describes A company runs terraform import on a legacy database but assumes the command also creates a complete resource configuration and appropriate lifecycle settings. The appropriate design is to use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow. Confirm whether the imported database has accurate reviewed desired-state configuration.