Skip to main content

How do microservices handle security?

Entry Microservices
Quick Answer Security in microservices: use JWT or OAuth2 for authentication at the API gateway. Enforce authorization in each service (don't trust just because the gateway passed it). Use mTLS for service-to-service communication. Secrets management via Vault or cloud secret stores. Network policies to restrict which services can talk to which.

Answer

Security includes authentication (OAuth2, JWT), authorization, TLS communication, API Gateway enforcement, and service-to-service authentication.

S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice