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.

HardTechnical
39 practiced

A reporting dashboard uses dynamic SQL constructed by concatenating filters into a WHERE clause. Explain the SQL injection risk this creates and propose safe alternatives for a BI/reporting-tool integration (e.g. a Looker-, Power BI-, or Tableau-style query layer). Provide example code patterns for parameterized queries, allow-listing column/table identifiers, and safely escaping LIKE wildcards.

HardTechnical
39 practiced

You are building an ad-hoc analysis tool that constructs dynamic SQL strings, including subqueries and CTEs, based on user input for flexibility. Describe the SQL injection risks this creates beyond simple value injection (where the query STRUCTURE itself is dynamic, not just values) and how you would design the system to avoid injection while still preserving that flexibility (for example, an allow-listed identifier set, a query-builder AST instead of raw string assembly, and a sandboxed read-only database role).

That is every published Secure Coding and Application Security question for Data Engineer so far. Browse the other topics in this category, or practice this one interactively.