KatInterview

Designing an Analytics Data Pipeline Across Cloud, Hybrid and Multi-Cloud

System DesignModel answer
MediumModel answerSystem Designdata-pipelinehybrid-cloudaws

Last updated

Design a pipeline from operational systems to analytics, then adapt it for a hybrid on-prem and cloud setup and map it onto AWS and Azure, defending each tool choice.

Scenario

A company wants to get data out of its operational systems and into an analytics platform used by analysts, dashboards and downstream applications. You are asked to design the pipeline and defend every tool you pick against at least one alternative.

The requirements are deliberately incomplete. Ask about them or state assumptions, and explain how your design would shift under different answers. Typical questions:

  • What are the sources (relational databases, application events, partner files, third-party APIs) and how much does each produce per day?
  • How fresh must the data be for each consumer: daily, hourly, or within minutes?
  • Who consumes it: BI, analysts and data scientists, ML features, operational apps?
  • Is there personal or sensitive data, and must any of it stay on-premises?
  • Is the company committed to one cloud, or should the design stay portable?

Concrete services, frameworks and libraries are expected, not only boxes and arrows.

Part 1: Single cloud

Design the pipeline end to end on one cloud provider, covering:

  • Ingestion per source type into a landing zone
  • Storage layers, file and table formats, partitioning and schema evolution
  • Transformation and orchestration
  • Serving to consumers
  • Data quality checks, idempotent reruns, backfills and failure alerting

Part 2: Hybrid environment

Some source systems and some data must remain in on-premises data centers. Redesign the pipeline, covering:

  • Secure connectivity across the boundary, with buffering when the link fails
  • Where compute and storage live on each side, and the rules for what may move
  • A single orchestration and monitoring view
  • Consistent identity, encryption and auditing in both environments

Ask what drives the on-prem constraint (regulation, contracts, cost) and what network capacity exists.

Part 3: AWS and Azure

Map each stage to services on both providers and compare them. Explain which differences actually change the design, what portability costs, and how local development and testing mirror the cloud deployment.

Hints

Hint 1

Start by fixing assumptions (volume, freshness, consumers, sensitivity) and let them decide batch versus streaming for each source rather than picking tools first.

Hint 2

Organize storage as raw, cleaned and curated layers on an open table format, and make every job idempotent (partition overwrite or merge on keys) so reruns and backfills are safe.

Hint 3

For the hybrid case, think about what crosses the boundary: use a private link, a local buffer or queue on-prem, and process or mask sensitive data before it leaves. For multi-cloud, separate the portable layer (open formats, dbt, Spark, Airflow, Terraform) from the managed services that differ.