Quick revision
The short answer
I would start by understanding the bill and the outage risk with data, because better hit ratios and media optimisation often save more than switching vendors. Then I would weigh multi-CDN, which reduces outage risk and helps negotiation but adds a permanent engineering cost, against cheaper protections such as a static failover path, while keeping edge logic small, portable and managed as code to contain lock-in. The decision is made with costed scenarios, owned by one platform team, and reviewed every year.
What to remember
In this answer, we saw how a senior leader sets edge delivery strategy. We start with the bill, by content type, hit ratio and origin egress, because fixing waste usually saves more than switching vendors. We weigh multi-CDN's outage protection and negotiating power against its permanent costs, compare it with a cheaper static failover, contain lock-in by keeping edge logic small and portable and configuration in code, decide with costed scenarios agreed with the business, and give one platform team ownership with a yearly review.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
I would start by understanding the bill and the outage risk with data, because better hit ratios and media optimisation often save more than switching vendors. Then I would weigh multi-CDN, which reduces outage risk and helps negotiation but adds a permanent engineering cost, against cheaper protections such as a static failover path, while keeping edge logic small, portable and managed as code to contain lock-in. The decision is made with costed scenarios, owned by one platform team, and reviewed every year.
Why this question is asked
Edge delivery decisions are expensive in both directions. Staying with one CDN leaves the business exposed to the kind of 50-minute outage described here, and deep use of vendor edge functions makes leaving harder each year. Moving to several CDNs costs real engineering time forever and can create a worse mess of half-matched configuration. Interviewers ask it to see how a leader turns a vague worry into a decision with numbers, options and ownership. In this answer, we will look at how to analyse the bill, what multi-CDN really costs, how to contain lock-in, how to decide with scenarios, and how to organise ownership so the decision stays healthy.
1Understanding the Bill Before Changing Anything
The first instinct is often to renegotiate or switch vendor. A senior leader first asks what we are paying for. A CDN bill usually has a bandwidth part, priced per gigabyte delivered, a request part, priced per million requests, and extras such as edge function invocations, logs and security features. We break the bill down by property and by content type: HTML, API responses, images, video and downloads.
Then we look at the hit ratio and origin egress per property. A low hit ratio costs twice, because we pay the CDN to deliver and the cloud provider for origin egress, and our origin servers do the work as well. Typical findings are images served at full resolution to phones, video without modern codecs, cache keys that include tracking query parameters and so split identical content into many entries, and short TTLs chosen years ago for no reason. Fixing those can cut a bill by a quarter or more, often more than a renegotiation, and it makes any later negotiation stronger because we know our traffic profile.
2What Multi-CDN Really Gives and Costs
Multi-CDN means serving traffic through two or more CDNs at once. A steering layer decides which CDN each user goes to, either with DNS that returns different answers or with a dedicated traffic-steering service that measures performance. When one CDN fails, steering moves traffic to the others, so last year's 50-minute outage might have become a few minutes of degraded performance. Having a second vendor also helps at contract time, because we can credibly move volume.
But there is a catch, and it is permanent. Every caching rule, redirect, header, TLS certificate, security rule and edge function must exist in equivalent form on every CDN, and they behave slightly differently, for example in how they handle Vary or how they build cache keys. Every purge must reach all CDNs, or a corrected article stays wrong on one of them. Monitoring and logs come in two formats. And a second CDN's cache is colder, so origin load rises when traffic is split. This is a team's worth of ongoing work, not a project that ends.
| Option | Protects against | Ongoing cost |
|---|---|---|
| Single CDN, as today | Nothing beyond the vendor's own SLA | Lowest; full lock-in |
| Static failover origin + DNS switch | CDN outage for the most important pages | Low; a runbook and a tested switch |
| Active-passive second CDN | Full outage, with minutes to switch | Medium; config parity, cold cache |
| Active-active multi-CDN with steering | Outages and regional slowness | High; parity, purges, steering, two of everything |
Notice that the second row is often overlooked. A static failover, where the most important pages and assets are copied to object storage and served through a different path, with a DNS change that has been rehearsed, protects the pages that matter most at a fraction of the cost of full multi-CDN.
3Containing Lock-In
Lock-in grows quietly. Each team that writes an edge function in one vendor's runtime, or uses one vendor's proprietary configuration language, adds to the cost of ever leaving. We do not ban edge features, but we contain them. Edge logic should be small and portable: header manipulation, redirects, simple routing and A/B bucketing, written so it could be rebuilt on another platform in days. Business logic, such as pricing, personalisation decisions or authorisation beyond token checks, belongs at the edge only when the latency or cost gain is clear and measured.
We also manage all CDN configuration as code in our own repositories, with review and automated tests, and we rely on standard HTTP headers such as Cache-Control, Surrogate-Control and standard purge-by-tag patterns where possible. The reason is that configuration held only in a vendor console cannot be compared, reviewed or moved, while configuration in code can be translated.
4Deciding With Scenarios and Numbers
Now we can make the decision. We cost the risk: what does a one-hour CDN outage cost us in lost revenue, support load and reputation? If our site earns 40,000 dollars an hour at peak and the vendor has had roughly one major incident a year, the expected annual loss is in the tens of thousands, not millions. We cost the options: a second CDN in active-active mode might cost two engineers' time plus a minimum commitment, perhaps 400,000 dollars a year; a static failover might cost one engineer for a quarter and a small hosting bill.
With those numbers, the choice often becomes clear. For many businesses, a static failover for the critical pages plus a contract that keeps the option of a second CDN is the right answer today. For a business where an hour offline costs millions, multi-CDN pays for itself. The important point is that the decision is explicit, written down with its assumptions, and agreed with finance and product leadership, rather than made by whichever team shouted loudest after the last outage.
- Break down the bill and hit ratioby property and content type
- Fix waste firstimage sizes, cache keys, TTLs, compression
- Cost the outage riskrevenue per hour x expected outage hours
- Cost each resilience optionengineering time, contracts, origin load
- Does a second CDN pay for itself?YesPlan multi-CDN in phasesNoBuild static failover, keep the option
- Review yearly with real datatraffic, incidents, prices
6 steps in order. Play them, or step through them one at a time.
5Ownership and a Yearly Review
Whatever we choose, one platform team owns edge delivery: the configuration repository, the vendor contracts and relationships, the steering or failover mechanism and the incident response for edge problems. Product teams request changes through that team's review, much as they would for database schema changes. Without single ownership, edge rules sprawl and nobody can say what a change will affect.
We review the decision every year, or after any major incident, using real data: the bill broken down again, the hit ratios, the outages that occurred and how long failover took in practice.
6Follow-up questions
What would you move off edge functions first?
I would move business logic that has no strong latency reason to be at the edge and that is hard to port, for example personalisation rules or pricing decisions written in the vendor's runtime, back to our own services. Those are the pieces that both lock us in most and carry the most risk if they behave differently on another platform. Simple header rewrites and redirects can stay, because they are cheap to port. I would order the work by how much vendor-specific code each function contains and how critical it is.
How do you keep purges consistent across two CDNs?
One purge service in our own platform receives every invalidation and fans it out to each CDN's API, retrying failures and recording which CDN acknowledged which purge. Publishing systems never call a vendor API directly. We also alert when a purge has not been acknowledged by all CDNs within a short time, because a partially applied purge is exactly the kind of inconsistency users notice.
Is it a red flag if the CDN is the third-largest cost?
Not by itself. For a media or e-commerce site that serves lots of images and video, delivery is naturally a large cost. It becomes a problem if the hit ratio is poor, if we pay to deliver waste such as oversized images, or if the price per gigabyte is well above market. The breakdown tells us which of these applies.
7Conclusion
In this answer, we saw how a senior leader sets edge delivery strategy. We start with the bill, by content type, hit ratio and origin egress, because fixing waste usually saves more than switching vendors. We weigh multi-CDN's outage protection and negotiating power against its permanent costs, compare it with a cheaper static failover, contain lock-in by keeping edge logic small and portable and configuration in code, decide with costed scenarios agreed with the business, and give one platform team ownership with a yearly review.
Open with
I would start with data rather than vendors. I would break the CDN bill down by property and content type, look at hit ratios and origin egress, and look for waste such as oversized images, cache keys split by tracking parameters and short TTLs nobody remembers choosing.
Then, if they want more
In my experience that often saves more than a renegotiation and puts us in a stronger position for one. On resilience, multi-CDN does reduce the risk of another 50-minute outage and helps negotiation, but it is a permanent cost: a steering layer, equivalent configuration on every CDN, purges that must reach all of them and colder caches.
So I would cost the options against the risk. If an hour down costs us, say, 40,000 dollars and we expect about one incident a year, a static failover origin for the most important pages with a rehearsed DNS switch may be the right first step, while keeping the contract open for a second CDN.
If an hour costs millions, multi-CDN pays for itself. To contain lock-in, I would keep edge functions small and portable, move business logic back to our services unless the gain is clear, and keep all edge configuration as code in our repositories.
One platform team would own configuration, contracts and incidents, and we would review the decision yearly with real data.
About this answer
- Last updated
- 13 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "As the senior technical leader, how do you set the strategy for edge delivery, weighing...": https://scrivio-interview-library.netlify.app/architecture/caching-strategies/c88b597257/