Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Microservices

Microservices Interview Questions – Top 200

A curated list of the most commonly asked Microservices interview questions, ranging from beginner to advanced architecture and distributed systems topics.

Table of Contents

  1. Fundamentals
  2. Architecture and Design
  3. Communication
  4. Data Management
  5. Distributed Systems
  6. Security
  7. Scalability and Performance
  8. Deployment and DevOps
  9. Observability
  10. Resilience and Reliability
  11. Testing
  12. Event-Driven Architecture
  13. Cloud and Kubernetes
  14. Java and Spring Boot
  15. Advanced and Difficult Questions

1. Fundamentals

  1. What are microservices?
  2. What problems do microservices solve?
  3. Difference between monolith and microservices?
  4. Advantages of microservices?
  5. Disadvantages of microservices?
  6. When should you NOT use microservices?
  7. What are the characteristics of microservices?
  8. What is a bounded context?
  9. What is domain-driven design (DDD)?
  10. What is loose coupling?
  11. What is high cohesion?
  12. What is service autonomy?
  13. What is independent deployment?
  14. What is decentralized governance?
  15. What is decentralized data management?
  16. What is Conway’s Law?
  17. What is the strangler pattern?
  18. What is service decomposition?
  19. How do you identify service boundaries?
  20. What is the difference between SOA and microservices?

2. Architecture and Design

  1. What are design principles of microservices?
  2. What is API-first design?
  3. What is contract-first development?
  4. What is a hexagonal architecture?
  5. What is clean architecture?
  6. What is CQRS?
  7. What is event sourcing?
  8. What is a sidecar pattern?
  9. What is the ambassador pattern?
  10. What is backend-for-frontend (BFF)?
  11. What is API composition?
  12. What is aggregation pattern?
  13. What is database-per-service?
  14. Shared database vs database-per-service?
  15. What is anti-corruption layer?
  16. What is transactional outbox pattern?
  17. What is saga pattern?
  18. Choreography vs orchestration?
  19. What is service mesh?
  20. What is API Gateway?

3. Communication

  1. Synchronous vs asynchronous communication?
  2. REST vs gRPC?
  3. REST vs messaging?
  4. What is idempotency?
  5. What is eventual consistency?
  6. What are HTTP status codes?
  7. What is correlation ID?
  8. What is request tracing?
  9. What is service discovery?
  10. Client-side vs server-side discovery?
  11. What is load balancing?
  12. What is message broker?
  13. Kafka vs RabbitMQ?
  14. What is backpressure?
  15. What is retry mechanism?
  16. What is exponential backoff?
  17. What is dead-letter queue?
  18. What is circuit breaker?
  19. What is bulkhead pattern?
  20. What is timeout management?

4. Data Management

  1. How is data managed in microservices?
  2. Why should each service own its database?
  3. SQL vs NoSQL in microservices?
  4. What is distributed transaction?
  5. Why are distributed transactions difficult?
  6. What is two-phase commit?
  7. Why is 2PC avoided in microservices?
  8. What is CAP theorem?
  9. What is BASE consistency?
  10. ACID vs BASE?
  11. What is data replication?
  12. What is sharding?
  13. What is read replica?
  14. What is cache-aside pattern?
  15. What is distributed caching?
  16. Redis use cases in microservices?
  17. What is schema evolution?
  18. What is data synchronization?
  19. How do you handle schema migration?
  20. How do you avoid data inconsistency?

5. Distributed Systems

  1. What makes distributed systems hard?
  2. What is network partition?
  3. What is split-brain problem?
  4. What is consensus?
  5. What is leader election?
  6. What is distributed locking?
  7. What is clock skew?
  8. What is distributed tracing?
  9. What is service registry?
  10. What is service heartbeat?
  11. What is quorum?
  12. What is eventual consistency in practice?
  13. What are distributed failures?
  14. What is failover?
  15. What is graceful degradation?
  16. What is chaos engineering?
  17. What is the fallacies of distributed computing?
  18. What is horizontal scaling?
  19. What is vertical scaling?
  20. How do microservices fail differently than monoliths?

6. Security

  1. How do you secure microservices?
  2. What is OAuth2?
  3. What is OpenID Connect?
  4. JWT vs session authentication?
  5. What is mTLS?
  6. What is zero trust architecture?
  7. What is API security?
  8. What is rate limiting?
  9. What is API throttling?
  10. What is RBAC?
  11. What is ABAC?
  12. How do services authenticate each other?
  13. What is secret management?
  14. What is Vault?
  15. How do you secure Kafka?
  16. What is token propagation?
  17. What are common security vulnerabilities?
  18. What is OWASP?
  19. How do you secure communication channels?
  20. What is certificate rotation?

7. Scalability and Performance

  1. How do microservices scale?
  2. Stateless vs stateful services?
  3. What is autoscaling?
  4. What is caching strategy?
  5. What is connection pooling?
  6. What is thread pool exhaustion?
  7. What is reactive programming?
  8. What is non-blocking I/O?
  9. What is performance bottleneck analysis?
  10. What is load shedding?
  11. What is request batching?
  12. What is asynchronous processing?
  13. What is high throughput architecture?
  14. What is low latency architecture?
  15. What is memory leak in microservices?
  16. How do you optimize startup time?
  17. What is cold start problem?
  18. How do you handle traffic spikes?
  19. What are performance anti-patterns?
  20. What metrics matter most?

8. Deployment and DevOps

  1. What is CI/CD?
  2. Blue-green deployment?
  3. Canary deployment?
  4. Rolling deployment?
  5. What is immutable infrastructure?
  6. What is Infrastructure as Code?
  7. What is Docker?
  8. Why are containers important?
  9. What is Kubernetes?
  10. What is Helm?
  11. What is service orchestration?
  12. What is configuration management?
  13. What is feature toggle?
  14. What is GitOps?
  15. What is deployment rollback?
  16. What is container orchestration?
  17. What is init container?
  18. What is sidecar container?
  19. What is liveness probe?
  20. What is readiness probe?

9. Observability

  1. What is observability?
  2. Logging vs monitoring vs tracing?
  3. What is centralized logging?
  4. What is distributed tracing?
  5. What is OpenTelemetry?
  6. What is Prometheus?
  7. What is Grafana?
  8. What are golden signals?
  9. What are SLIs, SLOs, and SLAs?
  10. What is alert fatigue?
  11. What is structured logging?
  12. What is log correlation?
  13. What metrics should each service expose?
  14. What is health check endpoint?
  15. What is tracing propagation?
  16. What is span?
  17. What is trace sampling?
  18. What is root cause analysis?
  19. What is anomaly detection?
  20. What are observability best practices?

10. Resilience and Reliability

  1. How do you build resilient microservices?
  2. What is retry storm?
  3. What is cascading failure?
  4. What is resilience testing?
  5. What is fault tolerance?
  6. What is disaster recovery?
  7. What is multi-region deployment?
  8. What is active-active architecture?
  9. What is active-passive architecture?
  10. What is self-healing infrastructure?

11. Testing

  1. What types of testing are used in microservices?
  2. What is contract testing?
  3. What is consumer-driven contract testing?
  4. What is integration testing?
  5. What is end-to-end testing?
  6. What is test container?
  7. How do you mock dependencies?
  8. What is chaos testing?
  9. What is performance testing?
  10. What is reliability testing?

12. Advanced and Difficult Questions

  1. How would you migrate a monolith to microservices?
  2. How do you debug production issues in distributed systems?
  3. How do you handle cross-service transactions?
  4. How do you prevent cascading failures?
  5. How would you design a globally distributed system?
  6. How do you achieve exactly-once processing?
  7. How do you design idempotent APIs?
  8. How do you handle versioning in APIs?
  9. How would you design a payment system?
  10. How would you design a high-scale notification system?
  11. How would you design a real-time fraud detection platform?
  12. How would you design microservices for banking systems?
  13. How do you optimize Kafka for massive throughput?
  14. How do you handle schema evolution in event-driven systems?
  15. What are the biggest anti-patterns in microservices?
  16. How do you handle distributed tracing at scale?
  17. How do you ensure consistency across services?
  18. How do you design multi-tenant microservices?
  19. How do you reduce operational complexity?
  20. What are the biggest lessons learned from production microservices?

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors