03Design a real-time fraud detection system where fraud is under 1% of transactions.▼hardAmazonGoogleMicrosoft1 repliesunlockedExtreme class imbalance plus a hard latency budget plus an adversary who adapts. The signal is handling imbalance honestly, choosing the operating point from costs, and designing for the feedback loop. Here is 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 meet hard latency and money. The signal is knowing that CTR must be calibrated (not just ranked), the feature and serving design, and the auction context. Here is the design that goes beyond 'train a classifier.'Open full answer →
25Design a dynamic pricing engine (e.g. ride-sharing, e-commerce, travel).▼hardAmazonGoogleMicrosoft2 replies◆ premiumDynamic pricing blends demand forecasting, optimization, and real-time serving, with 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 replacing the classifier with an LLM. The real-time, imbalance, and adversarial constraints do not go away. 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 change 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 for whether you set the threshold by cost asymmetry and lean 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 from 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 picks spectrogram masking versus waveform models against a real-time budget, names PESQ and STOI as the metrics, and is honest about the artifacts each approach introduces.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 is 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 →