🔥 3-day streak
HashiCorp Certified: Terraform Associate (004)9 / 150
Question 9 of 150

Your team must always deploy EC2 instances using the most recent official Ubuntu AMI, which changes frequently. You do not manage the AMI itself with Terraform, but you need its ID available in your configuration so the aws_instance resource can reference it. Which HCL construct should you use to obtain the AMI ID?

Reviewed for accuracy · Report an issueNext question