Skip to content

Terraform Intermediate Quiz

Back to Quiz Home

Welcome! 🚀
Test your knowledge of state, variables, and modules.

Instructions:

  • Select the best answer for each question.
  • Your score will be shown at the end.
#

Which file is automatically loaded by Terraform to populate variable values?

#

What is the purpose of the output block?

#

If a variable has no default value and is not set via CLI or tfvars, what happens?

#

Which keyword is used to access values from a Data Source?

#

Why is local state not recommended for team environments?

#

Which command is used to format your Terraform configuration files to a canonical format?

#

What is a "root module"?

#

How do you reference an output called "instance_ip" from a module named "web_server"?

#

Which backend supports state locking via DynamoDB?

#

What will happen if you delete the terraform.tfstate file locally?

#

What is the locals block used for?

#

How can you specify that a variable must pass a specific condition (Validation)?

#

Which command removes an item from the Terraform state without destroying the real resource?

#

What does the prevent_destroy lifecycle argument do?

#

Which function allows you to select an item from a list safely?

#

What is the purpose of the moved block in Terraform 1.1+?

#

What does the Splat expression [*] do?

#

How do you assign the dependency of a module explicitly?

#

Which command lists all resources in the state file?

#

What happens if you run terraform apply on a configuration that is already applied and unchanged?

Quiz Progress

0 / 0 questions answered (0%)

0 correct


📚 Study Guides


📬 Weekly DevOps, Cloud & Gen AI quizzes & guides