Rationale for Correct Answer: Terraform state is Terraform’s record of what it manages: it maps resource addresses in configuration to real-world resource IDs and stores metadata needed to plan changes. That makes it a source of truth for resources Terraform is managing, enabling accurate diffs, updates, and deletes.
Analysis of Incorrect Options (Distractors):
A: Incorrect—Terraform state does not schedule jobs; that’s the role of external schedulers/automation tools.
B: Incorrect—the desired state is expressed in .tf configuration, not in the state file. State reflects the current known state of managed infrastructure.
D: Incorrect—resources created manually in a cloud console are not automatically in Terraform state unless they are imported/adopted.
Key Concept: Purpose of Terraform state: resource mapping, metadata, and planning accuracy.
[Reference: Terraform Objectives — Implement and Maintain State; Navigate Terraform State and Backends., , , , , , ]
Submit