All jobs / Solutions / cloud architect / Application Architecture
Solutions / cloud architect interview question · 3–5 years
How do you decide where one service ends and another begins?
The strongest answer
Around a business capability with its own language and data that changes together; a boundary is right when the services rarely need each other’s data in the same transaction
Why it works
Exactly. Capability, language, data that changes together, and few cross-boundary transactions.
What a good answer covers
- Cut around business capabilities.
- Own language and data.
- Data that changes together stays together.
- Few cross-boundary transactions.
Answers that fall short
- Close, but not the strongest: By technical layer: a data service, a logic service and an API service
Layered services put a network hop inside every request and split nothing meaningful. - Weak: By team size: each team of five gets one service
Teams shape ownership, but boundaries drawn only by headcount move every reorganisation. - Red flag: By entity: one service per database table
Table-per-service turns every business operation into a distributed transaction.
Who gets asked this
More Application Architecture questions
- Six services share one database and every schema change needs six approvals. What do you propose?
- For a saga across several services — choreography through events, or an orchestrator?
- The platform team wants a service mesh. How do you decide whether it is worth it?
- When is a serverless function the right choice, and when does it turn into a trap?
- A new product with a team of four: monolith or microservices to start?
- When would you choose a REST call over publishing an event, and when the reverse?
- What does designing an API “contract-first” mean, and why do teams do it?
- What does an API gateway do for you, and what should you resist putting in it?