skip to content

Cloudflare

Cloudflare runs a global network in front of origins and a developer platform on top of it. Interviewers probe what runs at the edge, what its stores guarantee and what the proxy protects.

on this pageshow

explore

questions

296 · 14 sections

In a Cloudflare Worker, how do you reuse an expensive JSON response with caches.default, cache.match() and cache.put()?

level: juniorimportance: must knowfreq 45%
basics
~10 s

Build a GET Request as the key and return caches.default.match(key) when it hits; on a miss, build the response with a Cache-Control lifetime, store response.clone() with cache.put() inside ctx.waitUntil, and return the original.

open as a page

On a site proxied by Cloudflare, which files does the edge cache by default, and why do HTML pages show cf-cache-status DYNAMIC?

level: juniorimportance: must knowfreq 75%
basics
~20 s

Cloudflare caches by file extension: images, CSS, JavaScript, fonts, media, documents and archives, plus robots.txt. HTML, JSON and extensionless paths are not on the list, so those requests go to the origin without a cache lookup and show DYNAMIC.

open as a page

In Cloudflare, how do you purge one corrected page from the edge cache, and how do you confirm the purge worked?

level: juniorimportance: must knowfreq 62%
basics
~20 s

Use purge by single-file: Custom Purge, then URL, on the zone's Caching Configuration page, or send the URL to the purge_cache API. A 200 only means Cloudflare accepted it; re-request the page and check cf-cache-status is no longer HIT.

open as a page

In Cloudflare's cf-cache-status header, what do HIT, MISS, EXPIRED, UPDATING, BYPASS and DYNAMIC mean, and how do BYPASS and DYNAMIC differ?

level: middleimportance: must knowfreq 65%
basics
~20 s

HIT is served from cache, MISS is cacheable but fetched, EXPIRED is a stale copy refetched, UPDATING is stale served during background revalidation. DYNAMIC means ineligible at request time; BYPASS means eligible, but the origin's response could not be stored.

open as a page

In Cloudflare, how do Cache-Tag response headers let a sports-results site purge a match page, its JSON feed and league tables in one request?

level: middleimportance: must knowfreq 55%
basics
~20 s

The origin adds a Cache-Tag header naming match-8812 to every response that shows that match's score. Cloudflare stores the tags with each cached object and strips the header. One purge by tag then removes every object carrying it, on any plan.

open as a page

In Cloudflare DNS, what changes when an A, AAAA or CNAME record is Proxied instead of DNS-only?

level: juniorimportance: must knowfreq 75%
basics
~20 s

A Proxied (orange-cloud) record is answered with Cloudflare anycast IPs, so its HTTP and HTTPS traffic passes through Cloudflare's cache, WAF and DDoS protection; a DNS-only (gray-cloud) record returns the real origin address and bypasses all of it.

open as a page

In a Cloudflare full setup, what must change at the registrar to activate a zone, and why does it stay Pending until then?

level: juniorimportance: must knowfreq 45%
basics
~20 s

Replace the domain's nameservers at the registrar with exactly the two Cloudflare nameservers assigned to the zone. Until the parent zone delegates to them and Cloudflare's activation check sees it, the zone stays Pending Nameserver Update and proxies nothing.

open as a page

With Cloudflare Load Balancing steering set to Off, how does traffic move between pools as endpoints fail, and when does the fallback pool take over?

level: middleimportance: must knowfreq 42%
basics
~20 s

Off steering sends traffic to the first healthy pool in list order. A pool below its Health Threshold goes Critical and the next pool takes over; when every pool is Critical, the fallback pool serves without any health check.

open as a page

A site's apex and www records are proxied on Cloudflare, yet attackers reach the origin directly; which records in the zone could have exposed its IP?

level: seniorimportance: must knowfreq 60%
basics
~20 s

Any answer carrying the origin's address: a DNS-only A, AAAA or CNAME for another service on that server, a mail host or _dc-mx answer, a DNS-only wildcard, and every record while the zone was pending activation.

open as a page

In Cloudflare Load Balancing, what roles do the load balancer, its pools, their endpoints and the health monitors each play?

level: juniorimportance: should knowfreq 36%
basics
~20 s

A Cloudflare load balancer is a hostname on a zone that picks a pool for each request. A pool groups endpoints, the origin addresses with weights. A monitor attached to the pool probes those endpoints so only healthy ones receive traffic.

open as a page

With Cloudflare Turnstile, how do you protect a marketplace's sign-up form, and why must the server call siteverify instead of trusting the widget?

level: juniorimportance: must knowfreq 50%
basics
~20 s

Embed the Turnstile widget with its public sitekey so the form submits a token in cf-turnstile-response. The server posts that token and the secret key to siteverify and creates the account only on success; an unchecked token proves nothing.

open as a page

Behind Cloudflare's proxy, why should an origin firewall accept web traffic only from Cloudflare's IP ranges, and how is that list kept current?

level: juniorimportance: must knowfreq 65%
basics
~20 s

Proxying hides the origin's address but cannot stop anyone who already knows it. Accepting web traffic only from Cloudflare's published ranges makes the proxy the only way in; sync the list from www.cloudflare.com/ips or the API's /client/v4/ips endpoint.

open as a page

In Cloudflare, what does a rate limiting rule count, and what happens to a client that goes over its threshold?

level: juniorimportance: must knowfreq 62%
basics
~20 s

A Cloudflare rate limiting rule counts matching requests, one counter per value of its characteristics such as the client IP. Once a counter passes requests per period, the action, such as Block with status 429, applies for the configured duration.

open as a page

In a Cloudflare WAF custom rule, what do the expression and the action do, and how would you block a scraper on one search endpoint?

level: juniorimportance: must knowfreq 62%
basics
~20 s

A WAF custom rule pairs a Rules language expression, which tests request fields such as http.request.uri.path and ip.src.asnum, with an action such as Block or Managed Challenge that Cloudflare applies to every request the expression matches.

open as a page

In Cloudflare Bot Management, what does a bot score from 1 to 99 mean, and how do you act on cf.bot_management.score in a rule?

level: middleimportance: must knowfreq 42%
basics
~20 s

The bot score is Cloudflare's confidence that a request is automated: 1 almost certainly a bot, 2-29 likely automated, 30-99 likely human, 0 not scored. Enterprise Bot Management exposes it as cf.bot_management.score for custom rules, Workers and logs.

open as a page

In Cloudflare Workers, how does a var differ from a secret, and how does each one reach the Worker's code?

level: juniorimportance: must knowfreq 72%
basics
~20 s

A var is plaintext configuration declared under vars in the Wrangler file or the dashboard; a secret is an encrypted value set with wrangler secret put and never displayed again. Both arrive on env as ordinary values.

open as a page

In Cloudflare Workers, what does an ES module Worker export, and what do the fetch handler's request, env and ctx parameters carry?

level: juniorimportance: must knowfreq 75%
basics
~20 s

An ES module Worker's default export is an object of handlers such as fetch and scheduled. fetch(request, env, ctx) gets the Request, env with bindings, vars and secrets, and ctx with waitUntil() and passThroughOnException(), and returns a Response.

open as a page

In Cloudflare Workers, what is the difference between CPU time and wall time, and which one does the CPU limit count?

level: juniorimportance: must knowfreq 70%
basics
~20 s

CPU time counts only the Worker's code actually running; wall time also includes waiting on fetch(), KV or a database. The CPU limit counts CPU time: 10 ms on Workers Free, 30 seconds by default on Workers Paid, up to 5 minutes.

open as a page

How do you stream a deployed Cloudflare Worker's live logs with `wrangler tail`, and which filters narrow what it shows?

level: juniorimportance: must knowfreq 45%
basics
~20 s

wrangler tail streams a deployed Worker's invocations live to the terminal: request, outcome, console output and exceptions. Filters such as --status error, --search, --method, --header, --ip self and --version-id narrow the stream, and nothing is stored.

open as a page

In Cloudflare Workers, why does calling headers.set() on a Response returned by fetch() throw, and how do you change its headers?

level: juniorimportance: must knowfreq 60%
basics
~20 s

A Response returned by fetch(), like the incoming Request, has immutable headers, so set() throws a TypeError. Build a copy with new Response(upstream.body, upstream), which keeps status and headers and streams the body unread, then edit the copy.

open as a page

In Cloudflare D1, how do you query from a Worker with prepare() and bind(), and when do you choose first(), all(), run() or raw()?

level: juniorimportance: must knowfreq 70%
basics
~10 s

Write env.DB.prepare(sql) with ? or ?NNN placeholders and pass values through bind(), never string concatenation. first() returns one row or null, all() and run() return rows plus meta, and raw() returns rows as arrays.

open as a page

In Workers KV, how does a Worker read and write a feature flag through its binding, and what does get() return for a missing key?

level: juniorimportance: must knowfreq 70%
basics
~20 s

A Worker reads with env.FLAGS.get(key), passing type "json" to get a parsed object, and writes with env.FLAGS.put(key, value, options). Both return promises to await, and get() resolves to null when the key does not exist.

open as a page

In Cloudflare Workers, how do you write, read and list objects in an R2 bucket through its binding, and what does each call return?

level: juniorimportance: must knowfreq 65%
basics
~10 s

Bind the bucket under r2_buckets and call env.BUCKET.put(), get(), head(), list() and delete(). put() returns an R2Object, get() an R2ObjectBody with a stream, head() metadata only, and a missing key gives null.

open as a page

In Cloudflare D1, how does env.DB.batch() make several statements atomic, and why does a Worker not send BEGIN TRANSACTION instead?

level: middleimportance: must knowfreq 55%
basics
~20 s

env.DB.batch() runs an array of prepared statements in order as one SQL transaction in a single call; if one fails, all roll back and the call rejects. D1 already wraps each query in a transaction, so BEGIN is rejected.

open as a page

In Workers KV, why can a feature flag an admin just switched off still read as on in other locations, and what does cacheTtl change?

level: middleimportance: must knowfreq 65%
basics
~20 s

Workers KV writes go to central stores while each location serves its cached copy, so other locations may see the old value for 60 seconds or more. cacheTtl sets that cache time: 60 seconds by default, 30 at minimum.

open as a page

In Cloudflare Pages with Git integration, what happens when you push to the production branch versus any other branch?

level: juniorimportance: must knowfreq 52%
basics
~20 s

A push to the production branch builds and replaces the live site on <project>.pages.dev and its custom domains. A push to any other branch builds a preview deployment with its own hash URL and a branch alias, leaving production untouched.

open as a page

In Cloudflare Pages Functions, how do files under functions/ become routes, and how do [id] and [[path]] filenames capture URL segments?

level: juniorimportance: must knowfreq 35%
basics
~20 s

Each file under functions/ serves the URL path that mirrors its location, and index.js serves its folder. A [id].js file matches exactly one segment, read as a string from context.params.id; [[path]].js matches any depth and yields an array.

open as a page

In a Cloudflare Worker with static assets, which requests run the Worker's fetch handler and which are served straight from assets.directory?

level: juniorimportance: must knowfreq 45%
basics
~20 s

By default, a request whose path matches a file in assets.directory is served as that file without running the Worker. Only a miss invokes the fetch handler, which can answer itself or hand the request back with env.ASSETS.fetch().

open as a page

In Cloudflare Workers static assets, how does not_found_handling serve a single-page app, and how do its three values differ?

level: middleimportance: must knowfreq 45%
basics
~20 s

In Workers static assets, not_found_handling sets the reply when no file matches: single-page-application serves /index.html with 200, 404-page the nearest 404.html with 404, and none, the default, an empty 404. With a Worker script and no route patterns, non-navigation misses reach the script first.

open as a page

Why did adding functions/_middleware.js to a Cloudflare Pages site make every image and stylesheet request invoke Functions, and how does _routes.json fix it?

level: seniorimportance: must knowfreq 25%
basics
~20 s

Wrangler generates _routes.json from the functions/ tree, and a root _middleware.js makes it include /*, so every request invokes the Functions Worker. Scope the middleware to a folder such as functions/api/, or ship a custom _routes.json whose exclude list covers static paths.

open as a page

How does a Cloudflare Worker call a method on a Durable Object, and what are the namespace binding, the stub and an RPC method?

level: juniorimportance: must knowfreq 62%
basics
~20 s

A durable_objects binding puts a namespace on env; getByName() or get(id) returns a stub immediately, and awaiting stub.someMethod() sends an RPC to the one object, which runs that public method of its class extending DurableObject.

open as a page

In a Cloudflare Durable Object, how do you persist state through ctx.storage, and why is a class field not enough?

level: juniorimportance: must knowfreq 60%
basics
~20 s

A Durable Object persists state by writing to its private ctx.storage, with put() and get() for key-value pairs or ctx.storage.sql.exec() for tables. Class fields live only in memory and are lost when the object is evicted, reset or redeployed.

open as a page

In Cloudflare Durable Objects, what is the difference between idFromName() and newUniqueId(), and when would you choose each?

level: middleimportance: must knowfreq 70%
basics
~10 s

idFromName() hashes a string into the same Durable Object ID everywhere, so one name always reaches one object worldwide; newUniqueId() mints a random ID you must store (as toString()) and rebuild later with idFromString().

open as a page

In a Cloudflare Durable Object, what does ctx.blockConcurrencyWhile() guard, and why call it in the constructor rather than around every request?

level: middleimportance: must knowfreq 50%
basics
~20 s

ctx.blockConcurrencyWhile(callback) stops every other event reaching the object until the async callback settles, even across awaits. That suits one-time setup in the constructor, such as creating tables; wrapping each request serialises all traffic and caps throughput.

open as a page

For a Durable Object chat room holding 5,000 mostly idle clients, what changes in memory and billing between ws.accept() and ctx.acceptWebSocket()?

level: middleimportance: must knowfreq 32%
basics
~20 s

With ws.accept() the object must stay in memory, billed for duration, as long as any socket is open. With ctx.acceptWebSocket() the runtime holds the sockets, so an idle object hibernates and accrues no duration charges until a message wakes it.

open as a page

In Cloudflare Queues, how does a producer Worker send an order event, and how does a consumer Worker receive it?

level: juniorimportance: must knowfreq 45%
basics
~20 s

A producer Worker binds the queue under queues.producers and calls env.ORDERS.send(body) or sendBatch(); a consumer Worker listed under queues.consumers exports a queue(batch, env, ctx) handler and reads batch.messages, each with id, timestamp, attempts and body.

open as a page

In Cloudflare Queues, what do max_batch_size and max_batch_timeout default to, and what does raising them save when Queues bills per message?

level: middleimportance: must knowfreq 42%
basics
~20 s

max_batch_size defaults to 10 messages (up to 100) and max_batch_timeout to 5 seconds (up to 60); a batch ships when either is reached. Queues bills per message, so bigger batches save consumer invocations and downstream writes, at a latency cost.

open as a page

In a Cloudflare Queues email consumer whose provider sometimes returns 429, how do message.ack() and message.retry() keep one failure from re-running the batch?

level: middleimportance: must knowfreq 45%
basics
~20 s

Calling message.ack() after each successful send settles that message for good, and message.retry({ delaySeconds }) puts only the rate-limited one back for later, so no thrown error fails the batch and one failure no longer re-sends the emails beside it.

open as a page

In a Cloudflare Workflow, how do step.do() retries and timeouts behave by default, and when do you throw NonRetryableError?

level: middleimportance: must knowfreq 45%
basics
~20 s

By default each step.do() retries a thrown error 5 times with a 10-second exponential backoff and a 10-minute timeout per attempt; a per-step config overrides it. Throwing NonRetryableError stops the retries at once for a permanent failure.

open as a page

After a long step.sleep(), a Cloudflare onboarding Workflow sent a second welcome email and a later step read an empty array; why, and how do you fix it?

level: seniorimportance: must knowfreq 42%
basics
~20 s

When an instance wakes or the engine restarts, Workflows replays run() from the top: finished step.do() calls return their saved results, but code between steps runs again and in-memory variables start empty. Put side effects inside steps and build state from step returns.

open as a page

In Cloudflare Workers, what must a Wrangler configuration file declare, and why does Cloudflare recommend wrangler.jsonc over wrangler.toml for new projects?

level: juniorimportance: must knowfreq 55%
basics
~20 s

A Wrangler file needs at least name, main and compatibility_date. JSONC and TOML carry identical keys, but Cloudflare recommends wrangler.jsonc because some newer Wrangler features, such as writing a newly created binding into the file, work only with JSON configs.

open as a page

In Wrangler 4, what does wrangler dev run on your machine by default, and how does wrangler dev --remote differ?

level: juniorimportance: must knowfreq 68%
basics
~20 s

By default wrangler dev runs the Worker locally in workerd, the production runtime, through the Miniflare simulator, with most bindings simulated on disk. wrangler dev --remote uploads the code to a temporary preview on Cloudflare's network, where every binding is real.

open as a page

In a Wrangler configuration file, which keys does an env block inherit from the top level, and why must vars and bindings be repeated?

level: middleimportance: must knowfreq 45%
basics
~20 s

An env block inherits most keys, such as main, compatibility_date, routes, triggers and limits, and its Worker is named name-env. Vars, define and every binding are not inherited, so a block that omits them gets none, and Wrangler only warns.

open as a page

In Cloudflare Workers, what is the difference between a version and a deployment, and how does wrangler deploy differ from wrangler versions upload?

level: juniorimportance: should knowfreq 45%
basics
~20 s

A Cloudflare Workers version is an immutable snapshot of code, config and bindings; a deployment says which one or two versions serve traffic. wrangler deploy creates a version and serves it to all traffic; wrangler versions upload creates one with none.

open as a page

With Cloudflare's Workers Vitest plugin, how do you make tests run inside workerd with your Wrangler bindings, and how does a test call the Worker?

level: juniorimportance: should knowfreq 35%
basics
~10 s

Add cloudflareTest() from @cloudflare/vitest-plugin to the Vitest config's plugins with wrangler.configPath set, so test files run in workerd with the Worker's bindings. Tests import env and exports from cloudflare:workers and call exports.default.fetch().

open as a page

On a full Cloudflare setup, which hostnames does the Universal SSL certificate cover, and why does api.eu.example.com fail with a certificate error?

level: juniorimportance: must knowfreq 48%
basics
~20 s

On a full setup, Universal SSL covers the apex (example.com) and first-level subdomains (www.example.com), presented only for proxied records. api.eu.example.com is two levels deep, so it needs Total TLS, an advanced certificate or a custom certificate.

open as a page

In Cloudflare, how do the SSL/TLS encryption modes Off, Flexible, Full and Full (strict) differ on the connection from Cloudflare to your origin?

level: juniorimportance: must knowfreq 75%
basics
~20 s

The encryption mode sets how Cloudflare reaches the origin: Off and Flexible use plain HTTP, Full uses HTTPS for HTTPS visitors without checking the origin certificate, and Full (strict) also validates it. Off also downgrades visitors to HTTP.

open as a page

A Cloudflare zone set to Flexible fronts an origin that redirects HTTP to HTTPS, and browsers now show ERR_TOO_MANY_REDIRECTS; why, and what is the right fix?

level: seniorimportance: must knowfreq 65%
basics
~20 s

Flexible always fetches the origin over HTTP, so the origin's HTTPS redirect fires even for visitors already on HTTPS, and the browser loops. Install an origin certificate, switch to Full (strict), and redirect HTTP visitors at the edge with Always Use HTTPS.

open as a page

When Cloudflare's Universal SSL is not enough, how do Total TLS, an advanced certificate and an uploaded custom certificate differ?

level: middleimportance: should knowfreq 35%
basics
~20 s

Total TLS auto-issues a certificate for each proxied hostname Universal SSL misses; an advanced certificate lists up to 50 hosts with your chosen CA, validation method and validity; a custom certificate is your own upload, which you renew yourself.

open as a page

When you enable HSTS on Cloudflare's Edge Certificates page, what do its settings control, and which later changes lock visitors out?

level: middleimportance: should knowfreq 38%
basics
~20 s

Cloudflare's HSTS setting sends Strict-Transport-Security on the zone's HTTPS responses, with a Max Age Header of 1 to 12 months and optional includeSubDomains, Preload and No-Sniff. Afterwards, anything that breaks HTTPS, such as DNS-only records or pausing Cloudflare, locks returning browsers out.

open as a page

With Cloudflare Tunnel, how does cloudflared make an internal admin dashboard reachable from the internet without a public IP or an open inbound port?

level: juniorimportance: must knowfreq 45%
basics
~20 s

cloudflared runs inside the private network and dials out to Cloudflare, holding long-lived connections open. A proxied CNAME points the dashboard's hostname at the tunnel, and Cloudflare sends each request down those connections, so nothing has to accept inbound traffic.

open as a page

Behind Cloudflare Access, how should the HR portal's origin validate Cf-Access-Jwt-Assertion, and where do its signing keys and AUD tag come from?

level: middleimportance: must knowfreq 45%
basics
~20 s

Read the JWT from Cf-Access-Jwt-Assertion, verify its RS256 signature with the key whose kid matches one listed at the team domain's /cdn-cgi/access/certs, check iss is the team domain and aud holds the HR application's AUD tag, and reject expired tokens.

open as a page

In Cloudflare Access, how do the Allow, Block, Bypass and Service Auth actions differ, and in what order are an application's policies evaluated?

level: middleimportance: must knowfreq 45%
basics
~20 s

Allow admits matching users, Block refuses them, Bypass switches Access off for matching traffic without logging it, and Service Auth admits service tokens or client certificates without an identity provider login. Bypass and Service Auth run first, then Allow and Block in order.

open as a page

With Cloudflare Access, how does a nightly reporting job with no browser authenticate to one HR endpoint using a service token?

level: middleimportance: must knowfreq 40%
basics
~20 s

Create a service token, attach a Service Auth policy with the Service Token selector to an Access application for that endpoint, and have the job send CF-Access-Client-Id and CF-Access-Client-Secret headers; Access then forwards a JWT whose common_name is the Client ID.

open as a page

In a cloudflared config.yml, how are ingress rules matched against a request, and why must the last rule be a catch-all such as http_status:404?

level: middleimportance: must knowfreq 40%
basics
~20 s

cloudflared tests ingress rules top to bottom and uses the first whose hostname and path regex both match. The final rule must match every URL, typically http_status:404, so requests for unexpected hostnames get a defined answer; the validator rejects a list whose last rule has a hostname or path filter.

open as a page

In Cloudflare's Agents SDK, how does routeAgentRequest() reach an Agent instance, and why is the instance name the agent's identity?

level: juniorimportance: must knowfreq 30%
basics
~20 s

routeAgentRequest() parses /agents/{class-in-kebab-case}/{instance-name} and forwards the request to the Durable Object for that name. The same class and name always reach the same agent and its private SQLite state, so the name is its identity.

open as a page

In Workers AI, how does a Worker call a model through the AI binding with env.AI.run(), and what comes back?

level: juniorimportance: must knowfreq 45%
basics
~20 s

A Worker declares an ai binding in its Wrangler file and calls env.AI.run(model, inputs) with an @cf/ catalogue id; the promise resolves to that task's output, such as { response } for text generation or { shape, data } for embeddings.

open as a page

In Cloudflare AI Gateway, how is response caching turned on, and what do cf-aig-cache-ttl, cf-aig-skip-cache and cf-aig-cache-key each change?

level: middleimportance: must knowfreq 32%
basics
~20 s

Caching is off until a gateway gets a default TTL or a request opts in. cf-aig-skip-cache bypasses the cache, cf-aig-cache-ttl sets how long a cached response lives, and cf-aig-cache-key replaces the exact-match key and opts that request in.

open as a page

In Cloudflare Vectorize, why are an index's dimensions and distance metric fixed at creation, and how do you choose them?

level: middleimportance: must knowfreq 32%
basics
~20 s

A Vectorize index is built for one vector length and one scoring function, so wrangler vectorize create fixes both. Copy the dimensions from the embedding model (768 for bge-base), use its intended metric, and create a new index when the model changes.

open as a page

In Cloudflare AI Gateway, how does an application route its existing model-provider calls through a gateway, and what does the gateway add?

level: juniorimportance: should knowfreq 30%
basics
~10 s

Point the provider SDK's base URL at gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/{provider}, or use the newer REST API on api.cloudflare.com. Each call is then logged and can be cached, rate limited and retried without rewriting the request body.

open as a page

With the Cloudflare Realtime SFU API, how does a backend publish a participant's camera and let another participant pull it?

level: middleimportance: must knowfreq 30%
basics
~20 s

Publish by calling sessions/new, then tracks/new with the browser's SDP offer and a local entry naming the track. Pull by calling tracks/new on the viewer's own session with a remote entry, then submit the browser's answer to /renegotiate.

open as a page

In Cloudflare Stream, how do direct creator uploads let instructors upload long lectures from the browser without exposing your API token?

level: middleimportance: must knowfreq 32%
basics
~20 s

Your backend, which holds the API token, asks Stream for a one-time upload URL and hands only that URL to the browser, which uploads straight to Stream. Lectures over 200 MB need the tus form of direct creator uploads.

open as a page

In Cloudflare Stream, how do requireSignedURLs and signed tokens keep paid lessons playable only by enrolled students?

level: middleimportance: must knowfreq 33%
basics
~20 s

Setting requireSignedURLs on a Stream video stops its bare ID from playing anywhere. Your backend checks enrolment, then issues a signed token that replaces the video ID in the player or manifest URL until its exp passes.

open as a page

In Cloudflare Images, how does a /cdn-cgi/image/ URL resize and convert a remote image, and what must the zone enable first?

level: juniorimportance: should knowfreq 30%
basics
~10 s

A /cdn-cgi/image/<OPTIONS>/<SOURCE> URL asks Cloudflare to fetch the original, apply comma-separated options such as width=640,format=auto, and cache the result. It works only after transformations are enabled for that zone under Images > Transformations.

open as a page

In Cloudflare RealtimeKit, what does the backend create so a patient can join a video visit, and what does the client SDK receive?

level: juniorimportance: should knowfreq 24%
basics
~20 s

The backend uses a Cloudflare API token to create a reusable meeting and add each person as a participant with a preset. That returns a participant auth token, the only credential the client SDK receives to join.

open as a page

How does a Cloudflare Worker get a headless browser from Browser Run, and what must its Wrangler file declare?

level: juniorimportance: should knowfreq 30%
basics
~10 s

The Wrangler file declares a browser binding and the nodejs_compat flag; the Worker passes that binding to launch() from @cloudflare/puppeteer or @cloudflare/playwright, drives the returned browser, and calls browser.close() when it is done.

open as a page

In Cloudflare Email Routing, how do routing rules, the catch-all rule and verified destination addresses deliver a domain's support@ and sales@ mail?

level: juniorimportance: should knowfreq 30%
basics
~20 s

Each Email Routing rule maps one address on the domain to an action: send to a verified destination address, send to a Worker, or drop. The catch-all rule takes unmatched addresses, and rules with unverified destinations stay disabled.

open as a page

When should a team use Browser Run Quick Actions such as /screenshot and /pdf instead of driving Puppeteer, and how is a Quick Action called?

level: middleimportance: should knowfreq 25%
basics
~20 s

Use Quick Actions when one request describes the whole job, such as screenshotting a URL or rendering invoice HTML to PDF: POST to the REST endpoint with an API token, or call env.BROWSER.quickAction() from a Worker.

open as a page

In Cloudflare Browser Run, what does keep_alive change, and how does a Worker reuse a session with sessions() and connect() instead of launching per request?

level: middleimportance: should knowfreq 30%
basics
~20 s

A Browser Run browser closes after 60 idle seconds; keep_alive raises that idle timeout to at most 10 minutes. To reuse one, find it with sessions(), attach with connect(), work in a new browser context, then disconnect.

open as a page

How does a Cloudflare Worker send order confirmations through Email Service's send_email binding, and what do its restrictions and plan limits change?

level: middleimportance: should knowfreq 30%
basics
~20 s

Declare a send_email binding and call env.EMAIL.send() with from, to, subject and html or text; it resolves to a messageId. Mailing customers needs an onboarded sending domain and the Workers Paid plan; verified destination addresses are free on every plan.

open as a page