Skip to content

Cybersecurity Practice Test — 30 Problems

Cybersecurity Practice Test — 30 Problems

Section titled “Cybersecurity Practice Test — 30 Problems”

This practice test covers 30 problems across three major domains of cybersecurity: Network Security, Cryptography, and Compliance and Risk. Each problem tests conceptual understanding, threat analysis, and real-world scenario reasoning. Work through all problems before checking the answer key.

  • Time limit: 75 minutes (2.5 minutes per problem)
  • Format: Multiple choice and scenario analysis — select the best answer or apply security concepts to a scenario
  • Marking: 1 mark per problem, 30 marks total
  • Conditions: Attempt without notes.
  • After the test: Check the answer key at the bottom. Study the explanations for any problems you got wrong.
DomainProblemsMarks
Network SecurityP1–P1010
CryptographyP11–P2010
Compliance and RiskP21–P3010
Total3030

A company’s website is defaced by an attacker who modifies the homepage content. Which pillar of the CIA triad is primarily violated?

#Option
AConfidentiality
BIntegrity
CAvailability
DAuthentication
ENon-repudiation

Correct: B (index 1)

Integrity ensures data is accurate and unauthorised modification is prevented. Defacing a website modifies data without authorization — a direct integrity violation. Confidentiality is about unauthorised access; availability is about system uptime.

easy — 1 mark


A database administrator needs to run queries but should not be able to modify database schema. Which security principle applies?

#Option
ADefence in depth
BSeparation of duties
CLeast privilege
DNeed to know
ERisk transference

Correct: C (index 2)

Least privilege dictates that users should have only the minimum permissions necessary to perform their function. The DBA needs query access but not schema modification — granting only what is needed follows least privilege. Defence in depth layers multiple controls; separation of duties divides critical tasks.

easy — 1 mark


A firewall rule blocks all inbound traffic on port 23 (Telnet). Which security objective does this primarily achieve?

#Option
AEncrypting remote access traffic
BReducing the attack surface by disabling an insecure protocol
CEnsuring data integrity during transmission
DImplementing multi-factor authentication
EComplying with GDPR requirements

Correct: B (index 1)

Telnet transmits data (including credentials) in plaintext. Blocking port 23 eliminates an insecure protocol from the network, reducing the attack surface. SSH (port 22) should be used instead for encrypted remote access. This is a hardening measure.

easy — 1 mark


An IDS alerts on repeated failed login attempts from a single IP address targeting 50 different user accounts. What type of attack is this most likely?

#Option
ADenial of service
BBrute force / credential stuffing
CSQL injection
DCross-site scripting
EMan-in-the-middle

Correct: B (index 1)

Repeated failed logins across many accounts from one IP suggests credential stuffing (trying leaked username/password pairs) or brute force. DoS floods a single target. SQL injection and XSS target web applications, not authentication systems. Mitigation: rate limiting, account lockout, and IP reputation lists.

medium — 1 mark


Why should payment processing systems be on a separate network segment?

#Option
ATo increase network speed
BTo limit lateral movement in case of a breach and meet PCI DSS requirements
CTo reduce DNS lookup time
DTo simplify firewall rules
ETo enable faster backups

Correct: B (index 1)

Network segmentation isolates sensitive systems. If an attacker compromises the general network, they cannot reach the payment segment without crossing a firewall. PCI DSS explicitly requires segmentation of cardholder data environments. This limits blast radius and reduces compliance scope.

medium — 1 mark


A company deploys a VPN for remote workers. Which threat does the VPN NOT protect against?

#Option
AEavesdropping on public Wi-Fi
BCompromised endpoints with malware
CMan-in-the-middle attacks on the VPN tunnel
DIP address spoofing on the local network
EUnencrypted traffic between VPN server and destination

Correct: B (index 1)

A VPN encrypts traffic between the endpoint and the VPN gateway. It does not protect against malware on the endpoint itself — if the device is compromised, the attacker can access data before it enters the VPN tunnel. VPNs also do not inspect traffic content for threats.

medium — 1 mark


What is a key improvement of WPA3 over WPA2?

#Option
AFaster wireless speeds
BProtection against offline dictionary attacks via SAE
CSupport for more wireless clients
DBackward compatibility with WEP
ELarger network range

Correct: B (index 1)

WPA3 uses SAE (Dragonfly key exchange) instead of PSK, making it resistant to offline dictionary attacks. An attacker capturing the four-way handshake cannot brute-force the password offline. WPA3 also provides forward secrecy and stronger encryption (GCMP-256).

medium — 1 mark


Which technique is most effective against volumetric DDoS attacks?

#Option
AWeb application firewall
BRate limiting at the network edge
CInput validation
DSQL parameterization
ETwo-factor authentication

Correct: B (index 1)

Volumetric DDoS floods the network bandwidth. Rate limiting at the edge (or upstream) drops excess traffic before it reaches the target. Web application firewalls protect against application-layer attacks. Input validation and parameterisation prevent injection, not DDoS.

medium — 1 mark


What is the core principle of Zero Trust?

#Option
ATrust all internal traffic by default
BNever trust, always verify — authenticate and authorise every request regardless of location
CUse a single firewall to protect the perimeter
DEncrypt all data at rest only
EAllow all traffic inside the network

Correct: B (index 1)

Zero Trust assumes no implicit trust based on network location. Every access request is authenticated, authorised, and encrypted — whether it originates inside or outside the network. This eliminates the “trusted internal network” assumption that attackers routinely exploit.

medium — 1 mark


What is the primary purpose of a SIEM (Security Information and Event Management) system?

#Option
AEncrypt network traffic
BAggregate and correlate security logs for detection and analysis
CBlock malicious IP addresses
DManage user passwords
EScan for vulnerabilities

Correct: B (index 1)

A SIEM collects logs from across the infrastructure (firewalls, IDS, servers, endpoints), correlates events, and alerts on suspicious patterns. It provides centralised visibility, incident detection, and forensic analysis. It does not block traffic directly — that is the job of firewalls and IPS.

easy — 1 mark


How many keys does symmetric encryption use?

#Option
AZero — it is unencrypted
BOne — the same key for encryption and decryption
CTwo — one for encryption, one for decryption
DThree — encryption, decryption, and hashing
EIt depends on the algorithm

Correct: B (index 1)

Symmetric encryption uses a single shared key for both encryption and decryption. AES, ChaCha20, and 3DES are symmetric algorithms. The challenge is key distribution — both parties must securely share the secret key before communication.

easy — 1 mark


Which use case is asymmetric encryption best suited for?

#Option
AEncrypting large file transfers
BEncrypting database contents at rest
CKey exchange and digital signatures
DReal-time video encryption
ECompressing data before encryption

Correct: C (index 2)

Asymmetric encryption (RSA, ECC) is slow for bulk data but solves key distribution. It is used to exchange symmetric keys (TLS handshake) and to create digital signatures (verify identity and integrity). Symmetric encryption handles bulk data.

easy — 1 mark


Which property makes a hash function suitable for password storage?

#Option
AFast computation
BPre-image resistance
CDeterministic output for the same input
DFixed output length
EAvalanche effect

Correct: B (index 1)

Pre-image resistance means you cannot compute the original input from the hash output. For password storage, this means an attacker with the hash database cannot recover the original passwords. Fast computation is actually bad for password hashing — slow algorithms (bcrypt, Argon2) resist brute-force attacks.

medium — 1 mark


What does a digital signature provide?

#Option
AConfidentiality — only the recipient can read the message
BAuthentication, integrity, and non-repudiation
CEncryption of the entire message
DKey distribution for future communication
ECompression of the message

Correct: B (index 1)

Digital signatures prove: (1) Authentication — the signer’s identity is verified via their private key, (2) Integrity — the signed hash proves the message was not modified, (3) Non-repudiation — the signer cannot deny signing. They do not provide confidentiality.

medium — 1 mark


What is the purpose of Diffie-Hellman key exchange?

#Option
ATo encrypt data in transit
BTo establish a shared secret over an insecure channel without sending the key
CTo authenticate the server’s identity
DTo generate digital certificates
ETo compress data before transmission

Correct: B (index 1)

Diffie-Hellman allows two parties to compute a shared secret over an insecure channel. Each party contributes to the shared secret mathematically — neither sends the actual key. An eavesdropper cannot compute the shared secret without solving the discrete logarithm problem.

medium — 1 mark


What is the role of a Certificate Authority (CA)?

#Option
ATo encrypt all web traffic
BTo issue, sign, and revoke digital certificates that verify entity identities
CTo generate symmetric encryption keys
DTo manage firewall rules
ETo monitor network traffic

Correct: B (index 1)

A CA issues digital certificates binding a public key to an identity. The CA signs certificates with its private key. Clients verify the signature using the CA’s public key (in the trust store). CAs also maintain Certificate Revocation Lists (CRLs) and support OCSP for revocation checking.

easy — 1 mark


Why is bcrypt preferred over SHA-256 for password hashing?

#Option
Abcrypt is faster than SHA-256
Bbcrypt includes a salt and is deliberately slow to resist brute-force attacks
Cbcrypt produces shorter hashes
Dbcrypt is a symmetric encryption algorithm
Ebcrypt does not require a key

Correct: B (index 1)

bcrypt is designed for password hashing — it includes a random salt (preventing rainbow tables) and is computationally expensive (configurable cost factor). SHA-256 is too fast — an attacker can compute billions of hashes per second for brute-force. bcrypt, scrypt, and Argon2 are purpose-built for passwords.

medium — 1 mark


What does forward secrecy guarantee?

#Option
AData is encrypted at rest
BCompromising a long-term key does not compromise past session keys
CAll traffic is encrypted end-to-end
DThe server cannot decrypt client messages
EKeys are never stored on disk

Correct: B (index 1)

Forward secrecy (perfect forward secrecy, PFS) ensures that each session uses a unique ephemeral key. Even if the server’s long-term private key is later compromised, past sessions cannot be decrypted because the ephemeral session keys were discarded. TLS 1.3 mandates forward secrecy.

medium — 1 mark


What is the block size of AES?

#Option
A56 bits
B64 bits
C128 bits
D256 bits
E512 bits

Correct: C (index 2)

AES (Advanced Encryption Standard) has a fixed block size of 128 bits (16 bytes). Key sizes can be 128, 192, or 256 bits (AES-128, AES-192, AES-256). DES used 64-bit blocks with 56-bit keys. The block size determines how much data is encrypted in each operation.

easy — 1 mark


A company uses RSA-2048 for encryption. An attacker wants to factor the modulus. What is the computational complexity class of this problem?

#Option
AP — solvable in polynomial time
BNP-complete
Cbelieved to be hard (no known polynomial-time algorithm)
DO(1) — constant time
EO(n) — linear time

Correct: C (index 2)

Integer factorisation (needed to break RSA) has no known polynomial-time algorithm on classical computers. It is believed to be hard but is not proven NP-complete. Quantum computers (Shor’s algorithm) can factor efficiently, which is why post-quantum cryptography is being developed.

medium — 1 mark


Under GDPR, which right allows a user to request deletion of their personal data?

#Option
ARight to access
BRight to rectification
CRight to erasure (right to be forgotten)
DRight to data portability
ERight to object

Correct: C (index 2)

The right to erasure (Article 17) allows data subjects to request deletion of their personal data. Exceptions exist (legal obligations, freedom of expression). Right to access is Article 15, rectification is Article 16, portability is Article 20, and object is Article 21.

easy — 1 mark


Which requirement is a key part of PCI DSS for organisations handling card payments?

#Option
AEncrypt all email communications
BEncrypt transmission of cardholder data across open, public networks
CUse biometric authentication for all employees
DStore passwords in plaintext for customer support
EAllow unlimited login attempts

Correct: B (index 1)

PCI DSS Requirement 4 mandates encrypting cardholder data during transmission over open networks (e.g., the internet). This prevents interception of payment data. Other key requirements include maintaining a firewall, using strong cryptography for stored data, and restricting access on a need-to-know basis.

medium — 1 mark


Which is NOT one of the five Trust Services Criteria in SOC 2?

#Option
ASecurity
BAvailability
CConfidentiality
DProfitability
EPrivacy

Correct: D (index 3)

SOC 2 Trust Services Criteria are: Security, Availability, Processing Integrity, Confidentiality, and Privacy. Profitability is a business metric, not a security criterion. SOC 2 reports assess controls relevant to these five criteria based on the organisation’s commitments.

medium — 1 mark


What is the correct order of the incident response lifecycle?

#Option
ADetection → Preparation → Recovery → Lessons learned
BPreparation → Detection and Analysis → Containment/Eradication/Recovery → Post-incident Activity
CRecovery → Detection → Preparation → Forensics
DPost-incident → Preparation → Detection → Recovery
EDetection → Recovery → Preparation → Containment

Correct: B (index 1)

The NIST incident response lifecycle: (1) Preparation — plan and train, (2) Detection and Analysis — identify the incident, (3) Containment, Eradication, and Recovery — stop and fix it, (4) Post-Incident Activity — learn and improve. Preparation comes first because you cannot respond effectively without a plan.

medium — 1 mark


In a risk assessment, risk is calculated as:

#Option
ARisk = Vulnerability + Threat
BRisk = Threat x Vulnerability x Impact
CRisk = Impact - Likelihood
DRisk = Asset x Threat
ERisk = Probability / Cost

Correct: B (index 1)

Risk is the product of threat likelihood, vulnerability, and impact. A high-impact event with high likelihood and high vulnerability represents the greatest risk. This formula helps organisations prioritise which risks to mitigate first based on their overall risk score.

medium — 1 mark


P26 — Penetration Testing vs Vulnerability Scanning

Section titled “P26 — Penetration Testing vs Vulnerability Scanning”

What is the key difference between penetration testing and vulnerability scanning?

#Option
AThey are identical
BVulnerability scanning is automated and broad; penetration testing is manual and deep
CPenetration testing only looks at network layer
DVulnerability scanning requires authorisation; penetration testing does not
EPenetration testing is faster than scanning

Correct: B (index 1)

Vulnerability scanning uses tools to automatically identify known weaknesses across many systems. Penetration testing involves a human expert manually exploiting identified vulnerabilities to demonstrate real-world impact. Scanning is broad and fast; testing is deep and slow. Both require explicit authorisation.

medium — 1 mark


A company encrypts its database (at rest) and its HTTPS traffic (in transit). A stolen laptop exposes the database. Which encryption protected the data?

#Option
AEncryption in transit
BEncryption at rest
CBoth protected the data
DNeither — encryption does not help with stolen devices
EOnly TLS protected the data

Correct: B (index 1)

Encryption at rest protects data stored on disk — if the laptop is stolen, the database file is unreadable without the decryption key. Encryption in transit protects data moving over the network. The stolen laptop scenario involves stored data, so encryption at rest is the relevant control.

easy — 1 mark


In a cloud environment, which responsibility is ALWAYS the customer’s under the shared responsibility model?

#Option
APhysical data centre security
BHypervisor patching
CData classification and access control
DNetwork infrastructure maintenance
EHardware replacement

Correct: C (index 2)

The cloud provider secures the infrastructure (physical security, hypervisor, network). The customer secures what they put in the cloud — data classification, identity management, access control, application configuration, and OS patching (for IaaS). Data classification and access control are always the customer’s responsibility.

medium — 1 mark


What is the primary purpose of a Business Continuity Plan (BCP)?

#Option
ATo prevent all security incidents
BTo ensure critical business functions can continue during and after a disaster
CTo encrypt all business data
DTo hire more security staff
ETo eliminate all risk

Correct: B (index 1)

A BCP defines how an organisation maintains operations during and after a disruptive event (natural disaster, cyberattack, power outage). It identifies critical functions, defines recovery procedures, and establishes communication plans. It does not prevent incidents — it ensures resilience.

easy — 1 mark


In the STRIDE threat model, what does the “S” stand for?

#Option
ASecurity
BSpoofing
CSteganography
DSegmentation
ESynchronisation

Correct: B (index 1)

STRIDE stands for: Spoofing (impersonation), Tampering (unauthorised modification), Repudiation (denying actions), Information Disclosure (unauthorised data access), Denial of Service (interrupting service), Elevation of Privilege (gaining unauthorised access). Each category maps to a security property: authentication, integrity, non-repudiation, confidentiality, availability, and authorisation.

medium — 1 mark


Click to reveal the answer key
QuestionAnswerQuestionAnswerQuestionAnswer
P1BP11BP21C
P2CP12CP22B
P3BP13BP23D
P4BP14BP24B
P5BP15BP25B
P6BP16BP26B
P7BP17BP27B
P8BP18BP28C
P9BP19CP29B
P10BP20CP30B

DifficultyCount
Easy9
Medium20
Hard1


  1. Think like an attacker. Every security control exists because someone will try to break it. Understanding the attack makes the defence intuitive.
  2. Know the frameworks. STRIDE, OWASP Top 10, CIA triad, and NIST incident response are fundamental mental models.
  3. Understand the “why”. Security policies exist because of specific threats. Understanding the threat makes the policy logical rather than arbitrary.
  4. Practise scenario analysis. Real-world security questions require applying concepts to situations, not just memorising definitions.
  5. Retake after one week. Security concepts are interconnected — spaced repetition builds the mental models needed for analysis.

Last updated: 24 July 2026

Written by Wyatt. For questions or feedback, visit wyattau.com.