Bird
0
0

Which AWS CLI command correctly adds a tag with key Project and value Alpha to a resource with ID i-1234567890abcdef0?

easy📝 Syntax Q3 of 15
AWS - Account and Billing
Which AWS CLI command correctly adds a tag with key Project and value Alpha to a resource with ID i-1234567890abcdef0?
Aaws ec2 add-tags --resource i-1234567890abcdef0 --tag Project=Alpha
Baws ec2 create-tags --resources i-1234567890abcdef0 --tags Key=Project,Value=Alpha
Caws ec2 tag-resource --id i-1234567890abcdef0 --key Project --value Alpha
Daws ec2 set-tags --resource i-1234567890abcdef0 --tags Project:Alpha
Step-by-Step Solution
Solution:
  1. Step 1: Recall correct AWS CLI syntax for tagging

    The command uses 'create-tags' with '--resources' and '--tags' parameters.
  2. Step 2: Verify correct key-value format

    Tags are specified as Key=Project,Value=Alpha.
  3. Final Answer:

    aws ec2 create-tags --resources i-1234567890abcdef0 --tags Key=Project,Value=Alpha -> Option B
  4. Quick Check:

    Correct CLI syntax = aws ec2 create-tags --resources i-1234567890abcdef0 --tags Key=Project,Value=Alpha [OK]
Quick Trick: Use 'create-tags' with Key= and Value= pairs [OK]
Common Mistakes:
MISTAKES
  • Using 'add-tags' instead of 'create-tags'
  • Incorrect parameter names like --resource
  • Wrong tag format like Project=Alpha

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes