Bird
0
0

You want to add secure communication (TLS encryption) to an existing microservice without changing its code. How does the Sidecar pattern help achieve this?

hard📝 Conceptual Q15 of 15
Microservices - Advanced Patterns
You want to add secure communication (TLS encryption) to an existing microservice without changing its code. How does the Sidecar pattern help achieve this?
ABy rewriting the service code to include TLS libraries
BBy deploying a Sidecar proxy that handles TLS encryption and decryption alongside the service
CBy moving the service to a secure server only
DBy disabling all external communication to the service
Step-by-Step Solution
Solution:
  1. Step 1: Understand Sidecar role in adding features

    The Sidecar can run a proxy that manages TLS encryption without changing the main service code.
  2. Step 2: Compare other options with Sidecar benefits

    Rewriting code, moving servers, or disabling communication do not use Sidecar advantages.
  3. Final Answer:

    By deploying a Sidecar proxy that handles TLS encryption and decryption alongside the service -> Option B
  4. Quick Check:

    Sidecar proxy adds TLS without code change = B [OK]
Quick Trick: Sidecar proxy adds TLS, no code rewrite needed [OK]
Common Mistakes:
  • Thinking code rewrite is needed for TLS
  • Assuming moving servers secures communication alone
  • Believing disabling communication is a solution

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes