Cloudflare Coding Interview: Questions & Format
- Expect practical infrastructure builds on CoderPad or HackerRank over a LeetCode gauntlet, with a Premium question as the signature
- Know the rounds: a technical phone screen, layered onsite pair-programming, and a senior debugging and code-review round
- Separate craft-graded backend pairing from the speed-graded front-end round, and check the AI-tool rule per round
- Map the recurring problem surface onto the five coding lessons ahead
Cloudflare runs a global network of data centers, the edge, that sits between visitors and the sites they load. It handles a large slice of the world's web traffic. The coding loop is built to find people who can extend that kind of infrastructure. So the problems look less like abstract puzzles and more like the components Cloudflare operates: rate limiters, caches that expire, log parsers, request schedulers. The environment is a shared coding pad, usually CoderPad or a HackerRank-style workspace. Your code runs while you write it.
Underneath the framing the substrate is ordinary medium algorithm work: arrays and strings, hash-map design, intervals, heaps, and a little graph and dynamic programming. What changes is how a round unfolds. You often do not get one fixed problem to solve and walk away from. You build a working component, then grow it in layers as the interviewer raises the bar. Cloudflare says little publicly about its loop, and fewer candidates write it up than at a big-tech giant. So treat the counts here as directional rather than precise.
isRateLimited(ip, method, path, userId, tenantId) and asks for a global request counter first. Once that works, scope it per path, then per user and path, then per user, path, and tenant. The signature never changes; the key you count against gets richer each step. The build itself is a hash map and a time window. The interview is everything layered on top: which windowing strategy you pick, how the key space stays bounded, and what happens when two requests race. Drill this one until growing it from a global counter to a composite key is reflex.How the coding rounds run
The loop opens with recruiter and hiring-manager conversations, then reaches the coding rounds in two shapes. A technical phone screen comes first: a single live problem in the language you are cleanest in, with a small extension bolted on rather than a second full problem. The onsite adds a longer pair-programming round, where the build-then-extend mechanic really lives. Senior loops especially add a separate debugging and code-review round, where you read someone else's code before writing any of your own. Counts and ordering flex by team and level, so read the shape below as a likely pattern.
- Platform: CoderPad or HackerRank. The phone screen and onsite backend rounds run in a shared pad where code executes. Some pipelines add a short online assessment of two or three questions; many skip it and go straight to a live screen. Front-end candidates work in their own local environment on a provided repo.
- Phone screen: ~45-60 min, one problem. One medium algorithm problem or one practical task such as a rate limiter, in the language you choose, plus a small follow-up. A recurring backend warm-up starts at the triplet family and extends it a dimension further.
- Onsite pairing: 60-90 min, build then extend. You implement a working component and grow it as the interviewer raises the bar: scale it, make it thread-safe, handle disconnects. Clean, testable code and the scaling conversation are graded together, and coding blurs into low-level design.
- Debugging / code-review: Senior loops, ~90 min. Review a snippet, enumerate gaps and bugs, then reason about debugging a latency spike across a distributed system using logs and metrics. More common at senior and above; varies by team.
What the problems favor
No standardized question set carries across teams, so what recurs is a posture more than a list. Group the recurring problems by the muscle they work and a rough shape appears. Hash-map design and caching lead. So much of what Cloudflare runs at the edge is a keyed counter or an expiring cache, and that gravity pulls the loop toward keyed data-structure design more than any other family. Array, string, and hashing work fills the phone screen and the log-parsing builds. Intervals, scheduling, graphs, and light dynamic programming round out the rest. These weights are not published anywhere, so read the chart as relative prominence, not a rate any single loop will match.
Two graded stances run in the same loop, and mixing them up costs you. Backend pairing rewards craft over speed: clean, testable, extensible code and a real conversation about scale beat a fast but brittle answer. The front-end app-coding round inverts that emphasis. It hands fullstack and front-end candidates a React and TypeScript repo with mock UI and API, plus about four tasks under the clock. Here finishing counts as much as correctness, and completing two of four has been reported as a reject. On language, most backend rounds are yours to choose, though Go and Rust carry real weight for infrastructure roles given the systems heritage of the codebase. Front-end pipelines are JavaScript and TypeScript.
How these lessons are organized
Each lesson below takes one part of that surface and works its recurring problems as runnable builds, with the Cloudflare framing and the follow-ups the room piles on. Where a lesson rests on a base data-structures idea, the deep walkthrough lives in the free Foundations course so these pages can stay on what is specifically Cloudflare. Start with arrays and strings, the widest phone-screen bucket, then move into the hash-map and caching lesson where the rate limiter lives.
Arrays, Strings & Hashing
The phone-screen substrate. Sliding-window and two-pointer work, the 3Sum-into-4Sum extension, top-K talkers and hottest paths, and log-line parsing framed as edge telemetry. Start here.
Hash Maps & Design
The signature bucket. The a Premium question built then grown to a composite key, LRU and TTL caches, and a hit counter over a trailing window, each extended for concurrency and bounded memory.
Trees & Graphs
Networking-framed graph work. Tries for path and route matching, shortest-path and union-find on latency and topology graphs, plus IP and CIDR bit math as the low-level systems tell.
Dynamic Programming
Kept to the medium tier: one-dimensional and grid DP, alongside the greedy packing problems the screen reaches for, like partitioning used data across the fewest disks.
Heaps & Intervals
a Premium question mapped onto IP-range and time-window merging, the task-scheduler build with its disconnection and freshness follow-ups, and heap-based request load balancing.
Common questions
Does Cloudflare use LeetCode?
Not as a pure LeetCode gauntlet. The problems are practical and infrastructure-flavored, building a component like a rate limiter, a cache, or a log parser in a shared pad such as CoderPad or a HackerRank-style workspace, then extending it. Standard data-structure fluency still helps, so the Arrays, Strings & Hashing substrate is worth drilling, but the round rewards clean, extensible code over a memorized trick.
Does Cloudflare give an online assessment (OA)?
Sometimes. Some pipelines add a short online assessment of two or three questions as an early filter, and many skip it and go straight to a live coding screen. Confirm which you are getting with your recruiter, and prepare the same way either path, by building small components and extending them.
What coding questions does Cloudflare ask?
The signature is a rate limiter grown in stages, from a global limit to per-path, then per-user, then per-tenant. Around it sit caches with expiry, hit counters, log and stream parsers, task schedulers, and IP and CIDR bit work, all reinforced with concurrency and a "now scale it" follow-up. The lessons in this section are organized around those builds rather than around algorithm families.
Key Takeaways
- ✓Cloudflare coding is practical building. On CoderPad or HackerRank you build components that look like edge infrastructure (rate limiters, caches, parsers, schedulers) and extend them in layers, so prepare by building as well as drilling algorithm tags.
- ✓A Premium question is the signature. Growing isRateLimited from a global counter to a composite user, path, and tenant key, with a windowing choice, bounded memory, and thread-safety on tap, is the one thing to over-drill.
- ✓Solving is not enough. The follow-up (concurrency, memory bounds, disconnections, and the no-managed-cloud constraint) is graded alongside the code, and a clean solution with no scaling story has lost rounds.
- ✓Hold two splits. Backend pairing grades craft over speed, while the front-end React and TypeScript app round grades speed and completion. The AI rule also varies by round: agent-driving is probed in some backend and debugging loops and banned in the front-end one. Confirm your track and the per-round rules first.
Cloudflare interview guideKnow what Cloudflare asks before you walk in.
15 coding · 5 system design · 21 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.