InterviewStack.io LogoInterviewStack.io

Client-Side and Mobile Data Persistence Questions

Storing data on devices and clients: embedded and mobile databases (SQLite and similar), local caching, offline-first persistence and sync, and durable save/state systems for applications and games. Covers constrained-storage design, conflict resolution on sync, and persisting state reliably outside a central server. Serves mobile and game development interviews.

EasyTechnical
80 practiced

List and compare the primary client-side storage options available on iOS and Android (e.g., UserDefaults / SharedPreferences, NSCache, SQLite / Core Data / Realm / Room, file storage, keychain/keystore). For each option describe: typical use cases, durability guarantees, performance characteristics, size limits, and security trade-offs. Provide decision criteria for choosing one over another.

MediumTechnical
69 practiced

Design an offline sync algorithm for a simple to-do list mobile app that must support: creating, editing, deleting tasks offline; syncing when network returns; and handling conflicts from edits on multiple devices. Describe the data model, the client-side queue/oplog format, conflict detection strategy, and how to present conflicts to users if automatic resolution isn't possible.

MediumTechnical
68 practiced

Implement an optimistic UI update pattern in Swift for toggling a 'completed' flag on a task in a to-do app. Describe how you would mark a change as pending, enqueue the network request, provide UI feedback, and roll back if the server returns a conflict or error. Include considerations for offline queuing and replay.

MediumTechnical
66 practiced

List a test plan and automation approach for validating offline behavior of a mobile app. Include strategies for simulating network conditions, multi-device sync scenarios, flaky networks, datastore corruption, and integration into CI. Mention tools and frameworks you would use on both iOS and Android.

EasyTechnical
65 practiced

How would you securely persist sensitive items such as OAuth tokens or encryption keys on Android and iOS? Discuss platform APIs (iOS Keychain, Secure Enclave, Android Keystore / EncryptedSharedPreferences), best practices for key derivation and storage, and considerations for backups and restore.

Unlock Full Question Bank

Get access to all 33 Client-Side and Mobile Data Persistence interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.