PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCareers
|Home/System Design/Pinterest

Design an ads event reporting system

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's ability to design scalable, reliable event ingestion and analytics systems, testing competencies in distributed data pipelines, stream and batch aggregation, storage partitioning, API/query design, and correctness concerns such as deduplication and handling late or out-of-order events.

  • medium
  • Pinterest
  • System Design
  • Software Engineer

Design an ads event reporting system

Company: Pinterest

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

Design an **ads event reporting system** that collects user-ad interaction events and serves aggregated metrics. ### Requirements 1. **Ingest events** from multiple platforms (web/mobile/server): - `impression`, `click`, `conversion` (extendable to more event types) 2. **Event schema** includes at minimum: - `event_id` (unique), `timestamp` (event time), `ingest_time`, `user_id` (or anonymized id), `ad_id`, `campaign_id`, `event_type`, plus optional attributes (geo, device, app version). 3. **Reporting queries**: - Time-series aggregates (e.g., per minute/hour/day) - Group-by dimensions: campaign/ad, geo, device - **User cohort / segment partitioning** (e.g., users grouped by country, or an offline-defined cohort id) 4. **Correctness and reliability**: - Handle duplicates (retries), out-of-order and late events - Support backfills and reprocessing 5. **Latency goals** (assume): - Near-real-time dashboards (e.g., p95 < 1–5 minutes) - Accurate daily finalized reports 6. **Scale goals** (assume): - 50k–500k events/sec peak - Store raw events for 30–90 days; aggregates longer ### Deliverables Propose an end-to-end architecture, storage layout/partitioning, aggregation strategy, APIs for querying, and how you ensure deduplication + correctness with late events. Include key tradeoffs.

Quick Answer: This question evaluates a candidate's ability to design scalable, reliable event ingestion and analytics systems, testing competencies in distributed data pipelines, stream and batch aggregation, storage partitioning, API/query design, and correctness concerns such as deduplication and handling late or out-of-order events.

Related Interview Questions

  • Design Catalog Update Pipeline - Pinterest (medium)
  • Design autocomplete and merchant bulk edits - Pinterest (medium)
  • Design highly available blob storage service - Pinterest (medium)
  • Design a global high-throughput rate limiter - Pinterest (hard)
  • Design a Google Photos–like service - Pinterest (hard)
Pinterest logo
Pinterest
Jan 22, 2026, 12:00 AM
Software Engineer
Onsite
System Design
22
0
Loading...

Design an ads event reporting system that collects user-ad interaction events and serves aggregated metrics.

Requirements

  1. Ingest events from multiple platforms (web/mobile/server):
    • impression , click , conversion (extendable to more event types)
  2. Event schema includes at minimum:
    • event_id (unique), timestamp (event time), ingest_time , user_id (or anonymized id), ad_id , campaign_id , event_type , plus optional attributes (geo, device, app version).
  3. Reporting queries :
    • Time-series aggregates (e.g., per minute/hour/day)
    • Group-by dimensions: campaign/ad, geo, device
    • User cohort / segment partitioning (e.g., users grouped by country, or an offline-defined cohort id)
  4. Correctness and reliability :
    • Handle duplicates (retries), out-of-order and late events
    • Support backfills and reprocessing
  5. Latency goals (assume):
    • Near-real-time dashboards (e.g., p95 < 1–5 minutes)
    • Accurate daily finalized reports
  6. Scale goals (assume):
    • 50k–500k events/sec peak
    • Store raw events for 30–90 days; aggregates longer

Deliverables

Propose an end-to-end architecture, storage layout/partitioning, aggregation strategy, APIs for querying, and how you ensure deduplication + correctness with late events. Include key tradeoffs.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Pinterest•More Software Engineer•Pinterest Software Engineer•Pinterest System Design•Software Engineer System Design
PracHub

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

Product

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

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL 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.