Bird
0
0

Given this AWS CLI command to create a VPC:

medium📝 Predict Output Q13 of 15
AWS - VPC Fundamentals
Given this AWS CLI command to create a VPC:
aws ec2 create-vpc --cidr-block 10.1.0.0/16 --tag-specifications 'ResourceType=vpc,Tags=[{Key=Name,Value=MyVPC}]'

What will be the result?
AA VPC with CIDR 10.1.0.0/16 and a Name tag 'MyVPC' will be created
BThe command will fail due to incorrect tag syntax
CA VPC with default CIDR will be created ignoring the specified CIDR
DA subnet will be created instead of a VPC
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the CLI command structure

    The command uses 'create-vpc' with a valid CIDR block and correct tag specification syntax.
  2. Step 2: Understand the effect of the command

    This creates a VPC with the given CIDR and applies the Name tag 'MyVPC' to it.
  3. Final Answer:

    A VPC with CIDR 10.1.0.0/16 and a Name tag 'MyVPC' will be created -> Option A
  4. Quick Check:

    Valid CLI command creates VPC with CIDR and tags [OK]
Quick Trick: Tags use 'ResourceType' and 'Tags' in CLI [OK]
Common Mistakes:
MISTAKES
  • Incorrect tag syntax causing command failure
  • Confusing subnet creation with VPC creation
  • Ignoring the CIDR block parameter

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes