Terraform Associate Practice Test

Review 358 TERRAFORM-ASSOCIATE practice questions with answer explanations and community insights.

Question 1

The terraform.tfstate file always matches your currently built infrastructure.

  1. True
  2. False

Question 2

One remote backend configuration always maps to a single remote workspace.

  1. True
  2. False

Question 3

How is the Terraform remote backend different than other state backends such as S3, Consul, etc.?

  1. It can execute Terraform runs on dedicated infrastructure on premises or in Terraform Cloud
  2. It doesn't show the output of a terraform apply locally
  3. It is only available to paying customers
  4. All of the above

Question 4

What is the workflow for deploying new infrastructure with Terraform?

  1. terraform plan to import the current infrastructure to the state file, make code changes, and terraform apply to update the infrastructure.
  2. Write a Terraform configuration, run terraform show to view proposed changes, and terraform apply to create new infrastructure.
  3. terraform import to import the current infrastructure to the state file, make code changes, and terraform apply to update the infrastructure.
  4. 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:

  1. True
  2. False