iOS persistence interview questions

Choosing storage, UserDefaults, Keychain, Core Data, SwiftData, files, migrations and safe data cleanup.

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. Choosing the right storagePick the fix
  2. Using UserDefaults correctlyPick the fix
  3. Storing secrets in the KeychainFill the blank
  4. The Core Data stackOrder the steps
  5. Core Data and threadingPick the fix
  6. SwiftDataFill the blank
  7. Reading and writing filesPick the fix
  8. Rolling out a breaking schema changeOrder the steps
  9. Feature flags that change stored dataPick the fix
  10. What to remove on logoutPick 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.