Bird
0
0

Given this Terraform snippet to create a VPC:

medium📝 Predict Output Q4 of 15
AWS - VPC Fundamentals
Given this Terraform snippet to create a VPC:
resource "aws_vpc" "main" {
  cidr_block = "10.0.0.0/16"
  enable_dns_support = true
  enable_dns_hostnames = true
}

What will be the CIDR block of the created VPC?
A10.0.0.0/24
B10.0.0.0/16
C192.168.0.0/16
D172.16.0.0/16
Step-by-Step Solution
Solution:
  1. Step 1: Read the cidr_block value in the code

    The snippet sets cidr_block to "10.0.0.0/16" explicitly.
  2. Step 2: Confirm no overrides

    No other code changes the CIDR, so it stays as set.
  3. Final Answer:

    10.0.0.0/16 -> Option B
  4. Quick Check:

    Terraform CIDR block = 10.0.0.0/16 [OK]
Quick Trick: CIDR block is exactly what you set in the config [OK]
Common Mistakes:
MISTAKES
  • Assuming default CIDR instead of specified
  • Confusing /16 with /24 subnet mask
  • Mixing up common private IP ranges

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes