Bird
0
0

Which AWS CLI command correctly creates a VPC with the CIDR block 192.168.0.0/16 and tags it with Name=ProdVPC?

easy📝 Syntax Q3 of 15
AWS - VPC Fundamentals
Which AWS CLI command correctly creates a VPC with the CIDR block 192.168.0.0/16 and tags it with Name=ProdVPC?
Aaws ec2 create-vpc --cidr 192.168.0.0/16 --tags Name=ProdVPC
Baws ec2 create-vpc --cidr-block 192.168.0.0/16 --tag-specifications 'ResourceType=vpc,Tags=[{Key=Name,Value=ProdVPC}]'
Caws ec2 create-vpc --cidr-block 192.168.0.0/16 --tags Name=ProdVPC
Daws ec2 create-vpc --cidr 192.168.0.0/16 --tag-specifications 'ResourceType=VPC,Tags=[{Key=Name,Value=ProdVPC}]'
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct parameter for CIDR block

    The correct parameter is --cidr-block, not --cidr.
  2. Step 2: Tag specification syntax

    Tags must be specified using --tag-specifications with ResourceType=vpc and proper JSON syntax.
  3. Final Answer:

    aws ec2 create-vpc --cidr-block 192.168.0.0/16 --tag-specifications 'ResourceType=vpc,Tags=[{Key=Name,Value=ProdVPC}]' -> Option B
  4. Quick Check:

    Use --cidr-block and --tag-specifications for tagging [OK]
Quick Trick: Use --cidr-block and --tag-specifications for VPC creation [OK]
Common Mistakes:
MISTAKES
  • Using --cidr instead of --cidr-block
  • Incorrect tag specification format
  • Wrong capitalization in ResourceType

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes