IntermediateSITUATIONAL
You are asked to design a new backend service that will be called very frequently but has strict latency requirements. How would you choose between synchronous HTTP, asynchronous messaging, and caching layers, and what concrete design would you propose?
Backend Developer
General

Sample Answer

I’d start by clarifying the latency target and consistency needs. Let’s say we need p95 under 50ms at 5–10k RPS. For a user-facing, request/response flow, I’d keep the core service synchronous HTTP, but aggressively minimize what happens on the critical path. Anything non-essential (logging, analytics, email, heavy writes) goes async via a queue like Kafka or SQS. To actually hit the latency goal, caching is usually the lever that moves the needle. In a similar scenario, we fronted the service with a CDN for public data and added Redis as a read-through cache. Roughly 80% of reads were served from Redis in under 5ms, and we cut database load by ~70%. Design-wise, I’d propose: API gateway → stateless service (HTTP) → Redis cache → primary datastore, with background workers consuming messages for slow or retryable work, and strict timeouts/budgets on each hop.

Keywords

Starts with clarifying latency, RPS, and consistency requirementsKeeps user-facing path synchronous HTTP, pushes non-critical work to async queuesUses multi-layer caching (CDN + Redis) to hit strict latency and offload DBExplicit end-to-end design with timeouts and background workers
Related Questions

On your resume you mention working on a cross-functional project (e.g., involving multiple teams or stakeholders). Describe a situation from that project where priorities conflicted—how did you navigate the trade-offs and what was the final outcome?

IntermediateSITUATIONAL

Walk me through a recent multi-channel digital marketing campaign you managed end-to-end. How did you set objectives, choose channels, allocate budget, and measure success?

IntermediateBEHAVIORAL

In your civil engineering studies, what specific design coursework or project work did you complete related to irrigation channels or canals (e.g., design of lined/unlined canals, distributaries, minors)? Describe one such design in detail, including how you determined discharge, permissible velocity, section dimensions, and lining choice for Gujarat-type soil and climate conditions.

IntermediateTECHNICAL

Based on your hydrology and irrigation engineering background, explain how you would estimate the irrigation water requirement for a kharif crop in a semi-arid region of Gujarat. Walk me through each step: from reference evapotranspiration estimation, crop coefficient selection, effective rainfall calculation, to arriving at canal discharge for a given command area.

IntermediateTECHNICAL

In your resume you note improving or optimizing [a process, KPI, or metric]. What specific baseline metrics did you start from, what steps did you personally take, and how did you verify that the improvement was due to your changes rather than external factors?

IntermediatePROBLEM_SOLVING