Skip to content

Quiz — Resources, Data Sources, State & Drift

Quiz results are saved to your browser's local storage and will persist between sessions.

The apply model — what Terraform owns versus what it merely reads, what survives a failed apply, and how to decide between import and delete-and-recreate when reality and state disagree.

5 questions. Back to all topics

#

If a data block references a real cloud resource, and someone deletes that resource outside Terraform entirely, what happens on the next terraform plan?

#

During terraform apply, 6 of 7 planned resources succeed and 1 fails with an unrelated error (e.g. a network timeout on an external API call). What state are the 6 successful resources in afterward?

#

Compared to a resource block, which of the following is true of a data block?

#

A terraform apply fails partway through creating a cloud resource (e.g. a GKE cluster) due to an unrelated error. The next apply attempt fails with 'Already exists' because the resource is now real in the cloud but absent from Terraform state. What's the right general decision criterion for import vs delete-and-recreate?

#

terraform apply fails on a resource with a transient network error (e.g. TLS handshake timeout) on a follow-up API read, right after the resource's creation call. What should you check before deciding whether to retry, import, or delete-and-recreate?

Quiz Progress

0 / 0 questions answered (0%)

0 correct