iOS networking interview questions
URLSession with async/await, Codable, retries, background transfers, testable network layers and image pipelines.
– interview-ready · 11 questions in this topic
– of 11 tried
Saved on this device. Interview-ready means you got it right on two different days. Guesses and hints count for less.
Questions
- Making a network requestSpot the bug
- POST requests with a JSON bodyFill the blank
- Codable and mismatched keysPredict
- Retries with exponential backoffPick the fix
- App Transport Security (ATS)Pick the fix
- A testable network layerPick the fix
- URLSessionConfigurationPick the fix
- Rate limits and temporary outagesPick 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 · 11 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.
Fix this PR · 1 review
Review a diff like a senior: flag the lines you'd comment on. Needs JavaScript.
Quick facts
Recall the answer first, then tap Show to check.
HTTP status classes
1xx informational, 2xx success, 3xx redirect, 4xx client error, 5xx server error. URLSession doesn't throw for any of them.
URLComponents
Builds URLs safely and percent-encodes query items for you.
Low Data Mode
Check
allowsConstrainedNetworkAccess; defer prefetches and large media when the user enables it.
Printable cheat sheet · Review your weak spots in this topic