InterviewStack.io LogoInterviewStack.io

Microservices Architecture and Service Design Questions

Covers the principles, patterns, and trade offs for designing, decomposing, operating, and evolving microservice and service oriented architectures. Candidates should be able to define service boundaries and decomposition strategies, explain domain driven design influences, and describe safe approaches to break a monolith into independently deployable services. Topic coverage includes application programming interface design and versioning, synchronous and asynchronous inter service communication patterns such as representational state transfer, remote procedure call frameworks, and messaging systems, as well as event driven architecture patterns. It includes data ownership and distribution, consistency models, distributed transaction patterns including the saga pattern and two phase commit trade offs, and resilience patterns such as circuit breakers, retries, and bulkheads. Operational concerns include service discovery, gateway and service mesh patterns, deployment and rollout strategies for independent services, observability and distributed tracing, monitoring, testing and debugging across services, failure handling and network latency considerations. The topic also covers organizational impacts including Conway's law, service choreography versus orchestration, team boundaries and operational complexity, and guidance on when to choose a monolith versus microservices.

HardTechnical
68 practiced
Design a monitoring and alerting system to detect eventual consistency violations between a write service and multiple read targets (search index, materialized views). Define the metrics to track (lag, divergence count), acceptable staleness thresholds, automated reconciliation strategies, and alert logic that balances noise and timely detection.
MediumSystem Design
57 practiced
Design a distributed rate-limiting system enforcing per-user and global quotas for APIs across stateless service instances and regions. Discuss algorithms (token bucket vs leaky bucket), state placement (centralized Redis vs local token caches), fairness across regions, degraded modes when stores are unavailable, and SRE operational concerns like monitoring denial-of-service and quota evasion.
EasyTechnical
72 practiced
Explain the delivery guarantees in event-driven systems: at-most-once, at-least-once, and exactly-once. As an SRE, what operational patterns and safeguards would you implement to ensure correct processing (deduplication, idempotency, ordering guarantees) and to recover from duplicates or missing events across services?
HardTechnical
83 practiced
You get alerts: API gateway 5xx error rate rising and downstream services showing latency spikes. Walk through a detailed SRE incident response for this cross-service outage: triage steps, queries and tools you would use (metrics, logs, traces), immediate mitigation options to reduce customer impact, and post-incident actions to prevent recurrence.
HardTechnical
67 practiced
Create an incident postmortem template and a runbook for recurring cross-service outages caused by cascading failures. Include required sections: timeline, impact, root cause analysis (beyond symptoms), SLO impact, action items with owners and due dates, communications timeline, and automated mitigations that should be implemented. Provide a short runbook play for isolating failing services.

Unlock Full Question Bank

Get access to hundreds of Microservices Architecture and Service Design interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.