Rationale for Correct Answer: A resource block creates/updates/destroys an infrastructure object and contains the configuration settings for that managed object (e.g., a VM, bucket, network). This is how Terraform manages real infrastructure.
Analysis of Incorrect Options (Distractors):
B (provider): Configures how Terraform connects to an API (region, credentials), not an infrastructure object.
C (data): Reads existing infrastructure; it does not manage (create/update/destroy) it.
D (locals): Defines named expressions for reuse; it doesn’t manage infrastructure.
Key Concept: Managed infrastructure is defined with resource blocks.
[Reference: Terraform Objectives — Use Terraform to Manage Infrastructure (resource lifecycle), Manage Terraform Resources and Providers., ====================, ]
Submit