HashiCorpHashiCorp
TA-002-P · Question #239
TA-002-P Question #239: Real Exam Question with Answer & Explanation
Sign in or unlock TA-002-P to reveal the answer and full explanation for question #239. The question stem and answer options stay visible for context.
Understand Terraform basics
Question
Given the below resource configuration - resource "aws_instance" "web" { # ... count = 4 } What does the terraform resource address aws_instance.web refer to?
Options
- AIt refers to all 4 web instances , together , for further individual segregation , indexing is
- BIt refers to the last web EC2 instance , as by default , if no index is provided , the last / N-
- CIt refers to the first web EC2 instance out of the 4 ,as by default , if no index is provided ,
- DThe above will result in a syntax error , as it is not syntactically correct . Resources
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
#count meta-argument#resource addressing#resource collection#Terraform language basics