HashiCorp Terraform Associate Practice Test 14
Question 130
A cloud engineer upgrades an AWS provider requirement from version four to version five, but a copied dependency lock still selects the old provider after a standard init. 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 authorized automation and reviewers can access encrypted state.
- The workspace selects a tested provider version consistent with the declared constraint and lock.
- The job installs only dependencies appropriate to the current project.
- CI executions use deterministic reviewed provider selections across runs.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: The workspace selects a tested provider version consistent with the declared constraint and lock. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Review plan changes and commit the updated lock file with the source revision.
Incorrect Answers
A:“Only authorized automation and reviewers can access encrypted state” would address a different Terraform configuration concern; the source instead describes A cloud engineer upgrades an AWS provider requirement from version four to version five, but a copied dependency lock still selects the old provider after a standard init. The appropriate design is to review the provider constraint and run an intentional terraform init -upgrade to select a compatible updated provider version. Confirm whether the workspace selects a tested provider version consistent with the declared constraint and lock.
C:“The job installs only dependencies appropriate to the current project” would address a different Terraform configuration concern; the source instead describes A cloud engineer upgrades an AWS provider requirement from version four to version five, but a copied dependency lock still selects the old provider after a standard init. The appropriate design is to review the provider constraint and run an intentional terraform init -upgrade to select a compatible updated provider version. Confirm whether the workspace selects a tested provider version consistent with the declared constraint and lock.
D:“CI executions use deterministic reviewed provider selections across runs” would address a different Terraform configuration concern; the source instead describes A cloud engineer upgrades an AWS provider requirement from version four to version five, but a copied dependency lock still selects the old provider after a standard init. The appropriate design is to review the provider constraint and run an intentional terraform init -upgrade to select a compatible updated provider version. Confirm whether the workspace selects a tested provider version consistent with the declared constraint and lock.
Question 131
A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. 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.
- Declare the provider requirement and configure its required runtime arguments in a provider block or supported environment inputs.
- Retain and review the lock file and perform explicit provider version upgrades with plan testing.
- Declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock.
Explanation
Correct Answer
D:The proposed intervention addresses the reported Terraform engineering failure: A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. It applies the design choice Declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Review the primary diagnostic: Inspect terraform required_version alongside required_providers declarations. The expected outcome is: Both Terraform CLI and providers use independently reviewed compatible versions. The rollout safeguard is: Test provider changes in a disposable environment before production.
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 developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. The appropriate design is to declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Confirm whether both Terraform CLI and providers use independently reviewed compatible versions.
B:“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 developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. The appropriate design is to declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Confirm whether both Terraform CLI and providers use independently reviewed compatible versions.
C:“Retain and review the lock file and perform explicit provider version upgrades with plan testing” would address a different Terraform configuration concern; the source instead describes A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. The appropriate design is to declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Confirm whether both Terraform CLI and providers use independently reviewed compatible versions.
Question 132
A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. 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 terraform required_version alongside required_providers declarations.
- Check terraform providers output and the selected plugin version in the lock file.
- Inspect the provider's resource documentation for supported operations.
- Inspect repository text and history for sensitive provider configuration fields.
- Inspect recorded state tags and desired HCL tag expressions.
Explanation
Correct Answers
A:This is directly relevant evidence for the reported behavior: Inspect terraform required_version alongside required_providers declarations. 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: Declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. The expected confirmation is Both Terraform CLI and providers use independently reviewed compatible versions.
B:This is directly relevant evidence for the reported behavior: Check terraform providers output and the selected plugin version in the lock file. 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: Declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. The expected confirmation is Both Terraform CLI and providers use independently reviewed compatible versions.
Incorrect Answers
C:“Inspect the provider's resource documentation for supported operations” would address a different Terraform configuration concern; the source instead describes A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. The appropriate design is to declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Confirm whether both Terraform CLI and providers use independently reviewed compatible versions.
D:“Inspect repository text and history for sensitive provider configuration fields” would address a different Terraform configuration concern; the source instead describes A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. The appropriate design is to declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Confirm whether both Terraform CLI and providers use independently reviewed compatible versions.
E:“Inspect recorded state tags and desired HCL tag expressions” would address a different Terraform configuration concern; the source instead describes A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. The appropriate design is to declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Confirm whether both Terraform CLI and providers use independently reviewed compatible versions.
Question 133
A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Unsupported API actions cannot be reliably managed merely by writing arbitrary HCL.
- CLI version constraints alone cannot prevent untested provider upgrades.
- Provider installation does not automatically configure credentials or service endpoints.
- Default provider fallbacks may modify the wrong datacenter.
Explanation
Correct Answer
B:The reported condition creates the specific potential exposure: CLI version constraints alone cannot prevent untested provider upgrades. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect terraform required_version alongside required_providers declarations. Second diagnostic: Check terraform providers output and the selected plugin version in the lock file.
Incorrect Answers
A:“Unsupported API actions cannot be reliably managed merely by writing arbitrary HCL” would address a different Terraform configuration concern; the source instead describes A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. The appropriate design is to declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Confirm whether both Terraform CLI and providers use independently reviewed compatible versions.
C:“Provider installation does not automatically configure credentials or service endpoints” would address a different Terraform configuration concern; the source instead describes A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. The appropriate design is to declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Confirm whether both Terraform CLI and providers use independently reviewed compatible versions.
D:“Default provider fallbacks may modify the wrong datacenter” would address a different Terraform configuration concern; the source instead describes A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. The appropriate design is to declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Confirm whether both Terraform CLI and providers use independently reviewed compatible versions.
Question 134
A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock.
- Use safe test workloads and separate credentials per endpoint.
- Test provider changes in a disposable environment before production.
- Coordinate a controlled state move or import instead of both applying.
- Attach the correct provider alias to the data lookup as well as related managed resources.
Explanation
Correct Answers
A:This is one of the two necessary decisions for a safe design: Declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Together the corrective action and its implementation safeguard need to address the recorded condition: A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. Acceptance requires Both Terraform CLI and providers use independently reviewed compatible versions.
C:This is one of the two necessary decisions for a safe design: Test provider changes in a disposable environment before production. Together the corrective action and its implementation safeguard need to address the recorded condition: A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. Acceptance requires Both Terraform CLI and providers use independently reviewed compatible versions.
Incorrect Answers
B:“Use safe test workloads and separate credentials per endpoint” would address a different Terraform configuration concern; the source instead describes A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. The appropriate design is to declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Confirm whether both Terraform CLI and providers use independently reviewed compatible versions.
D:“Coordinate a controlled state move or import instead of both applying” would address a different Terraform configuration concern; the source instead describes A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. The appropriate design is to declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Confirm whether both Terraform CLI and providers use independently reviewed compatible versions.
E:“Attach the correct provider alias to the data lookup as well as related managed resources” would address a different Terraform configuration concern; the source instead describes A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. The appropriate design is to declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Confirm whether both Terraform CLI and providers use independently reviewed compatible versions.
Question 135
A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. 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.
- Approved configuration changes affect infrastructure only after the controlled apply.
- Multiple target accounts are addressed through explicit aliases of the intended plugin.
- The configuration validates under the tested target provider version.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: Both Terraform CLI and providers use independently reviewed compatible versions. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Test provider changes in a disposable environment before production.
Incorrect Answers
B:“Approved configuration changes affect infrastructure only after the controlled apply” would address a different Terraform configuration concern; the source instead describes A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. The appropriate design is to declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Confirm whether both Terraform CLI and providers use independently reviewed compatible versions.
C:“Multiple target accounts are addressed through explicit aliases of the intended plugin” would address a different Terraform configuration concern; the source instead describes A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. The appropriate design is to declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Confirm whether both Terraform CLI and providers use independently reviewed compatible versions.
D:“The configuration validates under the tested target provider version” would address a different Terraform configuration concern; the source instead describes A developer pins the Terraform CLI to 1.12 but assumes that setting automatically pins the cloud provider plugin too. The appropriate design is to declare provider source and version constraints separately from Terraform required_version, and preserve the dependency lock. Confirm whether both Terraform CLI and providers use independently reviewed compatible versions.
Question 136
A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Declare the child's expected provider aliases and pass provider mappings explicitly through the module call.
- Use the complete intended provider source address and confirm the publisher namespace before initialization.
- Treat refresh and planning as comparisons between configuration, state and current provider observations.
- Use a deliberate provider refresh or plan workflow when current remote attributes need comparison with recorded state.
Explanation
Correct Answer
B:The proposed intervention addresses the reported Terraform engineering failure: A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. It applies the design choice Use the complete intended provider source address and confirm the publisher namespace before initialization. Review the primary diagnostic: Read the required_providers source strings in root and child modules. The expected outcome is: The expected provider artifact is installed from the reviewed registry namespace. The rollout safeguard is: Restrict provider installation sources and verify checksums.
Incorrect Answers
A:“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 platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. The appropriate design is to use the complete intended provider source address and confirm the publisher namespace before initialization. Confirm whether the expected provider artifact is installed from the reviewed registry namespace.
C:“Treat refresh and planning as comparisons between configuration, state and current provider observations” would address a different Terraform configuration concern; the source instead describes A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. The appropriate design is to use the complete intended provider source address and confirm the publisher namespace before initialization. Confirm whether the expected provider artifact is installed from the reviewed registry namespace.
D:“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 platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. The appropriate design is to use the complete intended provider source address and confirm the publisher namespace before initialization. Confirm whether the expected provider artifact is installed from the reviewed registry namespace.
Question 137
A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. Before choosing a remedy, the team needs independent evidence of the actual root cause. Which TWO checks most directly test this case? (Select TWO.)
- Compare the resolved registry source address with the approved security allowlist.
- Inspect provider source and checksum verification messages from initialization.
- Read the required_providers source strings in root and child modules.
- Check the local working directory's provider requirements and lock.
- Inspect required_providers addresses and provider block settings separately.
Explanation
Correct Answers
A:This is directly relevant evidence for the reported behavior: Compare the resolved registry source address with the approved security allowlist. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Use the complete intended provider source address and confirm the publisher namespace before initialization. The expected confirmation is The expected provider artifact is installed from the reviewed registry namespace.
C:This is directly relevant evidence for the reported behavior: Read the required_providers source strings in root and child modules. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Use the complete intended provider source address and confirm the publisher namespace before initialization. The expected confirmation is The expected provider artifact is installed from the reviewed registry namespace.
Incorrect Answers
B:“Inspect provider source and checksum verification messages from initialization” would address a different Terraform configuration concern; the source instead describes A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. The appropriate design is to use the complete intended provider source address and confirm the publisher namespace before initialization. Confirm whether the expected provider artifact is installed from the reviewed registry namespace.
D:“Check the local working directory's provider requirements and lock” would address a different Terraform configuration concern; the source instead describes A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. The appropriate design is to use the complete intended provider source address and confirm the publisher namespace before initialization. Confirm whether the expected provider artifact is installed from the reviewed registry namespace.
E:“Inspect required_providers addresses and provider block settings separately” would address a different Terraform configuration concern; the source instead describes A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. The appropriate design is to use the complete intended provider source address and confirm the publisher namespace before initialization. Confirm whether the expected provider artifact is installed from the reviewed registry namespace.
Question 138
A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Similar short provider names can resolve to the wrong publisher or implementation.
- Mistaking initialization for provisioning can skip required change approvals.
- Lost state mappings may lead to duplicate creates or mistaken replacement plans.
- Incomplete platform hashes may break otherwise reproducible CI initialization.
Explanation
Correct Answer
A:The reported condition creates the specific potential exposure: Similar short provider names can resolve to the wrong publisher or implementation. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Read the required_providers source strings in root and child modules. Second diagnostic: Compare the resolved registry source address with the approved security allowlist.
Incorrect Answers
B:“Mistaking initialization for provisioning can skip required change approvals” would address a different Terraform configuration concern; the source instead describes A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. The appropriate design is to use the complete intended provider source address and confirm the publisher namespace before initialization. Confirm whether the expected provider artifact is installed from the reviewed registry namespace.
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 platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. The appropriate design is to use the complete intended provider source address and confirm the publisher namespace before initialization. Confirm whether the expected provider artifact is installed from the reviewed registry namespace.
D:“Incomplete platform hashes may break otherwise reproducible CI initialization” would address a different Terraform configuration concern; the source instead describes A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. The appropriate design is to use the complete intended provider source address and confirm the publisher namespace before initialization. Confirm whether the expected provider artifact is installed from the reviewed registry namespace.
Question 139
A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. 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.
- Use the complete intended provider source address and confirm the publisher namespace before initialization.
- Run terraform init in the current working directory against the repository's declared provider and backend requirements.
- Restrict provider installation sources and verify checksums.
- Test provider changes in a disposable environment before production.
Explanation
Correct Answers
B:This is one of the two necessary decisions for a safe design: Use the complete intended provider source address and confirm the publisher namespace before initialization. Together the corrective action and its implementation safeguard need to address the recorded condition: A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. Acceptance requires The expected provider artifact is installed from the reviewed registry namespace.
D:This is one of the two necessary decisions for a safe design: Restrict provider installation sources and verify checksums. Together the corrective action and its implementation safeguard need to address the recorded condition: A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. Acceptance requires The expected provider artifact is installed from the reviewed registry namespace.
Incorrect Answers
A:“Back up state and use controlled import when a mapping is lost” would address a different Terraform configuration concern; the source instead describes A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. The appropriate design is to use the complete intended provider source address and confirm the publisher namespace before initialization. Confirm whether the expected provider artifact is installed from the reviewed registry namespace.
C:“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 platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. The appropriate design is to use the complete intended provider source address and confirm the publisher namespace before initialization. Confirm whether the expected provider artifact is installed from the reviewed registry namespace.
E:“Test provider changes in a disposable environment before production” would address a different Terraform configuration concern; the source instead describes A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. The appropriate design is to use the complete intended provider source address and confirm the publisher namespace before initialization. Confirm whether the expected provider artifact is installed from the reviewed registry namespace.
Question 140
A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. 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?
- Managed resources are safely updated or decommissioned without orphaning provider bindings.
- The expected provider artifact is installed from the reviewed registry namespace.
- CI executions use deterministic reviewed provider selections across runs.
- One stack obtains the intended identifier while keeping state boundaries independent.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: The expected provider artifact is installed from the reviewed registry namespace. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Restrict provider installation sources and verify checksums.
Incorrect Answers
A:“Managed resources are safely updated or decommissioned without orphaning provider bindings” would address a different Terraform configuration concern; the source instead describes A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. The appropriate design is to use the complete intended provider source address and confirm the publisher namespace before initialization. Confirm whether the expected provider artifact is installed from the reviewed registry namespace.
C:“CI executions use deterministic reviewed provider selections across runs” would address a different Terraform configuration concern; the source instead describes A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. The appropriate design is to use the complete intended provider source address and confirm the publisher namespace before initialization. Confirm whether the expected provider artifact is installed from the reviewed registry namespace.
D:“One stack obtains the intended identifier while keeping state boundaries independent” would address a different Terraform configuration concern; the source instead describes A platform team refers to an unofficial provider namespace by short name while expecting a signed release from HashiCorp's official registry namespace. The appropriate design is to use the complete intended provider source address and confirm the publisher namespace before initialization. Confirm whether the expected provider artifact is installed from the reviewed registry namespace.