Skip to content

Quiz — Providers, Auth & Initialization

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

How the google provider gets its credentials, what required_providers does that a provider block doesn't, and why terraform init is the safest command in the tool. If you are debugging a "why is it using the wrong project" problem, start here.

5 questions. Back to all topics

#

What does gcloud auth application-default login actually create, and where?

#

Does terraform init create or touch terraform.tfstate?

#

A provider block sets project = var.project_id, but every resource in the module also sets its own explicit project = var.project_id. What happens if you delete the provider block's project line entirely?

#

What's the actual difference between the required_providers block in a terraform{} block and a provider "google" {} config block?

#

Why is data "google_client_config" used to supply the GCP access token to the provider, rather than a resource or a static/stored value?

Quiz Progress

0 / 0 questions answered (0%)

0 correct