Bird
0
0

You run this command:

medium📝 Debug Q6 of 15
AWS - CloudWatch
You run this command:
aws logs create-log-stream --log-group-name MyGroup --log-stream-name Stream1

But receive an error: ResourceAlreadyExistsException. What is the likely cause?
AThe log stream name is invalid
BThe log group MyGroup does not exist
CYou do not have permission to create log streams
DThe log stream Stream1 already exists in MyGroup
Step-by-Step Solution
Solution:
  1. Step 1: Interpret the ResourceAlreadyExistsException error

    This error means the resource you are trying to create already exists.
  2. Step 2: Match error to log stream existence

    Since the command is to create a log stream, the error indicates Stream1 already exists in MyGroup.
  3. Final Answer:

    The log stream Stream1 already exists in MyGroup -> Option D
  4. Quick Check:

    ResourceAlreadyExistsException = resource exists [OK]
Quick Trick: ResourceAlreadyExistsException means duplicate resource [OK]
Common Mistakes:
MISTAKES
  • Assuming group missing causes this error
  • Confusing permission errors with existence errors
  • Thinking invalid name causes this error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes