Bird
0
0

What is the main difference between a service mesh and a library-based approach in Kubernetes?

easy📝 Conceptual Q11 of 15
Kubernetes - Service Mesh
What is the main difference between a service mesh and a library-based approach in Kubernetes?
AService mesh requires changing app code, library-based works externally
BService mesh is for storage, library-based is for networking
CService mesh only works with databases, library-based only with APIs
DService mesh manages communication outside the app, library-based adds code inside the app
Step-by-Step Solution
Solution:
  1. Step 1: Understand service mesh role

    A service mesh manages communication between services outside the app, usually with sidecar proxies.
  2. Step 2: Understand library-based approach

    Library-based approach adds communication features inside the app code itself.
  3. Final Answer:

    Service mesh manages communication outside the app, library-based adds code inside the app -> Option D
  4. Quick Check:

    Service mesh = external, library-based = internal [OK]
Quick Trick: Service mesh is external, library-based is inside app code [OK]
Common Mistakes:
  • Confusing which approach requires code changes
  • Thinking service mesh only works with databases
  • Mixing up external vs internal communication handling

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes