03Design a real-time fraud detection system where fraud is under 1% of transactions.▼hardAmazonGoogleMicrosoft1 repliesunlockedSevere class imbalance, a tight latency budget, and an adversary who keeps adapting. What interviewers watch for: treating imbalance honestly, setting the operating point from costs, and building for the feedback loop. This covers the end-to-end design.Open full answer →
09Design a click-through-rate (CTR) prediction system for ads ranking at scale.▼hard★ EssentialMetaGoogleAmazon2 repliesunlockedAds ranking is where calibrated probabilities collide with tight latency and money. The signal is knowing that CTR has to be calibrated (not just ranked), the feature and serving design, and the auction context. Here is the design that goes past 'train a classifier.'Open full answer →
25Design a dynamic pricing engine (e.g. ride-sharing, e-commerce, travel).▼hardAmazonGoogleMicrosoft2 replies◆ premiumDynamic pricing combines demand forecasting, optimization, and real-time serving, under fairness and trust constraints. The signal is the predict-then-optimize structure plus guardrails against perverse outcomes. Here is the design.Open full answer →
33Design a fraud-detection system that uses LLMs (beyond a classic ML classifier).▼hardAmazonMicrosoftGoogle2 replies◆ premiumThe trap is swapping the classifier for an LLM. The real-time, imbalance, and adversarial constraints stay put. The signal is a hybrid: a fast calibrated model scores inline, LLMs investigate the gray zone off the hot path.Open full answer →
36Design an ETA / delivery-time prediction system (ride-share, food delivery, logistics).▼hardUberAmazonGoogle1 replies◆ premiumETA is spatiotemporal regression served in real time over conditions that shift by the minute. The signal is feature freshness, segment or stage decomposition, and the asymmetric cost of being wrong. Here is the design.Open full answer →
42Design a spam / abuse detection system (email, comments, or messages).▼hardGoogleMetaMicrosoft1 replies◆ premiumSpam detection is adversarial, imbalanced classification under a low-latency bar. The interviewer is watching whether you set the threshold by cost asymmetry and rely on signals spammers cannot fake. Here is the design.Open full answer →
48Design the perception system for an autonomous vehicle (or robot).▼hardTeslaWaymoNVIDIA1 replies◆ premiumAV perception is safety-critical, real-time, multimodal ML: detect and track everything around the vehicle across multiple sensors. The signal is sensor fusion plus detection/tracking under a hard latency budget and a fail-safe bar. Here is the design.Open full answer →
85Design an audio denoising / speech enhancement system.▼mediumGoogleMicrosoftApple1 replies◆ premiumCleaning noise out of speech is a tradeoff between how good it sounds and how fast it runs. A strong answer weighs spectrogram masking against waveform models under a real-time budget, names PESQ and STOI as the metrics, and stays honest about the artifacts each approach brings.Open full answer →
99Design the ride-matching system that pairs riders with nearby drivers in real time.▼hardUberAirbnbAmazon2 replies◆ premiumA rider taps request and within seconds a nearby driver gets assigned. The interesting problems are geospatial indexing of moving drivers, the matching objective (nearest is not always best), and handling the race where two riders want the same car. Here is how to build it.Open full answer →
09Build a fraud-detection model for payments.▼hard★ EssentialStripePayPalAdyenunlockedFraud is well under 1% of transactions, the labels land weeks late as chargebacks, and the fraudsters deliberately adapt to your model. Optimizing accuracy hands you a model that approves everything. The interview is about dollars-at-risk thresholding, label delay, and a review queue with a fixed headcount.Open full answer →