HashiCorp Certified: Terraform Associate — Question 173
When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)
Answer options
- A. When you change a Terraform-managed resource via the Azure Cloud Console, Terraform updates the state file to reflect the change during the next plan or apply
- B. Changing resources via the Azure Cloud Console records the change in the current state file
- C. When you change a resource via the Azure Cloud Console, Terraform records the changes in a new state file
- D. Changing resources via the Azure Cloud Console does not update current state file
Correct answer: D
Explanation
The correct answer is D because changes made directly in the Azure Cloud Console are not tracked by Terraform and do not update the state file. Option A is incorrect as Terraform does not automatically reflect changes made outside of its management until a refresh or apply is executed. Options B and C are also incorrect since Terraform is unaware of changes made outside its control and does not create new state files for such changes.