Interview Question Bank
- Design a URL shortener that handles 100 million new links per month and 10 billion redirects.
- An e-commerce site will sell 5,000 units of a phone in a flash sale with 2 million users waiting. How do you prevent overselling and keep the site up?
- You inherit a 10-year-old Java monolith used by 8 teams. Leadership wants microservices. How do you approach it?
- After a release, p99 latency of a critical API jumped from 200 ms to 3 s, but averages look fine. How do you investigate?
- The business wants the checkout to survive a full cloud region outage with no data loss. What are the options and trade-offs?
- Design a notification service that sends 50 million emails, SMS and push notifications per day with user preferences and retries.
- Design search autocomplete (typeahead) for an e-commerce site with 50,000 queries per second at peak.
- How would you design an idempotent payments API that clients can safely retry?
- You join a large enterprise as Enterprise Architect. What do you do in the first 90 days?
- After three acquisitions, a company runs four ERPs and three CRMs. How do you rationalize the portfolio?
- Design an architecture review process for 60 product teams that does not slow delivery.
- Two teams disagree: one wants synchronous REST calls between order and inventory, the other wants events. How do you resolve it as Principal Architect?
- Your company has 15 different ways of deploying services. How would you standardize without a mandate?
- The CEO asks why features take three times longer than two years ago. How do you investigate and respond?
- Design an AWS (or Azure/GCP) landing zone for a regulated company with 50 product teams.
- Cloud spend is growing faster than revenue. As Cloud Architect, how do you cut 30% without hurting reliability?
- Plan the migration of 300 applications from an on-premises data center to the cloud in 18 months.
- When would you choose serverless functions over containers on Kubernetes for a new service?
- How do you secure a production Kubernetes platform shared by many teams?
- Should we move our Spring Boot services from WebFlux or thread pools to virtual threads? What risks do you check?
- A Spring Data JPA endpoint returning 50 orders issues 2,000 SQL queries. Explain why and how you fix it.
- How do you guarantee that a payment event consumed from Kafka updates the ledger exactly once?
- A Java service's memory grows until the container is OOM-killed every two days. How do you diagnose it?
- Your public API has 2,000 integrators. You need a breaking change. How do you handle versioning and migration?
- Users see stale product prices for several minutes after an update. How do you fix the caching design?
- Your RAG chatbot gives confident wrong answers 15% of the time. How do you diagnose and improve it?
- The business wants an AI agent that can issue refunds to customers automatically. How do you design it safely?
- An LLM feature costs $0.30 per request and takes 12 seconds. How do you bring it to $0.03 and 3 seconds?
- Should the company buy an enterprise AI copilot or build its own assistant?
- A credit risk model's approval rate shifted 8% in a month. How do you investigate and what controls should exist?
- You are hired as CTO of a 300-person company with slow delivery and frequent outages. What do you do in your first 100 days?
- The CEO wants to build an in-house CRM because "Salesforce is too expensive". How do you respond?
- The board asks you to prove engineering is productive. What do you present?
- A data breach exposed customer emails. You are CTO. Walk through your response.
- The board asks for your company's AI strategy. What does it contain?
- Engineering will grow from 50 to 250 people in 18 months. How do you design the organization?
- Your company runs entirely on one cloud provider. The board asks about concentration risk. What do you recommend?
- A startup asks whether to use PostgreSQL or MongoDB for its new SaaS product. What do you advise?
- A web application stores user sessions in server memory. Why is this a problem when scaling, and how do you fix it?
- Design a chat system for a 50,000-employee company with 1:1 and group chats, presence and message history search.
- Design a distributed rate limiter for a public API gateway with 20 nodes.
- Users upload files up to 5 GB that must be virus-scanned and processed. Design the upload flow.
- Should our enterprise adopt data mesh? How would you decide and implement it?
- How do you apply TOGAF in an organization that runs agile product teams and does not want heavy documentation?
- The company has 400 point-to-point integrations. What integration strategy do you propose?
- You review a design that uses 25 microservices for an MVP with one team. What feedback do you give?
- A cascading failure took down checkout for 2 hours. Lead the technical post-incident review.
- A Microsoft-centric enterprise asks whether to standardize on AWS or Azure for new workloads. How do you decide?
- Explain how you would design network connectivity between 40 VPCs/VNets and an on-premises data center.
- A Spring Boot service takes 45 seconds to start, causing slow autoscaling. How do you improve it?
- A service method saves an order, calls a payment API and publishes an event, all inside one @Transactional method. What is wrong?
- You are building a new platform of 30 services. What is your observability design?
- How do you rename a column used by a live service with zero downtime?
- Which vector database would you choose for a RAG application with 2 million chunks that also needs keyword search and document permissions?
- How would you roll out MCP (Model Context Protocol) servers across an enterprise securely?
- How do you measure the business value of a GenAI customer support assistant?
- Product wants all capacity for features; engineering wants a quarter for re-architecture. How do you decide as CTO?
- Should we outsource development to a vendor to scale faster?
- How would you introduce SRE practices in an organization where developers throw code over the wall to operations?