Meta Mid-Level Mobile Developer Interview Preparation Guide
Meta's interview process for Mid-Level Mobile Developers consists of a recruiter screening phase, followed by a technical phone screen, and concludes with 4-5 onsite interview rounds lasting a full day. The process evaluates core algorithmic problem-solving, mobile-specific technical knowledge, system design for scalable mobile applications, and cultural alignment with Meta's values. All technical interviews include coding components with emphasis on communication, debugging, and verification of solutions. The process typically spans 4-6 weeks from initial application to offer.
Interview Rounds
Recruiter Screening
What to Expect
This is a 30-minute phone call with a Meta recruiter to assess your background fit for the role. The recruiter will review your resume, discuss your interest in Meta and the Mobile Developer position, explore your relevant experience with iOS and/or Android development, and answer your questions about the role and company. This is a preliminary screening to ensure basic qualifications are met before proceeding to technical interviews.
Tips & Advice
Be genuine and enthusiastic about Meta's mobile products. Have a clear 2-minute summary of your mobile development background and why you're interested in Meta specifically. Mention specific Meta mobile products you use and appreciate. Ask thoughtful questions about the team, mobile strategy, or technical challenges. Smile while speaking (interviewers can hear it in your voice). Be ready to discuss your availability and any visa sponsorship needs.
Focus Topics
Knowledge of Meta's Mobile Ecosystem
Understand Meta's mobile products: Facebook, Instagram, WhatsApp, Threads, and Meta Quest. Know which platforms they serve (iOS, Android, or both), and recent features or challenges they've announced.
Practice Interview
Study Questions
Project Ownership and Impact
Prepare 2-3 examples of mobile projects where you took ownership, drove decisions, and delivered measurable impact. For mid-level, emphasize cross-functional collaboration and mentoring involvement.
Practice Interview
Study Questions
Motivation for Meta and Mobile Role
Develop a compelling narrative about why you want to work at Meta specifically and why mobile development excites you. Reference Meta's mobile products, engineering culture, or technical challenges.
Practice Interview
Study Questions
Background and Mobile Development Experience
Articulate your experience with iOS development (Swift/Objective-C), Android development (Kotlin/Java), and/or cross-platform frameworks (React Native, Flutter). Emphasize projects you've owned and impact you've delivered.
Practice Interview
Study Questions
Technical Phone Screen
What to Expect
This 45-60 minute phone interview focuses on core data structures, algorithms, and problem-solving ability. You'll receive 1-2 coding problems to solve in real-time using a shared code editor (CoderPad or similar). The interviewer will assess how you approach unfamiliar problems, ask clarifying questions, communicate your thought process, and verify your solutions. While not mobile-specific, this round tests foundational algorithmic thinking essential for mobile development.
Tips & Advice
Ask clarifying questions for 1-2 minutes before coding—understand input constraints, edge cases, and performance requirements. Narrate your approach verbally before writing code; interviewers evaluate thinking, not just the final answer. Write clean, readable code with clear variable names. Test your code mentally against basic cases, edge cases (empty inputs, single elements, negatives), and stress cases (very large inputs). If stuck, explain your best approach, ask for hints, and iterate. Meta values candidates who debug methodically rather than freeze. Discuss time and space complexity in Big O notation. Ask if your solution can be optimized and propose improvements if time permits.
Focus Topics
Linked Lists and Node Manipulation
Understand pointer/reference manipulation, traversal, and state management. Practice cycle detection, reversal, merging, and insertion/deletion in linked lists.
Practice Interview
Study Questions
Graphs, BFS, and DFS
Understand graph representations (adjacency list, adjacency matrix), depth-first search, breadth-first search, cycle detection in directed/undirected graphs, and topological sorting.
Practice Interview
Study Questions
Binary Trees and Tree Algorithms
Solve problems involving tree traversal (inorder, preorder, postorder), tree properties (height, depth, balance), lowest common ancestor, path sums, and tree construction.
Practice Interview
Study Questions
Hash Maps and Hash Sets
Use hash-based data structures to optimize solutions. Understand time/space tradeoffs and when to choose hashing over sorting or nested loops.
Practice Interview
Study Questions
Arrays and Strings Algorithms
Master problems involving array manipulation, substring search, pattern matching, and string transformations. This includes problems like longest substring without repeating characters, two-sum variants, and array rotation.
Practice Interview
Study Questions
Communication and Problem-Solving Process
Practice articulating your approach before coding, asking clarifying questions, explaining your decisions, and walking through test cases verbally. Learn to adapt when constraints change mid-interview.
Practice Interview
Study Questions
Mobile Technical Interview 1: iOS Development
What to Expect
This 45-50 minute onsite interview focuses on iOS-specific development skills including Swift/Objective-C, UIKit/SwiftUI fundamentals, app lifecycle, memory management, concurrency, and mobile-specific design patterns. You may solve coding problems with an iOS lens, discuss architecture decisions, or implement features using platform APIs. The interviewer assesses your depth of iOS knowledge and ability to apply it to real mobile challenges.
Tips & Advice
Come prepared with concrete examples of iOS apps you've shipped or contributed to significantly. Be ready to explain architectural decisions you made (MVC, MVVM, VIPER, Clean Architecture) and trade-offs. Discuss how you handle memory in iOS (strong/weak references, retain cycles, ARC). Prepare for questions about async/await, Combine framework, or GCD depending on how current your experience is. If asked to code an iOS feature, think about app lifecycle, threading, and user experience. Mention your experience with app store deployment, TestFlight, and submission guidelines. For mid-level, emphasize how you've mentored junior iOS developers or improved code quality on your team.
Focus Topics
Concurrency, Threading, and Async Patterns
Understanding of GCD (Grand Central Dispatch), DispatchQueue, async/await syntax, Combine framework, and how to avoid main thread blocking. Knowledge of deadlocks, race conditions, and thread safety.
Practice Interview
Study Questions
Memory Management and Performance Optimization
Understanding of ARC, strong/weak/unowned references, retain cycles, and memory leaks. Ability to profile apps using Xcode Instruments (Allocations, Leaks, Time Profiler) and optimize performance for mobile constraints (battery, RAM, network).
Practice Interview
Study Questions
iOS App Lifecycle and State Management
Understanding of UIViewController lifecycle, view controller transitions, state restoration, saved state APIs, and how to handle app suspend/resume scenarios. Knowledge of SceneDelegate for multi-window support on iPad.
Practice Interview
Study Questions
iOS App Architecture and Design Patterns
Knowledge of MVC, MVVM, and VIPER architectures. Understanding of dependency injection, reactive programming (RxSwift/Combine), and separation of concerns. Ability to discuss trade-offs between architectural approaches.
Practice Interview
Study Questions
Swift Language Fundamentals and Modern iOS Development
Deep understanding of Swift syntax, optionals, error handling, and modern Swift features. Familiarity with recent Swift versions and how they improve iOS development. Understanding of when to use protocols, extensions, and generics in iOS apps.
Practice Interview
Study Questions
Mobile Technical Interview 2: Android Development
What to Expect
This 45-50 minute onsite interview focuses on Android-specific development skills including Kotlin/Java, Android lifecycle, fragments, services, background processing, and mobile-specific design patterns. You may solve problems with Android context, discuss system design for scalable Android apps, or implement Android features using platform APIs. The interviewer assesses your Android development depth and how you apply platform knowledge to real challenges. This round mirrors the iOS interview but tests Android expertise.
Tips & Advice
Showcase Android apps you've shipped, particularly any with complex UIs, background tasks, or tricky lifecycle scenarios. Be fluent in Kotlin syntax and explain why you prefer it over Java (or vice versa if applicable). Discuss your experience with modern Android architecture (MVVM with LiveData/StateFlow, Clean Architecture, MVI). Be ready to explain Activity/Fragment lifecycle in detail and common lifecycle-related bugs you've fixed. Discuss how you handle background work (WorkManager, Service, IntentService) without draining battery. Mention experience with dependency injection (Hilt, Dagger) and testing frameworks. For mid-level, explain how you've improved Android code quality or mentored junior Android developers on your team.
Focus Topics
Android Architecture: MVVM, Clean Architecture, StateFlow
Practical experience with modern Android architecture patterns including MVVM, Clean Architecture, and reactive state management using LiveData/StateFlow. Understanding of separation between UI, ViewModel, and Repository layers.
Practice Interview
Study Questions
Background Work and Battery Optimization
Knowledge of WorkManager, Service, and when to use each. Understanding of Doze mode, battery optimization, and how to minimize battery drain from background operations. Familiarity with permissions model and runtime permission handling.
Practice Interview
Study Questions
Android Concurrency with Coroutines
Understanding of coroutines, suspend functions, structured concurrency, context switching, and Job/Scope management. Knowledge of Dispatchers (Main, IO, Default) and when to use each. Understanding of cancellation and exception handling in coroutines.
Practice Interview
Study Questions
Kotlin Language and Java Interoperability
Fluency in Kotlin syntax including extension functions, coroutines, null safety, and data classes. Understanding of Java interoperability for legacy codebases. Knowledge of when Kotlin features improve code expressiveness and maintainability.
Practice Interview
Study Questions
Android Lifecycle and Fragment Management
Deep understanding of Activity/Fragment lifecycle methods, state management across lifecycle transitions, SavedStateHandle, ViewModel scope, and how to handle configuration changes gracefully. Knowledge of multi-fragment navigation.
Practice Interview
Study Questions
System Design Interview: Scalable Mobile Architecture
What to Expect
This 45-50 minute onsite interview evaluates your ability to design scalable mobile systems at an architectural level. Rather than designing large distributed systems like backend engineers, you'll focus on mobile-specific challenges: designing offline-first mobile apps, scaling real-time features for millions of users, handling network reliability, caching strategies, data synchronization, and mobile SDK architecture. The interviewer assesses how you balance mobile constraints (battery, memory, connectivity) with feature requirements. You might discuss designing a mobile messaging feature, real-time notification system, or offline data sync mechanism.
Tips & Advice
Ask clarifying questions first: How many users? How often do they interact? What devices/networks? Then propose a solution architecture. For mobile, always discuss trade-offs between user experience and resource constraints. Talk about caching (in-memory, disk, server), network optimization (batching, compression, retry logic), and offline behavior. Discuss data synchronization—how do you handle conflicts when users work offline? Mention real examples from Meta products (Instagram Stories, Facebook Messenger). Sketch diagrams on the whiteboard or virtual board to visualize your architecture. Discuss testing strategies for unreliable networks and resource constraints. For mid-level, explain how you'd mentor a junior engineer on these trade-off decisions.
Focus Topics
Mobile SDK Architecture and API Design
Designing SDKs for mobile platforms: clean APIs, backwards compatibility, version management, and minimizing SDK size and performance impact. Understanding of shared libraries, binary size optimization.
Practice Interview
Study Questions
Caching Strategies and Memory Management
Multi-layer caching: in-memory caches (LRU, TTL-based), disk caches (image caches, API response caches), and CDN/server-side caching. Understanding of cache invalidation, expiration policies, and balancing memory constraints.
Practice Interview
Study Questions
Real-Time Features and Push Notifications
Designing systems for real-time updates: push notification architecture, WebSockets/polling trade-offs, handling notification delivery reliability, and user experience patterns for real-time events.
Practice Interview
Study Questions
Offline-First Architecture and Data Synchronization
Design mobile apps that work offline and sync when connectivity returns. Understand conflict resolution, eventual consistency, and how to prevent data loss. Knowledge of local databases (SQLite, Realm, Room) and sync patterns.
Practice Interview
Study Questions
Mobile Network Optimization and Reliability
Strategies for minimizing network requests, batching operations, using compression, handling slow/unreliable networks, implementing exponential backoff retry logic, and request prioritization. Understanding of HTTP/REST vs gRPC trade-offs for mobile.
Practice Interview
Study Questions
Behavioral and Culture Fit Interview
What to Expect
This 40-45 minute onsite interview assesses how well you align with Meta's values, work style, and culture. The interviewer will ask behavioral questions using the STAR format (Situation, Task, Action, Result) to understand how you've handled challenges, collaborated with teams, resolved conflicts, and demonstrated leadership. Topics typically include: how you've owned projects, dealt with ambiguity, handled failure, mentored or influenced others, and navigated disagreements. This round evaluates your growth mindset, collaboration style, and fit for Meta's fast-paced, execution-oriented culture.
Tips & Advice
Prepare 5-6 STAR format stories covering: a project you owned end-to-end, a time you mentored someone, a conflict you resolved, a failure you learned from, a time you drove change, and a time you collaborated cross-functionally. Use specific examples with measurable outcomes. For mid-level, emphasize ownership, mentoring, and influence over just task completion. Practice articulating what you learned and how it shaped your approach. Research Meta's values (Move Fast, Be Bold, Focus on Impact, Build What Matters) and weave these into your stories naturally. Be authentic—interviewers can detect coached responses. Listen carefully to follow-up questions and provide additional detail. Ask thoughtful questions about the team, challenges, and career growth at Meta.
Focus Topics
Cross-Functional Collaboration and Conflict Resolution
Describe a situation where you worked with designers, backend engineers, or product managers toward a common goal. Explain how you aligned perspectives, resolved disagreements, and maintained relationships. Emphasize finding win-win solutions.
Practice Interview
Study Questions
Mentoring and Growing Other Engineers
Provide examples of how you've helped junior developers grow, given effective feedback, and elevated their skills. Discuss code reviews, pair programming, design discussions, or formal mentoring. Explain your philosophy on mentoring.
Practice Interview
Study Questions
Learning from Failure and Technical Debt
Share an example of a technical decision that didn't work out, a project that shipped with issues, or a time you underestimated complexity. Explain what you learned and how you'd approach it differently. Show accountability and growth.
Practice Interview
Study Questions
Handling Ambiguity and Driving Decisions
Describe a situation where requirements were unclear or multiple solutions existed. Explain how you gathered information, proposed a direction, got buy-in, and moved forward. Emphasize your decision-making process and communication.
Practice Interview
Study Questions
End-to-End Project Ownership
Demonstrate ownership of medium-sized mobile projects from conception through deployment. Discuss how you drove decisions, removed blockers, collaborated across teams (design, backend, QA), and delivered impact. For mid-level, emphasize technical leadership and how you shaped the project direction.
Practice Interview
Study Questions
Frequently Asked Mobile Developer Interview Questions
Write a function that reverses a singly linked list in place and returns the new head. Show how it works on 1 -> 2 -> 3 -> 4, and state the time and space cost and the edge cases.
Sample Answer
The idea in plain words
Reversing "in place" means you do not build a second list: you re-aim the next pointers of the nodes you already have. The values never move. Walk down the list once, and for each node make its next point at the node behind it instead of the one ahead. The node that was last becomes the new first node, so the function returns it.
The catch is that the moment you overwrite cur.next, you lose the rest of the list. So each step has three moves, always in this order:
- Save the rest:
nxt = cur.next. - Re-aim:
cur.next = prev. - Advance both markers:
prev = cur,cur = nxt.
prev starts as None because the old first node becomes the new last node, and its next must end up as None.
Brute force and why not
Copy the values into a Python list, reverse it, and write them back (or build new nodes). That is O(n) time but also O(n) extra space, and it either moves values around or allocates nodes. The pointer re-aiming above needs only three extra variables (prev, cur, nxt).
The code
class Node:
def __init__(self, value, next=None):
self.value, self.next = value, next
def from_values(values):
head = None
for v in reversed(values):
head = Node(v, head)
return head
def to_text(head):
parts = []
while head:
parts.append(str(head.value)); head = head.next
return " -> ".join(parts + ["None"])
def reverse(head, trace=False):
prev, cur = None, head
step = 0
while cur is not None:
nxt = cur.next # 1. remember the rest before we cut the link
cur.next = prev # 2. point this node backwards
prev, cur = cur, nxt # 3. step forward
step += 1
if trace:
print(f"step {step}: prev={prev.value} cur={cur.value if cur else None} | "
f"reversed: {to_text(prev):<22} | still to do: {to_text(cur)}")
return prev # prev is the old tail, the new head
def ptr(node):
return node.value if node else None
def reverse_recursive(head, depth=0, trace=False):
pad = " " * depth
if head is None or head.next is None:
if trace:
print(f"{pad}call on {ptr(head)}: last node, return it as the new head")
return head
if trace:
print(f"{pad}call on {head.value}: recurse on {head.next.value}")
new_head = reverse_recursive(head.next, depth + 1, trace)
if trace:
print(f"{pad}back on {head.value}: head.next is {ptr(head.next)}, "
f"new head is {new_head.value}")
head.next.next = head # the node after head now points back at head
if trace:
print(f"{pad} after head.next.next = head: {ptr(head.next)}.next is {ptr(head.next.next)}")
head.next = None
if trace:
print(f"{pad} after head.next = None: {head.value}.next is {ptr(head.next)}; "
f"list from new head: {to_text(new_head)}")
return new_head
if __name__ == "__main__":
head = from_values([1, 2, 3, 4])
print("before:", to_text(head))
head = reverse(head, trace=True)
print("after: ", to_text(head))
print("empty:", to_text(reverse(None)), "| one node:", to_text(reverse(from_values([9]))))
print("recursive trace on 1 -> 2 -> 3 -> 4:")
print("recursive, 4 nodes:", to_text(reverse_recursive(from_values([1, 2, 3, 4]), trace=True)))
for n in (500, 5000):
try:
reverse_recursive(from_values(list(range(n))))
print(f"recursive, {n} nodes: ok")
except RecursionError:
print(f"recursive, {n} nodes: RecursionError")
big = reverse(from_values(list(range(100_000))))
print("iterative, 100000 nodes: new head =", big.value)
Run, it prints the list picture and the pointer state after each step on 1 -> 2 -> 3 -> 4, then the call-by-call trace of the recursive version:
before: 1 -> 2 -> 3 -> 4 -> None
step 1: prev=1 cur=2 | reversed: 1 -> None | still to do: 2 -> 3 -> 4 -> None
step 2: prev=2 cur=3 | reversed: 2 -> 1 -> None | still to do: 3 -> 4 -> None
step 3: prev=3 cur=4 | reversed: 3 -> 2 -> 1 -> None | still to do: 4 -> None
step 4: prev=4 cur=None | reversed: 4 -> 3 -> 2 -> 1 -> None | still to do: None
after: 4 -> 3 -> 2 -> 1 -> None
empty: None | one node: 9 -> None
recursive trace on 1 -> 2 -> 3 -> 4:
call on 1: recurse on 2
call on 2: recurse on 3
call on 3: recurse on 4
call on 4: last node, return it as the new head
back on 3: head.next is 4, new head is 4
after head.next.next = head: 4.next is 3
after head.next = None: 3.next is None; list from new head: 4 -> 3 -> None
back on 2: head.next is 3, new head is 4
after head.next.next = head: 3.next is 2
after head.next = None: 2.next is None; list from new head: 4 -> 3 -> 2 -> None
back on 1: head.next is 2, new head is 4
after head.next.next = head: 2.next is 1
after head.next = None: 1.next is None; list from new head: 4 -> 3 -> 2 -> 1 -> None
recursive, 4 nodes: 4 -> 3 -> 2 -> 1 -> None
recursive, 500 nodes: ok
recursive, 5000 nodes: RecursionError
iterative, 100000 nodes: new head = 99999
Reading the iterative trace: after step 1, node 1 points at None and is the whole reversed part; the rest 2 -> 3 -> 4 is still untouched. Each later step moves one more node from "still to do" onto the front of the reversed part. After step 4, cur is None, the loop ends, and prev (node 4) is the head of 4 -> 3 -> 2 -> 1 -> None.
How the recursive version works
reverse_recursive(head) assumes the call on head.next has already reversed everything after head and handed back the new first node. The calls go down to the last node (4), which is returned as the new head. Then each call, on the way back up, fixes one link. On the 4-node list:
- Back on node 3:
head.nextis 4. Writinghead.next.next = headsets4.next = 3, so 4 now points back at 3. Thenhead.next = Nonecuts the old forward link3 -> 4, leaving4 -> 3 -> None. - Back on node 2:
head.nextis still 3 (the old link was untouched), sohead.next.next = headsets3.next = 2, and2.next = Nonegives4 -> 3 -> 2 -> None. - Back on node 1: the same two lines give
4 -> 3 -> 2 -> 1 -> None.
The printed trace shows exactly these lines. The reason head.next.next = head works is that head.next still names the node that used to follow head (now the tail of the reversed part), and that node's next is free to be re-aimed at head.
Complexity
- Time O(n). Each node is visited once with a constant amount of work.
- Space O(1). Three variables (
prev,cur,nxt); nothing grows with n. This is the iterative version. The recursive versionreverse_recursiveis also O(n) time but O(n) space, because it uses one stack frame (a saved call) per node.
Recursion limit
CPython (the standard Python interpreter, the one you get from python.org) has a default recursion limit of 1000 frames. The output shows the recursive version works on 500 nodes and raises RecursionError on 5,000, while the iterative version reverses 100,000 nodes without trouble. In an interview, give the iterative version first and present recursion as the alternative, naming that limit.
Edge cases
| Input | What happens |
|---|---|
Empty list (None) | the loop never runs; prev is still None, which is returned |
| One node | one pass sets its next to None (already None) and returns that node |
| Two nodes | the second becomes the head and points at the first, which points at None |
| Duplicate values | no issue; the algorithm moves nodes, never compares values |
Common mistakes
- Writing
cur.next = prevfirst and then trying to advance withcur = cur.next. The advance now follows the link just rewritten, socursteps back toprev(Noneon the first pass) instead of forward. The loop stops after the first node and the rest of the list is lost: on1 -> 2 -> 3 -> 4the call returns1 -> None, orNoneifprev = curis written after the advance. - Returning
curorheadinstead ofprev: after the loopcurisNoneandheadis now the tail. - Forgetting that the old head must end with
next = None. Starting withprev = Nonehandles this with no special case. - Losing a separately stored
tailpointer: if the list class keeps atail, it must become the old head and the head must become the old tail.
Checking it
A randomized test reverses 500 random lists of length 0 to 12 with both versions and compares each against the same values in reverse order:
import random
from reverse_list import from_values, to_text, reverse, reverse_recursive
random.seed(3)
for _ in range(500):
values = [random.randint(0, 9) for _ in range(random.randint(0, 12))]
expected = to_text(from_values(values[::-1]))
assert to_text(reverse(from_values(values))) == expected
assert to_text(reverse_recursive(from_values(values))) == expected
print("500 random lists (length 0 to 12): both versions match values[::-1]")
500 random lists (length 0 to 12): both versions match values[::-1]
Other languages
In C or C++ the body is the same three lines on struct Node * pointers (nxt = cur->next; cur->next = prev; ...). No allocation happens, so there is nothing to free. In Java it is the same with references.
Running the code
python reverse_list.py
python reverse_list_check.py # needs reverse_list.py in the same folder
Python 3.12, standard library only.
Explain what a cache is and why mobile applications use caching. In your answer include concrete examples of benefits (reduced latency, lower network/data usage, improved battery life), common cache locations in mobile apps (HTTP layer, in-memory, disk-based caches, secure storage), and a short checklist a mobile developer can use to decide whether to cache a particular resource.
Sample Answer
What a cache is
A cache is a smaller, faster storage layer that holds a copy of data so a later request for that data can be served without repeating the expensive work (a network call, a database query, a slow computation) that produced it the first time. The trade-off it accepts is that the copy can become out of date (stale) if the original changes.
Why mobile apps cache
Mobile apps sit at the far end of an unreliable, metered, battery-powered network path, so avoiding a repeat network round trip pays off more than on a desktop web app:
- Reduced latency: a cached local read takes single-digit milliseconds versus 200ms or more for a cellular round trip, so a cached screen renders instantly instead of showing a spinner.
- Lower network/data usage: re-serving a cached product image or API response instead of re-downloading it saves the user's data plan, which matters on capped or pay-per-MB plans.
- Improved battery life: the radio (the cellular/Wi-Fi chip) is one of the most power-hungry components, and every network request wakes it up. Serving from cache avoids that wake-up entirely.
- Offline resilience: a cached response lets the app show something useful (a stale product list) instead of an error screen when connectivity drops in an elevator or subway.
Common cache locations in a mobile app
- HTTP layer: an HTTP client cache (OkHttp's disk cache on Android, URLCache on iOS) that respects Cache-Control/ETag headers from the server, so repeat requests to the same endpoint are short-circuited automatically.
- In-memory: an LRU (least-recently-used, evicts the entry that was accessed longest ago) map, such as Android's LruCache, holding decoded images or parsed objects for the current session. Fastest option, but wiped when the app is killed.
- Disk-based: a local database (Room/SQLite, Core Data) or file cache for structured data or large media that should survive an app restart.
- Secure storage: Keychain on iOS. On Android, do NOT reach for
EncryptedSharedPreferences(fromandroidx.security:security-crypto) in new code: Google deprecated that library, includingEncryptedSharedPreferencesandEncryptedFile, in 2025 without shipping a stable successor API. The current recommended path is to generate and hold the encryption key in the Android Keystore system directly (hardware-backed on supported devices), encrypt the value yourself (AES-GCM) with that key, and store only the resulting ciphertext in a plainSharedPreferencesentry or Jetpack DataStore, for sensitive cached values like an auth token. Never use secure storage for bulk content, regardless of which approach backs it, since it is slower and size-limited.
A short checklist before caching a resource
- Is it read far more often than it changes (a product catalog, a user's own profile), versus something that must always be live (a live auction price, a one-time payment confirmation)?
- Is a slightly stale value acceptable, or does staleness cause a real error (double-booking a seat)?
- Is the data big enough to matter for battery/data savings, or so big it would blow the app's memory/disk budget?
- Does it contain sensitive data that needs secure storage and a short TTL (time-to-live, how long a cached value is kept before it is treated as expired), rather than a plain disk cache?
- Is there a clear invalidation trigger (a push notification, a version bump, a TTL) so the cache does not go silently stale forever?
How would you implement partial and resumable synchronization on mobile for very large datasets (e.g., offline maps with tiles and user annotations totaling gigabytes)? Describe checkpointing, chunking, concurrency controls, resume semantics, and how to avoid redundant downloads/uploads after interruptions.
Sample Answer
Overview / Goals
Design a mobile-friendly partial + resumable sync for gigabyte offline map tiles + annotations: minimize bandwidth, resume reliably after interruptions, and avoid redundant transfer.
Checkpointing
- Persist a sync state model in local DB (SQLite/Room/CoreData): per-resource manifest entries with version, etag, last-chunk-index, checksum, and timestamp.
- Write checkpoints atomically (transaction + temp file rename) after each completed chunk batch so app can recover mid-sync.
Chunking
- Split large resources into fixed-size chunks (e.g., 256KB–1MB) with sequence numbers and per-chunk hashes.
- For tiles, group contiguous tile ranges into batches to reduce request overhead.
- Server exposes chunked endpoints and a manifest listing resource size, chunk count, etags, and overall checksum.
Concurrency & Rate Control
- Use a small worker pool (2–4 concurrent downloads/uploads) tuned for mobile CPU/battery and network conditions.
- Prioritize foreground/visible tiles and user annotations; deprioritize background prefetch.
- Backoff and retry with exponential backoff + jitter on failures; respect mobile network type (Wi‑Fi vs cellular) and user settings.
Resume Semantics & Deduplication
- On resume, consult manifest and local checkpoints to determine missing chunks.
- Use conditional requests: If-None-Match / If-Match with resource etags to skip unchanged resources.
- For uploads, use per-chunk checksums; server acknowledges received chunks so client uploads only missing ones.
- Maintain a local Bloom filter or hash index for already downloaded tile IDs to quickly avoid re-requesting.
Avoiding Redundant Transfers
- Compare manifest etags/checksums before fetching resource.
- Support Range requests and idempotent chunk PUT/POST so re-sent chunks are safe.
- Use delta sync for annotations (patches with CRDTs or operation logs) rather than full reupload.
Example flow
- Fetch manifest → compute diff → enqueue missing chunks → download with worker pool → after each chunk write checkpoint and mark in DB → on completion verify resource checksum → mark resource complete.
Mobile details
- Persist checkpoints to durable storage; handle app background limits via background tasks (iOS BGProcessing, Android WorkManager).
- Expose progress and allow user to pause/resume; respect low-battery and metered constraints.
Trade-offs: smaller chunks improve resume granularity but increase overhead; tune chunk size based on empirical mobile network tests.
Tell me about a time you had to give difficult feedback to a teammate or partner you worked with closely. What made the conversation hard, how did you frame it, and what happened afterward?
Sample Answer
Situation: I worked closely with a partner who was strong technically but often changed direction late, which was creating churn for the rest of the team.
Task: I needed to give difficult feedback without damaging trust.
Action: I chose a private conversation and used the SBI format, which means Situation, Behavior, Impact. I said, "In yesterday's planning meeting, when the scope changed after we had already aligned with design, it created rework and made the team less confident in the plan." I kept the tone factual, then asked what was driving the change. It turned out they were reacting to pressure from another stakeholder and had not surfaced it earlier. We agreed they would flag uncertainty sooner and bring changes through planning instead of in the middle of execution.
Result: The conversation was uncomfortable, but it improved our working relationship because it was specific and fair. Their behavior became more predictable, and the team trusted them more because expectations were clearer.
A foreground Service in your app is causing an ANR related to synchronous disk and network IO on the main thread. Describe how you would diagnose the ANR, what logs and traces you would collect, and propose code-level and architectural fixes (specific Android APIs or patterns) to prevent ANRs in such background/foreground tasks.
Sample Answer
Situation & quick diagnosis
- ANR symptoms: “App not responding” while foreground Service does work. Likely synchronous disk/network IO or heavy CPU on the main thread.
- First step: reproduce with same inputs and device/OS where ANR occurred.
Logs & traces to collect
- /data/anr/traces.txt (or bugreport) — full thread dump showing main thread stack and blocking call.
- logcat around timestamp (filter for “ANR in”, “BroadcastQueue”, “ActivityManager”).
- Perfetto/Android Studio System Trace to see CPU, thread scheduling, and long main-thread spans.
- systrace and timer events to correlate UI jank and IO.
- Dump of open files or socket activity if network stuck.
How to read traces
- Look for main thread stack frames: blocking disk IO (FileInputStream.read, RandomAccessFile), network (HttpURLConnection.connect/execute), ContentResolver.query, or synchronized waits.
- Check Binder threads for long IPC.
Code-level fixes (concrete APIs & patterns)
- Never perform IO on main thread. Use Kotlin coroutines with Dispatchers.IO or a dedicated Executor:
val serviceScope = CoroutineScope(SupervisorJob() + Dispatchers.Main)
fun doWork() {
serviceScope.launch {
val result = withContext(Dispatchers.IO) {
// disk or network call
myRepository.fetchAndSave()
}
// back on Main if needed
}
}
- Use lifecycle-aware scopes (lifecycleScope in components) or create a Service-scoped CoroutineScope and cancel in onDestroy().
- For periodic/deferrable background work, use WorkManager (setForegroundAsync for foreground-required work) to leverage system scheduling and retries.
- Use HttpClient with timeouts (OkHttp: call.timeout, connectTimeout) and non-blocking libraries.
- For database use Room with suspend DAOs or RxJava; do queries on Dispatchers.IO.
- Avoid synchronized/blocking locks on paths accessed by main thread.
- If you must do bounded CPU tasks, use Dispatchers.Default and limit concurrency via CoroutineDispatcher backed by a fixed thread pool.
Architectural fixes
- Move heavy processing to a worker layer (Repository) that exposes suspend functions or Flows.
- Use WorkManager for long-running/resilient tasks; use ForegroundInfo for required foreground notification.
- Split responsibilities: Service only coordinates and displays notification; delegate IO to worker threads.
- Add observability: StrictMode.setThreadPolicy to detect accidental disk/network on main thread during dev.
Prevention & best practices
- Add unit/integration tests and instrumentation tests that simulate large payloads.
- Enforce timeouts, cancellation support, and backpressure.
- Monitor in prod via ANR reporting and trace collection; iterate on problematic call sites.
Result: move all blocking IO off main thread, apply lifecycle-aware coroutines/WorkManager, add timeouts and observability; collect traces (traces.txt, perfetto, logcat) to pinpoint and verify fixes.
Implement from-scratch a simple hash table in Python supporting put(key, value), get(key), and delete(key) using open addressing (linear probing). Support resizing when load factor exceeds a threshold. Explain complexity, deletion special cases (tombstones), and how resizing preserves correctness.
Sample Answer
Direct answer
A hash table built with open addressing stores every entry directly in one flat array; on a
collision it probes forward (here, linearly) to the next slot, uses a tombstone marker (not a bare
None) for deleted entries so later probes don't stop early, and resizes once the load factor
crosses a threshold.
Structured elaboration
Three distinct slot states, not two. A naive implementation might track only "empty" and
"occupied," but deletion needs a third state: tombstone (previously occupied, now deleted). A
probe sequence must treat a tombstone as "keep looking, something later might still be the key I
want" while treating true emptiness as "stop, the key definitely isn't here." Confusing these two is
the single most common open-addressing bug: without tombstones, deleting an entry mid-probe-sequence
can make a later, still-present key silently unreachable.
Insertion. Probe from hash(key) % capacity, remembering the first tombstone slot seen (so a
successful insert reuses it rather than always walking to a brand-new empty slot); stop at the key
itself (update in place) or at a true empty slot (place there, using the remembered tombstone slot
if one was seen along the way).
Resizing. The load factor check should count tombstones toward the trigger (not just live
entries), since a table full of tombstones is just as slow to probe as one full of live entries, and
a resize is exactly what clears all tombstones out (it rebuilds the table from scratch with only the
live entries, since insertion during a resize never needs to place a tombstone).
Worked example
_TOMBSTONE = object()
class OpenAddressingHashMap:
def __init__(self, initial_capacity=8):
self._capacity = initial_capacity
self._used = 0
self._keys = [None] * self._capacity
self._values = [None] * self._capacity
def _probe(self, key):
idx = hash(key) % self._capacity
first_tombstone = None
for _ in range(self._capacity):
slot = self._keys[idx]
if slot is None:
return (first_tombstone if first_tombstone is not None else idx), False
if slot is _TOMBSTONE:
if first_tombstone is None:
first_tombstone = idx
elif slot == key:
return idx, True
idx = (idx + 1) % self._capacity
return first_tombstone, False
def put(self, key, value):
if self._used / self._capacity >= 0.7:
self._resize(self._capacity * 2)
idx, found = self._probe(key)
if not found and self._keys[idx] is None:
self._used += 1
self._keys[idx] = key
self._values[idx] = value
def get(self, key):
idx, found = self._probe(key)
return self._values[idx] if found else None
def delete(self, key):
idx, found = self._probe(key)
if not found:
return False
self._keys[idx] = _TOMBSTONE
self._values[idx] = None
return True
def _resize(self, new_capacity):
old_keys, old_values = self._keys, self._values
self._capacity, self._used = new_capacity, 0
self._keys, self._values = [None]*new_capacity, [None]*new_capacity
for k, v in zip(old_keys, old_values):
if k is not None and k is not _TOMBSTONE:
self.put(k, v)
t = OpenAddressingHashMap(initial_capacity=4)
t.put("a", 1); t.put("b", 2); t.put("c", 3)
print("capacity after 3 inserts:", t._capacity)
print(t.get("a"), t.get("b"), t.get("c"))
t.delete("b")
print("get('b') after delete:", t.get("b"))
t.put("d", 4) # reuses b's tombstone slot
print(t.get("d"), t.get("a"), t.get("c"))
for i in range(20):
t.put(f"k{i}", i)
print("capacity after 20 more inserts:", t._capacity)
print("k17 ->", t.get("k17"))
Running this prints: capacity after 3 inserts: 4 (2/4 = 0.5 was below the 0.7 threshold when "c" was
inserted, so no resize fired yet), then 1 2 3 (all three retrievable), then
get('b') after delete: None (confirms deletion), then 4 1 3 ("d" correctly reused "b"'s freed
slot while "a" and "c" remained untouched), then capacity after 20 more inserts: 32 (several
doublings: 4 -> 8 -> 16 -> 32 as load crossed 0.7 repeatedly), then k17 -> 17 (every key survived
all those resizes correctly).
Trade-offs and pitfalls
The two bugs that actually break this in practice: (1) clearing a deleted slot to None instead of
a tombstone, which silently breaks lookups for any key whose probe sequence passed through that slot;
(2) checking load factor using only live entries (ignoring tombstones), which lets a
delete-heavy workload accumulate tombstones until probing degrades toward O(capacity) even though the
live entry count looks small, exactly why the trigger above uses _used (live entries and
tombstones combined), not a live-only count.
Tell me about a time you noticed and fixed a technical problem, bug, or process gap that was outside your assigned scope, without being asked. Walk me through how you discovered it, the concrete steps you took to fix or improve it end to end, who you kept informed, and the measurable outcome.
Sample Answer
Direct answer
Notice it during normal work rather than a special investigation, scope a fix small enough to do without asking, fix the actual root cause rather than the symptom, and tell the team what changed and why so the fix is visible rather than buried in a commit.
Structured elaboration
- Discovery usually happens incidentally: while doing assigned work, you hit something off, a flaky test everyone re-runs, a script everyone has a manual workaround for, that is outside your actual ticket.
- Scope the fix to what you can safely do inside your own access and time without needing approval, because the change is small, contained, and does not touch anyone else's active work.
- Fix the actual cause: spend the extra time to find why it is happening rather than patching the symptom, re-running until it passes, adding a longer timeout, which just delays the same failure.
- Keep people informed: a short note in the team channel or pull-request description saying what was broken and what changed, so teammates do not independently rediscover the same thing later.
- Measurable outcome: something concrete that changed as a result, fewer reruns needed, less time lost per week, even if the number is modest.
Worked example
A shared integration test suite failed intermittently, and the team's habit was to re-run the whole suite until it passed, costing a few extra minutes each time and adding up across a team running it many times a day. Digging in during downtime between tickets uncovered the real cause: two tests shared a test fixture, a piece of setup data, and ran in a nondeterministic order, so one test occasionally read data the other had not finished writing, a race condition, a bug where the outcome depends on timing that is not guaranteed. Isolating the fixture per test so each test owned its own data, the fix went out as a small pull request with the root cause noted in the description, so reviewers understood it was not just a timeout bump. After the fix, the suite's flaky reruns, which had been happening roughly half a dozen times a day across the team before the fix, dropped from that regular daily occurrence to about once every couple of weeks over the following month.
Trade-offs and pitfalls
A common wrong turn is patching the symptom, retry logic, a longer timeout, because it is faster, which hides the same bug until it resurfaces somewhere less convenient. Another is fixing it silently without telling anyone, so the team never learns what was actually wrong and cannot recognize the same pattern next time. Also watch scope: a fix this small does not need permission, but if it had required touching shared infrastructure other teams depended on, the right move would have been to flag it first rather than just changing it.
You're asked to set up a lightweight mentorship structure for a small team. What would you actually put in place, pairing, cadence, shared resources, and how would you keep it low-overhead?
Sample Answer
Direct answer
A lightweight structure needs three ingredients: a small, predictable time commitment (a fixed cadence, not open-ended availability), a place where knowledge accumulates outside people's heads, and two or three signals you actually look at instead of a heavy program. Keep it low-overhead by reusing rituals the team already has, like code review, rather than inventing new meetings.
Structured elaboration: the components
| Component | What you set up | Why it stays lightweight |
|---|---|---|
| Pairing and cadence | One small recurring block per pair (for example, a single weekly slot), rotating pairs on a short cycle so everyone gets exposure | Bounded time commitment, predictable, no ad hoc scheduling |
| Shared knowledge base | One folder or doc space with a couple of templates (session notes, a troubleshooting or FAQ page), edited through the team's existing review flow | No new tool to learn or separately maintain |
| Kickoff, not a training program | One short session covering what makes a good mentoring conversation and a few question prompts | One-time cost, not ongoing overhead |
| Signals you track | Two or three only, checked occasionally: are sessions actually happening, is the knowledge base getting used, do people feel less stuck | Avoids the program itself becoming the overhead |
Worked example
For a four-person team, a three-week rotation covers every unique pair exactly once: week one pairs A-B and C-D, week two pairs A-C and B-D, week three pairs A-D and B-C, then the cycle repeats. If each pairing block is 45 minutes, the weekly time cost per person is one session, 45 minutes, or 0.75 hours a week, plus roughly 15 to 20 minutes a month writing up notes. That puts the total time cost under an hour a week per person, small enough that it does not meaningfully compete with deliverable time, and it is a claim that can be checked against the actual calendar rather than taken on faith.
Trade-offs & pitfalls
The temptation is always to add more: formal training modules, a matching algorithm, quarterly surveys. A program with more infrastructure than the team has bandwidth to sustain decays within a few weeks. The senior distinction here is that a junior design assumes more structure is always better, while a senior deliberately underbuilds and only adds structure once a specific signal shows it is needed. A second pitfall is shared docs going stale because nobody owns freshness; assign light rotating ownership (whoever paired last updates the relevant page) rather than creating a separate docs-owner role, which is more overhead, not less. A third pitfall is picking the wrong rotation speed: too fast and no pair builds enough context to go deep; too slow and some people never get exposure to others. Match the cycle length to team size so everyone pairs with everyone within one cycle, as in the rotation above.
Describe how Auto Layout resolves view sizes and positions on iOS. Explain intrinsicContentSize, ambiguous layouts, content compression resistance and hugging priorities, and how to debug and resolve constraint conflicts both in Interface Builder and at runtime.
Sample Answer
How Auto Layout resolves sizes & positions
Auto Layout builds a system of linear constraints (equations) and solves them to compute each view’s frame. Constraints provide relationships (equalities/inequalities) between attributes; the solver satisfies them using priorities when exact solution isn’t possible.
intrinsicContentSize
- Views like UILabel/UIButton report an intrinsicContentSize (natural width/height based on content). The solver uses that as a size suggestion unless overridden by explicit constraints.
Ambiguous layouts
- A layout is ambiguous when constraints don’t uniquely determine a view’s frame (under-constrained) or are conflicting (over-constrained). Ambiguity leads to unpredictable results, especially on rotation or dynamic content.
Compression Resistance & Hugging
- Content Hugging Priority: how strongly a view resists growing larger than its intrinsicContentSize.
- Content Compression Resistance Priority: how strongly it resists being made smaller (compressed).
- Adjusting these priorities resolves which view expands/shrinks when space is distributed.
Debugging & resolving conflicts
- Interface Builder: IB shows yellow (warnings) for ambiguous/missing constraints and red for conflicts. Use “Resolve Auto Layout Issues” menu to add missing constraints or update frames. Inspect constraint list in Size Inspector and adjust priorities.
- Runtime:
- Look at console logs: unsatisfiable constraints print detailed constraint chains and which ones were broken.
- Use View Debugger (Xcode) to inspect frames, constraints, and intrinsic sizes visually.
- Call view.hasAmbiguousLayout / UIView.alertForUnsatisfiableConstraints() in debug builds.
- Use breakpoints on NSLayoutConstraint’s symbolic breakpoints to catch creation time issues.
- Use setNeedsLayout/layoutIfNeeded after changing constraints; set translatesAutoresizingMaskIntoConstraints = false for programmatic views.
- Resolution approach: identify whether under- or over-constrained, add missing constraints or lower priorities to allow flexible sizing, adjust hugging/compression priorities, or provide explicit width/height where appropriate.
Small, repeatable changes + visual inspection in IB/View Debugger reliably fix Auto Layout issues.
At the end of a meeting, how do you confirm next steps out loud in the room, and then again in a short written follow-up, so nothing gets lost between the conversation and the written record?
Sample Answer
Direct answer
State the decision and the immediate next steps out loud before the meeting ends, then send a short written follow-up within the hour that restates the same thing, so there's both an in-the-room confirmation and a durable record that matches it.
Structured elaboration
- Confirm verbally before people leave the room (or call). In the last minute or two, say "so to confirm, we've decided X, and the next steps are Y owned by Z by Thursday, does that match everyone's understanding?" This catches a misalignment while everyone who can correct it is still present.
- Watch for silence versus agreement. Nobody objecting isn't the same as everyone actively agreeing; a direct question ("does that match?") is more reliable than just pausing and moving on if no one immediately speaks up.
- Send the written follow-up promptly, ideally within the hour, restating the same decision and action items. The verbal confirmation and the written one should say the same thing; if they don't, that's usually a sign the verbal confirmation was rushed or unclear.
- Keep the written version short and scannable, matching the same content as the verbal confirmation rather than adding new information the room didn't actually agree to.
- Flag anything genuinely still unresolved, in both the verbal check and the written follow-up, rather than letting an unresolved point quietly look settled just because the meeting ended.
Worked example
Verbal, at the end of the meeting: "So to confirm: we're going with the phased rollout, Sam owns the migration plan by next Friday, and we're holding off on the customer announcement until that's done. Does that match what everyone heard?"
Written follow-up sent the same hour: "Recap from today: decided on the phased rollout. Sam: migration plan due next Friday. Customer announcement is on hold until the migration plan is ready. Shout if this doesn't match what you remember."
The two versions state the identical decision and owner, and the written version explicitly invites correction rather than assuming silence means agreement.
Trade-offs and pitfalls
- Skipping the verbal confirmation and only sending a written recap later means any misunderstanding surfaces after people have already left and possibly acted on their own interpretation.
- Skipping the written follow-up and only confirming verbally means anyone who wasn't in the room, or who forgets, has no record to check against.
- A written recap that silently adds detail beyond what was verbally confirmed can create a new source of disagreement; keep the two consistent, and if you realize something needs adding, flag it explicitly as new rather than folding it in unannounced.
Want to create your own tailored preparation guide using our deep research?
Get Started for FreeInterview-Ready Courses
Visual-first, interactive, structured learning paths
Browse Mobile Developer jobs
AI-enriched listings across hundreds of company career pages
Explore Jobs