Bird
0
0

What will happen if you try to create a CloudWatch Logs log group with a name that already exists?

medium📝 Predict Output Q5 of 15
AWS - CloudWatch
What will happen if you try to create a CloudWatch Logs log group with a name that already exists?
AThe command will fail with an error
BA new log group with a different name is created automatically
CThe existing log group is overwritten
DThe existing log group is deleted and recreated
Step-by-Step Solution
Solution:
  1. Step 1: Understand log group creation behavior

    Creating a log group with an existing name causes an error because names must be unique.
  2. Step 2: Confirm no automatic changes

    AWS does not overwrite or delete existing groups automatically on creation attempts.
  3. Final Answer:

    The command will fail with an error -> Option A
  4. Quick Check:

    Duplicate log group creation = error [OK]
Quick Trick: Log group names must be unique; duplicates cause errors [OK]
Common Mistakes:
MISTAKES
  • Assuming overwrite happens
  • Thinking AWS renames automatically
  • Believing deletion occurs on duplicate

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes