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.

MediumTechnical
46 practiced

How would you detect insecure-deserialization attacks using application instrumentation and runtime telemetry? Describe the specific log events, exception patterns, and profiling metrics you would capture, what sampling strategy you would use to avoid overloading the system, what automated mitigations you might trigger, and suggest both short-term detection heuristics and longer-term developer fixes.

EasyTechnical
33 practiced

Explain secure error-handling and logging practices in application code. Describe what information should never be logged or shown to users (plaintext secrets, full stack traces, internal paths), and how logging, UI error messages, and exception handling should each be treated differently.

HardTechnical
33 practiced

You discover a critical SQL injection in a decade-old legacy application. Management offers several alternatives: an immediate WAF rule as a stopgap, patching the query-string building directly, migrating to an ORM in the medium term, or isolating the app with network controls. Analyze each option's pros, cons, verification steps, and rollback risk, and recommend a phased remediation plan.

EasyTechnical
36 practiced

During a targeted code review, what patterns and code constructs would you look for to quickly identify injection risks such as SQL injection, command injection, and LDAP injection? Provide a short checklist and concrete examples of risky constructs to prioritize.

MediumTechnical
38 practiced

A JSON-based API echoes a user-supplied parameter into a JavaScript client response inside a single-page application. Describe how you would test for DOM-based XSS: what instrumentation you would use (browser devtools, a Burp extension, automated DOM-sink scanning), a safe proof-of-concept payload skeleton, and how you would triage and classify the finding.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.