Mobile app architecture interview questions
By Mike Salari. Staff mobile engineer · 500+ technical interviews from the hiring side.
This guide is for senior and staff mobile engineers facing an architecture round where the question is the whole app, not one screen. You get ten questions on boundaries, authority, version skew, release and governance, with what each one scores, the follow-ups that change a condition, and three short code samples. For a full worked prompt, read design a chat app.
Who this is for
iOS, Android, Flutter and React Native engineers going for senior, staff, lead or architect roles, where several teams ship into one app and old versions stay on phones for months. If you can already build a feature end to end and want to explain why a boundary is worth its cost, this page is for you.
The frame interviewers listen for
A mobile architecture is the system of decisions that decides how safely you can change what already exists. Every question below is a version of that. Opening with "I'd use MVVM" names a pattern without making a single design decision, and the interviewer notices. Controlled Change asks interviewers to score the ability to simplify as highly as the ability to scale. "This is two engineers and an MVP, so one module and a direct data boundary" is a strong answer when it is true.
The questions
1. "How do you know an abstraction is paying for itself?"
What is scored: whether you price a boundary before you add it.
A strong answer covers:
- Context: every boundary costs something: a new concept, mapping code, build graph edges, test doubles, and fewer people who can change it with confidence.
- Decision: run four checks. Volatility: do the two sides change for different reasons? Consequence: what breaks if change leaks across? Multiplicity: are there real second implementations today? Coordination: do different teams or release clocks own the sides?
- Alternative: duplication. Two similar pieces of code are not one concept until their rules and change pace match.
- Failure mode: a presentation, domain and data template stamped onto seventy trivial features, so most types exist only for structural compliance.
- Evidence: change isolation in recent pull requests, and whether anyone has ever deleted the boundary's second implementation.
Follow-ups:
- A volatile payment SDK is called directly from twelve features. Same four checks: what do they say now?
- You inherit the seventy-feature template. What do you remove first, and how do you prove nothing broke?
Weak answer: "We might replace it one day, so it gets an interface." Speculative multiplicity is the weakest reason there is.
2. "When should two modules be merged back together?"
What is scored: willingness to simplify a module graph.
A strong answer covers:
- Context: a graph can be acyclic on paper while every small feature still edits ten modules and tests need the whole app.
- Decision: a granularity test. Does the unit have a coherent owner, a stable contract, a real change radius, and can it build and test alone? If merging it with a neighbour reduces coordination without weakening a boundary, merge it.
- Android's modularisation guide says the same in its own words: when module overhead counteracts the gains, consider consolidating.
- Failure mode: one module per screen or per use case, which multiplies manifests, linking and navigation work.
Follow-ups:
- Two teams share the module you want to merge. Who decides?
- After the merge, how do you stop the old dependency rule from eroding?
Weak answer: "More modules is always better for build times." It ignores configuration, linking and the time engineers spend finding where code lives.
3. "How would you find a bad module boundary using only repository and build data?"
What is scored: evidence before opinion.
A strong answer covers:
- Change coupling: which files in different modules change together in the same pull requests, again and again.
- The build critical path: which module, when touched, rebuilds most of the graph.
- Hidden channels: global event buses, a shared database table, or one dependency container that every module registers into.
- Ownership: whether approvals for "independent" modules always route to the same few people.
- Decision: move code to where it changes, then confirm with the same data a month later.
Follow-ups:
- The data says two modules always change together, but they belong to two teams. Now what?
- You cannot run history analysis on a monorepo this size. What is the cheapest signal?
Weak answer: "I would look at the code and see what feels wrong." Feelings do not survive the review where someone disagrees.
4. "Where is the app not allowed to be the authority?"
What is scored: trust boundaries and who owns each invariant.
A strong answer covers:
- The server owns price, authorisation, inventory and anything with money or permission attached. The client owns projections, drafts and validation for user experience.
- The client runs on a device you do not control, so a client check raises the cost of abuse and never ends the argument.
- Failure mode: payment totals or access rules reimplemented in iOS, Android and web to avoid coordination. Three copies drift, and one of them is wrong in production.
- Alternative: server-driven rules for high-consequence logic, with client logic kept for fast feedback only.
Follow-ups:
- The network is down and the user taps Pay. What may the client decide alone?
- A feature flag hides a premium screen. Is that access control?
Weak answer: "We validate everything on the client so the server stays simple." It moves the trust boundary onto a device anyone can patch.
5. "Place the state for checkout: UI, payment SDK, process death, backend confirmation."
What is scored: naming every kind of state and its lifetime.
A strong answer covers:
- Separate UI state, durable local data, cache, an operation ledger for pending commands, and server truth. Say which survives process death.
- The payment intent and its idempotency key are written to disk before the first network call.
- The confirmation screen reads from the ledger plus server status, never from a value held in memory.
- Failure mode: the app dies after the payment SDK returns and before the backend confirms. The user pays and sees nothing.
- Evidence: a test that kills the process at each step and checks that the user lands in a state they can understand.
Follow-ups:
- The SDK reports success but your backend has no record yet. What does the screen say?
- The user logs out with a pending payment in the ledger. What happens to it?
Weak answer: "The ViewModel holds the checkout state." It survives rotation and dies with the process.
6. "The server adds a new enum value next month. What does your shipped app do?"
What is scored: treating unknown values as normal.
A strong answer covers:
- Context: closed enums make domain code clear, but transport decoding must survive a value the server adds later.
- Decision: decode unknown values into an explicit case that keeps the raw value.
- Then decide by consequence: an unknown label renders generically, an unknown authorisation state blocks destructive actions and refreshes policy.
- Failure mode: mapping an unknown value to an existing case. That is silent corruption. Crashing is the other failure.
enum BookingStatus: Equatable {
case confirmed, cancelled, pending
case unknown(String)
}
extension BookingStatus: Decodable {
init(from decoder: Decoder) throws {
let raw = try decoder.singleValueContainer().decode(String.self)
switch raw {
case "confirmed": self = .confirmed
case "cancelled": self = .cancelled
case "pending": self = .pending
default: self = .unknown(raw)
}
}
}Follow-ups:
- A field called
statuschanges meaning from booking state to payment state, still a string. Is that compatible? - When would you rather add a capability flag than check the app version?
Weak answer: "The backend promises not to add values." Old apps live on long after that promise.
7. "A command was queued on app version 8 and is sent by version 10. What happens?"
What is scored: seeing queued work as a historical contract.
A strong answer covers:
- A pending operation stores its payload version, the app version that created it, a stable ID and the data needed to read the user's original intent.
- Version 10 either keeps a sender for the old payload, migrates it, or quarantines it with a recovery path the user can see.
- A migration never changes what the user asked. If a new price or consent is needed, keep the intent and ask again.
- Test database migrations from every supported schema version, not only the previous one.
data class PendingOperation(
val operationId: String, // idempotency key, never regenerated
val kind: String, // for example "booking.cancel"
val payloadVersion: Int,
val createdByAppVersion: String,
val payloadJson: String,
)
sealed interface Dispatch {
data class Send(val op: PendingOperation) : Dispatch
data class Quarantine(val op: PendingOperation, val reason: String) : Dispatch
}
fun dispatch(op: PendingOperation, supported: Set<Int>): Dispatch =
if (op.payloadVersion in supported) Dispatch.Send(op)
else Dispatch.Quarantine(op, "unsupported payload v${op.payloadVersion}")Follow-ups:
- The backend removed the v1 endpoint last week. What does the user see?
- The upgrade runs a database migration while the queue is draining. In what order?
Weak answer: "We clear the queue on upgrade." It deletes work the user believes is done.
8. "What does rollback mean when the binary cannot be pulled back?"
What is scored: release as a topology of code, configuration and authority.
A strong answer covers:
- Behaviour depends on the binary, backend contracts, flags, remote schemas and minimum-version policy. Containment cannot depend only on a new binary.
- App Store phased release spreads over 7 days, can be paused for up to 30 days in total, and anyone can still update by hand. Halting a Google Play staged rollout stops new users getting it; users who have it keep it.
- So risky behaviour ships dark behind a flag with a safe default, and the fix is a roll forward.
- Evidence: build provenance (commit, toolchain, lockfiles) so you can reproduce the exact artefact during an incident.
interface RemoteFlags {
fun boolean(key: String, default: Boolean): Boolean
}
class CheckoutGate(private val flags: RemoteFlags) {
// If config never arrives, users stay on the old path.
fun useNewCheckout(): Boolean = flags.boolean("checkout_v2_enabled", default = false)
}Follow-ups:
- The bug is in a database migration that already ran. What does the flag do now?
- Who has authority to flip the kill switch at 2 a.m.?
Weak answer: "We roll back the release." Phones that installed it keep it.
9. "Which layers would you share across iOS and Android, and how would you get out?"
What is scored: sharing as a map of commitment with an exit.
A strong answer covers:
- Levels of sharing: knowledge and contracts, generated artefacts, domain rules, data and sync, presentation logic, UI, and the app shell. Each step down the list commits harder to one platform model.
- Domain rules such as conflict policy often pay off. Camera, maps, accessibility, payments and background work usually cost more as a shared bridge.
- An escape hatch: a stated way to move one surface back to native without a rewrite.
- Evidence for a pilot: platform quality on both sides, delivery speed, and the cost of debugging across the bridge.
Follow-ups:
- A shared bundle ships faster than the native binary. How do they stay compatible?
- When is two native implementations cheaper than one shared one?
Weak answer: "Share as much as possible, it halves the work." It ignores the bridge cost and the platform quality you give up.
10. "How do you stop the architecture eroding after you leave the team?"
What is scored: turning principles into checks.
A strong answer covers:
- A fitness function: a check that fails when a property is broken. Feature modules may not depend on each other, enforced in CI from the module graph, with an error message that teaches the rule.
- Not every property is binary: startup budgets and oldest-queue-age are tracked as trends with review triggers.
- Exceptions with an owner, a reason and an expiry date.
- Deleting rules whose pressure has gone, so governance can simplify itself.
Follow-ups:
- A team needs a cross-feature dependency this sprint. How does the exception work?
- Which rule would you refuse to automate, and why?
Weak answer: "We document it in the wiki." A rule only a document enforces erodes as soon as nobody reads it.
What changed in 2024 to 2026
- Swift 6 (17 September 2024) added an opt-in language mode that reports potential data races as compiler errors. Swift.org
- Swift 6.2 (15 September 2025) added an option to isolate code to the main actor by default, which changes where concurrency boundaries sit in an iOS module. Swift.org
- React Native 0.76 (23 October 2024) enabled the New Architecture by default, which matters for the sharing question. React Native
- Android's architecture recommendations strongly recommend repositories even with a single data source, and mark the domain layer as recommended for big apps. Android Developers
- Android's modularisation guide (updated 5 March 2026) warns that too fine-grained modules add build complexity and boilerplate. Android Developers
- App Store phased release and Google Play staged rollout behave as described in question 8. App Store Connect Help, Play Console Help
How the rounds run
Formats vary by company and level. Some loops run a mobile system design round, some a general one, and some ask architecture questions inside a project deep dive. I do not know of an official source that gives a fixed mobile architecture round for any named company. StaffEng advises asking what each interview format evaluates. Ask the recruiter whether this round wants a client design, a server design, or both, and whether old app versions and team ownership are in scope.
Related platform guides: iOS architecture interview questions and Android architecture interview questions.
Sources
- Recommendations for Android architecture, Android Developers, accessed 21 October 2026
- Guide to Android app modularization, Android Developers, updated 5 March 2026
- Announcing Swift 6, Swift.org, 17 September 2024
- Swift 6.2 Released, Swift.org, 15 September 2025
- New Architecture is here, React Native, 23 October 2024
- Release a version update in phases, App Store Connect Help, accessed 21 October 2026
- Release app updates with staged rollouts, Play Console Help, accessed 21 October 2026
- Interviewing for Staff-plus roles, StaffEng, accessed 21 October 2026