16Write SQL for a cohort retention analysis (what % of users return in week N after signup).▼hardMetaAmazonNetflix2 replies○ sign inThe canonical product-analytics SQL question. The signal is grouping users by signup cohort, computing each activity's period offset, and counting distinct returners per offset to build the retention triangle.Open full answer →
102Design a time-series database that ingests millions of metrics per second and answers range queries fast.▼hardAmazonNetflixMicrosoft1 replies◆ premiumMetrics, traces, and IoT data are append-heavy, time-ordered, and rarely updated. A general database handles this badly. The wins come from columnar layout, compression tuned for timestamps, downsampling, and retention. Here is the time-series design interviewers want.Open full answer →
52A key customer is about to churn. Walk me through how you would try to save the account.▼hardSalesforceDatabricksSnowflake2 replies◆ premiumSaving a churning account is diagnosis under pressure: find the real reason, fix what you can, and earn back trust with action. Interviewers want a method, not a discount. Here is the move.Open full answer →