Skip to content

Terraform Advanced Quiz

Back to Quiz Home

Welcome! 🚀
Test your expertise with advanced Terraform concepts.

Instructions:

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

Which meta-argument creates multiple resource instances based on a map or set of strings?

#

What command helps you to manipulate the state file, such as renaming a resource without destroying it?

#

What is "Drift" in the context of Terraform?

#

Which block is used to configure settings for Terraform itself, such as the required version or backend?

#

What is the purpose of terraform taint?

#

Why should you prefer user_data over provisioners (local-exec/remote-exec)?

#

Which built-in function is used to create a subnet CIDR from a VPC CIDR?

#

What is a Terraform Workspace used for?

#

How can you import an existing AWS EC2 instance into Terraform state?

#

Which feature allows you to generate nested blocks (like ingress rules) dynamically?

#

What is the purpose of the .terraform.lock.hcl file?

#

How do you interactively evaluate Terraform expressions?

#

What environment variable enables detailed logging?

#

How do you manage resources in multiple regions within the same configuration?

#

Which function allows reading a file and replacing template variables?

#

What is create_before_destroy?

#

Which command force-unlocks a stuck state lock?

#

What is a generic way to mark a variable as sensitive?

#

How do you decode a YAML string into a map/object?

#

What is null_resource used for?

Quiz Progress

0 / 0 questions answered (0%)

0 correct


📚 Study Guides


📬 Weekly DevOps, Cloud & Gen AI quizzes & guides