IntermediateSituational
You’re asked to add offline support to an existing feature that currently relies on live API calls (e.g., a list of user tasks). How would you approach this on iOS?
iOS Developer
General

Sample Answer

I’d start by clarifying requirements: what needs to work offline (view only, create/edit), how long data should be cached, and conflict resolution rules. Then I’d introduce a local persistence layer, likely using Core Data or SQLite/Realm for structured data like tasks. I’d refactor the feature to depend on a repository that abstracts data access. The repository would read/write from the local store and sync with the server when connectivity is available. For example, when the user creates or edits a task offline, I’d mark it as “pending sync” with an operation type and a last-modified timestamp. A background sync manager would observe reachability or use periodic app launches to push pending changes and pull server updates, resolving conflicts based on timestamps or server-side rules. I’d ensure UI states make it clear when data is offline or pending sync. For validation, I’d add unit tests for the repository and integration tests around sync flows, measuring sync success rates and error frequencies after rollout.

Keywords

Requirement clarification (scope of offline)Introduction of local persistence layerRepository pattern and sync managerConflict resolution strategyUX considerations and testing plan
Related Questions

Walk me through a recent multi-channel digital marketing campaign you managed end-to-end. How did you set objectives, choose channels, allocate budget, and measure success?

IntermediateBEHAVIORAL

In your resume you note improving or optimizing [a process, KPI, or metric]. What specific baseline metrics did you start from, what steps did you personally take, and how did you verify that the improvement was due to your changes rather than external factors?

IntermediatePROBLEM_SOLVING

Based on your hydrology and irrigation engineering background, explain how you would estimate the irrigation water requirement for a kharif crop in a semi-arid region of Gujarat. Walk me through each step: from reference evapotranspiration estimation, crop coefficient selection, effective rainfall calculation, to arriving at canal discharge for a given command area.

IntermediateTECHNICAL

In your civil engineering studies, what specific design coursework or project work did you complete related to irrigation channels or canals (e.g., design of lined/unlined canals, distributaries, minors)? Describe one such design in detail, including how you determined discharge, permissible velocity, section dimensions, and lining choice for Gujarat-type soil and climate conditions.

IntermediateTECHNICAL

On your resume you mention working on a cross-functional project (e.g., involving multiple teams or stakeholders). Describe a situation from that project where priorities conflicted—how did you navigate the trade-offs and what was the final outcome?

IntermediateSITUATIONAL