Kotlin Multiplatform interview questions test shared Kotlin skill across source sets, expect and actual, native interop, dependencies, testing, architecture, and release trade-offs.
45 questions with answersKey Takeaways
Kotlin Multiplatform lets teams share Kotlin code across targets while keeping platform-specific code where needed. In interviews, KMP questions check whether you know what belongs in shared modules, how source sets work, how expect and actual bridge platform APIs, and how to test both Android and iOS paths.
Watch: The State of Kotlin Multiplatform
Video: The State of Kotlin Multiplatform (Kotlin by JetBrains, YouTube)
Test yourself and earn a certificate
6 quick questions. Score 70%+ to download your Kotlin Multiplatform certificate.
Start here. These are the definitions and first-principle checks that open most rounds.
commonMain matters in Kotlin Multiplatform because it changes screen behavior, state ownership, device support, or release safety on shared Kotlin modules across Android, iOS, backend, and desktop targets.
A product example is verified with Gradle build output, Android and iOS test runs, binary integration checks, and platform logs. That makes commonMain concrete instead of a framework definition.
For commonMain, the practical check is whether a shared Kotlin module with source sets, expect and actual code, tests, and platform integration notes reflects the intended behavior and whether Gradle build output, Android and iOS test runs, binary integration checks, and platform logs confirms it.
Watch a deeper explanation
Video: The State of Kotlin Multiplatform (Kotlin by JetBrains, YouTube)
androidMain is a platform decision in Kotlin Multiplatform. It shows how the app handles state, system APIs, performance, or user recovery.
The failure mode can be slow render, stale state, permission denial, crash, battery cost, offline break, or store rejection, depending on the feature.
androidMain becomes useful when it changes a real choice: safer design, faster execution, clearer ownership, or better failure detection.
iosMain is defined through a user path: what the user does, what the app stores, what the OS controls, and what can fail on a real device.
The release check uses an emulator, simulator, real device, logs, crash traces, profiler output, or store signals.
The main risk with iosMain is sharing the wrong layer, platform API mismatch, dependency conflicts, and untested iOS behavior; detection of that risk is part of the technical substance.
source sets connects code to device behavior: the API or pattern and how it behaves during lifecycle, network, or release changes.
source sets maps back to a shared Kotlin module with source sets, expect and actual code, tests, and platform integration notes, which connects the concept to implementation and release evidence.
source sets connects one concrete artifact, one measurable signal, and one reason the simpler option may not be enough.
| Answer part | What to say | Evidence to mention |
|---|---|---|
| Definition | source sets in one direct sentence. | Official docs or course material |
| Use case | The work where it changes a decision. | Dataset, model, query, dashboard, or pipeline |
| Risk | What breaks when it is misunderstood. | Metric, log, test result, or review note |
expect and actual matters in Kotlin Multiplatform because it changes screen behavior, state ownership, device support, or release safety on shared Kotlin modules across Android, iOS, backend, and desktop targets.
A product example is verified with Gradle build output, Android and iOS test runs, binary integration checks, and platform logs. That makes expect and actual concrete instead of a framework definition.
In day-to-day work, expect and actual is judged by the result it protects: correctness, reliability, maintainability, cost, security, or user impact.
Watch a deeper explanation
Video: Android Development for Beginners (freeCodeCamp.org, YouTube)
Ktor client is defined through a user path: what the user does, what the app stores, what the OS controls, and what can fail on a real device.
The release check uses an emulator, simulator, real device, logs, crash traces, profiler output, or store signals.
Ktor client is worth discussing only if it changes an action: what to build, what to test, what to monitor, or what to avoid.
SQLDelight connects code to device behavior: the API or pattern and how it behaves during lifecycle, network, or release changes.
SQLDelight maps back to a shared Kotlin module with source sets, expect and actual code, tests, and platform integration notes, which connects the concept to implementation and release evidence.
The useful distinction for SQLDelight is where responsibility sits: code, data, configuration, platform, process, or owner.
Kotlin serialization matters in Kotlin Multiplatform because it changes screen behavior, state ownership, device support, or release safety on shared Kotlin modules across Android, iOS, backend, and desktop targets.
A product example is verified with Gradle build output, Android and iOS test runs, binary integration checks, and platform logs. That makes Kotlin serialization concrete instead of a framework definition.
Kotlin serialization often fails quietly, so the validation should be observable through Gradle build output, Android and iOS test runs, binary integration checks, and platform logs.
coroutines is a platform decision in Kotlin Multiplatform. It shows how the app handles state, system APIs, performance, or user recovery.
The failure mode can be slow render, stale state, permission denial, crash, battery cost, offline break, or store rejection, depending on the feature.
coroutines is specific: where it applies, where it does not, and what changes the decision.
Kotlin Native is defined through a user path: what the user does, what the app stores, what the OS controls, and what can fail on a real device.
The release check uses an emulator, simulator, real device, logs, crash traces, profiler output, or store signals.
Kotlin Native connects theory to delivery when the explanation includes input, output, owner, risk, and proof.
CocoaPods integration connects code to device behavior: the API or pattern and how it behaves during lifecycle, network, or release changes.
CocoaPods integration maps back to a shared Kotlin module with source sets, expect and actual code, tests, and platform integration notes, which connects the concept to implementation and release evidence.
CocoaPods integration goes beyond definition when it includes the operating constraint and verification step.
Gradle targets matters in Kotlin Multiplatform because it changes screen behavior, state ownership, device support, or release safety on shared Kotlin modules across Android, iOS, backend, and desktop targets.
A product example is verified with Gradle build output, Android and iOS test runs, binary integration checks, and platform logs. That makes Gradle targets concrete instead of a framework definition.
Gradle targets is tied to the problem it solves, not just the tool or syntax that exposes it.
Watch a deeper explanation
Video: First steps with Flutter (Flutter, YouTube)
common tests is a platform decision in Kotlin Multiplatform. It shows how the app handles state, system APIs, performance, or user recovery.
The failure mode can be slow render, stale state, permission denial, crash, battery cost, offline break, or store rejection, depending on the feature.
The decision around common tests should be reversible or at least measurable, especially when sharing the wrong layer, platform API mismatch, dependency conflicts, and untested iOS behavior is possible.
platform interop is defined through a user path: what the user does, what the app stores, what the OS controls, and what can fail on a real device.
The release check uses an emulator, simulator, real device, logs, crash traces, profiler output, or store signals.
platform interop needs both the normal path and the edge case that breaks it.
These questions test whether you can apply the topic to real data, real code, and messy constraints.
For writing expect and actual code, the user path, device state, network condition, and release target before choosing the implementation comes first.
writing expect and actual code connects to a shared Kotlin module with source sets, expect and actual code, tests, and platform integration notes, and release proof comes from Gradle build output, Android and iOS test runs, binary integration checks, and platform logs.
writing expect and actual code is complete only when the result is visible in Gradle build output, Android and iOS test runs, binary integration checks, and platform logs and the next owner can repeat the check.
// commonMain
expect fun platformName(): String
class Greeting {
fun greet() = "Hello from ${platformName()}"
}
// androidMain
actual fun platformName(): String = "Android"Begin configuring source sets with the smallest testable change, then run it on the device class most likely to expose the bug.
The rollback or mitigation path matters if configuring source sets breaks after rollout.
For configuring source sets, the important artifact is a shared Kotlin module with source sets, expect and actual code, tests, and platform integration notes; without it, the task is just activity without proof.
For adding Ktor networking, define success in user terms first, then map it to code, logs, build output, and release checks.
Syntax is not enough. The evidence trail is Gradle build output, Android and iOS test runs, binary integration checks, and platform logs.
adding Ktor networking preserves the user or system outcome first, then optimizes speed, cost, or convenience.
For sharing data models, the user path, device state, network condition, and release target before choosing the implementation comes first.
sharing data models connects to a shared Kotlin module with source sets, expect and actual code, tests, and platform integration notes, and release proof comes from Gradle build output, Android and iOS test runs, binary integration checks, and platform logs.
The risk in sharing data models is sharing the wrong layer, platform API mismatch, dependency conflicts, and untested iOS behavior, so the task needs an explicit prevention or detection step.
Handle writing common tests by separating UI state, platform API behavior, local data, and remote data. Each layer needs its own check.
One constraint usually controls the decision: startup time, offline behavior, accessibility, memory, store rules, signing, or OS version support.
writing common tests usually touches more than one layer, so separate input, processing, output, and ownership before changing anything.
Begin testing iOS actual code with the smallest testable change, then run it on the device class most likely to expose the bug.
The rollback or mitigation path matters if testing iOS actual code breaks after rollout.
testing iOS actual code stops at a verified result, not a completed command or a passed local run.
For integrating with Swift, define success in user terms first, then map it to code, logs, build output, and release checks.
Syntax is not enough. The evidence trail is Gradle build output, Android and iOS test runs, binary integration checks, and platform logs.
integrating with Swift needs a defined expected output, allowed side effects, and evidence source before execution.
For handling platform storage, the user path, device state, network condition, and release target before choosing the implementation comes first.
handling platform storage connects to a shared Kotlin module with source sets, expect and actual code, tests, and platform integration notes, and release proof comes from Gradle build output, Android and iOS test runs, binary integration checks, and platform logs.
handling platform storage needs a negative case as well as the happy path, especially when the failure is expensive or hard to see.
Handle managing Gradle dependencies by separating UI state, platform API behavior, local data, and remote data. Each layer needs its own check.
One constraint usually controls the decision: startup time, offline behavior, accessibility, memory, store rules, signing, or OS version support.
The simplest useful version of managing Gradle dependencies is the one that can be reviewed, repeated, and explained from the evidence.
Watch a deeper explanation
Video: Start building with Swift and SwiftUI (Apple Developer, YouTube)
Begin debugging native build errors with the smallest testable change, then run it on the device class most likely to expose the bug.
The rollback or mitigation path matters if debugging native build errors breaks after rollout.
For debugging native build errors, document the assumption that matters most because that is where follow-up failures usually start.
For reviewing binary size, define success in user terms first, then map it to code, logs, build output, and release checks.
Syntax is not enough. The evidence trail is Gradle build output, Android and iOS test runs, binary integration checks, and platform logs.
reviewing binary size leaves a trace: test result, log line, metric, report, ticket, or review note.
For planning release rollout, the user path, device state, network condition, and release target before choosing the implementation comes first.
planning release rollout connects to a shared Kotlin module with source sets, expect and actual code, tests, and platform integration notes, and release proof comes from Gradle build output, Android and iOS test runs, binary integration checks, and platform logs.
The practical choice in planning release rollout is often between a quick local fix and a maintainable change that survives the next release.
Begin reviewing KMP architecture with the smallest testable change, then run it on the device class most likely to expose the bug.
The rollback or mitigation path matters if reviewing KMP architecture breaks after rollout.
reviewing KMP architecture controls blast radius by separating what changes now from what stays unchanged.
Advanced rounds test trade-offs, failure modes, and whether the decision can hold up under production pressure.
For iOS actual implementation fails, reproduce the issue on the affected device class, collect logs, compare OS or framework behavior, and test the narrowest fix.
Prevention can be a regression test, crash alert, rollout guardrail, store checklist, or release note, depending on the failure.
iOS actual implementation fails ends with a decision based on Gradle build output, Android and iOS test runs, binary integration checks, and platform logs, not a guess based on the first symptom.
Handle dependency lacks native support by protecting the user path first, then isolating whether the cause is lifecycle, state, network, storage, permission, or release config.
The useful technical record has user impact, debug path, evidence, and ownership, not just a guessed framework fix.
The first priority in dependency lacks native support is limiting impact while keeping enough evidence to prove the actual cause.
Treat Gradle target mismatch as a release risk. Decide whether to hotfix, roll back, feature flag, or monitor based on impact and repeatability.
Gradle build output, Android and iOS test runs, binary integration checks, and platform logs is the proof source. Missing evidence means adding the log, trace, test, or release signal before calling the issue resolved.
For Gradle target mismatch, the useful split is symptom, cause, fix, validation, and prevention.
For coroutine behavior differs, reproduce the issue on the affected device class, collect logs, compare OS or framework behavior, and test the narrowest fix.
Prevention can be a regression test, crash alert, rollout guardrail, store checklist, or release note, depending on the failure.
The strongest mitigation for coroutine behavior differs is the smallest change that proves or disproves the suspected cause.
Handle binary size grows by protecting the user path first, then isolating whether the cause is lifecycle, state, network, storage, permission, or release config.
The useful technical record has user impact, debug path, evidence, and ownership, not just a guessed framework fix.
binary size grows needs a timeline because order often reveals whether the issue came from data, code, configuration, or process.
Treat business logic duplicated as a release risk. Decide whether to hotfix, roll back, feature flag, or monitor based on impact and repeatability.
Gradle build output, Android and iOS test runs, binary integration checks, and platform logs is the proof source. Missing evidence means adding the log, trace, test, or release signal before calling the issue resolved.
For business logic duplicated, communication matters because the owner, user impact, and next action must be clear before work spreads.
For SQLDelight migration issue, reproduce the issue on the affected device class, collect logs, compare OS or framework behavior, and test the narrowest fix.
Prevention can be a regression test, crash alert, rollout guardrail, store checklist, or release note, depending on the failure.
The prevention step for SQLDelight migration issue is concrete: a test, monitor, rule, review, runbook, or owner change.
Handle common test misses platform bug by protecting the user path first, then isolating whether the cause is lifecycle, state, network, storage, permission, or release config.
The useful technical record has user impact, debug path, evidence, and ownership, not just a guessed framework fix.
For common test misses platform bug, a rollback is useful only if it restores the failing behavior and has its own validation check.
Treat CocoaPods integration failure as a release risk. Decide whether to hotfix, roll back, feature flag, or monitor based on impact and repeatability.
Gradle build output, Android and iOS test runs, binary integration checks, and platform logs is the proof source. Missing evidence means adding the log, trace, test, or release signal before calling the issue resolved.
CocoaPods integration failure is evaluated by blast radius, repeatability, customer impact, and confidence in the evidence.
Debug release train blocked with a device matrix, not one local run. The record must show which device, OS version, and build variant was checked.
The safest fix avoids broad rewrites, untested store changes, and fixes checked only on one emulator.
The best fix for release train blocked is one that reduces recurrence, not just the visible symptom.
For Android works but iOS fails, reproduce the issue on the affected device class, collect logs, compare OS or framework behavior, and test the narrowest fix.
Prevention can be a regression test, crash alert, rollout guardrail, store checklist, or release note, depending on the failure.
For Android works but iOS fails, the hard part is separating real movement from measurement or environment noise.
Handle platform team rejects boundary by protecting the user path first, then isolating whether the cause is lifecycle, state, network, storage, permission, or release config.
The useful technical record has user impact, debug path, evidence, and ownership, not just a guessed framework fix.
platform team rejects boundary preserves a record of what changed, why it changed, and what proved the change worked.
Treat senior KMP architecture review as a release risk. Decide whether to hotfix, roll back, feature flag, or monitor based on impact and repeatability.
Gradle build output, Android and iOS test runs, binary integration checks, and platform logs is the proof source. Missing evidence means adding the log, trace, test, or release signal before calling the issue resolved.
The final check for senior KMP architecture review is whether the same failure can be caught earlier next time.
Kotlin Multiplatform overlaps with nearby topics, but each topic has a specific center of gravity. The table separates tool knowledge from judgment.
| Area | What it checks | Interview signal | Common miss |
|---|---|---|---|
| commonMain | Shared Kotlin code | Can isolate business logic | Putting UI-only code here |
| androidMain | Android-specific code | Can call Android APIs | Duplicating shared logic |
| iosMain | iOS-specific code | Can bridge native behavior | Skipping iOS tests |
| expect/actual | Platform contract and implementation | Can hide platform differences | Using it for every minor branch |
Kotlin Multiplatform interview scoring weight
The exact mix depends on role level and company stack.
Scale: Hyring editorial score for interview preparation, not an external benchmark.
One KMP module with shared validation logic, platform-specific date or storage code, common tests, and Android plus iOS integration checks is useful.
Kotlin Multiplatform interview prep flow
Strong answers definitions connects to a real project decision.
Strong KMP answers show practical restraint: share stable logic, keep platform experience native where it matters, and test every target.
| Area | Weak answer | Strong answer |
|---|---|---|
| Platform fit | Names the framework only. | Explains why the platform choice fits the product and team. |
| Device proof | Says it worked locally. | Mentions emulator, simulator, real device, logs, and crash evidence. |
| Release risk | Talks only about coding. | Covers signing, store rules, rollout, rollback, and monitoring. |
| User impact | Ignores edge cases. | Connects performance, offline mode, accessibility, and battery use to users. |
Kotlin Multiplatform evidence path
This path fits answers that need proof, not just a definition.
6 questions, about 4 minutes. Score 70% or higher to earn a shareable certificate.
Hyring's AI Video Interviewer helps you practice mobile engineering answers with examples, trade-offs, and follow-up reasoning.
Try AI interview prep