All jobs / Full-stack developer / System Design Basics

Full-stack developer interview question · 3–5 years

Invoices and uploaded documents are streamed from object storage by the API, and that endpoint is now the slowest thing we run.

How do you put a CDN in front of private files without leaking them?

The strongest answer

Authorise in the API, then hand the browser a short-lived signed URL for that one object; the bucket stays private, the link expires in minutes, and the edge never caches a response keyed by user

Why it works

Right — the API keeps the decision, the edge moves the bytes, and the signature carries a permission the URL cannot outlive.

What a good answer covers

Answers that fall short

Who gets asked this

More System Design Basics questions