Cloudflare Basics Interview Questions for Freshers (2026)

Cloudflare basics for freshers: proxied vs DNS-only records, SSL/TLS modes, caching, Workers, Tunnel and common 52x errors, from Cloudflare docs.

Sep 30, 2025 - 11:14
Nov 16, 2026 - 03:35
 0  49
Cloudflare Basics Interview Questions for Freshers (2026)

Freshers interviewing for Cloudflare-related DevOps roles are usually asked the basics: what Cloudflare does as a reverse proxy, how proxied and DNS-only records differ, which SSL/TLS encryption mode to pick, how caching decides what to store, and what Workers and Cloudflare Tunnel are. This guide answers those definitions plainly, with the commands and settings you would touch on day one.

This is the basics-and-definitions page in our Cloudflare set. The keeper post with longer answers is Cloudflare engineer interview questions. Once these basics are clear, move on to Cloudflare security and CDN questions for freshers and the scenario-based Cloudflare questions.

Key takeaways

  • Cloudflare sits between visitors and your origin server as a reverse proxy, but only for DNS records set to Proxied.
  • Cloudflare's SSL/TLS modes are Off, Flexible, Full, Full (strict) and Strict (SSL-Only Origin Pull). Automatic SSL/TLS is the default and picks the most secure mode your origin supports.
  • Full (strict) validates the origin certificate. Flexible leaves the Cloudflare-to-origin leg unencrypted.
  • Cloudflare Tunnel uses the cloudflared daemon to make outbound-only connections, so the origin needs no open inbound ports.
  • Page Rules are marked deprecated in Cloudflare's documentation. Learn the newer Rules products instead.

Cloudflare terms freshers should know

TermWhat it means
ZoneA domain added to a Cloudflare account, with its own DNS records and settings.
Proxied recordDNS record whose traffic passes through Cloudflare, so caching, WAF and SSL apply.
DNS-only recordCloudflare answers DNS but traffic goes straight to the origin.
OriginYour own server, load balancer or bucket that Cloudflare fetches content from.
EdgeCloudflare's servers in its global network that visitors connect to.
WorkersServerless code that runs on Cloudflare's network.
TunnelOutbound-only connection from cloudflared to Cloudflare that publishes a private service.

General questions

1. What is Cloudflare?

Cloudflare runs a global network that sits in front of websites, APIs and private applications. Customers use it for DNS, content delivery and caching, DDoS protection, a web application firewall, TLS certificates, serverless compute with Workers, and Zero Trust access. For a DevOps engineer it is mostly a layer you configure in front of your origin.

2. What is a reverse proxy, and how does Cloudflare act as one?

A reverse proxy receives requests on behalf of a server and forwards them. When a record is proxied, DNS for your hostname returns Cloudflare addresses. Visitors connect to Cloudflare, which applies security rules and cache, then requests anything it cannot serve from your origin.

3. How do you add a site to Cloudflare?

Add the domain as a zone, review the imported DNS records, then change the nameservers at your registrar to the two Cloudflare nameservers shown for the zone. Once the change propagates, Cloudflare becomes authoritative for your DNS. Some plans also support partial (CNAME) setup, where you keep your current DNS provider.

DNS questions

4. Proxied (orange cloud) or DNS only (grey cloud)?

Proxied sends HTTP and HTTPS traffic through Cloudflare, hiding the origin IP and enabling cache, WAF and SSL features. DNS only returns your real IP, and Cloudflare is just the DNS provider. Use DNS only for records that are not web traffic or not supported through the proxy, for example mail server records.

5. Why should MX records not be proxied?

Email uses SMTP, not HTTP, and the standard proxy handles web traffic. Mail records and the hostnames they point to need to resolve to your real mail server, so they are set to DNS only.

6. What is TTL, and does it change for proxied records?

TTL is how long resolvers cache a DNS answer. For proxied records Cloudflare manages the TTL automatically, because the answer is Cloudflare's own addresses. For DNS-only records you can set it yourself. Lower it before a migration so changes spread faster.

7. How would you manage Cloudflare DNS as code?

Use the Cloudflare Terraform provider or the Cloudflare API with an API token scoped to the zones and permissions the job needs. Avoid using the global API key in automation. Our CI/CD token practices post covers how to store those tokens.

SSL/TLS questions

8. What SSL/TLS encryption modes does Cloudflare offer?

Cloudflare's documentation lists Automatic SSL/TLS as the default, plus custom modes: Off (no encryption), Flexible (visitor to Cloudflare encrypted, Cloudflare to origin not), Full (HTTPS to the origin without certificate validation), Full (strict) (HTTPS with certificate validation) and Strict (SSL-Only Origin Pull), which always connects to the origin over HTTPS and validates the certificate.

9. Which mode should you use?

Full (strict), with a valid certificate on the origin. It encrypts both legs and confirms Cloudflare is talking to your server. Flexible looks secure in the browser but sends traffic to the origin in plain HTTP, so it is a weak choice for anything with logins or personal data.

10. Why does Flexible mode cause redirect loops?

Cloudflare connects to the origin over HTTP. If the origin redirects all HTTP to HTTPS, the visitor's browser is sent back to Cloudflare, which again connects over HTTP, and the loop repeats. Install a certificate on the origin and switch to Full (strict).

11. What is a Cloudflare Origin CA certificate?

It is a free certificate issued by Cloudflare for your origin server. Cloudflare trusts it, so Full (strict) works, but browsers do not, so it is only for traffic coming through the proxy.

12. What is Universal SSL?

Universal SSL is the free edge certificate Cloudflare issues for proxied hostnames in a zone, so visitors get HTTPS between their browser and Cloudflare without you buying a certificate. It covers the visitor-to-Cloudflare leg only. The Cloudflare-to-origin leg depends on the encryption mode and the certificate on your server.

13. What does Always Use HTTPS do?

It redirects every HTTP request for a proxied hostname to HTTPS at Cloudflare's edge, before the request reaches your origin. That removes the need for redirect logic on the server and avoids the Flexible-mode loop described above. Pair it with HSTS only after you are sure every subdomain works over HTTPS, because browsers remember HSTS.

Caching questions

14. What does Cloudflare cache by default?

By default Cloudflare caches static files based on file extension, such as images, CSS and JavaScript, and does not cache HTML. You change that with cache rules. Origin Cache-Control headers also influence how long content stays cached.

15. How can you tell whether a response came from cache?

Check the cf-cache-status response header. HIT means it came from cache, MISS means Cloudflare fetched it from the origin, and DYNAMIC means it was not eligible for caching.

curl -sI https://www.example.com/app.css | grep -i cf-cache-status

16. How do you clear cached content after a deploy?

Purge from the dashboard or call the purge API, either everything or specific URLs. Purging single URLs is gentler on the origin. Many teams add the purge call as the last step in their deploy pipeline. A better long-term fix is versioned file names, so new deploys produce new URLs.

17. Are Page Rules still the way to configure behaviour?

Cloudflare's docs mark Page Rules as deprecated. New configuration uses the Rules products, such as cache rules, redirect rules and configuration rules. Knowing this shows you learned from current documentation.

Workers and developer platform questions

18. What are Cloudflare Workers?

Workers run JavaScript, TypeScript or WebAssembly on Cloudflare's network, close to users. They can modify requests and responses, serve whole APIs, or act as middleware. You build and deploy them with the Wrangler CLI.

export default {
  async fetch(request) {
    const url = new URL(request.url);
    if (url.pathname === '/health') {
      return new Response('ok', { status: 200 });
    }
    return fetch(request);
  },
};

19. What storage options pair with Workers?

KV for key-value data that is read often, Durable Objects for coordinated state, D1 for SQL databases, and R2 for object storage with an S3-compatible API. A fresher only needs to know what each is for, not every limit.

Cloudflare Tunnel and Zero Trust questions

20. What is Cloudflare Tunnel?

Cloudflare Tunnel connects private services to Cloudflare without a public IP. The cloudflared daemon runs inside your network and opens outbound connections to Cloudflare. Your firewall can block all unsolicited inbound traffic, and the service is reachable only through Cloudflare.

21. Why is a tunnel safer than opening a port?

An open inbound port is reachable by anyone scanning the internet. With a tunnel there is no listening port on the public IP, and you can put Cloudflare Access policies in front so users must sign in before reaching the app.

22. What is Cloudflare Access?

Access is part of Cloudflare One, the Zero Trust platform. It checks identity, through your identity provider, and device rules before letting a user reach an internal application. It is often used to replace a VPN for internal dashboards.

Troubleshooting basics

23. A site shows a 521 error. What does it mean?

Cloudflare could not connect to the origin web server. Check that the server is running, that it listens on the expected port, and that its firewall allows Cloudflare's IP ranges.

24. A site shows a 522 error. What does it mean?

The connection to the origin timed out. Typical causes are an overloaded origin, wrong origin IP in DNS, or packets dropped by a firewall.

25. Logs show only Cloudflare IPs. How do you see real visitor IPs?

Cloudflare adds the CF-Connecting-IP header with the visitor IP. Configure your web server to read it, for example with the real IP module in NGINX, and trust it only from Cloudflare's IP ranges.

26. You changed a DNS record but some users still reach the old server. Why?

Resolvers and browsers cache DNS answers until the TTL expires, so the change spreads gradually. Check what different resolvers return with dig, confirm the record in the Cloudflare dashboard, and wait for the old TTL to pass. If the record is proxied, visitors reach Cloudflare's addresses either way, and the origin change takes effect at Cloudflare as soon as you save it. That is one practical reason to keep web records proxied during migrations.

27. What is Strict (SSL-Only Origin Pull) mode, and when would you use it?

In this mode Cloudflare always connects to the origin over HTTPS and validates its certificate, whatever protocol the visitor used. Full and Full (strict) instead follow the visitor's protocol. Use it when the origin should never accept plain HTTP at all, for example a server that only listens on port 443. It goes one step further than Full (strict), so it is a good detail to mention if an interviewer asks you to compare the modes.

28. Automatic SSL/TLS is on. Do you still need to think about modes?

Yes. Cloudflare's documentation says Automatic SSL/TLS uses the SSL/TLS Recommender to pick the most secure mode your origin supports and upgrades the zone to it gradually. That depends on what the origin offers. If the origin has no valid certificate, the most secure mode available is still a weak one, so the real fix is a proper certificate on the origin, such as an Origin CA certificate.

How to practise

Register a cheap domain or use one you already have, add it to a free Cloudflare account, and work through each section: change nameservers, toggle proxy status and watch DNS answers with dig, set Full (strict) with an Origin CA certificate, check cf-cache-status with curl, deploy a small Worker with Wrangler and publish a local app through a tunnel. That gives you a real story for most of the questions above. The Cloudflare FAQ quick reference and the Cloudflare interview preparation guide help you plan the rest.

Networking, DNS and TLS fundamentals are part of our DevOps training, run at the Kharadi, Pune classroom and live online.

FAQ

Is Cloudflare a CDN or a security tool?

Both. Its network caches content like a CDN and also applies DDoS protection, WAF rules and Zero Trust access.

Which SSL mode should I choose on Cloudflare?

Full (strict), with a valid certificate on the origin, or leave Automatic SSL/TLS on so Cloudflare selects the most secure mode your origin supports.

What is the difference between proxied and DNS-only records?

Proxied records route traffic through Cloudflare. DNS-only records return your real server address and skip Cloudflare's proxy features.

Does Cloudflare cache HTML by default?

No. By default it caches static files by extension. Use cache rules to cache HTML.

What is cloudflared?

The daemon that creates Cloudflare Tunnel connections from your network out to Cloudflare.

Are Page Rules deprecated?

Yes, Cloudflare's documentation labels Page Rules as deprecated.

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.