All jobs / Solutions / cloud architect / System Design
Solutions / cloud architect interview question · 0–1 years
Users get logged out whenever the platform scales the API from two instances to three.
What makes a service “stateless”, and why does the architect keep asking for it?
The strongest answer
Any instance can serve any request because session and working data live outside it; that is what lets you add, remove and replace instances freely
Why it works
Exactly. State lives in a store the instances share; the instances are interchangeable.
What a good answer covers
- Any instance, any request.
- State in a shared store.
- Enables scaling and replacement.
- Sticky sessions break it.
Answers that fall short
- Close, but not the strongest: It has no database
Stateless services use databases all the time; the state is just not inside the process. - Weak: It keeps state in memory but restarts often so it does not matter
In-memory session means the next request must hit the same instance — the opposite of interchangeable. - Red flag: It is written in a functional language
Language choice has nothing to do with where request state lives.
Who gets asked this
More System Design questions
- Scaling up versus scaling out: what decides which you reach for?
- A stakeholder uses “fast” to mean two different things. What are they, and why does it matter?
- Logs, metrics and traces: what question does each one answer?
- How do you estimate capacity for a system that does not exist yet?
- What observability decisions belong in the design, before any code is written?
- Twelve services, no tracing. How do you introduce distributed tracing without a year-long programme?