InterviewStack.io LogoInterviewStack.io

Secure Coding and Application Security Questions

Writing and reviewing code that resists attack. Covers the OWASP Top Ten and common web vulnerabilities (XSS, SQL injection, CSRF), input validation, secure coding practices and security code review, static application security testing (SAST), API and HTTP security, database and frontend security, and mobile app security. The application-layer defense discipline for engineers building software.

EasyTechnical
38 practiced

How should a mobile app store access tokens and refresh tokens on the device? Explain the storage choices, encryption-at-rest considerations, appropriate token lifetimes, strategies to protect tokens on a rooted or jailbroken device, and the logout behavior you would recommend to reduce the risk of token reuse after a compromise.

HardSystem Design
46 practiced

Design a secure, scalable certificate-pin rotation system that lets you update pins without forcing an app update. Explain client-side pin validation, a server protocol for distributing signed pin manifests, pin TTL and expiry semantics, backup pins and grace periods, integrity checks on the pin bundle, and the emergency rollback procedure for a key-compromise scenario.

HardTechnical
43 practiced

Design a privacy-preserving telemetry and error-reporting pipeline for a mobile app that supports security incident response without exposing PII. Specify which fields to collect for security purposes (events, hashes, stack traces), client-side redaction and hashing rules, encryption in transit, consent/opt-in flows, retention and deletion policies, and the server-side analysis and alerting capability this telemetry feeds.

MediumTechnical
44 practiced

Design a secure and user-friendly logout and token-revocation strategy for a mobile app. Cover client-side removal of credentials, server-side revocation of refresh tokens, handling multiple signed-in devices, push- or polling-based notification to other devices, and techniques to ensure tokens are unusable after logout even if an attacker had already extracted them.

HardTechnical
43 practiced

A critical vulnerability is discovered in a popular third-party SDK your app depends on. As the mobile developer lead, outline your incident-response plan: immediate triage steps, risk assessment, temporary mitigations (feature flags, disabling the SDK), communication with stakeholders and users, expedited release management, backend-side mitigations (input validation, feature disabling), and the post-mortem and remediation timeline.

Unlock Full Question Bank

Get access to all 30 Secure Coding and Application Security interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.