HashiCorp Terraform Associate Practice Test 22
Question 210
A team believes updating a variable default automatically mutates the infrastructure without running any Terraform commands. 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.
- The provider resolves to the right plugin and connects to the intended API endpoint.
- Terraform retains the correct association with the existing remote resource.
- Approved configuration changes affect infrastructure only after the controlled apply.
Explanation
Correct Answer
D:This is the appropriate measurable post-change acceptance criterion: Approved configuration changes affect infrastructure only after the controlled apply. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Keep plan and apply gates explicit in continuous delivery.
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 team believes updating a variable default automatically mutates the infrastructure without running any Terraform commands. The appropriate design is to review a plan and apply the approved change because configuration edits do not call provider APIs on their own. Confirm whether approved configuration changes affect infrastructure only after the controlled apply.
B:“The provider resolves to the right plugin and connects to the intended API endpoint” would address a different Terraform configuration concern; the source instead describes A team believes updating a variable default automatically mutates the infrastructure without running any Terraform commands. The appropriate design is to review a plan and apply the approved change because configuration edits do not call provider APIs on their own. Confirm whether approved configuration changes affect infrastructure only after the controlled apply.
C:“Terraform retains the correct association with the existing remote resource” would address a different Terraform configuration concern; the source instead describes A team believes updating a variable default automatically mutates the infrastructure without running any Terraform commands. The appropriate design is to review a plan and apply the approved change because configuration edits do not call provider APIs on their own. Confirm whether approved configuration changes affect infrastructure only after the controlled apply.
Question 211
A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names.
- Regenerate or augment the dependency lock using supported target-platform checksums and keep it version controlled.
- Map affected resources explicitly to the intended provider instance and verify their target endpoint.
- Install a legitimate provider release under a reviewed version constraint instead of modifying cached provider binaries.
Explanation
Correct Answer
C:The proposed intervention addresses the reported Terraform engineering failure: A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. It applies the design choice Map affected resources explicitly to the intended provider instance and verify their target endpoint. Review the primary diagnostic: Inspect each resource's provider meta-argument and alias references. The expected outcome is: Each resource is controlled by the correct virtualization endpoint. The rollout safeguard is: Use safe test workloads and separate credentials per endpoint.
Incorrect Answers
A:“Use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names” would address a different Terraform configuration concern; the source instead describes A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. The appropriate design is to map affected resources explicitly to the intended provider instance and verify their target endpoint. Confirm whether each resource is controlled by the correct virtualization endpoint.
B:“Regenerate or augment the dependency lock using supported target-platform checksums and keep it version controlled” would address a different Terraform configuration concern; the source instead describes A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. The appropriate design is to map affected resources explicitly to the intended provider instance and verify their target endpoint. Confirm whether each resource is controlled by the correct virtualization endpoint.
D:“Install a legitimate provider release under a reviewed version constraint instead of modifying cached provider binaries” would address a different Terraform configuration concern; the source instead describes A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. The appropriate design is to map affected resources explicitly to the intended provider instance and verify their target endpoint. Confirm whether each resource is controlled by the correct virtualization endpoint.
Question 212
A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. 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.
- Compare the plan's target datacenter identifiers against expected inventory.
- Inspect each resource's provider meta-argument and alias references.
- Inspect the provider's resource documentation for supported operations.
- Inspect recorded state tags and desired HCL tag expressions.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Compare the plan's target datacenter identifiers against expected inventory. 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: Map affected resources explicitly to the intended provider instance and verify their target endpoint. The expected confirmation is Each resource is controlled by the correct virtualization endpoint.
C:This is directly relevant evidence for the reported behavior: Inspect each resource's provider meta-argument and alias references. 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: Map affected resources explicitly to the intended provider instance and verify their target endpoint. The expected confirmation is Each resource is controlled by the correct virtualization endpoint.
Incorrect Answers
A:“Inspect the state provider addresses for surviving resources” would address a different Terraform configuration concern; the source instead describes A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. The appropriate design is to map affected resources explicitly to the intended provider instance and verify their target endpoint. Confirm whether each resource is controlled by the correct virtualization endpoint.
D:“Inspect the provider's resource documentation for supported operations” would address a different Terraform configuration concern; the source instead describes A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. The appropriate design is to map affected resources explicitly to the intended provider instance and verify their target endpoint. Confirm whether each resource is controlled by the correct virtualization endpoint.
E:“Inspect recorded state tags and desired HCL tag expressions” would address a different Terraform configuration concern; the source instead describes A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. The appropriate design is to map affected resources explicitly to the intended provider instance and verify their target endpoint. Confirm whether each resource is controlled by the correct virtualization endpoint.
Question 213
A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Default provider fallbacks may modify the wrong datacenter.
- Implicit alias inheritance can silently fail or attach resources incorrectly.
- Similar short provider names can resolve to the wrong publisher or implementation.
- Removing provider configuration prematurely can prevent clean resource lifecycle operations.
Explanation
Correct Answer
A:The reported condition creates the specific potential exposure: Default provider fallbacks may modify the wrong datacenter. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect each resource's provider meta-argument and alias references. Second diagnostic: Compare the plan's target datacenter identifiers against expected inventory.
Incorrect Answers
B:“Implicit alias inheritance can silently fail or attach resources incorrectly” would address a different Terraform configuration concern; the source instead describes A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. The appropriate design is to map affected resources explicitly to the intended provider instance and verify their target endpoint. Confirm whether each resource is controlled by the correct virtualization endpoint.
C:“Similar short provider names can resolve to the wrong publisher or implementation” would address a different Terraform configuration concern; the source instead describes A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. The appropriate design is to map affected resources explicitly to the intended provider instance and verify their target endpoint. Confirm whether each resource is controlled by the correct virtualization endpoint.
D:“Removing provider configuration prematurely can prevent clean resource lifecycle operations” would address a different Terraform configuration concern; the source instead describes A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. The appropriate design is to map affected resources explicitly to the intended provider instance and verify their target endpoint. Confirm whether each resource is controlled by the correct virtualization endpoint.
Question 214
A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Require a code review for provider lock updates and test API changes.
- Map affected resources explicitly to the intended provider instance and verify their target endpoint.
- Declare the child's expected provider aliases and pass provider mappings explicitly through the module call.
- Use safe test workloads and separate credentials per endpoint.
- Cache only trusted artifacts and do not skip initialization checks.
Explanation
Correct Answers
B:This is one of the two necessary decisions for a safe design: Map affected resources explicitly to the intended provider instance and verify their target endpoint. Together the corrective action and its implementation safeguard need to address the recorded condition: A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. Acceptance requires Each resource is controlled by the correct virtualization endpoint.
D:This is one of the two necessary decisions for a safe design: Use safe test workloads and separate credentials per endpoint. Together the corrective action and its implementation safeguard need to address the recorded condition: A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. Acceptance requires Each resource is controlled by the correct virtualization endpoint.
Incorrect Answers
A:“Require a code review for provider lock updates and test API changes” would address a different Terraform configuration concern; the source instead describes A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. The appropriate design is to map affected resources explicitly to the intended provider instance and verify their target endpoint. Confirm whether each resource is controlled by the correct virtualization endpoint.
C:“Declare the child's expected provider aliases and pass provider mappings explicitly through the module call” would address a different Terraform configuration concern; the source instead describes A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. The appropriate design is to map affected resources explicitly to the intended provider instance and verify their target endpoint. Confirm whether each resource is controlled by the correct virtualization endpoint.
E:“Cache only trusted artifacts and do not skip initialization checks” would address a different Terraform configuration concern; the source instead describes A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. The appropriate design is to map affected resources explicitly to the intended provider instance and verify their target endpoint. Confirm whether each resource is controlled by the correct virtualization endpoint.
Question 215
A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. 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?
- Each resource is planned against the approved primary or recovery account.
- Each resource is controlled by the correct virtualization endpoint.
- The job installs only dependencies appropriate to the current project.
- The data lookup evaluates against the intended region and account.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: Each resource is controlled by the correct virtualization endpoint. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Use safe test workloads and separate credentials per endpoint.
Incorrect Answers
A:“Each resource is planned against the approved primary or recovery account” would address a different Terraform configuration concern; the source instead describes A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. The appropriate design is to map affected resources explicitly to the intended provider instance and verify their target endpoint. Confirm whether each resource is controlled by the correct virtualization endpoint.
C:“The job installs only dependencies appropriate to the current project” would address a different Terraform configuration concern; the source instead describes A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. The appropriate design is to map affected resources explicitly to the intended provider instance and verify their target endpoint. Confirm whether each resource is controlled by the correct virtualization endpoint.
D:“The data lookup evaluates against the intended region and account” would address a different Terraform configuration concern; the source instead describes A private-cloud administrator adds a provider alias for a second virtualization endpoint but forgets to pass it to several resources. The appropriate design is to map affected resources explicitly to the intended provider instance and verify their target endpoint. Confirm whether each resource is controlled by the correct virtualization endpoint.
Question 216
A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Regenerate or augment the dependency lock using supported target-platform checksums and keep it version controlled.
- Consult the selected provider schema and migration documentation to update the configuration deliberately.
- Determine actual remote object ownership and maintain one Terraform resource address/state authority for it.
- Use secure external credential sources or workload identity rather than hardcoded provider authentication secrets.
Explanation
Correct Answer
B:The proposed intervention addresses the reported Terraform engineering failure: A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. It applies the design choice Consult the selected provider schema and migration documentation to update the configuration deliberately. Review the primary diagnostic: Read validate errors and the installed provider version selection. The expected outcome is: The configuration validates under the tested target provider version. The rollout safeguard is: Test migration in a staging workspace and review all replacement actions.
Incorrect Answers
A:“Regenerate or augment the dependency lock using supported target-platform checksums and keep it version controlled” would address a different Terraform configuration concern; the source instead describes A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. The appropriate design is to consult the selected provider schema and migration documentation to update the configuration deliberately. Confirm whether the configuration validates under the tested target provider version.
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 configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. The appropriate design is to consult the selected provider schema and migration documentation to update the configuration deliberately. Confirm whether the configuration validates under the tested target provider version.
D:“Use secure external credential sources or workload identity rather than hardcoded provider authentication secrets” would address a different Terraform configuration concern; the source instead describes A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. The appropriate design is to consult the selected provider schema and migration documentation to update the configuration deliberately. Confirm whether the configuration validates under the tested target provider version.
Question 217
A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. 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 each resource's provider meta-argument and alias references.
- Read validate errors and the installed provider version selection.
- Inspect the state provider addresses for surviving resources.
- Compare resource argument names and replacement semantics across provider releases.
- Inspect required_providers source addresses for both local names.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Read validate errors and the installed provider version selection. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Consult the selected provider schema and migration documentation to update the configuration deliberately. The expected confirmation is The configuration validates under the tested target provider version.
D:This is directly relevant evidence for the reported behavior: Compare resource argument names and replacement semantics across provider releases. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Consult the selected provider schema and migration documentation to update the configuration deliberately. The expected confirmation is The configuration validates under the tested target provider version.
Incorrect Answers
A:“Inspect each resource's provider meta-argument and alias references” would address a different Terraform configuration concern; the source instead describes A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. The appropriate design is to consult the selected provider schema and migration documentation to update the configuration deliberately. Confirm whether the configuration validates under the tested target provider version.
C:“Inspect the state provider addresses for surviving resources” would address a different Terraform configuration concern; the source instead describes A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. The appropriate design is to consult the selected provider schema and migration documentation to update the configuration deliberately. Confirm whether the configuration validates under the tested target provider version.
E:“Inspect required_providers source addresses for both local names” would address a different Terraform configuration concern; the source instead describes A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. The appropriate design is to consult the selected provider schema and migration documentation to update the configuration deliberately. Confirm whether the configuration validates under the tested target provider version.
Question 218
A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Lost state mappings may lead to duplicate creates or mistaken replacement plans.
- Removing provider configuration prematurely can prevent clean resource lifecycle operations.
- Unexamined provider schema changes can lead to failed or destructive deployments.
- Default provider fallbacks may modify the wrong datacenter.
Explanation
Correct Answer
C:The reported condition creates the specific potential exposure: Unexamined provider schema changes can lead to failed or destructive deployments. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Read validate errors and the installed provider version selection. Second diagnostic: Compare resource argument names and replacement semantics across provider releases.
Incorrect Answers
A:“Lost state mappings may lead to duplicate creates or mistaken replacement plans” would address a different Terraform configuration concern; the source instead describes A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. The appropriate design is to consult the selected provider schema and migration documentation to update the configuration deliberately. Confirm whether the configuration validates under the tested target provider version.
B:“Removing provider configuration prematurely can prevent clean resource lifecycle operations” would address a different Terraform configuration concern; the source instead describes A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. The appropriate design is to consult the selected provider schema and migration documentation to update the configuration deliberately. Confirm whether the configuration validates under the tested target provider version.
D:“Default provider fallbacks may modify the wrong datacenter” would address a different Terraform configuration concern; the source instead describes A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. The appropriate design is to consult the selected provider schema and migration documentation to update the configuration deliberately. Confirm whether the configuration validates under the tested target provider version.
Question 219
A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Consult the selected provider schema and migration documentation to update the configuration deliberately.
- Determine actual remote object ownership and maintain one Terraform resource address/state authority for it.
- Use terraform providers lock for documented target platforms and review results.
- Test migration in a staging workspace and review all replacement actions.
- Back up state and use controlled import when a mapping is lost.
Explanation
Correct Answers
A:This is one of the two necessary decisions for a safe design: Consult the selected provider schema and migration documentation to update the configuration deliberately. Together the corrective action and its implementation safeguard need to address the recorded condition: A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. Acceptance requires The configuration validates under the tested target provider version.
D:This is one of the two necessary decisions for a safe design: Test migration in a staging workspace and review all replacement actions. Together the corrective action and its implementation safeguard need to address the recorded condition: A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. Acceptance requires The configuration validates under the tested target provider version.
Incorrect Answers
B:“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 configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. The appropriate design is to consult the selected provider schema and migration documentation to update the configuration deliberately. Confirm whether the configuration validates under the tested target provider version. For a governed implementation, the complementary validated step is to test migration in a staging workspace and review all replacement actions.
C:“Use terraform providers lock for documented target platforms and review results” would address a different Terraform configuration concern; the source instead describes A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. The appropriate design is to consult the selected provider schema and migration documentation to update the configuration deliberately. Confirm whether the configuration validates under the tested target provider version.
E:“Back up state and use controlled import when a mapping is lost” would address a different Terraform configuration concern; the source instead describes A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. The appropriate design is to consult the selected provider schema and migration documentation to update the configuration deliberately. Confirm whether the configuration validates under the tested target provider version.
Question 220
A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. 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 configuration validates under the tested target provider version.
- The workspace is ready for planning without changing managed infrastructure.
- Only one active configuration manages the shared firewall rule.
- Each resource is controlled by the correct virtualization endpoint.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: The configuration validates under the tested target provider version. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Test migration in a staging workspace and review all replacement actions.
Incorrect Answers
B:“The workspace is ready for planning without changing managed infrastructure” would address a different Terraform configuration concern; the source instead describes A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. The appropriate design is to consult the selected provider schema and migration documentation to update the configuration deliberately. Confirm whether the configuration validates under the tested target provider version.
C:“Only one active configuration manages the shared firewall rule” would address a different Terraform configuration concern; the source instead describes A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. The appropriate design is to consult the selected provider schema and migration documentation to update the configuration deliberately. Confirm whether the configuration validates under the tested target provider version.
D:“Each resource is controlled by the correct virtualization endpoint” would address a different Terraform configuration concern; the source instead describes A configuration upgrades the provider version and now a previously valid resource argument is rejected by terraform validate. The appropriate design is to consult the selected provider schema and migration documentation to update the configuration deliberately. Confirm whether the configuration validates under the tested target provider version.