HashiCorp Terraform Associate Practice Test 20
Question 190
A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. 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?
- Both Terraform CLI and providers use independently reviewed compatible versions.
- Only one active configuration manages the shared firewall rule.
- Managed resources are safely updated or decommissioned without orphaning provider bindings.
- Terraform runs authenticate using scoped identities with no secrets committed to code.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: Only one active configuration manages the shared firewall rule. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Coordinate a controlled state move or import instead of both applying.
Incorrect Answers
A:“Both Terraform CLI and providers use independently reviewed compatible versions” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
C:“Managed resources are safely updated or decommissioned without orphaning provider bindings” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
D:“Terraform runs authenticate using scoped identities with no secrets committed to code” would address a different Terraform configuration concern; the source instead describes A public cloud team has two separate root configurations both attempting to manage the same firewall rule because the provider resource name appears different. The appropriate design is to determine actual remote object ownership and maintain one Terraform resource address/state authority for it. Confirm whether only one active configuration manages the shared firewall rule.
Question 191
A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership.
- Run terraform init in the current working directory against the repository's declared provider and backend requirements.
- Configure a clearly named provider alias for the recovery account and select it on recovery resources.
- Preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. It applies the design choice Preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Review the primary diagnostic: Compare the resource address in HCL with its remote object ID in state. The expected outcome is: Terraform retains the correct association with the existing remote resource. The rollout safeguard is: Back up state and use controlled import when a mapping is lost.
Incorrect Answers
A:“Preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership” would address a different Terraform configuration concern; the source instead describes A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. The appropriate design is to preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Confirm whether terraform retains the correct association with the existing remote resource.
B:“Run terraform init in the current working directory against the repository's declared provider and backend requirements” would address a different Terraform configuration concern; the source instead describes A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. The appropriate design is to preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Confirm whether terraform retains the correct association with the existing remote resource.
C:“Configure a clearly named provider alias for the recovery account and select it on recovery resources” would address a different Terraform configuration concern; the source instead describes A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. The appropriate design is to preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Confirm whether terraform retains the correct association with the existing remote resource.
Question 192
A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. Before choosing a remedy, the team needs independent evidence of the actual root cause. Which TWO checks most directly test this case? (Select TWO.)
- Inspect the provider's resource documentation for supported operations.
- Compare the resource address in HCL with its remote object ID in state.
- Inspect plan behavior when the state binding is missing but the object still exists.
- Inspect repository text and history for sensitive provider configuration fields.
- Inspect each resource's provider meta-argument and alias references.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Compare the resource address in HCL with its remote object ID in state. 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: Preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. The expected confirmation is Terraform retains the correct association with the existing remote resource.
C:This is directly relevant evidence for the reported behavior: Inspect plan behavior when the state binding is missing but the object still exists. 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: Preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. The expected confirmation is Terraform retains the correct association with the existing remote resource.
Incorrect Answers
A:“Inspect the provider's resource documentation for supported operations” would address a different Terraform configuration concern; the source instead describes A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. The appropriate design is to preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Confirm whether terraform retains the correct association with the existing remote resource.
D:“Inspect repository text and history for sensitive provider configuration fields” would address a different Terraform configuration concern; the source instead describes A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. The appropriate design is to preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Confirm whether terraform retains the correct association with the existing remote resource.
E:“Inspect each resource's provider meta-argument and alias references” would address a different Terraform configuration concern; the source instead describes A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. The appropriate design is to preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Confirm whether terraform retains the correct association with the existing remote resource.
Question 193
A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Reusing arbitrary initialization caches can create missing or incompatible plugins.
- Lost state mappings may lead to duplicate creates or mistaken replacement plans.
- CLI version constraints alone cannot prevent untested provider upgrades.
- Unreviewed console drift may be reverted by an apply or left undocumented.
Explanation
Correct Answer
B:The reported condition creates the specific potential exposure: Lost state mappings may lead to duplicate creates or mistaken replacement plans. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Compare the resource address in HCL with its remote object ID in state. Second diagnostic: Inspect plan behavior when the state binding is missing but the object still exists.
Incorrect Answers
A:“Reusing arbitrary initialization caches can create missing or incompatible plugins” would address a different Terraform configuration concern; the source instead describes A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. The appropriate design is to preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Confirm whether terraform retains the correct association with the existing remote resource.
C:“CLI version constraints alone cannot prevent untested provider upgrades” would address a different Terraform configuration concern; the source instead describes A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. The appropriate design is to preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Confirm whether terraform retains the correct association with the existing remote resource.
D:“Unreviewed console drift may be reverted by an apply or left undocumented” would address a different Terraform configuration concern; the source instead describes A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. The appropriate design is to preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Confirm whether terraform retains the correct association with the existing remote resource.
Question 194
A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. 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 use controlled import when a mapping is lost.
- Test provider changes in a disposable environment before production.
- Review the provider constraint and run an intentional terraform init -upgrade to select a compatible updated provider version.
- Preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes.
- Cache only trusted artifacts and do not skip initialization checks.
Explanation
Correct Answers
A:This is one of the two necessary decisions for a safe design: Back up state and use controlled import when a mapping is lost. Together the corrective action and its implementation safeguard need to address the recorded condition: A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. Acceptance requires Terraform retains the correct association with the existing remote resource.
D:This is one of the two necessary decisions for a safe design: Preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Together the corrective action and its implementation safeguard need to address the recorded condition: A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. Acceptance requires Terraform retains the correct association with the existing remote resource.
Incorrect Answers
B:“Test provider changes in a disposable environment before production” would address a different Terraform configuration concern; the source instead describes A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. The appropriate design is to preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Confirm whether terraform retains the correct association with the existing remote resource.
C:“Review the provider constraint and run an intentional terraform init -upgrade to select a compatible updated provider version” would address a different Terraform configuration concern; the source instead describes A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. The appropriate design is to preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Confirm whether terraform retains the correct association with the existing remote resource.
E:“Cache only trusted artifacts and do not skip initialization checks” would address a different Terraform configuration concern; the source instead describes A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. The appropriate design is to preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Confirm whether terraform retains the correct association with the existing remote resource.
Question 195
A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. 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 one active configuration manages the shared firewall rule.
- Terraform retains the correct association with the existing remote resource.
- Each resource is controlled by the correct virtualization endpoint.
- The plan uses available provider operations against the intended service API.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: Terraform retains the correct association with the existing remote resource. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Back up state and use controlled import when a mapping is lost.
Incorrect Answers
A:“Only one active configuration manages the shared firewall rule” would address a different Terraform configuration concern; the source instead describes A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. The appropriate design is to preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Confirm whether terraform retains the correct association with the existing remote resource.
C:“Each resource is controlled by the correct virtualization endpoint” would address a different Terraform configuration concern; the source instead describes A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. The appropriate design is to preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Confirm whether terraform retains the correct association with the existing remote resource.
D:“The plan uses available provider operations against the intended service API” would address a different Terraform configuration concern; the source instead describes A newly provisioned compute instance has a cloud-generated identifier, and a developer assumes Terraform can recover that ID from configuration alone after state is deleted. The appropriate design is to preserve secure state because it binds managed resource addresses to remote identifiers and recorded attributes. Confirm whether terraform retains the correct association with the existing remote resource.
Question 196
A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Declare the provider requirement and configure its required runtime arguments in a provider block or supported environment inputs.
- Use terraform init for backend and provider/module setup, then inspect a plan and apply separately when authorized.
- Determine actual remote object ownership and maintain one Terraform resource address/state authority for it.
- Treat refresh and planning as comparisons between configuration, state and current provider observations.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. It applies the design choice Treat refresh and planning as comparisons between configuration, state and current provider observations. Review the primary diagnostic: Inspect recorded state tags and desired HCL tag expressions. The expected outcome is: The team can distinguish observed drift from intentional configuration changes. The rollout safeguard is: Investigate the out-of-band change before choosing reconciliation.
Incorrect Answers
A:“Declare the provider requirement and configure its required runtime arguments in a provider block or supported environment inputs” would address a different Terraform configuration concern; the source instead describes A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. The appropriate design is to treat refresh and planning as comparisons between configuration, state and current provider observations. Confirm whether the team can distinguish observed drift from intentional configuration changes.
B:“Use terraform init for backend and provider/module setup, then inspect a plan and apply separately when authorized” would address a different Terraform configuration concern; the source instead describes A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. The appropriate design is to treat refresh and planning as comparisons between configuration, state and current provider observations. Confirm whether the team can distinguish observed drift from intentional configuration changes.
C:“Determine actual remote object ownership and maintain one Terraform resource address/state authority for it” would address a different Terraform configuration concern; the source instead describes A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. The appropriate design is to treat refresh and planning as comparisons between configuration, state and current provider observations. Confirm whether the team can distinguish observed drift from intentional configuration changes.
Question 197
A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. Before choosing a remedy, the team needs independent evidence of the actual root cause. Which TWO checks most directly test this case? (Select TWO.)
- Inspect the state provider addresses for surviving resources.
- Inspect recorded state tags and desired HCL tag expressions.
- Compare the resource address in HCL with its remote object ID in state.
- Check provider-read current values and planned reconciliation actions.
- Check the exact provider versions resolved in two consecutive CI runs.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Inspect recorded state tags and desired HCL tag expressions. 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: Treat refresh and planning as comparisons between configuration, state and current provider observations. The expected confirmation is The team can distinguish observed drift from intentional configuration changes.
D:This is directly relevant evidence for the reported behavior: Check provider-read current values and planned reconciliation actions. 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: Treat refresh and planning as comparisons between configuration, state and current provider observations. The expected confirmation is The team can distinguish observed drift from intentional configuration changes.
Incorrect Answers
A:“Inspect the state provider addresses for surviving resources” would address a different Terraform configuration concern; the source instead describes A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. The appropriate design is to treat refresh and planning as comparisons between configuration, state and current provider observations. Confirm whether the team can distinguish observed drift from intentional configuration changes.
C:“Compare the resource address in HCL with its remote object ID in state” would address a different Terraform configuration concern; the source instead describes A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. The appropriate design is to treat refresh and planning as comparisons between configuration, state and current provider observations. Confirm whether the team can distinguish observed drift from intentional configuration changes.
E:“Check the exact provider versions resolved in two consecutive CI runs” would address a different Terraform configuration concern; the source instead describes A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. The appropriate design is to treat refresh and planning as comparisons between configuration, state and current provider observations. Confirm whether the team can distinguish observed drift from intentional configuration changes.
Question 198
A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Removing provider configuration prematurely can prevent clean resource lifecycle operations.
- Unqualified provider selection can create resources in the wrong tenant.
- Lost state mappings may lead to duplicate creates or mistaken replacement plans.
- Unreviewed console drift may be reverted by an apply or left undocumented.
Explanation
Correct Answer
D:The reported condition creates the specific potential exposure: Unreviewed console drift may be reverted by an apply or left undocumented. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect recorded state tags and desired HCL tag expressions. Second diagnostic: Check provider-read current values and planned reconciliation actions.
Incorrect Answers
A:“Removing provider configuration prematurely can prevent clean resource lifecycle operations” would address a different Terraform configuration concern; the source instead describes A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. The appropriate design is to treat refresh and planning as comparisons between configuration, state and current provider observations. Confirm whether the team can distinguish observed drift from intentional configuration changes.
B:“Unqualified provider selection can create resources in the wrong tenant” would address a different Terraform configuration concern; the source instead describes A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. The appropriate design is to treat refresh and planning as comparisons between configuration, state and current provider observations. Confirm whether the team can distinguish observed drift from intentional configuration changes.
C:“Lost state mappings may lead to duplicate creates or mistaken replacement plans” would address a different Terraform configuration concern; the source instead describes A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. The appropriate design is to treat refresh and planning as comparisons between configuration, state and current provider observations. Confirm whether the team can distinguish observed drift from intentional configuration changes.
Question 199
A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. 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 a restricted encrypted backend and avoid committing state to Git.
- Model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities.
- Review plan changes and commit the updated lock file with the source revision.
- Treat refresh and planning as comparisons between configuration, state and current provider observations.
- Investigate the out-of-band change before choosing reconciliation.
Explanation
Correct Answers
D:This is one of the two necessary decisions for a safe design: Treat refresh and planning as comparisons between configuration, state and current provider observations. Together the corrective action and its implementation safeguard need to address the recorded condition: A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. Acceptance requires The team can distinguish observed drift from intentional configuration changes.
E:This is one of the two necessary decisions for a safe design: Investigate the out-of-band change before choosing reconciliation. Together the corrective action and its implementation safeguard need to address the recorded condition: A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. Acceptance requires The team can distinguish observed drift from intentional configuration changes.
Incorrect Answers
A:“Use a restricted encrypted backend and avoid committing state to Git” would address a different Terraform configuration concern; the source instead describes A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. The appropriate design is to treat refresh and planning as comparisons between configuration, state and current provider observations. Confirm whether the team can distinguish observed drift from intentional configuration changes.
B:“Model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities” would address a different Terraform configuration concern; the source instead describes A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. The appropriate design is to treat refresh and planning as comparisons between configuration, state and current provider observations. Confirm whether the team can distinguish observed drift from intentional configuration changes.
C:“Review plan changes and commit the updated lock file with the source revision” would address a different Terraform configuration concern; the source instead describes A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. The appropriate design is to treat refresh and planning as comparisons between configuration, state and current provider observations. Confirm whether the team can distinguish observed drift from intentional configuration changes.
Question 200
A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. 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 team can distinguish observed drift from intentional configuration changes.
- Each resource is planned against the approved primary or recovery account.
- Operators distinguish last known state from live infrastructure observations.
- The data lookup evaluates against the intended region and account.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: The team can distinguish observed drift from intentional configuration changes. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Investigate the out-of-band change before choosing reconciliation.
Incorrect Answers
B:“Each resource is planned against the approved primary or recovery account” would address a different Terraform configuration concern; the source instead describes A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. The appropriate design is to treat refresh and planning as comparisons between configuration, state and current provider observations. Confirm whether the team can distinguish observed drift from intentional configuration changes.
C:“Operators distinguish last known state from live infrastructure observations” would address a different Terraform configuration concern; the source instead describes A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. The appropriate design is to treat refresh and planning as comparisons between configuration, state and current provider observations. Confirm whether the team can distinguish observed drift from intentional configuration changes.
D:“The data lookup evaluates against the intended region and account” would address a different Terraform configuration concern; the source instead describes A remote-managed application is changed through an admin console, and the next Terraform plan reports different tags from the previously recorded state. The appropriate design is to treat refresh and planning as comparisons between configuration, state and current provider observations. Confirm whether the team can distinguish observed drift from intentional configuration changes.