Bird
0
0

Which setup is best?

hard📝 Application Q15 of 15
AWS - CloudWatch
You want to organize logs from multiple microservices in AWS CloudWatch. Each microservice should have its own log stream, but all streams must be grouped for easy management and retention. Which setup is best?
AStore logs outside CloudWatch to avoid managing groups and streams
BCreate one log group for all microservices, and create separate log streams for each microservice inside it
CCreate one log group per microservice and put all logs in a single stream inside each group
DCreate one log stream per microservice without using log groups
Step-by-Step Solution
Solution:
  1. Step 1: Understand grouping and streaming roles

    Log groups organize logs for management and retention. Log streams separate logs by source within groups.
  2. Step 2: Choose best structure for microservices

    Using one log group for all microservices and separate streams per microservice allows easy management and searching.
  3. Step 3: Evaluate other options

    Create one log stream per microservice without using log groups lacks grouping, C creates many groups complicating retention, A ignores CloudWatch benefits.
  4. Final Answer:

    Create one log group for all microservices, and create separate log streams for each microservice inside it -> Option B
  5. Quick Check:

    Group = container; streams = sources [OK]
Quick Trick: Group logs by app, stream by source inside group [OK]
Common Mistakes:
MISTAKES
  • Skipping log groups and using only streams
  • Creating too many log groups unnecessarily
  • Ignoring CloudWatch log management features

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes