Android data and storage interview questions

Room, DataStore, migrations, Paging, scoped storage and what to wipe on logout.

4 quick facts

– interview-ready · 10 questions in this topic

– of 10 tried

Saved on this device. Interview-ready means you got it right on two different days. Guesses and hints count for less.

Questions

  1. Room basicsPick the fix
  2. How Room Flow queries updatePredict
  3. Relations, transactions and N+1 queriesPick the fix
  4. Room migrationsOrder the steps
  5. DataStore vs SharedPreferencesPick the fix
  6. Scoped storagePick the fix
  7. Paging 3Pick the fix
  8. What to clear on logoutOrder the steps
  9. Database performancePick the fix
  10. Cache freshness and stale dataPick the fix

Practise this topic

Flashcards · 14

Flip, then say if you knew it. Needs JavaScript; every answer is also on its question page.

Quick quiz · 10 questions

One exercise per question, checked as you go. Needs JavaScript.

Mock interview · 2 sets

Timed, out loud, then tick what you covered. Needs JavaScript.

Quick facts

Recall the answer first, then tap Show to check.

Sources: Question outline adapted from Android-Interview-Questions by Mohsen Mirhoseini, licensed under Apache 2.0. We reorganised the questions, rewrote every answer and added new ones. Credits and license