Question 140
At Eastcliff Health Research, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a Terraform plan fails even though the provider is installed because the executing role has no API access. Choose the technically best Terraform Associate 004 practice response to this particular infrastructure case. Which operational control addresses the risk long term?
Explanation
Correct Answer
Document provider authentication requirements separately from plugin installation. This control addresses provider configured authentication because installing a provider does not itself authenticate Terraform to the external service. The original implementation remedy remains: Configure an authorized provider identity using the supported credential mechanism.
Incorrect Answers
That review protects the control associated with: Terraform delegates operations to provider plugins whose remote service APIs impose rate and throughput limits. It does not directly prevent the stated recurrence, which concerns: Installing a provider does not itself authenticate Terraform to the external service. The appropriate guardrail is “Document provider authentication requirements separately from plugin installation”.
This safeguard is for the dependency described by: The lockfile contains package hashes used to verify provider distribution artifacts. The continuing risk here is determined by: Installing a provider does not itself authenticate Terraform to the external service. The targeted safeguard is “Document provider authentication requirements separately from plugin installation”.
“Test each environment branch of dynamic infrastructure expressions” addresses a different recurring failure: Terraform expressions can select a configuration value from a condition. For the condition in this question, maintain “Document provider authentication requirements separately from plugin installation” because installing a provider does not itself authenticate Terraform to the external service.