Question 1
A Terraform engineer reports: A platform team needs a repeatable definition of its test network instead of a screenshot of console settings. Which action BEST addresses the specific Terraform Associate (004) requirement?
Explanation
Correct Answer
The case says: A platform team needs a repeatable definition of its test network instead of a screenshot of console settings. The directly relevant Terraform response is: Describe the desired resource state in versioned Terraform configuration and let providers reconcile managed objects during plan and apply. This addresses the related failure mode: A sequence of manual console clicks has no consistent declared target and is hard to reproduce. Validate the result by checking: A fresh environment can be provisioned from reviewed configuration and its planned changes are inspectable. The selection matches this objective, rather than a different Terraform administration task.
Incorrect Answers
Store infrastructure configuration in version control and require reviewed pull requests and an examined Terraform plan before production apply. This belongs to Code review and change traceability (official objective 1b). Its separate risk is that unreviewed console edits or direct branch pushes hide change intent and can produce outages without an audit trail. The question instead tests Declarative infrastructure configuration; that other safeguard alone does not verify it.
Declare the appropriate required providers and configure their connections so one Terraform root module can manage resources across supported platforms. That addresses Multi-provider orchestration (official objective 1c), specifically the hazard that assuming a single cloud plugin can manage every unrelated service prevents Terraform from addressing required APIs. Here the necessary action or evidence is Describe the desired resource state in versioned Terraform configuration and let providers reconcile managed objects during plan and apply, not that separate control.
Treat Terraform configuration as desired state and inspect the execution plan instead of assuming each line is executed as an imperative shell instruction. This addresses Desired state versus procedural scripts (official objective 1a). The separate hazard is that assuming HCL is a sequence of shell commands leads to faulty expectations about ordering and repeat runs. It does not by itself satisfy the case-specific requirement for Declarative infrastructure configuration.