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
Your Java service suddenly hits 100% CPU usage even though request volume hasn't changed and there are no errors in the logs. How do you debug it?
advancedTests whether you know how to use thread dumps and profilers to find a runaway loop or lock contention that logs alone won't show.
Heap usage keeps growing even after a Full GC runs. What's happening and how do you investigate?
advancedTests whether you know this is the classic signature of a memory leak — objects still reachable that shouldn't be — and how heap dump analysis finds it.
GC pauses are long even though the heap isn't full. What could be causing this, and which GC settings would you check first?
advancedTests whether you know GC pause time depends on more than heap occupancy — fragmentation, GC algorithm choice, and region sizing matter too.
Your app ran fine for 30 days, then crashed with OutOfMemoryError. No code changes were deployed. What happened?
advancedTests whether you know slow leaks (unbounded caches, listener leaks, ThreadLocal misuse) take time to surface and aren't tied to a deploy.
Your executor pool has 50 threads, but requests are queuing up and latency is climbing even though CPU usage is low. What's going on?
advancedTests whether you know low CPU with high queuing usually points to threads blocked waiting on I/O, not a CPU bottleneck.
Microservices Fundamentals (Expert Round)
What is the difference between Microservices and SOA? When would you choose one over the other?
advancedTests whether you know these aren't synonyms — coupling, communication protocols, and team ownership all differ.
How do you define microservice boundaries using Domain-Driven Design? Explain bounded contexts and anti-corruption layers.
expertTests whether you know DDD is the actual discipline behind 'good service boundaries,' not just a buzzword to drop.
What are the twelve-factor app principles? Which ones are most critical specifically for microservices?
advancedTests whether you know config, backing services, and stateless processes matter more than the rest for this architecture style.
What are the trade-offs of microservices vs monolith for a startup with only 5 engineers?
advancedTests whether you can push back on premature decomposition instead of defaulting to microservices as automatically 'better.'
Spring Cloud (Expert Round)
Explain Spring Cloud Gateway vs Zuul 1. Why was Zuul 1 effectively deprecated in favor of Gateway?
advancedTests whether you know blocking I/O versus a reactive Netty core is the real reason Gateway replaced Zuul 1.
Explain Feign client vs RestTemplate vs WebClient. When do you use each, thinking specifically about the thread model?
advancedTests whether you connect the choice to blocking vs non-blocking behavior, not just API ergonomics.
Consistency & Transactions
You notice the same event is processed twice in your consumer, causing duplicate side effects. How do you fix this without breaking throughput?
advancedTests whether you know how to design idempotent processing instead of trying to guarantee exactly-once delivery, which most brokers don't offer by default.
A user double-clicks the 'Submit' button, causing two identical orders to be created. How do you prevent this at the API level?
intermediateTests whether you know how an idempotency key on the client request prevents duplicate processing server-side.
An API returns HTTP 200 but the data shown to the user is incorrect. Where would you start debugging?
advancedTests whether you know to separate transport-layer success from application-layer correctness — caching, replication lag, or stale reads are common culprits.
You're designing a payment API that clients might retry after a timeout. How do you make sure a retried request never charges the customer twice?
advancedTests whether you can actually design an idempotency-key mechanism end to end, not just name the pattern.
API Design (Expert Round)
Explain gRPC vs REST vs GraphQL. When would you specifically choose gRPC for inter-service communication?
advancedTests whether you know binary Protobuf and HTTP/2 streaming pay off for low-latency internal service calls, not public APIs.
How do you design a pagination API that's cursor-based instead of offset-based, and why is cursor-based more stable?
advancedTests whether you know cursor pagination stays correct even as rows are inserted or deleted mid-scroll.
What is contract testing with Pact? How does it differ from full integration testing?
advancedTests whether you know consumer-driven contracts let services deploy independently without a shared integration environment.
Microservice Design
One microservice failure is impacting others across your system, and requests everywhere are timing out. How do you isolate it and prevent cascading failure in the future?
advancedTests whether you know circuit breakers, timeouts, and bulkheads are what actually stop one slow dependency from taking down everything downstream.
Your circuit breaker exists, but it isn't tripping fast enough and requests keep piling up before it opens. What would you check in its configuration?
advancedTests whether you know how failure-rate threshold, sliding window size, and slow-call-duration settings actually control breaker sensitivity.
You're trying to debug a slow request that spans five microservices, but you have no way to connect the logs across services. How do you fix this going forward?
advancedTests whether you know how a propagated correlation/trace ID and distributed tracing (Zipkin, Jaeger) turn this into a solvable problem.
Kafka & Messaging (Expert Round)
What triggers a Kafka consumer group rebalance, and how do you minimize the disruption using cooperative rebalancing or static membership?
expertTests whether you know modern Kafka has real tools to avoid the classic stop-the-world rebalance pain.
What are RabbitMQ's exchange types? How does a topic exchange differ from a direct exchange?
advancedTests whether you know exact-match routing versus wildcard-pattern routing versus broadcast, and when each fits.
How do you ensure message idempotency in an event-driven system using an event ID deduplication table?
advancedTests whether you know a persisted 'already processed' record is what actually makes a handler safe to call twice.
Scale & Rate Limiting
50,000 users log in at the same second right after a popular cache key expires, and your database gets hammered. What is this called and how do you prevent it?
advancedTests whether you know this is a cache avalanche/stampede, and can name real mitigations like jittered TTLs or request coalescing.
Your Redis cluster has plenty of overall capacity, but one specific key is overloading a single shard. How do you fix this?
advancedTests whether you know a hot key can bottleneck a cluster regardless of total capacity, and how local caching or key splitting helps.
You need to rate-limit an API both per-user and per-IP, at scale, across multiple instances. How do you implement it?
advancedTests whether you know why a distributed counter (like Redis-backed) is needed instead of an in-memory counter on each instance.
Deployment & Operations
Right after a deployment, your database connection pool is exhausted instantly and new requests start failing. What would you check?
advancedTests whether you know to check for connection leaks (unclosed connections), a misconfigured pool size, or a sudden spike in concurrent traffic post-deploy.
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?
intermediateTests whether you know how to spot N+1 via SQL logging or an APM tool, and fix it with fetch joins or EntityGraph.
Consumer lag keeps growing in your Kafka pipeline, but CPU usage on the consumer is low. What could be the bottleneck?
advancedTests whether you know low CPU with rising lag usually points to a slow downstream call inside the consumer, not a compute-bound processing loop.
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?
advancedTests whether you know to route unprocessable messages to a dead-letter topic instead of blocking the whole partition indefinitely.
During a Kafka partition rebalance, you notice some messages get processed more than once. Why does this happen and how do you handle it?
advancedTests whether you know rebalances can reassign a partition before an offset commit lands, and why consumer-side idempotency is the real fix.
After a blue-green deployment, old instances are still serving some traffic. What would cause this and how do you fix it?
advancedTests whether you know to check load balancer deregistration delay, DNS caching, and connection draining settings.
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?
advancedTests whether you know to check rollout status, readiness probes, and whether the deployment is stuck on a failing pod.
How do you reload configuration in a running Spring Boot service without restarting it?
intermediateTests whether you know about @RefreshScope and Spring Cloud Bus for propagating config changes to live instances.
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?
intermediateTests whether you know to check for missing dependency caching, network-bound repository access, and parallel build configuration in CI.
Data Management (Expert Round)
How do you implement distributed locking across microservices using Redis, and what is a fencing token for?
expertTests whether you know a naive lock can still let a stale, slow process act after losing the lock — fencing tokens close that gap.
How do you calculate the optimal database connection pool size for a microservice using Little's Law?
expertTests whether you know there's an actual formula behind pool sizing, not just picking a round number and hoping.
How would you implement multi-tenancy in a microservice? Compare schema-per-tenant vs row-level isolation.
expertTests whether you know the isolation-strength versus operational-complexity tradeoff between the two approaches.
How do you implement CQRS read model synchronization using Debezium CDC?
expertTests whether you know CDC lets you build a denormalized read store without touching the write-side service's code at all.
How do you manage database credential rotation in microservices without any downtime?
expertTests whether you know dual credentials and a gradual rollover are what make rotation invisible to running traffic.
Security (Expert Round)
How does JWT validation work in a Spring Security microservice? What are common JWT attack vectors like alg=none and key confusion?
expertTests whether you know real JWT vulnerabilities beyond 'just check the signature.'
How do you prevent SSRF attacks in a microservice that fetches external URLs on a user's behalf?
expertTests whether you know to allowlist domains and specifically block internal metadata IP ranges like 169.254.x.x.
How do you implement service-to-service mTLS in a Kubernetes cluster?
expertTests whether you know Istio or Linkerd can automate certificate exchange and rotation instead of hand-rolling it per service.
What is the OWASP API Security Top 10? Which risks are most critical specifically for microservices?
advancedTests whether you know Broken Object Level Authorization and Excessive Data Exposure are the two most common real-world findings.
How do you implement API key management for a public-facing microservices platform?
advancedTests whether you know keys should be hashed at rest, prefixed for fast lookup, and support rotation and per-key rate limiting.
System Failures & Latency
Your API gateway logs show random 500s, but the backend services all report healthy. Where do you look next?
advancedTests whether you know to check gateway-level timeouts, connection pool limits, and TLS/handshake issues that never reach the backend's own logs.
A REST API is returning inconsistent responses for the same request — how will you debug it?
advancedTests whether you know to suspect load-balanced instances serving stale data, race conditions, or a caching layer with inconsistent state.
A query that runs fine in staging is slow in production with real data volume. How will you optimize it?
advancedTests whether you know to check the execution plan, missing indexes, and whether staging data volume was too small to expose the problem.
A Docker container keeps crashing shortly after starting in production. How will you debug it?
advancedTests whether you know to check container logs, exit codes, resource limits (OOMKilled), and health check configuration.
Production Troubleshooting
Your Java application suddenly has thousands of threads — what could be causing it?
advancedTests 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.
Your code uses synchronized everywhere. The application is slow. What is the bottleneck?
advancedTests 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.
Application startup takes 45 seconds. How would you diagnose and optimize it?
intermediateTests whether you'd profile startup phases (classpath scanning, bean creation, connection pool warmup) to find the actual bottleneck, instead of guessing at JVM flags.
A feature was deployed Friday evening. By Monday morning, everything is slow. Nobody changed the code. What happened?
advancedTests 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.
Your application is not scaling even after adding instances. Why?
advancedTests whether you look for a shared bottleneck -- a single database, a sticky-session load balancer, a lock -- that caps throughput regardless of instance count.
How do you handle a production issue? Explain your complete approach step by step
intermediateTests whether you have a structured triage process -- assess impact, mitigate first, then root-cause -- rather than jumping straight to a code fix under pressure.
After resolving a production issue, how do you perform Root Cause Analysis and prevent recurrence?
intermediateTests 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.
How would you troubleshoot a database performance issue?
advancedTests 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)
Explain the Bulkhead pattern's two implementations — thread pool isolation vs semaphore isolation. What's the tradeoff?
expertTests whether you know thread pool isolation gives stronger isolation at higher resource cost than semaphore-based limiting.
What is retry with exponential backoff and jitter? Why is jitter specifically important?
advancedTests whether you know jitter is what prevents every client from retrying in lockstep and re-creating the thundering herd.
What is chaos engineering, and how would you apply it to actually test resilience patterns in production?
expertTests whether you know the point is deliberately injecting failure to verify circuit breakers and fallbacks actually work, not just exist.
What is the difference between fail-fast and fail-safe patterns in a resilient system?
advancedTests whether you know one throws immediately (open circuit) while the other silently returns a default value — different failure philosophies.
Observability (Expert Round)
Explain the difference between the RED method and the USE method for metrics.
advancedTests whether you know RED is request-oriented (Rate/Errors/Duration) while USE is resource-oriented (Utilization/Saturation/Errors).
What is OpenTelemetry? How does it differ from Spring Cloud Sleuth?
expertTests whether you know OTEL is the vendor-neutral standard that replaced Sleuth starting in Spring Boot 3.
How do you set up alerting for SLO violations in a microservices system using burn-rate alerts?
expertTests whether you know multi-window burn-rate alerting catches real problems faster than a single static threshold alert.
How do you debug a performance issue in production microservices that you cannot reproduce locally?
expertTests whether you know async profilers, JFR, and sampled distributed traces are the real tools for this exact situation.
Behavioral & Project
Which design patterns have you used, and where in your actual project?
intermediateTests 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.
Walk through your end-to-end projects — architecture and your actual role
intermediateTests whether you can narrate real ownership with specific decisions and trade-offs at each stage, rather than a generic recitation of the tech stack.
What production challenges and bugs have you handled, and how do you perform under pressure?
intermediateTests 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.
Discuss the UI architecture of your system
intermediateTests whether you understand how the frontend is structured and talks to your backend -- state management, API boundaries -- even as a primarily backend engineer.
How would you react if asked to report to someone junior to you?
intermediateTests whether you can demonstrate maturity and focus on the work over title/ego, with a concrete reasoning rather than a rehearsed platitude.
How would you react if you are not promoted?
intermediateTests whether you can show self-awareness and a plan to seek feedback and improve, rather than defensiveness or a scripted non-answer.
Do you solve first and ask later, or understand from others and then solve?
intermediateTests 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.
Walk through a specific performance improvement you made to an API — what did you change and why?
intermediateTests whether you can name the actual bottleneck you found and measure the before/after, rather than a vague claim of 'we optimized the queries'.
Have you used any AI-related tools in your project?
intermediateTests 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.
How is Vulnerability scanning/management handled in your project?
intermediateTests whether you know the actual tooling in your pipeline (SCA/SAST scanners, dependency alerts) and who triages findings, not just that security 'exists somewhere'.
How have you used multithreading in your project? Explain a real use case
advancedTests 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.
What makes the FinTech domain technically different from other domains?
intermediateTests whether you can name concrete constraints -- strict consistency, auditability, regulatory compliance, idempotency on money movement -- rather than a vague 'it's more serious'.
How would you contribute if the team needs you to balance between frontend and backend work?
intermediateTests 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.
How do you approach ownership of a feature/module?
intermediateTests whether you describe end-to-end accountability -- design, edge cases, monitoring after launch -- rather than ownership meaning just writing the code.
How would you facilitate consensus when senior stakeholders have conflicting viewpoints?
advancedTests 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.
If choosing one person over three other candidates/stakeholders, how would you explain the choice without appearing biased?
advancedTests 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)
What is the difference between Deployment, StatefulSet, and DaemonSet in Kubernetes?
advancedTests whether you know which workload shape (stateless, ordered/stable identity, one-per-node) each object type is built for.
What is HPA vs VPA vs KEDA? When would you use KEDA over standard HPA?
expertTests whether you know KEDA scales on external event sources (like Kafka lag) that HPA's CPU/memory metrics can't see.
How do you configure resource requests and limits for a Java microservice pod, accounting for heap, off-heap, and metaspace?
expertTests whether you know a JVM's real memory footprint is bigger than just -Xmx, and getting this wrong causes OOMKilled or CPU throttling.
How do you implement zero-downtime rolling updates for a stateful Java microservice?
expertTests whether you know PodDisruptionBudget, readiness gates, and backward-compatible DB migrations all need to align.
Performance & Scalability (Expert Round)
Explain Virtual Threads (Project Loom) and their impact on microservice throughput.
expertTests whether you know how eliminating the thread-per-request ceiling changes what's actually achievable at scale.
What is backpressure, and how do you implement it in a reactive Spring WebFlux service?
advancedTests whether you know limitRate() and the onBackpressure operators exist specifically to protect a slow consumer.
How do you optimize a Spring Boot microservice's cold start time for serverless deployment?
expertTests whether you know GraalVM native images and CRaC are the real levers, not just 'use a smaller JAR.'
Testing (Expert Round)
Explain the Test Pyramid for microservices — what types of tests live at each layer, and why avoid the 'ice cream cone' anti-pattern?
advancedTests whether you know unit tests should dominate by volume, with fewer integration and even fewer end-to-end tests above them.
What is Testcontainers, and how do you use it for realistic database integration tests?
advancedTests whether you know spinning up a real containerized database beats mocking the persistence layer for genuine confidence.
Explain mutation testing. How does it differ from code coverage as a quality signal?
expertTests whether you know high coverage can still hide weak assertions, and mutation testing is what actually catches that.
Advanced System Design (Expert Round)
How would you design an audit log system for compliance across all microservices in an organization?
expertTests whether you know an immutable, append-only store with correlation IDs is what makes an audit trail actually trustworthy.
Explain how you would migrate a shared database used by 3 services into a database-per-service architecture.
expertTests whether you know this needs a strangler-fig approach with an anti-corruption layer, not a risky one-shot cutover.
How do you implement multi-region failover for a critical microservice — active-active vs active-passive?
expertTests whether you know active-active needs conflict resolution while active-passive trades that complexity for slower failover.
You inherit a monolith with no tests and 500,000 lines of code. How do you start decomposing it into microservices?
expertTests whether you know to add characterization tests and extract leaf domains first, rather than attempting a risky big-bang rewrite.
Design a distributed configuration management system for 50+ microservices.
expertTests whether you can combine a Git-backed config server, environment overlays, and secret management into one coherent design.
Real Company Rounds
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?
expertA real Flipkart interview scenario testing whether you can design atomic inventory control under extreme concurrent load.
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.
expertA real Walmart interview scenario testing whether you can combine four separate fixes into one coherent architecture.
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?
expertA real Walmart interview scenario testing whether you've thought through what happens when your own fix becomes the new bottleneck.
Compare cache penetration, cache breakdown (hot key expiry), and cache avalanche — three distinct ways a cache layer can fail under load.
advancedA real Walmart interview deep-dive testing whether you can distinguish three commonly-confused caching failure modes and fix each correctly.
Your Spring Boot service works perfectly in development but crashes every night at exactly 2am in production. Walk through how you'd debug it.
expertTests whether you connect the fixed time to a scheduled job or resource leak, and know the JVM-metrics-then-heap-dump investigation order.
PayPal SE-3 online screening: solve 'Max Tasks That Can Be Completed in a Given Budget' — a greedy/DP optimization problem.
advancedA real PayPal coding-round question testing whether you can recognize and implement a budget-constrained optimization pattern.
Google SDE-2 phone screen: optimize a graph traversal to reduce space complexity from O(N) to O(1) while maintaining time efficiency.
expertA real Google interview question testing whether you can trade off between recomputation and storage under a tight space constraint.
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.
expertA real Google data-structure-design round testing whether you know bucket sort variations solve this cleanly.
PhonePe system design round: design a UPI-style payment service — what are the core consistency and idempotency requirements?
expertA real PhonePe interview question testing whether you can design for financial correctness under partial failure.
Atlassian system design round: design a project management tool like Jira, covering issues, boards, and workflows.
expertA real Atlassian interview question testing whether you can model a highly configurable, permission-heavy domain at scale.
Accenture Senior SE round: can HashMap keys be mutable? Why or why not, and what breaks if they are?
advancedA real Accenture interview question that looks simple but tests genuine understanding of hashing internals.
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.
expertOne of the most commonly asked service-based-company questions — tests whether you understand the proxy mechanism, not just the annotation's existence.
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?
expertTests whether you can go beyond 'one is thread-safe' into the actual locking/CAS mechanism that makes it so.
Production Debugging
Latency rose from 100 ms to 5 s without a deployment. What do you check first?
advancedTests 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.
Latency spike after launch: which dashboards, production metrics and access logs do you open first?
advancedTests 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.
P95/P99 latency spikes while CPU, memory and error logs look healthy. Where do you look next?
advancedTests 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.
Requests hang for 30+ seconds with no errors in the logs. How do you find the blocked operation?
advancedTests 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.
Latency rises only at peak traffic while CPU stays below 50%. What hidden bottlenecks do you investigate?
advancedTests 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.
The database query is fast but the API takes 2 seconds. Where do you look?
advancedTests 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.
Deployment succeeds and health checks pass, but API errors rise by 20%. How do you isolate the root cause?
advancedTests 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.
API works in staging (or locally) but fails in production. How do you troubleshoot?
advancedTests 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.
Everything looks healthy but users report random failures. How do you isolate the root cause systematically?
advancedTests 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.
How would you find a memory leak in a production Java application (OutOfMemoryError only in production, or memory climbing until the JVM crashes)?
advancedTests 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.
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?
advancedTests 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.
A heap dump shows thousands of objects retained in a static cache. How do you validate whether removing it is safe?
advancedTests 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.
After enabling parallel processing, throughput improves but the database starts failing. Why?
advancedTests 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.
Users occasionally see stale data right after an update. How do you investigate database and cache consistency?
advancedTests 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.
You have 10 minutes to debug a production Java performance issue. What is your first move?
advancedTests 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.
Project & Behavioral
Walk through a microservice you owned end to end, from requirements gathering to production release.
intermediateTests whether you can narrate real ownership with specific decisions and trade-offs at each stage (requirements ambiguity resolved, design choices made, what broke during rollout) rather than a generic SDLC recitation that could describe any project.
Describe a complex problem you faced recently and the techniques you used to troubleshoot it.
intermediateTests whether you can show a systematic troubleshooting process (forming a hypothesis, narrowing scope, the specific tool or data that confirmed the root cause) rather than just describing the symptom and the eventual fix with the investigation skipped over.