HashiCorp Terraform Associate Practice Test 25
Question 240
A team creates an AWS resource in one root module and uses a different root module with a data lookup to read it, but assumes the two plans share state automatically. 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.
- One stack obtains the intended identifier while keeping state boundaries independent.
- Both Terraform CLI and providers use independently reviewed compatible versions.
- Terraform retains the correct association with the existing remote resource.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: One stack obtains the intended identifier while keeping state boundaries independent. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Prefer explicit outputs and avoid exposing unnecessary remote-state secrets.
Incorrect Answers
A:“Only one active configuration manages the shared firewall rule” would address a different Terraform configuration concern; the source instead describes A team creates an AWS resource in one root module and uses a different root module with a data lookup to read it, but assumes the two plans share state automatically. The appropriate design is to publish the required stable outputs or lookups through a governed interface rather than assuming root module state is shared. Confirm whether one stack obtains the intended identifier while keeping state boundaries independent.
C:“Both Terraform CLI and providers use independently reviewed compatible versions” would address a different Terraform configuration concern; the source instead describes A team creates an AWS resource in one root module and uses a different root module with a data lookup to read it, but assumes the two plans share state automatically. The appropriate design is to publish the required stable outputs or lookups through a governed interface rather than assuming root module state is shared. Confirm whether one stack obtains the intended identifier while keeping state boundaries independent.
D:“Terraform retains the correct association with the existing remote resource” would address a different Terraform configuration concern; the source instead describes A team creates an AWS resource in one root module and uses a different root module with a data lookup to read it, but assumes the two plans share state automatically. The appropriate design is to publish the required stable outputs or lookups through a governed interface rather than assuming root module state is shared. Confirm whether one stack obtains the intended identifier while keeping state boundaries independent.
Question 241
A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Consult the selected provider schema and migration documentation to update the configuration deliberately.
- Use the complete intended provider source address and confirm the publisher namespace before initialization.
- Use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names.
- Model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities.
Explanation
Correct Answer
C:The proposed intervention addresses the reported Terraform engineering failure: A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. It applies the design choice Use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Review the primary diagnostic: Inspect required_providers source addresses for both local names. The expected outcome is: Multiple target accounts are addressed through explicit aliases of the intended plugin. The rollout safeguard is: Normalize provider naming in a reviewed refactor.
Incorrect Answers
A:“Consult the selected provider schema and migration documentation to update the configuration deliberately” would address a different Terraform configuration concern; the source instead describes A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. The appropriate design is to use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Confirm whether multiple target accounts are addressed through explicit aliases of the intended plugin.
B:“Use the complete intended provider source address and confirm the publisher namespace before initialization” would address a different Terraform configuration concern; the source instead describes A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. The appropriate design is to use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Confirm whether multiple target accounts are addressed through explicit aliases of the intended plugin.
D:“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 company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. The appropriate design is to use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Confirm whether multiple target accounts are addressed through explicit aliases of the intended plugin.
Question 242
A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. 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 provider selection on the data block and expected region.
- Inspect independent backend locations and root output definitions.
- Inspect recorded state tags and desired HCL tag expressions.
- Inspect required_providers source addresses for both local names.
- Review provider configuration instances and the resources bound to each.
Explanation
Correct Answers
D:This is directly relevant evidence for the reported behavior: Inspect required_providers source addresses for both local 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 distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. The expected confirmation is Multiple target accounts are addressed through explicit aliases of the intended plugin.
E:This is directly relevant evidence for the reported behavior: Review provider configuration instances and the resources bound to each. 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 distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. The expected confirmation is Multiple target accounts are addressed through explicit aliases of the intended plugin.
Incorrect Answers
A:“Inspect provider selection on the data block and expected region” would address a different Terraform configuration concern; the source instead describes A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. The appropriate design is to use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Confirm whether multiple target accounts are addressed through explicit aliases of the intended plugin.
B:“Inspect independent backend locations and root output definitions” would address a different Terraform configuration concern; the source instead describes A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. The appropriate design is to use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Confirm whether multiple target accounts are addressed through explicit aliases of the intended plugin.
C:“Inspect recorded state tags and desired HCL tag expressions” would address a different Terraform configuration concern; the source instead describes A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. The appropriate design is to use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Confirm whether multiple target accounts are addressed through explicit aliases of the intended plugin.
Question 243
A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Unqualified provider selection can create resources in the wrong tenant.
- State can expose credentials and resource topology even if CLI output is redacted.
- Duplicate local names can confuse provider address migration and resource targeting.
- Similar short provider names can resolve to the wrong publisher or implementation.
Explanation
Correct Answer
C:The reported condition creates the specific potential exposure: Duplicate local names can confuse provider address migration and resource targeting. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect required_providers source addresses for both local names. Second diagnostic: Review provider configuration instances and the resources bound to each.
Incorrect Answers
A:“Unqualified provider selection can create resources in the wrong tenant” would address a different Terraform configuration concern; the source instead describes A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. The appropriate design is to use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Confirm whether multiple target accounts are addressed through explicit aliases of the intended plugin.
B:“State can expose credentials and resource topology even if CLI output is redacted” would address a different Terraform configuration concern; the source instead describes A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. The appropriate design is to use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Confirm whether multiple target accounts are addressed through explicit aliases of the intended plugin.
D:“Similar short provider names can resolve to the wrong publisher or implementation” would address a different Terraform configuration concern; the source instead describes A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. The appropriate design is to use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Confirm whether multiple target accounts are addressed through explicit aliases of the intended plugin.
Question 244
A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Use terraform providers lock for documented target platforms and review results.
- Use a deliberate provider refresh or plan workflow when current remote attributes need comparison with recorded state.
- Normalize provider naming in a reviewed refactor.
- Rotate exposed values and segregate contractor permissions.
- Use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names.
Explanation
Correct Answers
C:This is one of the two necessary decisions for a safe design: Normalize provider naming in a reviewed refactor. Together the corrective action and its implementation safeguard need to address the recorded condition: A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. Acceptance requires Multiple target accounts are addressed through explicit aliases of the intended plugin.
E:This is one of the two necessary decisions for a safe design: Use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Together the corrective action and its implementation safeguard need to address the recorded condition: A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. Acceptance requires Multiple target accounts are addressed through explicit aliases of the intended plugin.
Incorrect Answers
A:“Use terraform providers lock for documented target platforms and review results” would address a different Terraform configuration concern; the source instead describes A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. The appropriate design is to use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Confirm whether multiple target accounts are addressed through explicit aliases of the intended plugin.
B:“Use a deliberate provider refresh or plan workflow when current remote attributes need comparison with recorded state” would address a different Terraform configuration concern; the source instead describes A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. The appropriate design is to use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Confirm whether multiple target accounts are addressed through explicit aliases of the intended plugin.
D:“Rotate exposed values and segregate contractor permissions” would address a different Terraform configuration concern; the source instead describes A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. The appropriate design is to use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Confirm whether multiple target accounts are addressed through explicit aliases of the intended plugin.
Question 245
A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. 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 deployment uses a verifiable supported provider artifact without local binary modifications.
- The team can distinguish observed drift from intentional configuration changes.
- Multiple target accounts are addressed through explicit aliases of the intended plugin.
- Terraform runs authenticate using scoped identities with no secrets committed to code.
Explanation
Correct Answer
C:This is the appropriate measurable post-change acceptance criterion: Multiple target accounts are addressed through explicit aliases of the intended plugin. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Normalize provider naming in a reviewed refactor.
Incorrect Answers
A:“The deployment uses a verifiable supported provider artifact without local binary modifications” would address a different Terraform configuration concern; the source instead describes A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. The appropriate design is to use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Confirm whether multiple target accounts are addressed through explicit aliases of the intended plugin.
B:“The team can distinguish observed drift from intentional configuration changes” would address a different Terraform configuration concern; the source instead describes A company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. The appropriate design is to use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Confirm whether multiple target accounts are addressed through explicit aliases of the intended plugin.
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 company declares two versions of the same provider source under different local names and misreads that as two isolated provider implementations. The appropriate design is to use distinct aliases for multiple configurations of one provider source rather than unnecessary duplicate local names. Confirm whether multiple target accounts are addressed through explicit aliases of the intended plugin.
Question 246
A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Use secure external credential sources or workload identity rather than hardcoded provider authentication secrets.
- Protect state as sensitive infrastructure metadata regardless of sensitive flags on variables and outputs.
- Declare the provider requirement and configure its required runtime arguments in a provider block or supported environment inputs.
- Preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. It applies the design choice Preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Review the primary diagnostic: Inspect the state provider addresses for surviving resources. The expected outcome is: Managed resources are safely updated or decommissioned without orphaning provider bindings. The rollout safeguard is: Plan state changes and provider decommissioning in a documented sequence.
Incorrect Answers
A:“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 warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. The appropriate design is to preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Confirm whether managed resources are safely updated or decommissioned without orphaning provider bindings.
B:“Protect state as sensitive infrastructure metadata regardless of sensitive flags on variables and outputs” would address a different Terraform configuration concern; the source instead describes A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. The appropriate design is to preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Confirm whether managed resources are safely updated or decommissioned without orphaning provider bindings.
C:“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 warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. The appropriate design is to preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Confirm whether managed resources are safely updated or decommissioned without orphaning provider bindings.
Question 247
A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in 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.)
- Review the plan errors about unavailable original provider configuration.
- Inspect init output for installed providers and initialized backend status.
- Check the Git diff for the variable and dependent resource references.
- Inspect the state provider addresses for surviving resources.
- Check the local working directory's provider requirements and lock.
Explanation
Correct Answers
A:This is directly relevant evidence for the reported behavior: Review the plan errors about unavailable original provider configuration. 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 an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. The expected confirmation is Managed resources are safely updated or decommissioned without orphaning provider bindings.
D:This is directly relevant evidence for the reported behavior: Inspect the state provider addresses for surviving resources. 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 an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. The expected confirmation is Managed resources are safely updated or decommissioned without orphaning provider bindings.
Incorrect Answers
B:“Inspect init output for installed providers and initialized backend status” would address a different Terraform configuration concern; the source instead describes A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. The appropriate design is to preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Confirm whether managed resources are safely updated or decommissioned without orphaning provider bindings.
C:“Check the Git diff for the variable and dependent resource references” would address a different Terraform configuration concern; the source instead describes A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. The appropriate design is to preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Confirm whether managed resources are safely updated or decommissioned without orphaning provider bindings.
E:“Check the local working directory's provider requirements and lock” would address a different Terraform configuration concern; the source instead describes A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. The appropriate design is to preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Confirm whether managed resources are safely updated or decommissioned without orphaning provider bindings.
Question 248
A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in 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.
- Lost state mappings may lead to duplicate creates or mistaken replacement plans.
- Cross-region lookups can return missing or unintended objects.
- Implicit state sharing assumptions can produce references to the wrong resource.
Explanation
Correct Answer
A:The reported condition creates the specific potential exposure: Removing provider configuration prematurely can prevent clean resource lifecycle operations. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect the state provider addresses for surviving resources. Second diagnostic: Review the plan errors about unavailable original provider configuration.
Incorrect Answers
B:“Lost state mappings may lead to duplicate creates or mistaken replacement plans” would address a different Terraform configuration concern; the source instead describes A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. The appropriate design is to preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Confirm whether managed resources are safely updated or decommissioned without orphaning provider bindings.
C:“Cross-region lookups can return missing or unintended objects” would address a different Terraform configuration concern; the source instead describes A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. The appropriate design is to preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Confirm whether managed resources are safely updated or decommissioned without orphaning provider bindings.
D:“Implicit state sharing assumptions can produce references to the wrong resource” would address a different Terraform configuration concern; the source instead describes A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. The appropriate design is to preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Confirm whether managed resources are safely updated or decommissioned without orphaning provider bindings.
Question 249
A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in 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.)
- Preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership.
- Plan state changes and provider decommissioning in a documented sequence.
- Coordinate a controlled state move or import instead of both applying.
- Cache only trusted artifacts and do not skip initialization checks.
- Declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock.
Explanation
Correct Answers
A:This is one of the two necessary decisions for a safe design: Preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Together the corrective action and its implementation safeguard need to address the recorded condition: A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. Acceptance requires Managed resources are safely updated or decommissioned without orphaning provider bindings.
B:This is one of the two necessary decisions for a safe design: Plan state changes and provider decommissioning in a documented sequence. Together the corrective action and its implementation safeguard need to address the recorded condition: A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. Acceptance requires Managed resources are safely updated or decommissioned without orphaning provider bindings.
Incorrect Answers
C:“Coordinate a controlled state move or import instead of both applying” would address a different Terraform configuration concern; the source instead describes A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. The appropriate design is to preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Confirm whether managed resources are safely updated or decommissioned without orphaning provider bindings.
D:“Cache only trusted artifacts and do not skip initialization checks” would address a different Terraform configuration concern; the source instead describes A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. The appropriate design is to preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Confirm whether managed resources are safely updated or decommissioned without orphaning provider bindings.
E:“Declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock” would address a different Terraform configuration concern; the source instead describes A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. The appropriate design is to preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Confirm whether managed resources are safely updated or decommissioned without orphaning provider bindings.
Question 250
A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in 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?
- Operators distinguish last known state from live infrastructure observations.
- Both Terraform CLI and providers use independently reviewed compatible versions.
- Managed resources are safely updated or decommissioned without orphaning provider bindings.
- The job installs only dependencies appropriate to the current project.
Explanation
Correct Answer
C:This is the appropriate measurable post-change acceptance criterion: Managed resources are safely updated or decommissioned without orphaning provider bindings. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Plan state changes and provider decommissioning in a documented sequence.
Incorrect Answers
A:“Operators distinguish last known state from live infrastructure observations” would address a different Terraform configuration concern; the source instead describes A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. The appropriate design is to preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Confirm whether managed resources are safely updated or decommissioned without orphaning provider bindings.
B:“Both Terraform CLI and providers use independently reviewed compatible versions” would address a different Terraform configuration concern; the source instead describes A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. The appropriate design is to preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Confirm whether managed resources are safely updated or decommissioned without orphaning provider bindings.
D:“The job installs only dependencies appropriate to the current project” would address a different Terraform configuration concern; the source instead describes A warehouse automation team removes a provider requirement from configuration while resources using that provider still exist in state. The appropriate design is to preserve an appropriate provider configuration until managed resources are safely migrated or removed from state ownership. Confirm whether managed resources are safely updated or decommissioned without orphaning provider bindings.