Bird
0
0

Why does Kubernetes use TCP probes instead of HTTP probes in some cases?

hard📝 Conceptual Q10 of 15
Kubernetes - Health Checks and Probes
Why does Kubernetes use TCP probes instead of HTTP probes in some cases?
ABecause TCP probes are faster than HTTP probes
BBecause some applications only accept TCP connections without HTTP protocol
CBecause HTTP probes require extra configuration for ports
DBecause TCP probes can check disk usage
Step-by-Step Solution
Solution:
  1. Step 1: Understand probe protocol differences

    HTTP probes require the application to respond to HTTP requests, TCP probes only check if port is open.
  2. Step 2: Identify use case for TCP probes

    Some apps do not speak HTTP but accept TCP connections, so TCP probes are used.
  3. Final Answer:

    Because some applications only accept TCP connections without HTTP protocol -> Option B
  4. Quick Check:

    TCP probes used for non-HTTP apps = Because some applications only accept TCP connections without HTTP protocol [OK]
Quick Trick: Use TCP probes for apps without HTTP protocol [OK]
Common Mistakes:
  • Assuming TCP probes are always faster
  • Thinking TCP probes check disk or CPU
  • Confusing HTTP probe configuration complexity

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes