Bird
0
0

Given the following AWS CLI command, what will be the effect?

medium📝 Predict Output Q13 of 15
AWS - Account and Billing
Given the following AWS CLI command, what will be the effect?
aws ec2 create-tags --resources i-0abcd1234efgh5678 --tags Key=Project,Value=Alpha Key=Owner,Value=TeamA
AThe instance will have two tags: Project=Alpha and Owner=TeamA
BThe command will fail due to multiple tags in one command
COnly the last tag Owner=TeamA will be applied
DThe tags will overwrite existing tags on the instance
Step-by-Step Solution
Solution:
  1. Step 1: Understand AWS CLI tagging with multiple tags

    The create-tags command supports multiple tags by repeating the Key=Value pairs.
  2. Step 2: Analyze the command effect

    Both tags Project=Alpha and Owner=TeamA will be added to the instance.
  3. Final Answer:

    The instance will have two tags: Project=Alpha and Owner=TeamA -> Option A
  4. Quick Check:

    Multiple tags added together [OK]
Quick Trick: Multiple tags can be added by repeating Key=Value pairs [OK]
Common Mistakes:
  • Assuming only one tag can be added at a time
  • Thinking the command fails with multiple tags
  • Believing tags overwrite all existing tags

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes