Sample question 1 — Understand Terraform's Purpose (vs Other IaC)
A product team provisions a load balancer in their cloud account and needs a matching DNS record at an external registrar. Today the DNS step is a manual ticket, so new environments become usable only after someone acts on it. The team wants both steps to happen in one coordinated change. Why does Terraform allow a cloud resource and an external service to be managed together?
- A. Provider plugins can be combined in one configuration, so one graph orders all the changes.
- B. Terraform proxies every external API through the cloud vendor's marketplace connector.
- C. The external registrar must publish a Terraform module before DNS records can be included.
- D. A single provider covers both platforms once the credentials are supplied in one block.
Answer: A. Option A is correct because provider plugins can be combined in one configuration, so one graph orders all the changes. The load balancer and the DNS record land in a single apply, and the reference between them tells Terraform which object must exist first. Option B routes third-party calls through the cloud marketplace, yet providers reach each vendor's own interface directly. Option C requires a published module, and a module is a packaging convenience rather than a prerequisite for using a provider. Option D collapses two platforms into one provider, but each platform needs its own provider configuration and credentials.
