Bird
0
0

Which of the following is the correct JSON snippet to add a route to a route table directing all traffic (0.0.0.0/0) to an Internet Gateway with ID igw-123abc?

easy📝 Configuration Q3 of 15
AWS - VPC Fundamentals
Which of the following is the correct JSON snippet to add a route to a route table directing all traffic (0.0.0.0/0) to an Internet Gateway with ID igw-123abc?
A{\"DestinationCidrBlock\": \"0.0.0.0/0\", \"GatewayId\": \"igw-123abc\"}
B{\"Destination\": \"0.0.0.0/0\", \"Target\": \"igw-123abc\"}
C{\"CidrBlock\": \"0.0.0.0/0\", \"InternetGatewayId\": \"igw-123abc\"}
D{\"RouteDestination\": \"0.0.0.0/0\", \"Gateway\": \"igw-123abc\"}
Step-by-Step Solution
Solution:
  1. Step 1: Recall AWS route table route JSON format

    The correct keys are DestinationCidrBlock and GatewayId for internet routes.
  2. Step 2: Compare options

    {\"DestinationCidrBlock\": \"0.0.0.0/0\", \"GatewayId\": \"igw-123abc\"} matches AWS API format exactly; others use incorrect keys.
  3. Final Answer:

    Correct JSON with DestinationCidrBlock and GatewayId -> Option A
  4. Quick Check:

    Route JSON keys = DestinationCidrBlock & GatewayId [OK]
Quick Trick: Use DestinationCidrBlock and GatewayId keys in route JSON [OK]
Common Mistakes:
  • Using wrong JSON keys like Destination or Target
  • Confusing GatewayId with InternetGatewayId
  • Incorrect JSON structure for routes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes