PracHub
QuestionsCoachesLearningGuidesInterview Prep
|Home/System Design/Amazon

Design ad clickstream analytics pipeline

Last updated: Jun 15, 2026

Quick Overview

Design ad clickstream analytics pipeline evaluates requirements, scale assumptions, API/data design, architecture, trade-offs, failure modes, and rollout in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

  • hard
  • Amazon
  • System Design
  • Software Engineer

Design ad clickstream analytics pipeline

Company: Amazon

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

##### Question Design an end-to-end advertising clickstream ingestion and analytics platform that ingests events through Kafka, stores raw and curated data in S3, and supports interactive queries with Presto. Cover the following: 1. **Ingestion (Kafka):** Define the topic partitioning strategy, message schema and serialization (with a schema registry), partition keys, ordering and delivery semantics, and consumer groups for multiple use cases (e.g., real-time CTR metrics within one minute *and* batch ETL to S3). 2. **Storage (S3 data lake):** Define the S3 layout and partitioning strategy for efficient Presto queries (e.g., by date / hour / campaign), the raw vs. curated zone separation, catalog and schema management, file formats, and compaction. 3. **Query engine (Presto):** Describe catalog/metastore integration, partition pruning, summary/materialized tables, and query optimizations. 4. **Scale & resilience:** Scale the system to 1M+ events/second. Address backpressure handling, broker outages, consumer restarts, exactly-once vs. at-least-once trade-offs, failover and recovery, data reprocessing/backfills, and late/out-of-order events. 5. **Governance & cost:** Cover schema evolution, PII governance, and cost optimization. 6. **Trade-offs:** Compare real-time vs. batch processing and explain where each is appropriate.

Quick Answer: Design ad clickstream analytics pipeline evaluates requirements, scale assumptions, API/data design, architecture, trade-offs, failure modes, and rollout in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

Related Interview Questions

  • Architect an AI Chatbot for Enterprise Users - Amazon (medium)
  • Object-Oriented Design: Snake Game - Amazon (medium)
  • High Availability and Failover for a Primary-Replica Database - Amazon (medium)
  • Design a Library Management System (API and Schema) - Amazon (hard)
  • Design a Perishable-Goods Inventory and Location Tracking System - Amazon (medium)
|Home/System Design/Amazon

Design ad clickstream analytics pipeline

Amazon logo
Amazon
Jul 31, 2025, 12:00 AM
hardSoftware EngineerOnsiteSystem Design
9
0

Design ad clickstream analytics pipeline

Design an end-to-end advertising clickstream ingestion and analytics platform that ingests events through Kafka, stores raw and curated data in S3, and supports interactive queries with Presto. Cover the following:

  1. Ingestion (Kafka): Define the topic partitioning strategy, message schema and serialization (with a schema registry), partition keys, ordering and delivery semantics, and consumer groups for multiple use cases (e.g., real-time CTR metrics within one minute and batch ETL to S3).
  2. Storage (S3 data lake): Define the S3 layout and partitioning strategy for efficient Presto queries (e.g., by date / hour / campaign), the raw vs. curated zone separation, catalog and schema management, file formats, and compaction.
  3. Query engine (Presto): Describe catalog/metastore integration, partition pruning, summary/materialized tables, and query optimizations.
  4. Scale & resilience: Scale the system to 1M+ events/second. Address backpressure handling, broker outages, consumer restarts, exactly-once vs. at-least-once trade-offs, failover and recovery, data reprocessing/backfills, and late/out-of-order events.
  5. Governance & cost: Cover schema evolution, PII governance, and cost optimization.
  6. Trade-offs: Compare real-time vs. batch processing and explain where each is appropriate.

Constraints & Assumptions

  • Preserve the scope, facts, inputs, and requested outputs from the prompt above.
  • If the prompt leaves a detail unspecified, state a reasonable assumption before relying on it.
  • Keep the answer interview-ready: concise enough to present, but concrete enough to implement or evaluate.

Clarifying Questions to Ask

  • Clarify users, core use cases, read/write patterns, scale, latency, availability, and data retention.
  • State explicit assumptions before making sizing or architecture decisions.
  • Prioritize the functional path first, then address reliability, security, observability, and rollout.

What a Strong Answer Covers

  • A scoped requirements summary with concrete non-goals and success metrics.
  • API, data model, architecture, consistency, capacity, and operations.
  • Reasoned trade-offs among simple and scalable designs, including bottlenecks and failure modes.
  • A validation, monitoring, migration, and launch plan appropriate for the risk level.

Follow-up Questions

  • What breaks first at 10x traffic or data volume?
  • How would you degrade gracefully during dependency failures?
  • What metrics and alerts would prove the design is healthy after launch?

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Amazon•More Software Engineer•Amazon Software Engineer•Amazon System Design•Software Engineer System Design

Your design canvas — auto-saved

PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.