HashiCorp Terraform Associate Practice Test 17
Question 160
An administrator edits the Terraform plugin binary directly under the local plugin cache to work around an API issue. 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.
- The workspace is ready for planning without changing managed infrastructure.
- CI executions use deterministic reviewed provider selections across runs.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: The deployment uses a verifiable supported provider artifact without local binary modifications. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Keep approved mirrors and enforce dependency-lock checksum verification.
Incorrect Answers
B:“The team can distinguish observed drift from intentional configuration changes” would address a different Terraform configuration concern; the source instead describes An administrator edits the Terraform plugin binary directly under the local plugin cache to work around an API issue. The appropriate design is to install a legitimate provider release under a reviewed version constraint instead of modifying cached provider binaries. Confirm whether the deployment uses a verifiable supported provider artifact without local binary modifications.
C:“The workspace is ready for planning without changing managed infrastructure” would address a different Terraform configuration concern; the source instead describes An administrator edits the Terraform plugin binary directly under the local plugin cache to work around an API issue. The appropriate design is to install a legitimate provider release under a reviewed version constraint instead of modifying cached provider binaries. Confirm whether the deployment uses a verifiable supported provider artifact without local binary modifications.
D:“CI executions use deterministic reviewed provider selections across runs” would address a different Terraform configuration concern; the source instead describes An administrator edits the Terraform plugin binary directly under the local plugin cache to work around an API issue. The appropriate design is to install a legitimate provider release under a reviewed version constraint instead of modifying cached provider binaries. Confirm whether the deployment uses a verifiable supported provider artifact without local binary modifications.
Question 161
A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. 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.
- Determine actual remote object ownership and maintain one Terraform resource address/state authority for it.
- 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.
Explanation
Correct Answer
A:The proposed intervention addresses the reported Terraform engineering failure: A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. It applies the design choice Use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Review the primary diagnostic: Inspect repository text and history for sensitive provider configuration fields. The expected outcome is: Terraform runs authenticate using scoped identities with no secrets committed to code. The rollout safeguard is: Rotate exposed values and segregate contractor permissions.
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 cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. The appropriate design is to use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Confirm whether terraform runs authenticate using scoped identities with no secrets committed to code.
C:“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 cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. The appropriate design is to use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Confirm whether terraform runs authenticate using scoped identities with no secrets committed to code.
D:“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 cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. The appropriate design is to use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Confirm whether terraform runs authenticate using scoped identities with no secrets committed to code.
Question 162
A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. 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 repository text and history for sensitive provider configuration fields.
- Confirm runtime identity permissions and secure CI credential injection behavior.
- Check locked provider versions and recorded checksums for supported platforms.
- Read validate errors and the installed provider version selection.
- Check the local working directory's provider requirements and lock.
Explanation
Correct Answers
A:This is directly relevant evidence for the reported behavior: Inspect repository text and history for sensitive provider configuration fields. 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 secure external credential sources or workload identity rather than hardcoded provider authentication secrets. The expected confirmation is Terraform runs authenticate using scoped identities with no secrets committed to code.
B:This is directly relevant evidence for the reported behavior: Confirm runtime identity permissions and secure CI credential injection behavior. 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 secure external credential sources or workload identity rather than hardcoded provider authentication secrets. The expected confirmation is Terraform runs authenticate using scoped identities with no secrets committed to code.
Incorrect Answers
C:“Check locked provider versions and recorded checksums for supported platforms” would address a different Terraform configuration concern; the source instead describes A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. The appropriate design is to use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Confirm whether terraform runs authenticate using scoped identities with no secrets committed to code.
D:“Read validate errors and the installed provider version selection” would address a different Terraform configuration concern; the source instead describes A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. The appropriate design is to use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Confirm whether terraform runs authenticate using scoped identities with no secrets committed to code.
E:“Check the local working directory's provider requirements and lock” would address a different Terraform configuration concern; the source instead describes A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. The appropriate design is to use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Confirm whether terraform runs authenticate using scoped identities with no secrets committed to code.
Question 163
A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Provider installation does not automatically configure credentials or service endpoints.
- Plaintext provider credentials in history may remain accessible after removal.
- Tampered provider artifacts can undermine supply chain integrity and reproducibility.
- Incomplete platform hashes may break otherwise reproducible CI initialization.
Explanation
Correct Answer
B:The reported condition creates the specific potential exposure: Plaintext provider credentials in history may remain accessible after removal. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect repository text and history for sensitive provider configuration fields. Second diagnostic: Confirm runtime identity permissions and secure CI credential injection behavior.
Incorrect Answers
A:“Provider installation does not automatically configure credentials or service endpoints” would address a different Terraform configuration concern; the source instead describes A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. The appropriate design is to use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Confirm whether terraform runs authenticate using scoped identities with no secrets committed to code.
C:“Tampered provider artifacts can undermine supply chain integrity and reproducibility” would address a different Terraform configuration concern; the source instead describes A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. The appropriate design is to use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Confirm whether terraform runs authenticate using scoped identities with no secrets committed to code.
D:“Incomplete platform hashes may break otherwise reproducible CI initialization” would address a different Terraform configuration concern; the source instead describes A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. The appropriate design is to use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Confirm whether terraform runs authenticate using scoped identities with no secrets committed to code.
Question 164
A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Publish the required stable outputs or lookups through a governed interface rather than assuming root module state is shared.
- Use safe test workloads and separate credentials per endpoint.
- Test migration in a staging workspace and review all replacement actions.
- Use secure external credential sources or workload identity rather than hardcoded provider authentication secrets.
- Rotate exposed values and segregate contractor permissions.
Explanation
Correct Answers
D:This is one of the two necessary decisions for a safe design: Use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Together the corrective action and its implementation safeguard need to address the recorded condition: A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. Acceptance requires Terraform runs authenticate using scoped identities with no secrets committed to code.
E:This is one of the two necessary decisions for a safe design: Rotate exposed values and segregate contractor permissions. Together the corrective action and its implementation safeguard need to address the recorded condition: A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. Acceptance requires Terraform runs authenticate using scoped identities with no secrets committed to code.
Incorrect Answers
A:“Publish the required stable outputs or lookups through a governed interface rather than assuming root module state is shared” would address a different Terraform configuration concern; the source instead describes A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. The appropriate design is to use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Confirm whether terraform runs authenticate using scoped identities with no secrets committed to code.
B:“Use safe test workloads and separate credentials per endpoint” would address a different Terraform configuration concern; the source instead describes A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. The appropriate design is to use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Confirm whether terraform runs authenticate using scoped identities with no secrets committed to code.
C:“Test migration in a staging workspace and review all replacement actions” would address a different Terraform configuration concern; the source instead describes A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. The appropriate design is to use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Confirm whether terraform runs authenticate using scoped identities with no secrets committed to code.
Question 165
A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. 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?
- Terraform runs authenticate using scoped identities with no secrets committed to code.
- The workspace selects a tested provider version consistent with the declared constraint and lock.
- Both Terraform CLI and providers use independently reviewed compatible versions.
- Approved configuration changes affect infrastructure only after the controlled apply.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: Terraform runs authenticate using scoped identities with no secrets committed to code. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Rotate exposed values and segregate contractor permissions.
Incorrect Answers
B:“The workspace selects a tested provider version consistent with the declared constraint and lock” would address a different Terraform configuration concern; the source instead describes A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. The appropriate design is to use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Confirm whether terraform runs authenticate using scoped identities with no secrets committed to code.
C:“Both Terraform CLI and providers use independently reviewed compatible versions” would address a different Terraform configuration concern; the source instead describes A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. The appropriate design is to use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Confirm whether terraform runs authenticate using scoped identities with no secrets committed to code.
D:“Approved configuration changes affect infrastructure only after the controlled apply” would address a different Terraform configuration concern; the source instead describes A cloud operations team stores static provider credentials in a Terraform provider block and shares the repository with external contractors. The appropriate design is to use secure external credential sources or workload identity rather than hardcoded provider authentication secrets. Confirm whether terraform runs authenticate using scoped identities with no secrets committed to code.
Question 166
A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Declare the provider requirement and configure its required runtime arguments in a provider block or supported environment inputs.
- Model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities.
- Use a deliberate provider refresh or plan workflow when current remote attributes need comparison with recorded state.
- Attach the correct provider alias to the data lookup as well as related managed resources.
Explanation
Correct Answer
B:The proposed intervention addresses the reported Terraform engineering failure: A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. It applies the design choice Model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Review the primary diagnostic: Inspect the provider's resource documentation for supported operations. The expected outcome is: The plan uses available provider operations against the intended service API. The rollout safeguard is: Validate provider support and distinguish external automation needs.
Incorrect Answers
A:“Declare the provider requirement and configure its required runtime arguments in a provider block or supported environment inputs” would address a different Terraform configuration concern; the source instead describes A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. The appropriate design is to model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Confirm whether the plan uses available provider operations against the intended service API.
C:“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 module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. The appropriate design is to model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Confirm whether the plan uses available provider operations against the intended service API.
D:“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 module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. The appropriate design is to model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Confirm whether the plan uses available provider operations against the intended service API.
Question 167
A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. 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 provider remote IDs represented in both state files.
- Inspect each resource's provider meta-argument and alias references.
- Review provider initialization and refresh diagnostics for API access.
- Inspect the provider's resource documentation for supported operations.
- Inspect the state provider addresses for surviving resources.
Explanation
Correct Answers
C:This is directly relevant evidence for the reported behavior: Review provider initialization and refresh diagnostics for API access. 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: Model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. The expected confirmation is The plan uses available provider operations against the intended service API.
D:This is directly relevant evidence for the reported behavior: Inspect the provider's resource documentation for supported operations. 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: Model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. The expected confirmation is The plan uses available provider operations against the intended service API.
Incorrect Answers
A:“Compare provider remote IDs represented in both state files” would address a different Terraform configuration concern; the source instead describes A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. The appropriate design is to model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Confirm whether the plan uses available provider operations against the intended service API.
B:“Inspect each resource's provider meta-argument and alias references” would address a different Terraform configuration concern; the source instead describes A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. The appropriate design is to model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Confirm whether the plan uses available provider operations against the intended service API.
E:“Inspect the state provider addresses for surviving resources” would address a different Terraform configuration concern; the source instead describes A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. The appropriate design is to model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Confirm whether the plan uses available provider operations against the intended service API.
Question 168
A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. 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.
- Removing provider configuration prematurely can prevent clean resource lifecycle operations.
- Tampered provider artifacts can undermine supply chain integrity and reproducibility.
- CLI version constraints alone cannot prevent untested provider upgrades.
Explanation
Correct Answer
A:The reported condition creates the specific potential exposure: Unsupported API actions cannot be reliably managed merely by writing arbitrary HCL. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect the provider's resource documentation for supported operations. Second diagnostic: Review provider initialization and refresh diagnostics for API access.
Incorrect Answers
B:“Removing provider configuration prematurely can prevent clean resource lifecycle operations” would address a different Terraform configuration concern; the source instead describes A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. The appropriate design is to model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Confirm whether the plan uses available provider operations against the intended service API.
C:“Tampered provider artifacts can undermine supply chain integrity and reproducibility” would address a different Terraform configuration concern; the source instead describes A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. The appropriate design is to model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Confirm whether the plan uses available provider operations against the intended service API.
D:“CLI version constraints alone cannot prevent untested provider upgrades” would address a different Terraform configuration concern; the source instead describes A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. The appropriate design is to model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Confirm whether the plan uses available provider operations against the intended service API.
Question 169
A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Validate provider support and distinguish external automation needs.
- Model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities.
- Investigate the out-of-band change before choosing reconciliation.
- Attach the correct provider alias to the data lookup as well as related managed resources.
- Use terraform providers lock for documented target platforms and review results.
Explanation
Correct Answers
A:This is one of the two necessary decisions for a safe design: Validate provider support and distinguish external automation needs. Together the corrective action and its implementation safeguard need to address the recorded condition: A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. Acceptance requires The plan uses available provider operations against the intended service API.
B:This is one of the two necessary decisions for a safe design: Model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Together the corrective action and its implementation safeguard need to address the recorded condition: A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. Acceptance requires The plan uses available provider operations against the intended service API.
Incorrect Answers
C:“Investigate the out-of-band change before choosing reconciliation” would address a different Terraform configuration concern; the source instead describes A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. The appropriate design is to model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Confirm whether the plan uses available provider operations against the intended service API.
D:“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 module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. The appropriate design is to model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Confirm whether the plan uses available provider operations against the intended service API. For a governed implementation, the complementary validated step is to validate provider support and distinguish external automation needs.
E:“Use terraform providers lock for documented target platforms and review results” would address a different Terraform configuration concern; the source instead describes A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. The appropriate design is to model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Confirm whether the plan uses available provider operations against the intended service API.
Question 170
A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. 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 plan uses available provider operations against the intended service API.
- The deployment uses a verifiable supported provider artifact without local binary modifications.
- Supported runners verify the same intended provider build version without disabling signature checks.
- The job installs only dependencies appropriate to the current project.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: The plan uses available provider operations against the intended service API. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Validate provider support and distinguish external automation needs.
Incorrect Answers
B:“The deployment uses a verifiable supported provider artifact without local binary modifications” would address a different Terraform configuration concern; the source instead describes A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. The appropriate design is to model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Confirm whether the plan uses available provider operations against the intended service API.
C:“Supported runners verify the same intended provider build version without disabling signature checks” would address a different Terraform configuration concern; the source instead describes A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. The appropriate design is to model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Confirm whether the plan uses available provider operations against the intended service API.
D:“The job installs only dependencies appropriate to the current project” would address a different Terraform configuration concern; the source instead describes A module author assumes all resources are implemented by Terraform itself and overlooks that the provider plugin communicates with the target API. The appropriate design is to model the provider as the API adapter and verify provider resource schemas before declaring infrastructure capabilities. Confirm whether the plan uses available provider operations against the intended service API.