Bird
0
0

You are designing a microservice system where services communicate frequently. How can you ensure security spans all services without causing excessive latency?

hard📝 Trade-off Q8 of 15
Microservices - Authentication and Authorization
You are designing a microservice system where services communicate frequently. How can you ensure security spans all services without causing excessive latency?
ASkip security checks on internal calls to improve speed
BUse lightweight token validation and mutual TLS for service-to-service calls
COnly secure the gateway and trust all internal traffic
DDisable encryption to reduce processing time
Step-by-Step Solution
Solution:
  1. Step 1: Balance security and performance

    Security must be strong but efficient to avoid slowing down service communication.
  2. Step 2: Apply lightweight token validation and mutual TLS

    Lightweight token checks verify identity quickly, and mutual TLS encrypts and authenticates connections between services, ensuring secure and fast communication.
  3. Final Answer:

    Use lightweight token validation and mutual TLS for service-to-service calls -> Option B
  4. Quick Check:

    Secure and efficient inter-service calls = A [OK]
Quick Trick: Combine token checks with mutual TLS for secure speed [OK]
Common Mistakes:
MISTAKES
  • Skipping internal security for speed
  • Trusting gateway alone
  • Disabling encryption to save time

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes