Bird
0
0

To trigger an alert when a Docker container's health status changes to 'unhealthy', which Docker event should you monitor?

hard📝 Application Q8 of 15
Docker - Logging and Monitoring
To trigger an alert when a Docker container's health status changes to 'unhealthy', which Docker event should you monitor?
Acontainer.health_status
Bcontainer.die
Ccontainer.unhealthy
Dcontainer.health_status: unhealthy
Step-by-Step Solution
Solution:
  1. Step 1: Understand Docker events

    Docker emits events with specific topics and statuses.
  2. Step 2: Identify health status event

    The event 'container.health_status: unhealthy' is emitted when health changes to unhealthy.
  3. Final Answer:

    container.health_status: unhealthy -> Option D
  4. Quick Check:

    Listen for 'container.health_status: unhealthy' event [OK]
Quick Trick: Monitor 'container.health_status: unhealthy' event for alerts [OK]
Common Mistakes:
  • Listening to generic 'container.die' event
  • Using non-existent event names like 'container.unhealthy'
  • Ignoring event status suffix

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Docker Quizzes