Question 1010
At Greenhollow Education Services, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: an engineer has the remote resource ID but terraform import fails because the provider identity lacks read access. Choose the technically best Terraform Associate 004 practice response to this particular infrastructure case. What mechanism explains why the original approach fails?
Explanation
Correct Answer
Import must query the real object through the provider to establish its state representation. That mechanism distinguishes import requires correct provider credentials in the Greenhollow Education Services case. The corresponding appropriate correction is: Authenticate the selected provider to the resource's correct account and region with sufficient read rights. The measurable acceptance test is: The imported ID resolves to the correct resource without unauthorized cross-account access.
Incorrect Answers
“Configuration-driven import lets planned adoption be reviewed in the Terraform workflow” reflects the mechanism: Configuration-driven import lets planned adoption be reviewed in the Terraform workflow. The actual reported symptoms are better explained by: Import must query the real object through the provider to establish its state representation.
The offered principle describes: Terraform logging environment settings persist across commands when left in the shell. The situation in this question instead depends on: Import must query the real object through the provider to establish its state representation. These are different technical conditions.
This alternative is valid when infrastructure-as-code workflows can expose intended creates updates and destroys before execution. The facts here establish a different controlling reason: Import must query the real object through the provider to establish its state representation.