HashiCorpHashiCorp
TA-002-P · Question #247
TA-002-P Question #247: Real Exam Question with Answer & Explanation
Sign in or unlock TA-002-P to reveal the answer and full explanation for question #247. The question stem and answer options stay visible for context.
Understand Terraform basics
Question
Given the Terraform configuration below, in which order will the resources be created? 1. resource "aws_instance" "web_server" 2. { 3. ami = "ami-b374d5a5" 4. instance_type = "t2.micro" 5. } 6. resource "aws_eip" "web_server_ip" 7. { 8. vpc = true instance = aws_instance.web_server.id 9. }
Options
- Aaws_eip will be created first
- Baws_eip will be created first
- CResources will be created simultaneously
- Daws_instance will be created first
Unlock TA-002-P to see the answer
You've previewed enough free TA-002-P questions. Unlock TA-002-P for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Terraform dependencies#Resource creation order#Implicit dependencies#Dependency graph