Security questions in senior interviews test whether you treat security as an afterthought or a first-class engineering concern. Interviewers expect you to explain authentication vs authorization clearly, reason about threat models, and identify common vulnerability patterns in system designs.
These 7 questions cover the security concepts that come up most in engineering interviews: OWASP top 10 vulnerabilities, encryption at rest vs in transit, token-based authentication, and the principles behind secure system design. Every senior engineer should be able to discuss these confidently.
Authentication (AuthN) and authorization (AuthZ) are sequential security steps that are often confused but solve distinct problems.
Read full answer →A JSON Web Token (JWT) is a compact, self-contained token format for transmitting claims between parties. It consists of three base64url-encoded parts separated by dots: header.payload.signature.
Read full answer →SQL injection is a vulnerability where an attacker supplies input that is interpreted as SQL syntax rather than data, allowing them to manipulate queries, bypass authentication, exfiltrate data, or destroy database contents.
Read full answer →Cross-Site Request Forgery (CSRF) is an attack where a malicious site causes an authenticated user's browser to send a forged request to a target site. Because browsers automatically attach cookies to same-origin requests, the target server cannot distinguish a legitimate request from a forged on…
Read full answer →Cross-Site Scripting (XSS) is a code injection vulnerability where an attacker injects malicious scripts into content served to other users. Unlike CSRF, which abuses the browser's trust in a session, XSS abuses the victim's trust in a website — the script runs in the origin of the target site an…
Read full answer →The OAuth 2.0 Authorization Code Flow is the recommended grant type for web applications where a server-side backend can securely hold a client secret. It allows users to grant a third-party application access to their resources on another service (like Google or GitHub) without sharing their pas…
Read full answer →Symmetric and asymmetric encryption are the two fundamental paradigms of modern cryptography. They solve different problems and are almost always used together in production systems.
Read full answer →Focus on understanding concepts deeply enough to explain them in your own words. For each topic, practice articulating the trade-offs and real-world applications — interviewers care about practical judgment, not textbook definitions.
Take a free AI-graded assessment across multiple domains. No signup required.
Start Free Assessment