Bird
0
0

Given the following AWS CLI command:

medium📝 Predict Output Q4 of 15
AWS - Account and Billing
Given the following AWS CLI command:
aws ec2 create-tags --resources i-0abcd1234efgh5678 --tags Key=Department,Value=Finance

What will be the effect of this command?
AIt creates a new EC2 instance named 'Finance'
BIt deletes the tag 'Department' from the EC2 instance
CIt lists all tags for the EC2 instance
DIt adds a tag with key 'Department' and value 'Finance' to the specified EC2 instance
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command purpose

    'create-tags' adds or updates tags on specified resources.
  2. Step 2: Analyze the tag details

    Key=Department and Value=Finance means the tag is added with these values.
  3. Final Answer:

    It adds a tag with key 'Department' and value 'Finance' to the specified EC2 instance -> Option D
  4. Quick Check:

    Command effect = Add tag [OK]
Quick Trick: create-tags adds or updates tags on resources [OK]
Common Mistakes:
MISTAKES
  • Thinking it deletes tags
  • Confusing tag creation with instance creation
  • Assuming it lists tags

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes