All jobs / Mobile developer / Security
Mobile developer interview question · 5+ years
A support engineer pastes a crash log into a ticket. It contains a user’s full address and part of a card number.
What do you put in place?
The strongest answer
A rule about what may ever be logged, enforced where the logging happens: sensitive fields redacted at the source, crash reports and breadcrumbs scrubbed, and sensitive screens hidden from the app-switcher snapshot
Why it works
Right — redaction has to happen at the point of logging, or the next feature reintroduces it a month later.
What a good answer covers
- Redact where you log.
- Name what may never be logged.
- Scrub crash reports and breadcrumbs.
- Hide sensitive screens from snapshots.
Answers that fall short
- Close, but not the strongest: Strip the sensitive fields out of that logging before the next release
That fixes today’s leak. Without a rule and a place it is enforced, the next logging statement puts it back. - Weak: Tell support not to paste raw logs into tickets any more
Process alone does not hold; the data should not be in the log for support to paste in the first place. - Red flag: Leave the logs as they are — the log file is private to the app, so nobody else can read it
Logs leave the device in crash reports and support bundles, and a backed-up or rooted phone is not a private place.
Who gets asked this
More Security questions
- 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?
- Camera grant rate is poor and denied-forever is high. How do you work it?