All quizzes
Free quiz · 20 questions in the bank

Secure Coding quiz

Test your Secure Coding knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What is a "path traversal" (directory traversal) vulnerability, and how does secure coding typically prevent it?

Questions in this quiz
  1. What is a "path traversal" (directory traversal) vulnerability, and how does secure coding typically prevent it?
  2. What is the purpose of dependency/supply-chain security practices, like regularly scanning for known vulnerabilities in third-party packages a project depends on?
  3. What does "defense in depth" mean as a secure coding/architecture principle?
  4. What is "security by obscurity," and why is it generally considered an insufficient security strategy on its own?
  5. What is Cross-Site Scripting (XSS), and what secure coding practice mitigates it?
  6. What is the purpose of secure password storage practices, specifically using a slow, salted hashing algorithm (like bcrypt or Argon2) rather than a fast general-purpose hash (like plain SHA-256) or storing passwords in plaintext?
  7. What does "fail securely" (or "fail closed") mean as a secure coding principle, as opposed to "fail open"?
  8. What is the purpose of secure secret/credential management practices (e.g. never hardcoding API keys or database passwords directly in source code)?
  9. What does "Secure Coding" refer to as a discipline?
  10. Why is input validation considered a foundational secure coding practice, and where should it typically be enforced?
  11. What does the practice of "sanitizing" versus "validating" user input mean, and how do the two differ?
  12. What is the difference between authentication and authorization, and why does conflating them lead to security bugs?
Gaps to close?
Read the curated Secure Coding notes — core concepts, patterns, interview prep.
Secure Coding notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web