Bird
0
0

You want to improve observability and security for a microservice without changing its code. How does the Ambassador pattern help achieve this?

hard📝 Trade-off Q15 of 15
Microservices - Advanced Patterns
You want to improve observability and security for a microservice without changing its code. How does the Ambassador pattern help achieve this?
ABy replacing the microservice with a new secure version
BBy modifying the service code to include security and logging libraries
CBy adding a sidecar proxy that handles logging, retries, and TLS encryption transparently
DBy deploying a centralized monitoring service that polls the microservice directly
Step-by-Step Solution
Solution:
  1. Step 1: Identify how Ambassador pattern enhances observability and security

    The Ambassador pattern uses a sidecar proxy to add features like logging, retries, and TLS without changing the main service code.
  2. Step 2: Compare with other options

    Modifying service code, polling directly, or replacing service do not align with Ambassador pattern benefits.
  3. Final Answer:

    By adding a sidecar proxy that handles logging, retries, and TLS encryption transparently -> Option C
  4. Quick Check:

    Ambassador adds security and observability via sidecar proxy [OK]
Quick Trick: Ambassador adds features without changing service code [OK]
Common Mistakes:
  • Thinking service code must be changed
  • Confusing Ambassador with centralized monitoring
  • Assuming service replacement is needed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes