HashiCorp Terraform Associate Practice Test 77
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.
Question 761
A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Use state list and selective state show output with secret-safe redaction rather than sharing the entire state file.
- Configure an appropriate TF_LOG level alongside TF_LOG_PATH and verify the log destination.
- Use Terraform import blocks where supported so resource identity onboarding is reviewable with configuration.
- Use the full indexed Terraform resource address for the target module and resource instance during import.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. It applies the design choice Use the full indexed Terraform resource address for the target module and resource instance during import. Review the primary diagnostic: Inspect module for_each map keys and target resource names. The expected outcome is: The existing instance is bound to the intended keyed module instance. The rollout safeguard is: Test the address in a sandbox and verify remote IDs.
Incorrect Answers
A:“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 developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. The appropriate design is to use the full indexed Terraform resource address for the target module and resource instance during import. Confirm whether the existing instance is bound to the intended keyed module instance.
B:“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 developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. The appropriate design is to use the full indexed Terraform resource address for the target module and resource instance during import. Confirm whether the existing instance is bound to the intended keyed module instance.
C:“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 developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. The appropriate design is to use the full indexed Terraform resource address for the target module and resource instance during import. Confirm whether the existing instance is bound to the intended keyed module instance.
Question 762
A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. Before choosing a remedy, the team needs independent evidence of the actual root cause. Which TWO checks most directly test this case? (Select TWO.)
- Check current state list and database ID at the target address.
- Check terraform state list for the exact post-import address.
- Inspect the declared import block to and id fields.
- Inspect module for_each map keys and target resource names.
- Inspect validate diagnostics and applied provider API error responses.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Check terraform state list for the exact post-import 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 full indexed Terraform resource address for the target module and resource instance during import. The expected confirmation is The existing instance is bound to the intended keyed module instance.
D:This is directly relevant evidence for the reported behavior: Inspect module for_each map keys and target resource names. 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 full indexed Terraform resource address for the target module and resource instance during import. The expected confirmation is The existing instance is bound to the intended keyed module instance.
Incorrect Answers
A:“Check current state list and database ID at the target address” would address a different Terraform configuration concern; the source instead describes A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. The appropriate design is to use the full indexed Terraform resource address for the target module and resource instance during import. Confirm whether the existing instance is bound to the intended keyed module instance.
C:“Inspect the declared import block to and id fields” would address a different Terraform configuration concern; the source instead describes A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. The appropriate design is to use the full indexed Terraform resource address for the target module and resource instance during import. Confirm whether the existing instance is bound to the intended keyed module instance.
E:“Inspect validate diagnostics and applied provider API error responses” would address a different Terraform configuration concern; the source instead describes A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. The appropriate design is to use the full indexed Terraform resource address for the target module and resource instance during import. Confirm whether the existing instance is bound to the intended keyed module instance.
Question 763
A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Cloud inventory alone cannot identify which root owns each object.
- Import against the wrong state may create false ownership and dangerous plans.
- Sharing raw state can expose passwords and infrastructure topology.
- Incorrect addresses can attach the cloud object to the wrong logical resource.
Explanation
Correct Answer
D:The reported condition creates the specific potential exposure: Incorrect addresses can attach the cloud object to the wrong logical resource. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect module for_each map keys and target resource names. Second diagnostic: Check terraform state list for the exact post-import address.
Incorrect Answers
A:“Cloud inventory alone cannot identify which root owns each object” would address a different Terraform configuration concern; the source instead describes A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. The appropriate design is to use the full indexed Terraform resource address for the target module and resource instance during import. Confirm whether the existing instance is bound to the intended keyed module instance.
B:“Import against the wrong state may create false ownership and dangerous plans” would address a different Terraform configuration concern; the source instead describes A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. The appropriate design is to use the full indexed Terraform resource address for the target module and resource instance during import. Confirm whether the existing instance is bound to the intended keyed module instance.
C:“Sharing raw state can expose passwords and infrastructure topology” would address a different Terraform configuration concern; the source instead describes A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. The appropriate design is to use the full indexed Terraform resource address for the target module and resource instance during import. Confirm whether the existing instance is bound to the intended keyed module instance.
Question 764
A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Rotate exposed secrets and restore normal log level afterward.
- Treat TRACE as high-verbosity diagnostic output and enable it only for a short privileged troubleshooting run.
- Keep root boundaries documented and use explicit addresses.
- Use the full indexed Terraform resource address for the target module and resource instance during import.
- Test the address in a sandbox and verify remote IDs.
Explanation
Correct Answers
D:This is one of the two necessary decisions for a safe design: Use the full indexed Terraform resource address for the target module and resource instance during import. Together the corrective action and its implementation safeguard need to address the recorded condition: A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. Acceptance requires The existing instance is bound to the intended keyed module instance.
E:This is one of the two necessary decisions for a safe design: Test the address in a sandbox and verify remote IDs. Together the corrective action and its implementation safeguard need to address the recorded condition: A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. Acceptance requires The existing instance is bound to the intended keyed module instance.
Incorrect Answers
A:“Rotate exposed secrets and restore normal log level afterward” would address a different Terraform configuration concern; the source instead describes A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. The appropriate design is to use the full indexed Terraform resource address for the target module and resource instance during import. Confirm whether the existing instance is bound to the intended keyed module instance.
B:“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 A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. The appropriate design is to use the full indexed Terraform resource address for the target module and resource instance during import. Confirm whether the existing instance is bound to the intended keyed module instance.
C:“Keep root boundaries documented and use explicit addresses” would address a different Terraform configuration concern; the source instead describes A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. The appropriate design is to use the full indexed Terraform resource address for the target module and resource instance during import. Confirm whether the existing instance is bound to the intended keyed module instance.
Question 765
A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. 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.
- The imported database has accurate reviewed desired-state configuration.
- Exactly one active root manages the interface without deleting it.
- Troubleshooting evidence is sufficient without broad state disclosure.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: The existing instance is bound to the intended keyed module instance. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Test the address in a sandbox and verify remote IDs.
Incorrect Answers
B:“The imported database has accurate reviewed desired-state configuration” would address a different Terraform configuration concern; the source instead describes A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. The appropriate design is to use the full indexed Terraform resource address for the target module and resource instance during import. Confirm whether the existing instance is bound to the intended keyed module instance.
C:“Exactly one active root manages the interface without deleting it” would address a different Terraform configuration concern; the source instead describes A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. The appropriate design is to use the full indexed Terraform resource address for the target module and resource instance during import. Confirm whether the existing instance is bound to the intended keyed module instance.
D:“Troubleshooting evidence is sufficient without broad state disclosure” would address a different Terraform configuration concern; the source instead describes A developer imports an instance into a module instance created with for_each but provides module.server.aws_instance.node without the required instance key. The appropriate design is to use the full indexed Terraform resource address for the target module and resource instance during import. Confirm whether the existing instance is bound to the intended keyed module instance.
Question 766
An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Use a carefully documented supported state replace-provider migration after verifying source and target provider identities.
- Import each distinct remote object ID to its corresponding unique Terraform resource address.
- Use the real existing provider resource identifier, supported address syntax and independent identity confirmation.
- 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
B:The proposed intervention addresses the reported Terraform engineering failure: An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. It applies the design choice Import each distinct remote object ID to its corresponding unique Terraform resource address. Review the primary diagnostic: Inspect provider subnet IDs and planned HCL resource addresses. The expected outcome is: All subnets have one-to-one resource identity mappings without duplicate ownership. The rollout safeguard is: Verify every imported address and ensure no root duplicates.
Incorrect Answers
A:“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 An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. The appropriate design is to import each distinct remote object ID to its corresponding unique Terraform resource address. Confirm whether all subnets have one-to-one resource identity mappings without duplicate ownership.
C:“Use the real existing provider resource identifier, supported address syntax and independent identity confirmation” would address a different Terraform configuration concern; the source instead describes An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. The appropriate design is to import each distinct remote object ID to its corresponding unique Terraform resource address. Confirm whether all subnets have one-to-one resource identity mappings without duplicate ownership.
D:“Use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow” would address a different Terraform configuration concern; the source instead describes An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. The appropriate design is to import each distinct remote object ID to its corresponding unique Terraform resource address. Confirm whether all subnets have one-to-one resource identity mappings without duplicate ownership.
Question 767
An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. 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 validate diagnostics and applied provider API error responses.
- Review state bindings and subsequent plan for each of the three subnets.
- Inspect provider subnet IDs and planned HCL resource addresses.
- Inspect the root module's selected backend and module call tree.
- Inspect state list output and module path qualifiers.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Review state bindings and subsequent plan for each of the three subnets. 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: Import each distinct remote object ID to its corresponding unique Terraform resource address. The expected confirmation is All subnets have one-to-one resource identity mappings without duplicate ownership.
C:This is directly relevant evidence for the reported behavior: Inspect provider subnet IDs and planned HCL resource addresses. 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: Import each distinct remote object ID to its corresponding unique Terraform resource address. The expected confirmation is All subnets have one-to-one resource identity mappings without duplicate ownership.
Incorrect Answers
A:“Inspect validate diagnostics and applied provider API error responses” would address a different Terraform configuration concern; the source instead describes An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. The appropriate design is to import each distinct remote object ID to its corresponding unique Terraform resource address. Confirm whether all subnets have one-to-one resource identity mappings without duplicate ownership.
D:“Inspect the root module's selected backend and module call tree” would address a different Terraform configuration concern; the source instead describes An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. The appropriate design is to import each distinct remote object ID to its corresponding unique Terraform resource address. Confirm whether all subnets have one-to-one resource identity mappings without duplicate ownership.
E:“Inspect state list output and module path qualifiers” would address a different Terraform configuration concern; the source instead describes An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. The appropriate design is to import each distinct remote object ID to its corresponding unique Terraform resource address. Confirm whether all subnets have one-to-one resource identity mappings without duplicate ownership.
Question 768
An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Cloud inventory alone cannot identify which root owns each object.
- Conflating validation with remote API behavior can cause unnecessary changes.
- Trace logs can include sensitive configuration and API details.
- Reusing one ID across multiple state addresses can lead to conflicting management.
Explanation
Correct Answer
D:The reported condition creates the specific potential exposure: Reusing one ID across multiple state addresses can lead to conflicting management. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect provider subnet IDs and planned HCL resource addresses. Second diagnostic: Review state bindings and subsequent plan for each of the three subnets.
Incorrect Answers
A:“Cloud inventory alone cannot identify which root owns each object” would address a different Terraform configuration concern; the source instead describes An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. The appropriate design is to import each distinct remote object ID to its corresponding unique Terraform resource address. Confirm whether all subnets have one-to-one resource identity mappings without duplicate ownership.
B:“Conflating validation with remote API behavior can cause unnecessary changes” would address a different Terraform configuration concern; the source instead describes An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. The appropriate design is to import each distinct remote object ID to its corresponding unique Terraform resource address. Confirm whether all subnets have one-to-one resource identity mappings without duplicate ownership.
C:“Trace logs can include sensitive configuration and API details” would address a different Terraform configuration concern; the source instead describes An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. The appropriate design is to import each distinct remote object ID to its corresponding unique Terraform resource address. Confirm whether all subnets have one-to-one resource identity mappings without duplicate ownership.
Question 769
An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Import each distinct remote object ID to its corresponding unique Terraform resource address.
- Use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow.
- Restrict state reads and avoid exposing sensitive fields.
- Verify every imported address and ensure no root duplicates.
- Protect raw state contents and document backend ownership.
Explanation
Correct Answers
A:This is one of the two necessary decisions for a safe design: Import each distinct remote object ID to its corresponding unique Terraform resource address. Together the corrective action and its implementation safeguard need to address the recorded condition: An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. Acceptance requires All subnets have one-to-one resource identity mappings without duplicate ownership.
D:This is one of the two necessary decisions for a safe design: Verify every imported address and ensure no root duplicates. Together the corrective action and its implementation safeguard need to address the recorded condition: An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. Acceptance requires All subnets have one-to-one resource identity mappings without duplicate ownership.
Incorrect Answers
B:“Use the import to establish state identity and separately define valid resource configuration or generate and review configuration with a supported import workflow” would address a different Terraform configuration concern; the source instead describes An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. The appropriate design is to import each distinct remote object ID to its corresponding unique Terraform resource address. Confirm whether all subnets have one-to-one resource identity mappings without duplicate ownership. For a governed implementation, the complementary validated step is to verify every imported address and ensure no root duplicates.
C:“Restrict state reads and avoid exposing sensitive fields” would address a different Terraform configuration concern; the source instead describes An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. The appropriate design is to import each distinct remote object ID to its corresponding unique Terraform resource address. Confirm whether all subnets have one-to-one resource identity mappings without duplicate ownership.
E:“Protect raw state contents and document backend ownership” would address a different Terraform configuration concern; the source instead describes An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. The appropriate design is to import each distinct remote object ID to its corresponding unique Terraform resource address. Confirm whether all subnets have one-to-one resource identity mappings without duplicate ownership.
Question 770
An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. 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?
- All subnets have one-to-one resource identity mappings without duplicate ownership.
- The declared configuration accurately captures intended queue settings.
- Legacy objects become managed through a traceable reviewed onboarding change.
- The root cause is identified with bounded diagnostic exposure.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: All subnets have one-to-one resource identity mappings without duplicate ownership. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Verify every imported address and ensure no root duplicates.
Incorrect Answers
B:“The declared configuration accurately captures intended queue settings” would address a different Terraform configuration concern; the source instead describes An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. The appropriate design is to import each distinct remote object ID to its corresponding unique Terraform resource address. Confirm whether all subnets have one-to-one resource identity mappings without duplicate ownership.
C:“Legacy objects become managed through a traceable reviewed onboarding change” would address a different Terraform configuration concern; the source instead describes An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. The appropriate design is to import each distinct remote object ID to its corresponding unique Terraform resource address. Confirm whether all subnets have one-to-one resource identity mappings without duplicate ownership.
D:“The root cause is identified with bounded diagnostic exposure” would address a different Terraform configuration concern; the source instead describes An application team wants to import three unmanaged subnets and assumes one provider ID can automatically bind to all three declared resource instances. The appropriate design is to import each distinct remote object ID to its corresponding unique Terraform resource address. Confirm whether all subnets have one-to-one resource identity mappings without duplicate ownership.