Terraform for AWS Networking Quiz

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

Quiz covering Network Automation

What you'll be asked

  1. Which command is used to initialize a Terraform working directory by downloading necessary provider plugins?
  2. When defining an AWS VPC in Terraform, which argument is required in the 'aws_vpc' resource block?
  3. In Terraform, how can you ensure that a specific resource is created only if a variable is set to true?
  4. What is the purpose of the 'terraform.tfstate' file in an AWS networking deployment?
  5. You have a module that creates a subnet. You want to pass the VPC ID from your main configuration into the module. How do you reference the VPC ID from an 'aws_vpc' resource named 'main'?

Answers and explanations come after you submit.