Free quiz · random questions each time

Terraform Associate (004): Terraform configuration Quiz

Questions on objective 4 of the Terraform Associate (004) exam, "Terraform configuration". Every attempt draws a new set, with an explanation and an official docs link for every answer. Written by our team from the official objectives; not real exam questions.

Loading the exam settings…

Sample questions

  1. A team must look up the ID of an existing VPC that another team manages, without Terraform ever changing or deleting that VPC. Which block should they use?
  2. How do you refer to the id attribute of a data source declared as data "aws_ami" "ubuntu" { ... }?
  3. Running terraform destroy deletes the real infrastructure objects that a configuration's data sources read.
  4. Which statements describe the two labels in resource "aws_instance" "web" { ... }? (Choose two.)
  5. A configuration needs the current AWS account ID to build an IAM policy ARN. Terraform must not create anything to get it. What is the right approach?

Exam study guide · Course

All quizzes · Sign in to save your scores and get the questions you miss back in Daily Review.

Was this page helpful?

Report a mistake