Microservice Architecture interview questions
Bounded Contexts, Database per Service, Docker Containerization, Eventual Consistency (Sagas), Kubernetes Orchestration, Message Brokers (Kafka)
99 questions with answers and explanations · 99 flashcards
Questions (page 2 of 2)
- In microservices, how does the 'Circuit Breaker' pattern enhance resilience?Multiple choiceMedium
- In a microservices-based e-commerce system using the Saga pattern, what is a common approach to handle a payment failure when processing an order?Multiple choiceMedium
- Which Kubernetes component is responsible for automatically scaling the number of pods based on observed CPU utilization?Multiple choiceMedium
- Which component in a Saga pattern is responsible for undoing actions if a transaction fails?Multiple choiceMedium
- When designing a Dockerfile for a microservice, which component should NOT be included to maintain immutability?Multiple choiceMedium
- How does Kubernetes handle a node that is not responding?Multiple choiceEasy
- Which basis most strongly justifies splitting a microservice out of a monolith?Multiple choiceEasy
- Why do teams use topics in Kafka in production code?Multiple choiceEasy
- How would you explain a key benefit of using Apache Kafka in a microservices architecture in an interview?Multiple choiceMedium
- How does Kafka handle message delivery when a consumer is temporarily offline?Multiple choiceMedium
- What command is used to create a Docker image from a Dockerfile?Multiple choiceEasy
- Which tool would you use for tracing requests across microservices to debug a distributed system?Multiple choiceMedium
- In the context of distributed tracing, what is a Correlation ID used for?Multiple choiceHard
- Why should microservices avoid direct SQL joins across service databases?Multiple choiceMedium
- In a Kafka architecture, how can you ensure that messages are processed only once by a consumer?Multiple choiceHard
- How would you explain a 'distributed monolith' in the context of microservices in an interview?Multiple choiceEasy
- Which of the following scenarios best illustrates asynchronous communication in a microservices architecture?Multiple choiceMedium
- Why might HTTP API calls be preferred over SQL JOINs across microservices?Multiple choiceMedium
- Why is the 'eventual consistency' model often used in microservices architectures?Multiple choiceMedium
- Which characteristic best describes a microservice that differentiates it from a traditional monolithic application?Multiple choiceMedium
- In a microservices architecture, how is eventual consistency achieved using the Saga pattern?Multiple choiceHard
- What does using a Saga pattern in microservices mainly aim to achieve?Multiple choiceEasy
- Why is it important for container processes to be isolated from the host operating system?Multiple choiceMedium
- In a Docker container, how can you ensure that the Java application is decoupled from the host's Java version?Multiple choiceHard
- Why do teams use Docker for deploying microservices in production code?Multiple choiceEasy
- How would you explain a potential risk of not using immutable Docker images in a microservices architecture in an interview?Multiple choiceHard
- What role does Docker play in a microservices architecture?Multiple choiceEasy
- Which of the following best describes the concept of 'eventual consistency' in a distributed system?Multiple choiceHard
- How does the choreography-based Saga pattern coordinate transactions?Multiple choiceMedium
- Why does Kubernetes in managing a microservices architecture matter in this design?Multiple choiceEasy
- Why does a Circuit Breaker in a microservices architecture matter in this design?Multiple choiceMedium
- Why is splitting into OrderControllerService, OrderValidationService, and OrderRepositoryService usually a bad microservice design?Multiple choiceMedium
- In an event-driven system, what is the role of a Circuit Breaker pattern?Multiple choiceHard
- Why is the concept of 'bounded context' important in defining microservices?Multiple choiceEasy
- What command is used to create a new Kubernetes Deployment?Multiple choiceEasy
- In microservices, why is it crucial to avoid synchronous communication for service interactions?Multiple choiceMedium
- Why is it challenging to maintain ACID properties in a microservices architecture?Multiple choiceEasy
- Why do teams use Correlation IDs in distributed tracing in production code?Multiple choiceMedium
- How does Kafka ensure message ordering within a topic partition?Multiple choiceMedium
- Which of the following describes a 'topic' in Kafka?Multiple choiceMedium
- Why is eventual consistency through Sagas important in microservices architecture?Multiple choiceMedium
- In a microservices architecture, what is a common use case for Kubernetes?Multiple choiceMedium
- How would you explain a potential risk of using the Saga pattern in a highly dynamic microservices environment in an interview?Multiple choiceHard
- Why does decoupling producers and consumers in a microservices architecture using Apache Kafka help in practice?Multiple choiceEasy
- What does the term 'compensating transaction' refer to in a Saga?Multiple choiceEasy
- How would you explain a key advantage of using microservices architecture over a monolithic architecture in an interview?Multiple choiceMedium
- What role does Apache Kafka play in an event-driven microservices architecture?Multiple choiceHard
- How would you explain a potential pitfall of using event-driven architecture with Apache Kafka in a microservices ecosystem in an interview?Multiple choiceHard
- What problem does Docker solve for developers who face the 'It works on my machine' paradox?Multiple choiceEasy