All jobs / Mobile developer / Security
Mobile developer interview question · 0–1 years
A junior wants to “add certificate pinning to everything” this week. What is the right first move?
The strongest answer
TLS to your real hosts is the default; pinning is an extra control with a rotation plan — do not pin until we can ship a pin change without bricking the app
Why it works
Exactly. HTTPS first. Pinning without rotation is how you lock users out on the next cert renew.
What a good answer covers
- HTTPS / ATS is the baseline.
- Pin only hosts you can rotate.
- Have a break-glass (config, new build).
- Never pin a CDN you do not operate.
Answers that fall short
- Close, but not the strongest: Pin every host we call, including third-party CDNs, so we are maximally safe
Third-party pins you do not control will break you. - Weak: Disable ATS / cleartext so pinning is easier to test
Cleartext is a regression, not a test strategy. - Red flag: Pin the leaf certificate in code and never rotate it
A leaf pin with no escape hatch is an outage waiting for expiry.
Who gets asked this
More Security questions
- A partner API needs a secret key, and a teammate puts it in a constants file in the app. What do you say?
- You will pin your API. What else ships in the same change?
- Camera grant rate is poor and denied-forever is high. How do you work it?
- A pin mismatch will brick the app on a bad deploy. What is your break-glass?
- You need to prove the device still holds a user key after a biometric. Where does the key live?
- A support engineer pastes a crash log into a ticket. It contains a user’s full address and part of a card…
- A security review asks what you assume about a rooted / jailbroken phone. What is a sane answer?
- When does the org require certificate pinning?