Bird
0
0

In Kubernetes, where do containers typically write their logs?

easy📝 Conceptual Q11 of 15
Kubernetes - Monitoring and Logging
In Kubernetes, where do containers typically write their logs?
ADirectly to files inside the container's filesystem
BTo a database inside the container
CTo a remote logging server
DTo stdout and stderr streams
Step-by-Step Solution
Solution:
  1. Step 1: Understand container logging basics

    Containers are designed to write logs to standard output (stdout) and standard error (stderr) streams instead of files inside the container.
  2. Step 2: Recall Kubernetes logging capture method

    Kubernetes captures these stdout and stderr streams from containers to manage logs effectively.
  3. Final Answer:

    To stdout and stderr streams -> Option D
  4. Quick Check:

    Container logs = stdout/stderr [OK]
Quick Trick: Remember containers log to stdout/stderr, not files [OK]
Common Mistakes:
  • Thinking logs are stored inside container files
  • Assuming logs go directly to remote servers
  • Confusing stdout/stderr with database logging

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes