Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Design AWS Snowflake Realtime Analytics

HardPipelines00:00
Practice interviewer
In session
5 left
00:00

Your question is Design AWS Snowflake Realtime Analytics. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Context

PulseCart, a global retail marketplace, currently lands application, order, and inventory events into Amazon S3 and runs hourly Spark batch jobs before loading Snowflake. Product and operations teams now need sub-2-minute freshness for fraud, inventory, and conversion dashboards, so the platform must support real-time analytics without breaking existing batch consumers.

You are asked to design a scalable AWS + Snowflake architecture that ingests event streams and database changes, validates and transforms data, and serves analytics-ready tables with strong observability and recovery.

Scale Requirements

  • Throughput: 250K events/sec peak, 60K avg
  • Sources: web/mobile clickstream, checkout service events, CDC from Aurora PostgreSQL
  • Event size: 1-3 KB JSON; CDC payloads up to 10 KB
  • Latency target: source to Snowflake queryable in < 2 minutes P95
  • Daily volume: ~12 TB raw compressed
  • Retention: 180 days raw in S3, 3 years curated in Snowflake

Requirements

  1. Design ingestion for both append-only events and CDC updates/deletes.
  2. Support schema validation, deduplication, and replay without double-counting.
  3. Build a raw-to-curated ELT pattern in Snowflake for near-real-time dashboards.
  4. Preserve event ordering where needed for order and inventory topics.
  5. Define orchestration for streaming jobs, dbt transformations, backfills, and dependency management.
  6. Include monitoring for freshness, throughput, cost, and data quality.
  7. Describe failure recovery for broker outages, bad schema deployments, late data, and Snowflake load failures.

Constraints

  • Existing cloud footprint is AWS; Snowflake is the analytical warehouse.
  • Team has strong SQL/dbt skills, moderate Spark experience, limited Kafka operations experience.
  • Incremental platform budget is $35K/month.
  • Must support GDPR deletion within 72 hours and maintain auditability for finance data.
  • Existing hourly batch pipeline must remain available as fallback during migration.