Kotlin Developer Interview Questions & Answers
40 questions for Kotlin Developer interviews — 3 easy, 32 medium, 5 hard.
About the Kotlin Developer role
A Kotlin developer specialises in writing idiomatic, safe Kotlin across Android and sometimes shared Kotlin Multiplatform modules. They focus on language features like coroutines, generics, sealed hierarchies and DSLs, and often help teams migrate Java code to Kotlin. This role is common in companies modernising legacy Android apps or sharing business logic across Android and iOS with Kotlin Multiplatform. Strong testing habits are expected.
How do you store relationships in Room, such as orders with items?
Show answer
How do you build a single-activity app with the Navigation component?
Show answer
What file storage options does Android provide and how does scoped storage affect them?
Show answer
How do you write tests for a Room DAO?
Show answer
Tell me about a time you handled a production crash under pressure.
Show answer
Users who reinstall the app lose all their settings. How can you restore them?
Show answer
Explain backpressure handling in Flow with buffer, conflate and collectLatest.
Show answer
Write a search flow that debounces user input and cancels stale requests.
Show answer
After an app update, users report that the app crashes on launch. Logs show a Room migration error. What do you do?
Show answer
What conflict strategies does Room offer for inserts?
Show answer
A teammate uses !! everywhere to silence compiler errors. How do you handle this in code review?
Show answer
Tell me about a time you disagreed with a designer about a UI decision.
Show answer
How do you migrate from SharedPreferences to DataStore without losing user data?
Show answer
Network calls keep running after the user leaves a screen and results arrive late. How do you fix this?
Show answer
What is the difference between launch and async?
Show answer
Explain object, companion object and object expressions.
Show answer
How does coroutine cancellation work, and why must code be cooperative?
Show answer
Write a function that retries a suspend call with exponential backoff.
Show answer
What are extension functions and how are they resolved?
Show answer
The app shows an ANR when the user taps Save. The save function is suspend. What could be wrong?
Show answer
Write a periodic sync job with WorkManager that runs only on unmetered network.
Show answer
What does derivedStateOf do and when should you use it?
Show answer
How do you build an adaptive layout for phones, foldables and tablets in Compose?
Show answer
You need to cache API responses so the home screen opens instantly. What approach do you take?
Show answer
How do you prioritise when you have several bugs and a feature deadline in the same week?
Show answer
Your team is migrating a Java Android app to Kotlin. How would you plan it?
Show answer
Write a delegated property that logs whenever a value changes.
Show answer
What is the difference between viewModelScope and lifecycleScope?
Show answer
How do you set up CI/CD for an Android app?
Show answer
What is a sealed class and when would you use it on Android?
Show answer
How do you store sensitive data such as tokens securely on Android?
Show answer
How should a Fragment or Activity collect a Flow safely?
Show answer
Describe a time you fixed a difficult concurrency bug.
Show answer
How do Room migrations work?
Show answer
A screen shows a snackbar again every time the device rotates. How do you fix it?
Show answer
How do you handle exceptions in coroutines?
Show answer
Write code to fetch two API results in parallel inside a ViewModel.
Show answer
Write a Flow that combines user settings and product list into one UI state.
Show answer
A Room query on a large table is slow and causes jank. How do you fix it?
Show answer
Frequently asked questions
What does a Kotlin Developer do?
A Kotlin developer specialises in writing idiomatic, safe Kotlin across Android and sometimes shared Kotlin Multiplatform modules. They focus on language features like coroutines, generics, sealed hierarchies and DSLs, and often help teams migrate Java code to Kotlin. This role is common in companies modernising legacy Android apps or sharing business logic across Android and iOS with Kotlin Multiplatform. Strong testing habits are expected.
Which skills are tested in a Kotlin Developer interview?
Expect questions on Idiomatic Kotlin, Coroutines, Java to Kotlin migration, Kotlin Multiplatform, Code review. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a Kotlin Developer interview?
Revise Kotlin Fundamentals, Coroutines and Flow, Room, DataStore and WorkManager first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.