Review 358 TERRAFORM-ASSOCIATE practice questions with answer explanations and community insights.
Question 1
The terraform.tfstate file always matches your currently built infrastructure.
True
False
Question 2
One remote backend configuration always maps to a single remote workspace.
True
False
Question 3
How is the Terraform remote backend different than other state backends such as S3, Consul, etc.?
It can execute Terraform runs on dedicated infrastructure on premises or in Terraform Cloud
It doesn't show the output of a terraform apply locally
It is only available to paying customers
All of the above
Question 4
What is the workflow for deploying new infrastructure with Terraform?
terraform plan to import the current infrastructure to the state file, make code changes, and terraform apply to update the infrastructure.
Write a Terraform configuration, run terraform show to view proposed changes, and terraform apply to create new infrastructure.
terraform import to import the current infrastructure to the state file, make code changes, and terraform apply to update the infrastructure.
Write a Terraform configuration, run terraform init, run terraform plan to view planned infrastructure changes, and terraform apply to create new infrastructure.
Question 5
A provider configuration block is required in every Terraform configuration. Example: