💼

Company Round Scenarios

Real production-debugging and system-behavior scenarios asked in company-specific rounds — the 'your service is doing X in production, what do you check' questions that test judgment, not textbook recall.

Performance & Memory

Microservices Fundamentals (Expert Round)

Consistency & Transactions

Microservice Design

Scale & Rate Limiting

Deployment & Operations

Q

Right after a deployment, your database connection pool is exhausted instantly and new requests start failing. What would you check?

advanced

Tests whether you know to check for connection leaks (unclosed connections), a misconfigured pool size, or a sudden spike in concurrent traffic post-deploy.

Q

How do you identify and fix an N+1 query problem in Hibernate that's only showing up in production, not in your local tests?

intermediate

Tests whether you know how to spot N+1 via SQL logging or an APM tool, and fix it with fetch joins or EntityGraph.

Q

Consumer lag keeps growing in your Kafka pipeline, but CPU usage on the consumer is low. What could be the bottleneck?

advanced

Tests whether you know low CPU with rising lag usually points to a slow downstream call inside the consumer, not a compute-bound processing loop.

Q

A single malformed message is crashing your Kafka consumer every time it retries and re-reads the same message. How do you handle this poison pill?

advanced

Tests whether you know to route unprocessable messages to a dead-letter topic instead of blocking the whole partition indefinitely.

Q

During a Kafka partition rebalance, you notice some messages get processed more than once. Why does this happen and how do you handle it?

advanced

Tests whether you know rebalances can reassign a partition before an offset commit lands, and why consumer-side idempotency is the real fix.

Q

After a blue-green deployment, old instances are still serving some traffic. What would cause this and how do you fix it?

advanced

Tests whether you know to check load balancer deregistration delay, DNS caching, and connection draining settings.

Q

Half your pods are running the new version and half are still on the old version, well after a rollout should have finished. What would you check?

advanced

Tests whether you know to check rollout status, readiness probes, and whether the deployment is stuck on a failing pod.

Q

How do you reload configuration in a running Spring Boot service without restarting it?

intermediate

Tests whether you know about @RefreshScope and Spring Cloud Bus for propagating config changes to live instances.

Q

Your Maven build takes 4-10 minutes in CI but is much faster locally. Why might that be, and how would you speed it up?

intermediate

Tests whether you know to check for missing dependency caching, network-bound repository access, and parallel build configuration in CI.

Data Management (Expert Round)

Security (Expert Round)

System Failures & Latency

Production Troubleshooting

Q

Your Java application suddenly has thousands of threads — what could be causing it?

advanced

Tests whether you suspect an unbounded thread pool or a blocked downstream call causing threads to pile up, rather than assuming it's simply high traffic.

Q

Your code uses synchronized everywhere. The application is slow. What is the bottleneck?

advanced

Tests whether you identify lock contention and coarse-grained locking as the culprit, and know to narrow lock scope or use concurrent collections instead of blanket synchronization.

Q

Application startup takes 45 seconds. How would you diagnose and optimize it?

intermediate

Tests whether you'd profile startup phases (classpath scanning, bean creation, connection pool warmup) to find the actual bottleneck, instead of guessing at JVM flags.

Q

A feature was deployed Friday evening. By Monday morning, everything is slow. Nobody changed the code. What happened?

advanced

Tests whether you connect a delayed slowdown to something accumulating over time -- a leak, growing cache, or connection pool starvation -- rather than looking for a code regression.

Q

Your application is not scaling even after adding instances. Why?

advanced

Tests whether you look for a shared bottleneck -- a single database, a sticky-session load balancer, a lock -- that caps throughput regardless of instance count.

Q

How do you handle a production issue? Explain your complete approach step by step

intermediate

Tests whether you have a structured triage process -- assess impact, mitigate first, then root-cause -- rather than jumping straight to a code fix under pressure.

Q

After resolving a production issue, how do you perform Root Cause Analysis and prevent recurrence?

intermediate

Tests whether you treat RCA as a separate step from the fix -- documenting the actual cause and adding a guardrail -- rather than closing the ticket once the symptom disappears.

Q

How would you troubleshoot a database performance issue?

advanced

Tests whether you'd check execution plans and indexes before reaching for more hardware, and whether you can tell a query problem from a connection-pool or lock-contention problem.

Resilience (Expert Round)

Observability (Expert Round)

Behavioral & Project

Q

Which design patterns have you used, and where in your actual project?

intermediate

Tests whether you can name a pattern and the real problem it solved in your codebase, rather than reciting a textbook definition with no project tied to it.

Q

Walk through your end-to-end projects — architecture and your actual role

intermediate

Tests whether you can narrate real ownership with specific decisions and trade-offs at each stage, rather than a generic recitation of the tech stack.

Q

What production challenges and bugs have you handled, and how do you perform under pressure?

intermediate

Tests whether you can describe a specific incident and your actual state of mind handling it, rather than a generic claim of staying calm under pressure.

Q

Discuss the UI architecture of your system

intermediate

Tests whether you understand how the frontend is structured and talks to your backend -- state management, API boundaries -- even as a primarily backend engineer.

Q

How would you react if asked to report to someone junior to you?

intermediate

Tests whether you can demonstrate maturity and focus on the work over title/ego, with a concrete reasoning rather than a rehearsed platitude.

Q

How would you react if you are not promoted?

intermediate

Tests whether you can show self-awareness and a plan to seek feedback and improve, rather than defensiveness or a scripted non-answer.

Q

Do you solve first and ask later, or understand from others and then solve?

intermediate

Tests whether you can articulate a situational judgment -- when to move fast alone versus when to gather context first -- instead of picking one extreme as a universal rule.

Q

Walk through a specific performance improvement you made to an API — what did you change and why?

intermediate

Tests whether you can name the actual bottleneck you found and measure the before/after, rather than a vague claim of 'we optimized the queries'.

Q

Have you used any AI-related tools in your project?

intermediate

Tests whether you can speak concretely about where AI tooling fit into your actual workflow -- code review, codegen, ops -- rather than a generic 'yes, Copilot' with no detail.

Q

How is Vulnerability scanning/management handled in your project?

intermediate

Tests whether you know the actual tooling in your pipeline (SCA/SAST scanners, dependency alerts) and who triages findings, not just that security 'exists somewhere'.

Q

How have you used multithreading in your project? Explain a real use case

advanced

Tests whether you can describe a genuine concurrency problem you solved -- parallel batch processing, async I/O -- with the actual synchronization mechanism used, not a textbook example.

Q

What makes the FinTech domain technically different from other domains?

intermediate

Tests whether you can name concrete constraints -- strict consistency, auditability, regulatory compliance, idempotency on money movement -- rather than a vague 'it's more serious'.

Q

How would you contribute if the team needs you to balance between frontend and backend work?

intermediate

Tests whether you can show genuine flexibility and a plan to ramp up on the unfamiliar side, rather than a reflexive preference for only your comfort zone.

Q

How do you approach ownership of a feature/module?

intermediate

Tests whether you describe end-to-end accountability -- design, edge cases, monitoring after launch -- rather than ownership meaning just writing the code.

Q

How would you facilitate consensus when senior stakeholders have conflicting viewpoints?

advanced

Tests whether you can describe grounding the discussion in data and shared goals to find common ground, rather than deferring to seniority or picking a side.

Q

If choosing one person over three other candidates/stakeholders, how would you explain the choice without appearing biased?

advanced

Tests whether you can ground a hard call in explicit, pre-agreed criteria communicated transparently, rather than an outcome that looks arbitrary or favoritist.

Kubernetes Deployment (Expert Round)

Advanced System Design (Expert Round)

Real Company Rounds

Q

Flipkart Big Billion Day: inventory shows 1 unit left for an iPhone, and 10,000 users click Buy simultaneously. What happens, and how do you fix it with Redis DECR and Kafka buffering?

expert

A real Flipkart interview scenario testing whether you can design atomic inventory control under extreme concurrent load.

Q

Design a Flash Sale system for 10 million users hitting Buy on one product at exactly 12:00:00 — cover overselling prevention, DB protection, and idempotency.

expert

A real Walmart interview scenario testing whether you can combine four separate fixes into one coherent architecture.

Q

You design a Rate Limiter backed by Redis, but Redis becomes a single point of failure — if it stalls, the whole API stalls. How do you fix this, and would you fail open or fail closed?

expert

A real Walmart interview scenario testing whether you've thought through what happens when your own fix becomes the new bottleneck.

Q

Compare cache penetration, cache breakdown (hot key expiry), and cache avalanche — three distinct ways a cache layer can fail under load.

advanced

A real Walmart interview deep-dive testing whether you can distinguish three commonly-confused caching failure modes and fix each correctly.

Q

Your Spring Boot service works perfectly in development but crashes every night at exactly 2am in production. Walk through how you'd debug it.

expert

Tests whether you connect the fixed time to a scheduled job or resource leak, and know the JVM-metrics-then-heap-dump investigation order.

Q

PayPal SE-3 online screening: solve 'Max Tasks That Can Be Completed in a Given Budget' — a greedy/DP optimization problem.

advanced

A real PayPal coding-round question testing whether you can recognize and implement a budget-constrained optimization pattern.

Q

Google SDE-2 phone screen: optimize a graph traversal to reduce space complexity from O(N) to O(1) while maintaining time efficiency.

expert

A real Google interview question testing whether you can trade off between recomputation and storage under a tight space constraint.

Q

Google onsite: design a data structure that manages elements ordered by two criteria (a fixed numeric range and a temporal value) with O(1) insertion and retrieval of the minimum element.

expert

A real Google data-structure-design round testing whether you know bucket sort variations solve this cleanly.

Q

PhonePe system design round: design a UPI-style payment service — what are the core consistency and idempotency requirements?

expert

A real PhonePe interview question testing whether you can design for financial correctness under partial failure.

Q

Atlassian system design round: design a project management tool like Jira, covering issues, boards, and workflows.

expert

A real Atlassian interview question testing whether you can model a highly configurable, permission-heavy domain at scale.

Q

Accenture Senior SE round: can HashMap keys be mutable? Why or why not, and what breaks if they are?

advanced

A real Accenture interview question that looks simple but tests genuine understanding of hashing internals.

Q

TCS/Infosys/JPMorgan round: How does @Transactional actually work internally — proxy creation, self-invocation pitfall, wrong exception type, wrong propagation. Walk through all three failure modes.

expert

One of the most commonly asked service-based-company questions — tests whether you understand the proxy mechanism, not just the annotation's existence.

Q

Walmart Senior SE round: explain the internal difference between HashMap and ConcurrentHashMap — what specifically makes the concurrent version thread-safe without locking the whole structure?

expert

Tests whether you can go beyond 'one is thread-safe' into the actual locking/CAS mechanism that makes it so.

Production Debugging

Q

Latency rose from 100 ms to 5 s without a deployment. What do you check first?

advanced

Tests whether you look at what changed besides code -- traffic volume, a downstream dependency's health, DB query plans (stale stats causing a plan flip), or GC behavior -- since a latency jump with no deploy means the cause is external or environmental, not a code regression.

Q

Latency spike after launch: which dashboards, production metrics and access logs do you open first?

advanced

Tests whether you'd start with request rate and error rate correlated against latency (to see if it's a load-driven spike) and then drill into per-endpoint and per-dependency breakdowns, rather than opening every dashboard at once with no hypothesis.

Q

P95/P99 latency spikes while CPU, memory and error logs look healthy. Where do you look next?

advanced

Tests whether you suspect tail-latency causes invisible to average metrics -- GC pause spikes, lock contention, a slow downstream dependency affecting only some requests, or connection pool queueing -- since healthy aggregate metrics with a tail-latency problem points at something intermittent, not systemic.

Q

Requests hang for 30+ seconds with no errors in the logs. How do you find the blocked operation?

advanced

Tests whether you'd pull a thread dump while the hang is happening to see exactly what each thread is blocked on (a lock, an I/O call, a connection pool wait) -- logs show what happened, a thread dump shows what's happening right now, which is what a hang needs.

Q

Latency rises only at peak traffic while CPU stays below 50%. What hidden bottlenecks do you investigate?

advanced

Tests whether you suspect a resource with a hard ceiling unrelated to CPU -- connection pool size, thread pool queue depth, or a downstream dependency's own capacity limit -- since low CPU with rising latency under load means something is queueing, not computing.

Q

The database query is fast but the API takes 2 seconds. Where do you look?

advanced

Tests whether you check everything around the query -- serialization/deserialization cost, N+1 queries elsewhere in the request, downstream service calls, or connection pool acquisition wait -- since a fast query rules out the DB but says nothing about the rest of the request path.

Q

Deployment succeeds and health checks pass, but API errors rise by 20%. How do you isolate the root cause?

advanced

Tests whether you'd diff the error distribution by endpoint/user segment to isolate which code path regressed, and check whether health checks even exercise the failing path -- a shallow health check passing tells you almost nothing about business-logic correctness.

Q

API works in staging (or locally) but fails in production. How do you troubleshoot?

advanced

Tests whether you systematically diff environment-specific factors -- config/secrets, data volume and shape, network topology, and scale (concurrency staging never sees) -- rather than assuming 'it's a flaky prod issue' without identifying the actual delta between environments.

Q

Everything looks healthy but users report random failures. How do you isolate the root cause systematically?

advanced

Tests whether you'd segment by user/request attributes (region, device, specific data shape) to find the pattern behind 'random' -- true randomness is rare; it usually correlates with something your aggregate dashboards are averaging away.

Q

How would you find a memory leak in a production Java application (OutOfMemoryError only in production, or memory climbing until the JVM crashes)?

advanced

Tests whether you'd capture a heap dump near the crash point and analyze dominator trees/retained size in a tool like Eclipse MAT to find what's holding references, rather than guessing based on code review alone -- production-only leaks often depend on data volume or traffic patterns local testing never reaches.

Q

Container memory climbs for 8 to 12 hours until the OS kills it. How do you tell a heap leak from native (off-heap) memory bloat?

advanced

Tests whether you compare JVM-reported heap usage (via GC logs or JFR) against the container's actual RSS -- if RSS keeps growing while heap usage stays flat/bounded, the leak is native (direct ByteBuffers, native library allocations, Metaspace), not something a heap dump will show.

Q

A heap dump shows thousands of objects retained in a static cache. How do you validate whether removing it is safe?

advanced

Tests whether you'd check if the cache has any eviction policy at all (unbounded caches are the real bug, not caching itself) and trace whether removing/bounding it breaks correctness elsewhere that relies on it being warm -- rather than ripping it out and assuming the symptom alone justifies that.

Q

After enabling parallel processing, throughput improves but the database starts failing. Why?

advanced

Tests whether you connect parallelism in the app to a proportional increase in concurrent DB connections/queries -- the app layer scaled, but the database's connection pool or query capacity didn't, so the bottleneck simply moved downstream instead of disappearing.

Q

Users occasionally see stale data right after an update. How do you investigate database and cache consistency?

advanced

Tests whether you check the invalidation ordering -- is the cache invalidated before or after the DB write commits, and is there a race where a read repopulates the cache with the old value between the write and the invalidation -- rather than just assuming the cache TTL is too long.

Q

You have 10 minutes to debug a production Java performance issue. What is your first move?

advanced

Tests whether you'd grab a thread dump (or two, a few seconds apart) immediately -- it's the fastest single artifact that reveals blocked threads, lock contention, or a busy-spinning loop, giving you a concrete lead before you've spent any of your 10 minutes guessing.