Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Unified SaaS Analytics Platform

Design a reliable data platform that ingests heterogeneous SaaS sources into one governed, lineage-preserving analytics layer.

Problem statement

For this exercise, assume an internal data team must unify records from heterogeneous SaaS applications into one governed analytics layer.

Authorized data engineers connect source accounts, select objects to synchronize, and publish versioned mappings into analytical datasets; analysts query those datasets through SQL or BI tools.

Sources may expose paginated APIs, bulk exports, or webhooks, and may rate-limit requests, reorder changes, update or delete records, and evolve schemas.

Design the connection control plane, historical backfill and incremental ingestion paths, raw landing layer, canonical transformation and publication flow, metadata and quality controls, and analytical serving boundary. Preserve an immutable raw envelope and source lineage for every accepted record.

Advance a source cursor only after its corresponding raw data is durable, make retries produce one logical canonical effect, and expose dataset version and freshness watermarks to consumers.

Compatible source additions may land without breaking published tables; incompatible changes must be quarantined or explicitly remapped rather than silently corrupting them.

Keep source credentials isolated from data and query responses. Automatic fuzzy entity resolution, outbound writes to SaaS applications, dashboard or metric authoring, and operational replication back into source systems are out of scope.

What to build

  1. Authorized data engineers can connect, configure, inspect, pause, resume, and revoke a SaaS source account and choose which source objects to synchronize.
  2. The platform backfills selected source objects and continuously ingests updates and deletes through resumable, rate-limit-aware, idempotent synchronization.
  3. Data owners can validate and publish versioned mappings from raw source records into stable analytical datasets with explicit schema, lineage, and quality state.
  4. Analysts can query governed datasets with visible version and freshness, while operators can monitor lag, schema drift, quarantines, backfills, and bounded reprocessing.

At scale

  • For this exercise, assume 200 active source connections across 40 connector types, with up to 50 selected objects per connection and up to one billion historical records in the largest source account.
  • For this exercise, assume 100 million changed or deleted source records per day with short bursts of 10,000 records per second across the platform.
  • For this exercise, make 99% of accepted changes from a healthy source queryable within 15 minutes, and complete a one-billion-record backfill within 48 hours without pushing incremental freshness beyond that target.
  • For this exercise, retain immutable raw envelopes for 90 days and canonical analytical history for 13 months, and return a common single-dataset 30-day analytical query within five seconds at p95.