Bird
0
0

What is the output of this AWS CLI command if the log group MyGroup does not exist?

medium📝 service behavior Q5 of 15
AWS - CloudWatch
What is the output of this AWS CLI command if the log group MyGroup does not exist?
aws logs describe-log-streams --log-group-name MyGroup
AAn error indicating the log group does not exist
BAn empty list of log streams
CA list of all log streams in all groups
DA list of log streams with default values
Step-by-Step Solution
Solution:
  1. Step 1: Understand describe-log-streams behavior

    If the specified log group does not exist, AWS CLI returns an error indicating the group is missing.
  2. Step 2: Confirm no empty or default output

    The command does not return empty lists or streams from other groups; it strictly requires the group to exist.
  3. Final Answer:

    An error indicating the log group does not exist -> Option A
  4. Quick Check:

    Describe streams for missing group = error [OK]
Quick Trick: Describe-log-streams errors if group missing [OK]
Common Mistakes:
  • Expecting empty list instead of error
  • Thinking it lists streams from other groups
  • Assuming default streams are returned

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes