Cloudflare High-Level Design (HLD) Interview Questions
Anycast L7 WAF/DDoS scrubbing, authoritative DNS & edge KV caches. Practice each prompt in HLDArena's 60-second discrete-event simulator with p99 latency, availability, and cloud cost gates.
- Anycast edge traffic absorption, token-bucket rate limiting & bot scrubbing
- Low-latency global config propagation (< 5s) & edge KV caching
- High-throughput telemetry log ingestion & time-series aggregation
| Status | Code | Question | Difficulty | Max Pts |
|---|---|---|---|---|
| — | HLD-414 | Anycast L7 WAF, Bot Reputation & Global Token-Bucket Edge Design Cloudflare / Akamai’s global L7 Web Application Firewall evaluating JA4 TLS fingerprints, dynamic WAF rulesets, and distributed rate limits at 280k+ RPS. | Expert | 2000 pts |
| — | HLD-120 | Global Anycast Authoritative DNS & Zone Store Design a Route 53 / Cloudflare-style authoritative DNS lookup and zone-record propagation backend serving ultra-low-latency A/AAAA/CNAME answers. | Easy | 500 pts |
| — | HLD-101 | Distributed API Rate Limiter & Quota Gateway Design a low-latency ingress rate-limiting tier enforcing per-tenant sliding-window and token-bucket quotas across stateless API gateways without adding tail latency. | Easy | 500 pts |
| — | HLD-119 | Distributed Cache Proxy & Consistent Hashing Router Design a Mcrouter/Twemproxy-style caching router that maps hot key lookups across sharded cache pools using consistent hashing while coalescing cold-key misses. | Easy | 500 pts |
| — | HLD-125 | Static Site Atomic Deployment & Edge Asset Router Design a Vercel/Netlify-style immutable static deployment router mapping custom domains to content-addressed asset bundles with instant atomic rollbacks. | Easy | 500 pts |
| — | HLD-103 | Global Feature Flag & Dynamic Config Service Design a configuration and feature-toggle distribution backend polled by backend and mobile SDKs during coordinated app rollouts. | Easy | 500 pts |
| — | HLD-201 | High-Throughput URL Shortener & Redirector Design a URL shortening and redirection service capable of sustaining extreme read-heavy viral traffic spikes while surviving storage node failures within a tight monthly cloud budget. | Medium | 1000 pts |
| — | HLD-225 | Centralized Log Ingestion & Full-Text Search Pipeline Design a Datadog Logs / ELK-style observability pipeline ingesting structured JSON logs at high write throughput while serving incident search queries. | Medium | 1000 pts |
| — | HLD-206 | Cloud Metrics & Alerting Time-Series Store Design a time-series ingestion and dashboard query platform handling continuous infrastructure scrapes and incident war-room query spikes. | Medium | 1000 pts |
| — | HLD-121 | Microservice Health-Check & Service Discovery Registry Design a Consul / Netflix Eureka-style service registry handling continuous pod heartbeats and high-QPS endpoint discovery lookups across thousands of microservices. | Easy | 500 pts |
| — | HLD-128 | Real-Time Phishing & Safe-Browsing URL Reputation API Design a Google Safe Browsing-style URL prefix reputation service queried by browsers and email gateways before rendering external links. | Easy | 500 pts |
| — | HLD-124 | Perceptual Image Hash & Blocklist Moderation API Design a trust-and-safety hash lookup API checking uploaded media PDQ/PhotoDNA hashes and banned URL signatures before content goes live. | Easy | 500 pts |
| — | HLD-130 | Dynamic i18n String Bundle & Live Localization API Design an over-the-air (OTA) localization service delivering translated UI string bundles to web and mobile apps across 80 locales without app-store redeployments. | Easy | 500 pts |
| — | HLD-127 | E-Commerce Promo Code & Eligibility Rule Validator Design a checkout promo-code eligibility service validating campaign rules, minimum cart thresholds, and merchant promo metadata during seasonal sales. | Easy | 500 pts |
| — | HLD-115 | Edge Geo-IP Country & Timezone Lookup Service Design an ultra-fast IP-to-country, ASN, and timezone resolution service invoked at ingress for localization and compliance routing. | Easy | 500 pts |
| — | HLD-415 | Global Election & Olympics Live Scoreboard (300k-RPS Edge Feed) Design a global live-results publishing & edge-delivery architecture (Olympics / World Cup / Election Night) where verified precinct/venue updates fan out to 50M+ concurrent viewers without stale regressions. | Expert | 2000 pts |
| — | HLD-217 | Sticky A/B Experiment Assignment & Exposure Log Design an experimentation bucketing and sticky-override service ensuring users always see a consistent treatment arm across requests while logging exposures. | Medium | 1000 pts |
| — | HLD-108 | Event QR Badge Lookup & Gate Check-In API Design a stadium and conference gate check-in service validating scanned QR attendee badges at turnstiles with sub-30ms tail latency when venue doors open. | Easy | 500 pts |
| — | HLD-237 | Personalized Music Home Shelf & Real-Time Skip Feedback Design Spotify / YouTube Music’s personalized home shelf service combining precomputed collaborative-filtering candidates with real-time skip/play session signals. | Medium | 1000 pts |
| — | HLD-112 | Global Currency FX Exchange Rate Ticker API Design a read-intensive currency conversion rate API queried by global e-commerce checkout pages during central-bank rate announcements. | Easy | 500 pts |
| — | HLD-126 | Calendar Free/Busy Slot Lookup & Booking Link API Design a Calendly-style public scheduling availability API that serves precomputed free/busy bitmaps when hosts share booking links widely. | Easy | 500 pts |
| — | HLD-111 | User Profile Card & Avatar Metadata Service Design a foundational user profile microservice hydrating display names, handles, and avatar URLs across internal services on every page render. | Easy | 500 pts |