TERRAFORM-ASSOCIATE-004 · Question #261
TERRAFORM-ASSOCIATE-004 Question #261: Real Exam Question with Answer & Explanation
Sign in or unlock TERRAFORM-ASSOCIATE-004 to reveal the answer and full explanation for question #261. The question stem and answer options stay visible for context.
Question
Consider the following Terraform 0.12 configuration snippet: variable "vpc_cidrs" { type = map default = { us-east-1 = "10.0.0.0/16" us-east-2 = "10.1.0.0/16" us-west-1 = "10.2.0.0/16" us-west-2 = "10.3.0.0/16" } } resource "aws_vpc" "shared" { cidr_block = _____________ } How would you define the cidr_block for us-east-1 in the aws_vpc resource using a variable?
Options
- Avar.vpc_cidrs["us-east-1"]
- Bvar.vpc_cidrs.0
- Cvpc_cidrs["us-east-1"]
- Dvar.vpc_cidrs[0]
Unlock TERRAFORM-ASSOCIATE-004 to see the answer
You've previewed enough free TERRAFORM-ASSOCIATE-004 questions. Unlock TERRAFORM-ASSOCIATE-004 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.