Practice free →
HomeMCA Cloud Computingcloudcomputingcloudorchestration › In Terraform, what is the role of the "state" fi…

In Terraform, what is the role of the "state" file?

AHold compiled binaries of the Terraform engine itself
BEncrypt the user's local source code
CStore the cloud provider's pricing catalogue
DTrack the real-world mapping between Terraform configuration resources and the actual cloud resources Terraform manages
Answer & Solution
Correct answer: D. Track the real-world mapping between Terraform configuration resources and the actual cloud resources Terraform manages
State maps the HCL declarations to the real resources, enabling diffs and updates. The other options are unrelated.
Solve this in the app — MCA Cloud Computing practice & 24k+ MCQs →
Related questions