Bird
0
0

Which AWS CLI command correctly allocates a new Elastic IP address in the VPC scope?

easy📝 Syntax Q3 of 15
AWS - EC2 Fundamentals
Which AWS CLI command correctly allocates a new Elastic IP address in the VPC scope?
Aaws ec2 allocate-address --domain vpc
Baws ec2 create-elastic-ip
Caws ec2 allocate-address --domain standard
Daws ec2 assign-address --domain vpc
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct CLI command for Elastic IP allocation

    The correct command is 'allocate-address' with the domain set to 'vpc' for VPC scope.
  2. Step 2: Verify options

    Only aws ec2 allocate-address --domain vpc uses the correct command and domain. Others use invalid commands or wrong domain.
  3. Final Answer:

    aws ec2 allocate-address --domain vpc -> Option A
  4. Quick Check:

    Allocate Elastic IP with 'allocate-address --domain vpc' [OK]
Quick Trick: Use 'allocate-address --domain vpc' to get Elastic IP in VPC [OK]
Common Mistakes:
  • Using 'create-elastic-ip' which is invalid
  • Using 'assign-address' instead of 'allocate-address'
  • Setting domain to 'standard' for VPC Elastic IP

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes