Bird
0
0

Why does Istio use a sidecar proxy pattern instead of modifying application code directly?

hard📝 Conceptual Q10 of 15
Microservices - Service Mesh
Why does Istio use a sidecar proxy pattern instead of modifying application code directly?
ATo allow applications to run only on specific nodes
BTo separate networking logic from business logic without changing app code
CTo increase application startup time for better stability
DTo reduce the number of containers running in the cluster
Step-by-Step Solution
Solution:
  1. Step 1: Understand sidecar proxy purpose

    Istio uses sidecars to handle networking features like routing and security without touching app code.
  2. Step 2: Evaluate other options

    Sidecars do not reduce container count, increase startup time intentionally, or restrict node scheduling.
  3. Final Answer:

    To separate networking logic from business logic without changing app code -> Option B
  4. Quick Check:

    Sidecar pattern = separate networking from app code [OK]
Quick Trick: Sidecars keep app code clean by handling networking separately [OK]
Common Mistakes:
MISTAKES
  • Thinking sidecars reduce container count
  • Believing sidecars slow startup on purpose
  • Assuming sidecars control node placement

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes