Bird
0
0

You want to monitor multiple containers and alert if any container's memory usage exceeds 80%. Which approach is best?

hard📝 Workflow Q8 of 15
Docker - Logging and Monitoring
You want to monitor multiple containers and alert if any container's memory usage exceeds 80%. Which approach is best?
AManually run 'docker stats' and watch the output continuously
BUse a monitoring tool that collects docker stats and triggers alerts on thresholds
CRestart containers every hour to reset memory usage
DDisable logging to reduce memory usage
Step-by-Step Solution
Solution:
  1. Step 1: Understand monitoring needs for multiple containers

    Manual watching is inefficient and error-prone for many containers.
  2. Step 2: Identify best practice

    Automated tools collect stats and send alerts when thresholds are crossed.
  3. Final Answer:

    Use a monitoring tool that collects docker stats and triggers alerts on thresholds -> Option B
  4. Quick Check:

    Automated monitoring with alerts is best [OK]
Quick Trick: Automate monitoring and alerting for efficiency [OK]
Common Mistakes:
  • Relying on manual monitoring
  • Restarting containers unnecessarily
  • Disabling logs to fix memory issues

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes