HashiCorp Certified: Terraform Associate — Question 25
When using Terraform to deploy resources into Azure, which scenarios are true regarding state files? (Choose two.)
Answer options
- A. When a change is made to the resources via the Azure Cloud Console, the changes are recorded in a new state file
- B. When a change is made to the resources via the Azure Cloud Console, Terraform will update the state file to reflect them during the next plan or apply
- C. When a change is made to the resources via the Azure Cloud Console, the current state file will not be updated
- D. When a change is made to the resources via the Azure Cloud Console, the changes are recorded in the current state file
Correct answer: C
Explanation
The correct answer is C because when changes are made directly in the Azure Cloud Console, the current state file does not automatically update to reflect those changes. Options A, B, and D are incorrect because they suggest that the state file will be updated or a new one will be created, which is not the case when changes are made outside of Terraform.