Cloudflare Interview Prep

Cloudflare’s reported question pool is tiny, and as with other companies in that position the format explains it. The loop is practical rather than puzzle-based: coding that looks like work, a round spent debugging or extending an existing system, and a design round where candidates consistently report being told they cannot lean on managed cloud services. None of that generates shareable algorithm questions.

What it does generate is a networking bar. Cloudflare sits in the request path for a large slice of the internet, so interviewers expect you to explain what happens between a browser and an origin — DNS resolution, anycast routing, the TCP or QUIC handshake, TLS, cache lookup, origin fetch — and to reason about DDoS mitigation as an engineering problem rather than a product feature. Systems languages matter too: Go, Rust, and C++ come up repeatedly in reported loops.


Interview Process

Stage Duration Focus
Recruiter Screen 30 min Background, team, timeline
Hiring Manager Screen 30-45 min Projects, motivation, role shape
Technical Screen 45-60 min Practical coding, medium
Loop: Coding / Debugging 45-60 min Extend or debug a working system
Loop: System Design 60 min Edge or distributed design, no managed services
Loop: Orange Cloud 30 min Values and culture, reported as its own round
Loop: Cross-functional / Final 30-45 min Partner team or senior conversation

The loop is three to five rounds and the names vary by team. Two features recur across reports: a dedicated culture round, widely described as the Orange Cloud interview and typically a strict thirty minutes, and a design round framed without managed cloud building blocks. Reported timelines are longer than average, with multi-week gaps between stages, so plan your other processes accordingly rather than reading delay as rejection.


What Cloudflare Actually Tests

Cloudflare has a small reported question pool — 11 tagged problems (1 Easy, 8 Medium, 2 Hard). That is too few to break down by percentage, but it is useful information on its own: a narrow pool means the specific problems below carry real weight, and your odds of drawing one you have already solved are much better than at a company with a two-thousand-problem list.

Work through the whole list rather than sampling it, and lean on the process and design sections on this page for the rounds the question data cannot tell you about.


System Design (HLD) Problems Asked at Cloudflare

# Problem Difficulty Link
1 Rate Limiter (Edge Rate Limiting) Beginner Read →
2 Distributed Cache (CDN Cache Tier) Intermediate Read →
3 Distributed Key-Value Store (Globally Replicated Config) Advanced Read →
4 Metrics and Monitoring (Edge Telemetry at Scale) Intermediate Read →
5 Message Queue Advanced Read →
6 Video Streaming Delivery Advanced Read →

LLD / Machine Coding Problems Asked at Cloudflare

Component-level questions show up inside the coding and debugging round more often than as a separate interview. Build these in Go, Rust, or C++ if you can, and make the concurrency correct rather than decorative.

# Problem Difficulty Link
1 Multilevel Cache Intermediate Read →
2 Rate Limiter Intermediate Read →
3 Pub Sub System Intermediate Read →
4 Queue Management Intermediate Read →

DSA Problems Asked at Cloudflare

11 problems across 5 pattern groups. Each group is allocated in proportion to its real share of Cloudflare’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Design (Coding)

Build a data structure to a spec. Graded on API shape and the complexity of each operation, not just correctness. All 5 on the list.

# Problem Pattern Difficulty Link
1 Design Circular Queue Queue + Linked List Medium Solve →
2 Design a Stack With Increment Operation Design + Stack Medium Solve →
3 LRU Cache Doubly Linked List + Design Medium Solve →
4 Design Hit Counter Data Stream + Queue Medium Solve →
5 Logger Rate Limiter Data Stream + Design Easy Solve →

Graphs

Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 2 on the list.

# Problem Pattern Difficulty Link
6 Number of Islands Union-Find + BFS Medium Solve →
7 Course Schedule DAG + Topological Sort Medium Solve →

Sliding Window & Two Pointers

Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. All 2 on the list.

# Problem Pattern Difficulty Link
8 3Sum Two Pointers Medium Solve →
9 4Sum Two Pointers Medium Solve →

Heap / Priority Queue

Top-k, streaming medians, and scheduling. Usually the difference between a passing and a timing-out solution. One on the list.

# Problem Pattern Difficulty Link
10 Merge k Sorted Lists Tournament Sort + Merge Sort Hard Solve →

Math & Bit Manipulation

Number theory, geometry, and bit tricks. Short to write, easy to get subtly wrong on overflow and sign. One on the list.

# Problem Pattern Difficulty Link
11 Reaching Points Euclidean Algorithm + GCD Hard LeetCode →

Why the Question List Here Is Short

Cloudflare has one of the smallest reported question pools on this site. That is a property of the loop rather than a gap in the data: practical coding on realistic tasks, a debugging round on an existing system, and a design round constrained away from managed services do not produce the kind of self-contained puzzle that circulates in question banks.

So preparation here is a checklist, not a grind. Three things to get right:

  1. The network path. A request from browser to origin, named layer by layer, with the failure mode at each step.
  2. Design without rented building blocks. Replication, invalidation, and consistency explained as mechanisms you would implement.
  3. Debugging unfamiliar code. Read, reproduce, narrow, fix small, add a test.

The two sections below turn that into concrete work.


The Networking Bar

This is the part of a Cloudflare loop with no equivalent at a typical product company, and it is asked of product engineers too, not only infrastructure candidates.

Topic Be able to explain Typical follow-up
DNS Recursive versus authoritative resolution, record types, TTL and caching behaviour Where does a stale answer come from, and how fast can you actually change a record
Anycast One address announced from many locations, routing to the nearest point of presence What happens to an in-flight TCP connection when routing shifts
BGP Path-vector routing, announcements and withdrawals, policy How does a bad announcement take a service offline, and how would you limit the damage
TCP Handshake, congestion control, retransmission, head-of-line behaviour Why does a lossy mobile link destroy throughput
TLS Handshake steps, certificates and chains, session resumption, SNI What does terminating TLS at the edge change for the origin, and what are the trust implications
HTTP versions HTTP/1.1 keep-alive, HTTP/2 multiplexing, HTTP/3 over QUIC Which problem does QUIC solve that HTTP/2 could not, and at what cost
Caching Cache keys, freshness and revalidation, purge strategies, tiered caching How do you invalidate one object everywhere, and what is the stampede risk when you do
Load distribution Health checks, failover, steering by latency or geography What happens when a point of presence is up but degraded
DDoS mitigation Volumetric versus application-layer attacks, absorption, classification, challenge How do you avoid blocking real users while under attack
Observability at the edge Sampling, aggregation close to the source, cardinality limits How do you count requests globally without shipping every request home

A good habit for this round: answer in terms of what a packet or a request does, then name the failure mode. Definitions alone score low.


Commonly Reported Problem Shapes

Curated from candidate accounts rather than derived from tag data, so treat these as representative shapes. The pattern across reports is bounded, stateful, concurrent components and text or log processing — the work of an edge proxy, essentially.

Shape Typical prompt Closest practice
Rate limiter Limit requests per client, then make it work across many machines Logger Rate Limiter, Design Hit Counter
Cache with eviction and TTL Build a cache, then add expiry or change the policy LRU Cache, LFU Cache
Prefix and route matching Match a request path or hostname against configured rules Implement Trie, Design Add and Search Words Data Structure
IP and range lookup Which network or country does this address belong to Search Insert Position as the binary-search base, then interval lookup
Log and stream processing Parse a log stream and report the top talkers in a window Top K Frequent Elements, Sliding Window Maximum
Concurrency Bounded queue between producers and consumers, correct under load Design Bounded Blocking Queue
Debugging an existing service Here is a service with a bug or a performance problem; find it No LeetCode analogue — fix a real issue in an unfamiliar repo
Config distribution Push a rule change to every edge location quickly and safely No LeetCode analogue — design it, including rollback

The last two rows are where the loop actually differentiates candidates, and neither is grindable. Spend one session fixing a bug in an unfamiliar open-source repository with a test, and one session writing out how you would roll a config change to thousands of machines with a safe abort.


Orange Cloud and Behavioural Questions

# Question
1 Tell me about a time you were wrong in public and how you handled it.
2 Tell me about a decision you made that you could not fully justify with data.
3 Tell me about something you investigated purely because you were curious.
4 Tell me about a time you disagreed with a teammate and changed your own position.
5 Tell me about an incident you were part of. What did you tell people outside the team?
6 Tell me about a time you chose transparency over looking competent.
7 Why Cloudflare, and which part of the network or product interests you?

The culture round is short and scored, so compress each story to about two minutes. Cloudflare’s stated values are commonly reported as principled, curious, and transparent, and interviewers look for evidence rather than vocabulary — a time you published a post-mortem, admitted an error early, or dug into something nobody asked you to dig into.


Tips for Cloudflare Interviews

  1. Be able to narrate a request end to end, with the network layers in it. DNS resolution and record types, anycast routing to the nearest point of presence, the TCP or QUIC handshake, TLS negotiation, HTTP routing, cache lookup, then the origin fetch. This walkthrough is reported repeatedly and it anchors most other answers.
  2. Practice designing without managed services. You cannot answer “put it in a managed queue and a managed database” here. Say how you replicate state between points of presence, how you invalidate a cache globally, what consistency you can actually offer, and what you do when a region is partitioned.
  3. Prepare the DDoS conversation properly. Volumetric versus application-layer attacks, absorbing traffic with anycast, rate limiting and fingerprinting at the edge, the cost of inspecting every request, and how you avoid blocking real users. Treat it as a capacity and classification problem.
  4. Expect to debug someone else’s system. Reported loops include a round where you are handed working code or a broken service. Rehearse the method: read, reproduce, hypothesise, verify with a test or a log, then make the smallest fix.
  5. Have a systems language ready. Go and Rust dominate reported discussions, with C++ in some teams. You do not need to be an expert in all three, but be fluent in one and able to read another — ownership and borrowing questions come up for Rust roles.
  6. Know the protocols one level deeper than usual. BGP and how anycast actually attracts traffic, DNS resolver behaviour and caching, the TLS handshake and session resumption, and why HTTP/3 over QUIC avoids head-of-line blocking.
  7. Do not skip the culture round. Thirty minutes, its own slot, and a written data point. Prepare specific stories rather than relying on enthusiasm.

Other Company Prep


Reported question data for Cloudflare is sparse — the tagged list on this page is a handful of problems, too few to infer a pattern distribution from. Round names, durations, and the loop composition, including the Orange Cloud culture round and the constraint against managed cloud services in the design round, come from publicly shared candidate accounts rather than published documentation, and they vary by team and year. Confirm your schedule with your recruiter.