Prepare for cybersecurity interview questions with MCQs covering the security fundamentals tested in security engineer, AppSec, and penetration tester interviews. Topics include the CIA triad (Confidentiality, Integrity, Availability) and threat modeling frameworks, OWASP Top 10 vulnerabilities (SQL injection, XSS, CSRF, IDOR, SSRF, insecure deserialization), cryptography fundamentals (symmetric vs asymmetric encryption, hashing algorithms, PKI and certificates, TLS handshake), network security concepts (firewalls, IDS/IPS, TLS/SSL, VPNs, network segmentation), authentication and authorization mechanisms (OAuth 2.0, OpenID Connect, JWT, SAML, MFA, RBAC), secure development practices (input validation, parameterized queries, security headers), and incident response procedures. Security awareness is increasingly expected from all engineering roles, not just dedicated security engineers. Specialist roles require deep expertise in attacking and defending systems. Difficulty levels span Trainee (CIA triad, basic attacks, security concepts), Junior Dev (OWASP, secure coding, network fundamentals), Mid Level (cryptography, threat modeling, penetration testing basics), and Senior Dev (security architecture, zero-trust design, compliance frameworks like SOC 2 and ISO 27001).
What this Cybersecurity quiz covers
Trainee
- Phishing and data breaches
- HTTPS and encryption basics
- Authorization and MFA
- Zero-trust and security audits
Junior Developer
- SQL injection, CSRF and XSS
- IDOR and input validation
- Content Security Policy
- TLS, certificate authorities and PKI
Mid-Level
- Symmetric vs asymmetric encryption
- SSRF and privilege escalation
- CVE and CVSS scoring
- SIEM, IDS and honeypots
Senior
- Threat modelling and attack surface
- APTs and MITRE ATT&CK
- Secret rotation, salting and certificate pinning
- Kerberos
Companies that ask Cybersecurity questions: KPMG
Sample Cybersecurity Interview Questions
Ten representative questions from our full bank of Cybersecurity MCQs across all difficulty levels. Each one shows the correct answer and a short explanation. The interactive quiz above shuffles options and tracks your time per question.
- TraineeQ1
What is phishing?
- Tricking users into revealing sensitive information via deceptive messages Correct
- Encrypting hard disks for protection
- A type of hardware firewall
- A database backup technique
Why: Phishing uses deceptive emails, messages, or sites to steal credentials or data. - TraineeQ2
What does 2FA add?
- A second verification factor beyond the password Correct
- A second username field
- A faster browser experience
- A redundant database
Why: 2FA requires a second factor like a code or hardware key in addition to a password. - TraineeQ3
What is malware?
- Malicious software designed to harm, spy, extort, or disrupt systems Correct
- A secure communication protocol
- A CSS styling bug
- A network router type
Why: Malware includes viruses, ransomware, spyware, and trojans. - TraineeQ4
What is HTTPS for?
- Encrypted HTTP communication with server identity verification Correct
- Faster HTML rendering only
- Loading local files securely
- Storing passwords in the browser
Why: HTTPS uses TLS to protect traffic and verify server identity via certificates. - Junior DevQ5
What is SQL injection?
- Injecting malicious SQL through untrusted user input Correct
- A fast database index technique
- A database backup type
- A SQL join optimization
Why: SQL injection occurs when input is incorrectly interpreted as SQL code by the database. - Junior DevQ6
How do you prevent SQL injection?
- Using parameterized queries or prepared statements Correct
- Concatenating strings carefully
- Hiding form buttons from view
- Using longer database table names
Why: Prepared statements separate SQL code from data, eliminating injection risk. - Junior DevQ7
What is XSS?
- Injecting malicious scripts into pages viewed by other users Correct
- Encrypting CSS stylesheets
- Blocking SQL query execution
- A server reboot procedure
Why: Cross-Site Scripting runs attacker-controlled JavaScript in victims' browsers. - Mid LevelQ8
Symmetric encryption uses?
- One shared secret key for both encryption and decryption Correct
- A public/private key pair
- No key at all
- A password derived key only
Why: Symmetric algorithms like AES use the same key for encryption and decryption. - Mid LevelQ9
Asymmetric encryption uses?
- A public/private key pair for encryption and decryption Correct
- One shared secret key only
- No digital certificates
- Only cryptographic hash functions
Why: Public-key cryptography supports secure key exchange and digital signatures. - Senior DevQ10
What is threat modeling?
- Systematically identifying potential threats, attack vectors, and mitigations for a system Correct
- Writing security policy documentation
- Deploying and testing intrusion detection systems
- Ignoring low-probability risks to focus on critical ones
Why: Threat modeling helps design security defenses before writing a line of code.
This is a static preview of 10 questions. Take the full interactive Cybersecurity quiz with timed rounds, all 25 questions per level, and instant score tracking.
Frequently Asked Questions: Cybersecurity Interviews
Common questions developers ask when preparing for Cybersecurity technical interviews.
What cybersecurity topics are most commonly tested in security engineering interviews?
OWASP Top 10 vulnerabilities, particularly SQL injection, XSS, CSRF, and IDOR, come up in almost every AppSec and security engineer interview. Cryptography fundamentals (symmetric vs asymmetric encryption, hashing, TLS), authentication and authorization mechanisms (OAuth 2.0, JWT, SAML, MFA), and network security concepts (firewalls, IDS/IPS, TLS handshake) are consistently tested. Threat modeling, secure code review, and incident response procedures come up in senior roles.
What is the difference between authentication and authorization in security?
Authentication (AuthN) is the process of verifying who you are, confirming identity through passwords, biometrics, certificates, or tokens. Authorization (AuthZ) is the process of verifying what you are allowed to do, checking permissions after identity is established. A common vulnerability arises when systems authenticate correctly but implement authorization checks inconsistently (Insecure Direct Object Reference, IDOR), allowing users to access resources belonging to other users.
What is SQL injection and how do you prevent it?
SQL injection occurs when user-supplied input is concatenated directly into a SQL query, allowing attackers to modify the query structure, extracting data, bypassing authentication, or deleting records. Prevention requires using parameterized queries (prepared statements) which treat user input as data rather than code, or ORM frameworks that parameterize by default. Input validation adds defense-in-depth but is not a substitute for parameterized queries. SQL injection consistently ranks in OWASP Top 10 and remains one of the most exploited web vulnerabilities.
What is the difference between symmetric and asymmetric encryption?
Symmetric encryption uses the same key to both encrypt and decrypt data, it is fast and efficient (AES-256 is the standard) but requires securely sharing the key between parties. Asymmetric encryption uses a public/private key pair: data encrypted with the public key can only be decrypted with the private key. RSA and ECC are the common algorithms. TLS uses asymmetric encryption to establish a session, then switches to symmetric encryption for performance, this combination is called hybrid encryption.
How should developers think about security if they are not security specialists?
Developers do not need to be penetration testers, but they should internalize a few foundational practices: never trust user input (validate and sanitize everywhere), always use parameterized queries, keep dependencies updated, use environment variables for secrets (never hardcode), implement least-privilege access, and understand the OWASP Top 10 vulnerabilities at a conceptual level. Security reviews catch bugs that code reviews miss, incorporating security checklists into pull request processes significantly reduces production vulnerabilities.