Bird
0
0

You want to add monitoring and security features to multiple microservices without changing their code. How does the sidecar proxy pattern help solve this problem at scale?

hard📝 Trade-off Q15 of 15
Microservices - Service Mesh
You want to add monitoring and security features to multiple microservices without changing their code. How does the sidecar proxy pattern help solve this problem at scale?
ABy centralizing monitoring and security in a single proxy for all services
BBy deploying a sidecar proxy with each service instance to handle monitoring and security independently
CBy rewriting each service to include monitoring and security code
DBy removing proxies and letting clients handle monitoring
Step-by-Step Solution
Solution:
  1. Step 1: Understand scaling with sidecar proxies

    Deploying a sidecar proxy alongside each service instance allows independent handling of monitoring and security without modifying service code.
  2. Step 2: Compare with other options

    Rewriting services is costly and error-prone; centralizing in one proxy creates a bottleneck; removing proxies loses control.
  3. Final Answer:

    By deploying a sidecar proxy with each service instance to handle monitoring and security independently -> Option B
  4. Quick Check:

    Sidecar per service instance scales features independently = C [OK]
Quick Trick: Sidecar per service instance scales features well [OK]
Common Mistakes:
MISTAKES
  • Thinking one proxy can handle all services centrally
  • Assuming code changes are needed for features
  • Ignoring scalability and bottleneck issues

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes