Cloudflare FAQ Quick Reference for DevOps (2027)
30 short Cloudflare FAQs with documented defaults: DNS proxying, SSL/TLS modes, cache rules, cf-cache-status, WAF order, Tunnel and Workers limits.
This Cloudflare FAQ is a quick reference for DevOps interviews: 30 short answers on DNS proxying, SSL/TLS modes, caching defaults, cf-cache-status values, WAF managed rulesets, Tunnel, DNSSEC and Workers limits. Every default and limit below comes from Cloudflare's developer documentation, so you can quote it with confidence and check the linked page for later changes.
Other posts in this series go deeper on specific styles. See Cloudflare engineer interview questions for the main question bank, scenario-based Cloudflare questions for troubleshooting stories, and advanced Cloudflare questions for architecture. This page is the fast lookup.
Key takeaways
- Only A, AAAA and CNAME records can be proxied. A proxied record has an automatic TTL of 300 seconds that you cannot edit.
- Use Full (strict) SSL/TLS, or Automatic SSL/TLS, where the origin supports it. Flexible leaves the origin leg unencrypted.
- Cloudflare caches by file extension, not content type. HTML and JSON are not cached by default.
- Managed Rules run after DDoS protection, custom rules and rate limiting, so an earlier terminal action stops them from seeing the request.
- Workers limits differ by plan. Read the limits page for the current figures before you design around them.
DNS and proxying
1. What is the difference between proxied and DNS only?
Proxied (orange cloud) sends HTTP and HTTPS traffic through Cloudflare, and DNS answers return Cloudflare anycast IPs instead of your origin IP. DNS only (gray cloud) returns your real IP and traffic bypasses Cloudflare. Proxying is on by default when you onboard a domain through the dashboard.
2. Which record types can be proxied?
A, AAAA and CNAME only. MX, TXT and other types are always DNS only.
3. What TTL does a proxied record have?
Auto, which is 300 seconds. You cannot edit it, though Cloudflare may change it in rare cases.
4. What happens if a name has several A records and only one is proxied?
All of them are treated as proxied. A proxied hostname inside a CNAME chain also causes the request to be proxied.
5. What does error 524 mean?
The origin accepted the connection but did not respond in time. Fix the slow endpoint, move long work to a background job, or return a quick acknowledgement.
6. How do you enable DNSSEC safely?
Click Enable DNSSEC in the DNS settings, then add the DS record shown at your registrar. Cloudflare prefers algorithm 13 (ECDSA Curve P-256 with SHA-256). If you are onboarding an existing domain, disable DNSSEC at the old provider first, or nameserver changes can cause connectivity errors.
7. How do you migrate a DNSSEC-signed domain with zero downtime?
Use the multi-signer path if your current provider lets you add external DNSKEY records at the zone apex. Without it, expect a short gap: remove the DS record, wait for its TTL, change nameservers, wait for the old NS TTL, then enable DNSSEC and add the new DS record. Changing nameservers too early can cause SERVFAIL on validating resolvers.
SSL/TLS
8. What are the SSL/TLS encryption modes?
| Mode | Visitor to Cloudflare | Cloudflare to origin |
|---|---|---|
| Off | Unencrypted | Unencrypted |
| Flexible | Can use HTTPS | Not encrypted |
| Full | Matches visitor | HTTPS if the visitor used HTTPS, certificate not validated |
| Full (strict) | Matches visitor | HTTPS with the origin certificate validated (public CA or Cloudflare Origin CA) |
| Strict (SSL-Only Origin Pull) | Any | Always HTTPS with validation |
9. What is Automatic SSL/TLS?
A setting that picks the most secure mode your origin supports and upgrades gradually. It never moves to a less secure mode, so keep the origin certificate valid.
10. Which mode should I use?
Cloudflare strongly recommends Full or Full (strict) wherever possible. Use Flexible only when the origin cannot do TLS, and upgrade the origin when you can.
11. Why do redirect loops happen on Flexible?
Cloudflare connects to the origin over HTTP while the origin redirects HTTP to HTTPS, so the request bounces forever. Move to Full (strict) with a valid origin certificate.
Caching
12. What does Cloudflare cache by default?
Static file extensions such as images (JPG, PNG, WEBP, SVG), CSS, JS, fonts, media, PDFs and archives. It decides by extension, not by MIME type. HTML and JSON are not cached by default, while robots.txt is.
13. Which origin headers stop caching?
Cache-Control of private, no-store, no-cache or max-age=0, a Set-Cookie header, or a non-GET method. Cloudflare caches when Cache-Control is public with max-age above 0 or when Expires is in the future. If both max-age and Expires exist, max-age is used.
14. What are the default edge TTLs without cache headers?
| Status | Default TTL |
|---|---|
| 200, 206, 301 | 120 minutes |
| 302, 303 | 20 minutes |
| 404, 410 | 3 minutes |
Other status codes are not cached by default.
15. What do the cf-cache-status values mean?
| Value | Meaning |
|---|---|
| HIT | Served from cache |
| MISS | Cache-eligible but not cached yet, so it came from the origin |
| EXPIRED | Cached copy expired, origin supplied a fresh one |
| STALE | Expired copy served because the origin was unreachable |
| BYPASS | Origin headers made the response uncacheable |
| DYNAMIC | Not cache-eligible at request time, no cache lookup |
| REVALIDATED | Origin confirmed the cached copy is unchanged |
| UPDATING | Expired copy served while the origin refreshes it in the background |
16. How do you cache HTML?
Create a cache rule that marks the matching requests as eligible and sets an Edge Cache TTL, which can override origin headers. Exclude logged-in and cart paths, because HTML often contains per-user content.
17. DYNAMIC versus BYPASS: how do you tell?
DYNAMIC is decided at request time (not eligible, no lookup). BYPASS is decided from the origin's response headers. Look at the origin response before blaming a cache rule.
Security: WAF, Tunnel and Zero Trust
18. Which managed rulesets exist?
The Cloudflare Managed Ruleset, the Cloudflare OWASP Core Ruleset and the Cloudflare Free Managed Ruleset. The free ruleset is on all plans, and Pro, Business and Enterprise add the other two. Sensitive Data Detection is Enterprise only.
19. In what order do security features run?
HTTP DDoS protection, then custom rules, then rate limiting rules, then managed rules. A terminal action such as Block or Managed Challenge in an earlier phase stops managed rules from evaluating that request.
20. How is the OWASP ruleset different?
It scores each matching rule against a threshold instead of acting on each match alone, so a request is actioned when its total score crosses the threshold you configure.
21. Exceptions versus overrides?
An exception skips a ruleset or specific rules under certain conditions. An override changes a rule's action or disables it by ruleset, tag or rule. Exceptions take priority over overrides.
22. How much of the request body do managed rules inspect?
Up to 1 MB on Free, 128 KB on Enterprise, and a lower default on other paid plans, per the docs. Custom rules can use http.request.body.truncated to handle requests that were not fully inspected.
23. What does Cloudflare Tunnel do?
It connects an origin to Cloudflare without a public IP. The cloudflared daemon opens outbound connections, so you can block all inbound traffic. A tunnel has a UUID, and several connectors can run under one tunnel for redundancy.
24. Does Authenticated Origin Pulls work with Tunnel?
It has no effect on tunnel-routed hostnames, because the origin is only reachable through the tunnel.
Workers and platform limits
25. What are the main Workers limits on the Free plan?
Per the limits page: 10 ms CPU time per request, 50 subrequests, 128 MB memory per isolate, 64 MiB worker size, 100 Workers per account and 100,000 requests per day, reset at midnight UTC. Exceeding the daily limit returns error 1027.
26. How does the Paid plan differ?
CPU time per request defaults to 30 seconds and can go up to 5 minutes, subrequests go to 10,000 (more on request), Workers per account rise to 500 and there is no daily request limit. Memory and size limits stay the same.
27. What request body size can pass through?
It depends on the domain's plan: 100 MB on Free and Pro, 200 MB on Business, and up to 5 GB on Enterprise for self-serve. The URL limit is 16 KB and headers 128 KB.
28. Why check the limits page before you design?
Limits change by plan and over time. Treat the figures here as a snapshot and confirm against the official page before committing to an architecture.
Quick scenarios
29. After onboarding, the site works but the origin IP is still exposed. Why?
Some records may be DNS only, or mail records point at the same IP. Proxy the web records, move mail to a separate address, and lock the origin to Cloudflare traffic or use a tunnel.
30. Static files show MISS on every request. What do you check?
Look for Set-Cookie headers, Cache-Control values that disable caching, query strings that vary the cache key, and a very short Edge Cache TTL. Then check cf-cache-status again after a second request.
Pre-launch checklist from these defaults
Turn the answers above into a short review before a site goes live behind Cloudflare. First, list every hostname and mark which records are proxied, remembering that MX and TXT stay DNS only. Second, set the SSL/TLS mode to Full (strict) or Automatic SSL/TLS and confirm the origin certificate is valid and not close to expiry. Third, decide which HTML paths are safe to cache, then test with two requests and read cf-cache-status on the second. Fourth, deploy the managed rulesets your plan includes and check the order in which custom rules, rate limiting and managed rules run. Fifth, if the origin must not be reachable directly, move it behind a tunnel and close inbound ports. Finally, if you use Workers, compare your expected CPU time, subrequests and daily requests with the limits page for your plan, and plan an alert before a free-plan daily limit stops the service.
Study next
Move on to the larger banks: 90+ Cloudflare interview questions on DevOps security, real-time Cloudflare questions, the Cloudflare interview preparation guide, and most asked Cloudflare questions. Security practice is part of the DevSecOps course.
Frequently asked questions
Can MX records be proxied?
No. Only A, AAAA and CNAME records can be proxied.
What is the TTL of a proxied record?
Auto, which is 300 seconds, and it cannot be edited.
Does Cloudflare cache HTML by default?
No. HTML and JSON are not cached by default, and you need a cache rule to cache them.
Which SSL mode does Cloudflare recommend?
Full or Full (strict) where possible. Automatic SSL/TLS can pick the safest mode your origin supports.
What does cf-cache-status DYNAMIC mean?
Cloudflare decided at request time that the asset is not cache-eligible, so it went to the origin without a cache lookup.
Is Free Managed Ruleset available on every plan?
Yes. It is available on all plans.
Does Tunnel need an inbound firewall rule?
No. cloudflared makes outbound connections, so inbound traffic can be blocked.
What is error 1027?
The Workers Free plan daily request limit was exceeded.
Official references
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0