All jobs / Backend developer / Architecture
Backend developer interview question · 0–1 years
What does a CDN do for a web application?
The strongest answer
It serves static files from servers near the user, so images, scripts and styles come from the edge with low latency and the origin only serves what changes
Why it works
Right. Static content at the edge, origin for the rest.
What a good answer covers
- Static files near the user.
- Lower latency for assets.
- Origin serves dynamic content.
- Cache headers control it.
Answers that fall short
- Close, but not the strongest: It makes the API faster
APIs are dynamic; a CDN mostly helps static assets. - Weak: It hosts the database closer to users
Databases are not at the edge. - Red flag: It replaces the web servers
The origin still exists behind it.
Who gets asked this
- Backend developer
- Full-stack developer
- DevOps / SRE / cloud
- Data engineer
- Data science / ML / AI
- Engineering manager / tech lead
- Solutions / cloud architect
- AI engineer
More Architecture questions
- Why would a class take its database client as a constructor parameter instead of creating one inside itself?
- The interviewer asks: “Should this service be CQRS?” Strongest answer?
- The interviewer asks: “Event-driven or request/response for “order placed → email + warehouse”?” Strongest…
- The interviewer asks: “How do you change an event payload that old consumers still read?” Strongest answer?
- The interviewer asks: “Billing keeps importing Order's entity. What's the design problem?” Strongest answer?
- The interviewer asks: “How do you isolate tenants in a multi-tenant backend?” Strongest answer?
- The interviewer asks: “A bad deploy took all regions with it. What architecture would have contained it?”…
- A team proposes ports and adapters for a service that reads a queue, writes to one database, and will never…