All jobs / Solutions / cloud architect / Application Architecture
Solutions / cloud architect interview question · 1–3 years
Two services both need customer data. Who owns it, and how does the other get it?
The strongest answer
One service owns the write model and is the source of truth; the other reads through its API or keeps a local copy fed by events, accepting that the copy lags
Why it works
Exactly. One writer, one truth; others read or subscribe and accept the lag.
What a good answer covers
- One owner writes.
- Others read via API or events.
- Copies lag by design.
- No shared tables between services.
Answers that fall short
- Close, but not the strongest: Both write to a shared customer table so the data is always the same
A shared table couples both deployments and schemas; every change becomes a negotiation. - Weak: Each service keeps its own customer table and users update both
Two independent truths diverge on the first day. - Red flag: Put the customer data in the gateway so every service can see it
The gateway is a router, not a data store.
Who gets asked this
More Application Architecture questions
- How do you keep a monolith modular enough that you could split it into services later?
- Booking a trip touches flights, hotel and payment services. How do you keep them consistent?
- How do you replace a large legacy system without a big-bang cut-over?
- When does separating read and write models earn its complexity, and when does it not?
- A team proposes event sourcing for the whole platform. What do you check before agreeing?
- How do you decide where one service ends and another begins?
- 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?