All jobs / Full-stack developer / DevOps Basics

Full-stack developer interview question · 1–3 years

You are deploying a SPA and its API for the first time on the same domain.

How do you host them?

The strongest answer

Hashed static assets on a CDN, `index.html` with a short cache, API on its own origin or path, and a fallback so deep links do not 404 on refresh

Why it works

Exactly. The SPA refresh problem and the cache problem are deploy problems. Split asset cache from HTML; give the API a real origin.

What a good answer covers

Answers that fall short

Who gets asked this

More DevOps Basics questions