Cloudflare Security and CDN Questions for Freshers (2027)

40 Cloudflare interview answers for freshers: proxy and DNS, CDN caching, cache status, SSL/TLS modes, WAF, DDoS, Tunnel, Access and Workers.

Sep 30, 2025 - 14:44
Nov 11, 2026 - 03:51
 0  56
Cloudflare Security and CDN Questions for Freshers (2027)

Cloudflare freshers interviews start with definitions: what a reverse proxy is, what the orange cloud means, which files the CDN caches by default, how the four SSL/TLS modes differ, and what the WAF and DDoS protection do. This page gives 40 short, checked answers in that order, so you can explain the product in plain words.

The answers follow the Cloudflare developer documentation as published in November 2026. When you are ready for design and incident questions, move on to the 90+ Cloudflare interview questions main guide, the Cloudflare engineer questions and the scenario-based Cloudflare questions.

Key takeaways

  • When you onboard a domain, Cloudflare becomes the reverse proxy and the DNS provider for the site. Visitors reach Cloudflare first and Cloudflare reaches your server (the origin).
  • Only A, AAAA and CNAME records can be proxied (orange cloud). Records such as MX and TXT are always DNS-only.
  • The CDN decides what to cache by file extension, not by content type. HTML and JSON are not cached by default.
  • Use SSL/TLS mode Full (strict) when your origin has a valid certificate. Cloudflare recommends Full or Full (strict) over Flexible.
  • The WAF and DDoS protection are available on all plans. Learn what each one inspects, and be ready to say they are layers, not a replacement for patching your application.
  • Know the cache status values: HIT, MISS, BYPASS, DYNAMIC, EXPIRED and NONE/UNKNOWN. They are the first thing you read when a page is slow or stale.

The words you must know

TermPlain meaning
OriginYour own web server or cloud service that holds the real content.
EdgeCloudflare's servers close to visitors, where traffic is filtered and content is cached.
Reverse proxyA server that stands in front of your origin and handles requests on its behalf.
Proxied recordA DNS record whose HTTP and HTTPS traffic flows through Cloudflare (orange cloud).
DNS-only recordA record that returns your real server address and skips Cloudflare for web traffic (grey cloud).
CDNA content delivery network: a set of servers that keep copies of files near users.
WAFWeb Application Firewall: rules that filter web and API requests.
DDoS protectionAutomatic detection and blocking of floods of traffic aimed at taking a site down.
Zero TrustA security model that checks identity and context for every access request.

Basics: what Cloudflare does (questions 1 to 8)

1. What is Cloudflare?

A platform that sits between your visitors and your servers and provides DNS, a CDN, security filtering, TLS certificates, a serverless platform called Workers, and Zero Trust access tools.

2. What happens after you add a domain to Cloudflare?

Cloudflare acts as the reverse proxy and the DNS provider for the site. In the usual full setup you change your domain's nameservers at the registrar to the ones Cloudflare gives you, so Cloudflare becomes the authoritative DNS provider.

3. Why does a new domain stay pending for a while?

Cloudflare protection stays in a pending state until it can verify that the domain's nameservers point to Cloudflare. The documentation says this can take up to 24 hours.

4. What is a reverse proxy, and how is it different from a forward proxy?

A reverse proxy represents the server: visitors talk to it, and it talks to the origin. A forward proxy represents the client, for example a company proxy that employees use to reach the internet. Cloudflare in front of a website is a reverse proxy.

5. What does the orange cloud mean?

The DNS record is proxied. Traffic goes through Cloudflare, so Cloudflare can cache it, apply WAF rules and hide the origin IP address from the public DNS answer.

6. What does the grey cloud mean?

The record is DNS-only. Cloudflare answers with the real IP address of your server and does not carry web traffic. Use it for records that must not be proxied, such as mail servers and some verification records.

7. Which record types can be proxied?

Only the ones that resolve to an IP address: A, AAAA and CNAME. MX, TXT and other types are always DNS-only. Cloudflare recommends proxying A, AAAA and CNAME records that serve web traffic.

8. Why can DNS-only records leak the origin IP?

Because the DNS answer contains the real address. If a mail host or a test subdomain points to the same server and is DNS-only, anyone can look it up. A defensive habit is to keep the origin firewall open only to Cloudflare addresses and to Cloudflare Tunnel, so a leaked address cannot be used to bypass the proxy.

CDN and caching (questions 9 to 18)

9. What does a CDN do?

It stores copies of files on servers near users, so pages load faster and the origin handles fewer requests.

10. What does Cloudflare cache by default?

Files with common static extensions such as images (JPG, PNG, WEBP, SVG), CSS, JS, fonts (WOFF, WOFF2, TTF), documents (PDF), archives (ZIP) and media (MP4, MP3). It decides by file extension, not by MIME type. By default it does not cache HTML or JSON. It does cache a site's robots.txt.

11. How do you cache something that is not cached by default?

Create a Cache Rule. Cache Rules let you choose what is eligible for caching, how long it stays cached and where.

12. Which origin headers stop Cloudflare caching a response?

A Cache-Control header set to private, no-store, no-cache or max-age=0; a Set-Cookie header; or a request method other than GET. A Cache-Control of public with a max-age above zero, or an Expires date in the future, makes a response cacheable.

13. What is the default edge TTL when the origin sends no cache headers?

Status codeDefault TTL
200, 206, 301120 minutes
302, 30320 minutes
404, 4103 minutes
Other codesNot cached by default

14. What is the CF-Cache-Status header?

A response header that shows how Cloudflare handled the cache for that request. HIT means it was found in the cache. MISS means it was cacheable but not in the cache, so the origin served it. BYPASS means Cloudflare chose not to cache it. DYNAMIC means the content was not eligible for caching. EXPIRED means the cached copy had gone stale and was fetched again. NONE/UNKNOWN means Cloudflare generated the response without a cache lookup, for example from a Worker.

15. A page is always DYNAMIC. Why?

HTML is not cached by default, so a normal HTML page shows DYNAMIC unless you add a rule to cache it. If you did add a rule, check for Set-Cookie headers or a private Cache-Control from the origin.

16. What is the Age header?

The number of seconds an object has been in Cloudflare's cache. Cloudflare sets it on cache hits and some stale responses, and not on a MISS or DYNAMIC response.

17. How do you remove a changed file from the cache?

Purge the cache. The recommended method is purge by single URL. Other options are purge everything, by cache tag, by hostname and by URL prefix. Prefer the narrowest purge, because purging everything sends all traffic back to the origin at once.

18. What is request collapsing?

When many requests for the same uncached file arrive at one Cloudflare data centre together, only the first goes to the origin. The others wait and receive the response when it arrives. It protects the origin during a rush.

SSL/TLS (questions 19 to 26)

19. What is Universal SSL?

By default Cloudflare issues and renews free, publicly trusted certificates for domains that are added and active. On a full setup they cover the root domain and first-level subdomains such as www.example.com.

20. What are the SSL/TLS encryption modes?

ModeVisitor to CloudflareCloudflare to origin
OffHTTP onlyHTTP only
FlexibleCan be HTTPSHTTP, not encrypted
FullHTTPSMatches the visitor protocol; HTTPS without checking the origin certificate
Full (strict)HTTPSHTTPS with a validated origin certificate
Strict (SSL-Only Origin Pull)HTTP or HTTPSAlways HTTPS with a validated certificate

21. Which mode should you pick?

Full (strict) when the origin has a valid certificate, because it protects the second leg and checks that the origin is the right server. Cloudflare says it strongly recommends Full or Full (strict) to prevent malicious connections to your origin. Use Flexible only as a temporary step for an origin that cannot do TLS.

22. What is Automatic SSL/TLS?

A default setting where Cloudflare scans your site and picks the most secure encryption mode that works. It does not move you to a less secure mode, and it applies upgrades gradually. You can switch to Custom SSL/TLS to set the mode yourself.

23. What is a Cloudflare origin CA certificate?

A certificate issued by Cloudflare for the connection between Cloudflare and your origin. It works when the origin receives traffic only from proxied records, and it is compatible with Strict SSL mode.

24. Why does Flexible mode cause redirect loops on some sites?

Cloudflare talks to the origin over HTTP, while the origin is set to redirect all HTTP to HTTPS. The origin keeps redirecting, and the browser loops. Switching to Full or Full (strict) fixes it when the origin has a certificate.

25. Does SSL/TLS mode affect caching?

Yes. The documentation notes that the encryption mode affects cache behaviour, and a change from HTTP to HTTPS to the origin alters cache keys. Expect a colder cache after changing the mode.

26. What is the difference between an edge certificate and an origin certificate?

An edge certificate is what visitors see at Cloudflare. An origin certificate is what your server shows to Cloudflare.

Security basics (questions 27 to 35)

27. What does the Cloudflare WAF do?

It checks incoming web and API requests and filters unwanted traffic using rulesets. Rules use an expression language that can match on IP address, URL path, headers and body content. The WAF is available on all plans.

28. What are managed rules?

Pre-configured rulesets maintained and updated by Cloudflare that give immediate protection against known vulnerabilities, so you do not write each rule yourself.

29. What are custom rules?

Rules you write for your own application, for example to block a path you never use or to challenge requests from a country you do not serve. They can use features such as the WAF attack score.

30. What is rate limiting?

A rule that limits requests matching an expression, for example login attempts per IP address, and takes an action when the limit is reached. It slows brute force attempts and protects expensive endpoints.

31. What does DDoS protection do?

Cloudflare detects and mitigates distributed denial-of-service attacks automatically, using managed rulesets that cover network layer (layers 3 and 4) and application layer (layer 7) attacks. It is available on all plans.

32. What is Under Attack mode?

A setting that adds extra checks to help mitigate layer 7 DDoS attacks. Visitors see an interstitial page. The documentation calls it a last resort, because it pauses access for a moment and affects analytics. It is off by default and can be turned on for a whole zone or for specific pages with a configuration rule.

33. What is Turnstile?

Cloudflare's alternative to CAPTCHA. It can be added to any website, without sending the site's traffic through Cloudflare, and works without making visitors solve a puzzle.

34. What is Cloudflare Tunnel?

A way to connect your servers to Cloudflare without a publicly reachable IP address. A small program named cloudflared runs in your infrastructure and makes outbound-only connections to Cloudflare, so you do not open inbound ports.

35. What is Cloudflare Access?

A Zero Trust product that decides who can reach an application by applying Access policies. A policy has an action (Allow, Block, Bypass or Service Auth), and rules that include, require or exclude users based on selectors such as identity.

Platform and everyday tasks (questions 36 to 40)

36. What is Cloudflare Workers?

A serverless platform for running code on Cloudflare's network, with no servers to manage. Use it for small logic at the edge, such as redirects, header changes or APIs.

37. How do you check what Cloudflare is doing to a request?

Run curl -I https://example.com/style.css and read the response headers, especially cf-cache-status and age. Run it twice. A cacheable file should be a MISS first and a HIT second.

curl -sI https://example.com/logo.png | grep -i -E "cf-cache-status|age|cache-control"

38. A site shows old CSS after a deploy. What do you do?

Check the cache status and the age. Then purge the changed URL, not everything. For a lasting fix, change the file name or add a version string at each release so a new URL is requested.

39. Why can't you proxy a mail server record?

Cloudflare's proxy handles HTTP and HTTPS traffic. Mail uses other protocols, so MX and the A records that mail uses must stay DNS-only.

40. Is Cloudflare a replacement for fixing application bugs?

No. The WAF and DDoS layers reduce risk and block known bad traffic, but a vulnerable application still needs patching and secure coding. Say this in an interview, because it shows you understand layers of defence.

How to practise

  1. Add a free test domain, change nameservers and watch the status move from pending to active.
  2. Create one proxied and one DNS-only record, then run dig on both and compare the answers.
  3. Serve a static file and an HTML page, and read the cache status of each twice.
  4. Try each SSL/TLS mode against a test origin with a valid certificate, and note what breaks in Flexible mode.
  5. Write a custom rule and a rate limiting rule in a test zone and confirm they trigger.

For deeper topics use the advanced Cloudflare questions, the six-week Cloudflare study plan, and the real-time Cloudflare questions for live tasks. For Zero Trust background read why Zero Trust matters in DevSecOps, and for CDN design see where CDN integrations help cloud-native deployments.

Training

Edge security is part of every secure delivery pipeline. Our DevSecOps training covers application and pipeline security hands-on. Classes run in Kharadi, Pune, and live online across India.

FAQ

What is Cloudflare used for?

It provides DNS, a CDN, TLS certificates, a WAF, DDoS protection, Workers and Zero Trust access tools for websites and applications.

What does the orange cloud mean in Cloudflare?

The DNS record is proxied, so traffic flows through Cloudflare. A grey cloud means DNS-only.

Does Cloudflare cache HTML by default?

No. By default it caches static files by extension and does not cache HTML or JSON. A Cache Rule can change that.

Which SSL/TLS mode is best?

Full (strict), when your origin has a valid certificate. Cloudflare recommends Full or Full (strict).

Is the Cloudflare WAF available on the free plan?

The documentation marks the WAF and DDoS protection as available on all plans. The set of features inside each plan differs, so check the plan details before you promise a specific rule.

What does CF-Cache-Status HIT mean?

The resource was found in Cloudflare's cache and served from there.

How do I prepare for a Cloudflare fresher interview?

Learn the terms, set up a test domain, read cache status headers, try the SSL modes and write a simple WAF rule. Then rehearse the answers on this page aloud.

Official references

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
Mridul I am a passionate technology enthusiast with a strong focus on DevOps, Cloud Computing, and Cybersecurity. Through my blogs at DevOps Training Institute, I aim to simplify complex concepts and share practical insights for learners and professionals. My goal is to empower readers with knowledge, hands-on tips, and industry best practices to stay ahead in the ever-evolving world of DevOps.