All jobs / Mobile developer / Security
Mobile developer interview question · 3–5 years
You need to prove the device still holds a user key after a biometric. Where does the key live?
The strongest answer
In hardware-backed Keystore / Secure Enclave, used via an API that never exports the private key — biometrics gate use, they are not the key
Why it works
Exactly. Hardware-backed, non-exportable, biometric as a gate.
What a good answer covers
- Hardware-backed key, no export.
- Biometric gates use.
- Do not duplicate the private key to the server “for speed.”
- Do not keep it in JS / Dart state.
Answers that fall short
- Close, but not the strongest: In an encrypted file whose passphrase is the user’s birthday
Birthday is not a key-derivation story you can defend. - Weak: On our server; the app just stores a copy for speed
A server copy is a different threat model — and not “the device holds the key.” - Red flag: In a Flutter / RN global variable that we rehydrate from UserDefaults
JS / Dart memory and UserDefaults are not an enclave.
Who gets asked this
More Security questions
- 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?
- Growth wants a new attribution SDK that wants IDFA, a full photo dump, and its own WebView. What is the bar?
- When do you ask for camera permission?
- A junior wants to “add certificate pinning to everything” this week. What is the right first move?
- 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?