Bird
0
0

You wrote this AWS CLI command to create a VPC:

medium📝 Debug Q6 of 15
AWS - VPC Fundamentals
You wrote this AWS CLI command to create a VPC:
aws ec2 create-vpc --cidr 10.0.0.0/16

Why does this command fail?
ACIDR block 10.0.0.0/16 is invalid
BThe option should be --cidr-block, not --cidr
CYou must specify a subnet with the command
DThe command requires a region parameter
Step-by-Step Solution
Solution:
  1. Step 1: Check AWS CLI option names

    The correct option for CIDR is '--cidr-block', not '--cidr'.
  2. Step 2: Validate other parts

    The CIDR is valid, subnet is not required here, region is optional if configured.
  3. Final Answer:

    The option should be --cidr-block, not --cidr -> Option B
  4. Quick Check:

    Correct CLI option = --cidr-block [OK]
Quick Trick: Use --cidr-block, not --cidr, in AWS CLI VPC commands [OK]
Common Mistakes:
  • Using --cidr instead of --cidr-block
  • Thinking subnet is mandatory in create-vpc
  • Assuming region must be specified every time

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes