Bird
0
0

Which of the following is the correct way to associate a route table with a subnet in AWS CLI?

easy📝 Configuration Q12 of 15
AWS - VPC Fundamentals
Which of the following is the correct way to associate a route table with a subnet in AWS CLI?
Aaws ec2 create-route-table --subnet-id subnet-12345 --route-table-id rtb-67890
Baws ec2 associate-route-table --subnet-id subnet-12345 --route-table-id rtb-67890
Caws ec2 attach-route-table --subnet subnet-12345 --table rtb-67890
Daws ec2 link-route-table --subnet subnet-12345 --route-table rtb-67890
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct AWS CLI command for association

    The command to associate a route table with a subnet is 'associate-route-table'.
  2. Step 2: Check the correct syntax and parameters

    The correct syntax uses '--subnet-id' and '--route-table-id' flags with IDs.
  3. Final Answer:

    aws ec2 associate-route-table --subnet-id subnet-12345 --route-table-id rtb-67890 -> Option B
  4. Quick Check:

    Associate route table = associate-route-table command [OK]
Quick Trick: Use 'associate-route-table' with subnet and route table IDs [OK]
Common Mistakes:
  • Using 'create-route-table' instead of 'associate-route-table'
  • Wrong parameter names like '--subnet' instead of '--subnet-id'
  • Using non-existent commands like 'attach-route-table'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes