Question 20
A Terraform associate evaluates: A junior administrator assumes deleting a resource block means Terraform will ignore the existing state binding. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The observed situation is: A junior administrator assumes deleting a resource block means Terraform will ignore the existing state binding. The acceptance evidence is: Changing a resource argument produces a resource graph plan based on current state and dependency references. It verifies the corrective approach (Treat Terraform configuration as desired state and inspect the execution plan instead of assuming each line is executed as an imperative shell instruction.) and controls the risk: Assuming HCL is a sequence of shell commands leads to faulty expectations about ordering and repeat runs. Checking an unrelated Terraform setting would not prove the stated requirement was met.
The case says: A junior administrator assumes deleting a resource block means Terraform will ignore the existing state binding. The directly relevant Terraform response is: 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 the related failure mode: Assuming HCL is a sequence of shell commands leads to faulty expectations about ordering and repeat runs. Validate the result by checking: Changing a resource argument produces a resource graph plan based on current state and dependency references. The selection matches this objective, rather than a different Terraform administration task.
Incorrect Answers
A change request shows the exact HCL diff, plan impact, reviewer approval and applied commit. That addresses Code review and change traceability (official objective 1b), specifically the hazard that unreviewed console edits or direct branch pushes hide change intent and can produce outages without an audit trail. Here the necessary action or evidence is the paired action Changing a resource argument produces a resource graph plan based on current state and dependency references and separate validation Treat Terraform configuration as desired state and inspect the execution plan instead of assuming each line is executed as an imperative shell instruction, not that separate control.
Describe the desired resource state in versioned Terraform configuration and let providers reconcile managed objects during plan and apply. This addresses Declarative infrastructure configuration (official objective 1a). The separate hazard is that a sequence of manual console clicks has no consistent declared target and is hard to reproduce. It does not by itself satisfy the case-specific requirement for Desired state versus procedural scripts.
A unified Terraform CLI does not imply different cloud platforms offer identical resource semantics or names. This does not provide the required Desired state versus procedural scripts action-and-evidence pair.