Terraform Fundamentals Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Infrastructure as Code

What you'll be asked

  1. Which command is used to initialize a new or existing Terraform working directory by downloading necessary provider plugins?
  2. What is the primary purpose of the 'terraform plan' command?
  3. When defining infrastructure, what is the significance of the Terraform state file (terraform.tfstate)?
  4. Which block type is used to prevent a resource from being destroyed during a 'terraform destroy' or a resource update?
  5. You have a Terraform module where a resource depends on another, but Terraform cannot automatically infer the dependency. How should you explicitly define this dependency?

Answers and explanations come after you submit.