Skip to main content

AP Cybersecurity Unit 4 practice questions

Try 10 multiple-choice questions from Unit 4 here. Pick an answer to see why it's right or wrong, then take the timed test above for a full AP-style set.

  1. Question 1

    === /var/log/auth/webapp_login.log — portal.intranet.local === $ grep 'portal' /var/log/auth/webapp_login.log

    001 2024-03-14 02:11:03 FAIL user=jmorrow src=203.0.113.47 ua="python-requests/2.28" reason=invalid_password 002 2024-03-14 02:11:05 FAIL user=jmorrow src=203.0.113.47 ua="python-requests/2.28" reason=invalid_password 003 2024-03-14 02:11:07 FAIL user=jmorrow src=203.0.113.47 ua="python-requests/2.28" reason=invalid_password 004 2024-03-14 02:11:09 FAIL user=jmorrow src=203.0.113.47 ua="python-requests/2.28" reason=invalid_password 005 2024-03-14 02:11:11 FAIL user=jmorrow src=203.0.113.47 ua="python-requests/2.28" reason=invalid_password 006 2024-03-14 02:11:13 FAIL user=jmorrow src=203.0.113.47 ua="python-requests/2.28" reason=invalid_password 007 2024-03-14 02:11:15 FAIL user=jmorrow src=203.0.113.47 ua="python-requests/2.28" reason=invalid_password 008 2024-03-14 02:11:17 FAIL user=jmorrow src=203.0.113.47 ua="python-requests/2.28" reason=invalid_password 009 2024-03-14 02:11:19 FAIL user=jmorrow src=203.0.113.47 ua="python-requests/2.28" reason=invalid_password 010 2024-03-14 02:11:21 FAIL user=jmorrow src=203.0.113.47 ua="python-requests/2.28" reason=invalid_password 011 2024-03-14 02:11:23 SUCCESS user=jmorrow src=203.0.113.47 ua="python-requests/2.28" session_id=8f3a91c 012 2024-03-14 09:44:02 SUCCESS user=jmorrow src=192.168.10.55 ua="Mozilla/5.0 (Windows NT 10.3)" session_id=2b7d04e

    === Account Profile: jmorrow === Registered device(s): 192.168.10.55 (laptop-jmorrow.corp) MFA enabled: NO Last known good login: 2024-03-13 09:31:17 src=192.168.10.55

    === Password Hint on File === "My dog Biscuit's birth year and my lucky symbol"

    Which of the following best classifies the malicious activity shown in the log excerpt?

    An automated brute-force attack targeting a specific user's credentials.

    A credential stuffing attack utilizing a distributed botnet network.

    A session hijacking attack exploiting a vulnerable authentication token.

    A password spraying attack targeting the organization's user directory.

    Show answer

    Answer: (A)

    The evidence of a single targeted user, a programmatic user agent, and repeated rapid failures before success points definitively to an automated brute-force or dictionary attack.

  2. Question 2

    A user gets a social media message from an account claiming to be a popular streaming service: 'Your subscription payment failed. Verify your billing details now or your account will be permanently deleted.' A security-aware employee wants to apply layered controls to reduce this risk. Which combination of controls best addresses the social engineering vulnerability?

    User training to recognize urgency and intimidation tactics, plus multi-factor authentication on the streaming account

    Antivirus software on the device and a firewall blocking social media platforms entirely

    Encrypting the user's device storage and requiring a strong password on the streaming account

    User training to recognize urgency and intimidation tactics, plus blocking all incoming social media messages

    Show answer

    Answer: (A)

    Layered security combines a human-layer control (training users to spot the urgency of 'now' and the intimidation of 'permanently deleted') with a technical control (multi-factor authentication) that limits damage even if credentials are surrendered. Together they address both the psychological vulnerability and the account-takeover consequence.

  3. Question 3

    A security team is designing layered controls after discovering that employees were tricked into sharing one-time passcodes (OTPs) over the phone by callers claiming to be bank fraud investigators. Which layered approach most directly addresses both the psychological vulnerability and the technical exposure created by this attack?

    Security awareness training on OTP elicitation tactics, combined with hardware security keys that replace SMS-based OTPs

    Security awareness training on OTP elicitation tactics, combined with requiring longer and more complex OTP codes

    Blocking all incoming phone calls to employees and requiring written requests for any account verification

    Encrypting all OTP messages in transit and requiring employees to verify caller identity through a callback number

    Show answer

    Answer: (A)

    Training addresses the psychological vulnerability by teaching employees that legitimate organizations never request an OTP the organization just sent, targeting the intimidation and urgency tactics used in these calls. Replacing SMS-based OTPs with hardware security keys removes the shareable code entirely, so even a manipulated employee cannot hand over a usable credential.

  4. Question 4

    A victim of a social engineering attack reveals their mother's maiden name and childhood pet's name to someone posing as a bank representative. Which security control would most directly reduce the risk that this information enables account takeover?

    Replacing knowledge-based challenge questions with hardware security keys for identity verification

    Requiring victims to change their email address immediately after any suspicious phone call

    Installing antivirus software on the victim's device to scan for unauthorized access attempts

    Blocking all incoming calls from unknown numbers using the victim's mobile carrier settings

    Show answer

    Answer: (A)

    Recognizing that the stolen details (maiden name, pet's name) are classic challenge-question answers reveals the vulnerability: knowledge-based authentication. Replacing those questions with hardware security keys eliminates the pathway the adversary would use, since physical possession of the key cannot be socially engineered over a phone call.

  5. Question 5

    An adversary spends two weeks collecting a target's birthdate, hometown, employer, and childhood nickname from public social media before attempting account takeover. Which layered security control strategy best addresses this reconnaissance risk?

    Replace knowledge-based recovery with authenticator app codes and review reset options

    Install a network firewall and audit outbound traffic logs for hostile connections

    Enable full-disk encryption and audit file-access logs for unauthorized document reads

    Deploy antivirus software and audit browser extensions for credential-harvesting behavior

    Show answer

    Answer: (A)

    Those details can defeat knowledge-based account recovery. Removing challenge questions and reviewing reset paths eliminates the information the adversary collected.

  6. Question 6

    An employee receives a text message claiming to be from IT support, asking them to share the six-digit login code just sent to their phone. The employee complies and reads the code aloud. Which security control would most directly prevent an adversary from exploiting the code the victim just revealed?

    Implementing multi-factor authentication that requires a second code sent to a registered email address instead of the phone

    Binding authentication codes to the originating device so codes entered elsewhere are automatically rejected

    Requiring employees to verify the caller's identity by asking security questions before sharing any authentication codes

    Using time-limited authentication codes that expire after 30 seconds so the adversary cannot use the code after the employee reads it aloud

    Show answer

    Answer: (B)

    Recognizing that the victim surrendered a one-time password (OTP) to an adversary who will use it from a different device, a device-binding control ensures the code is only valid when submitted from the registered device. Even with the correct code, the adversary cannot authenticate from their own machine, directly neutralizing the impact of the social engineering attack.

  7. Question 7

    A company discovers that several employees downloaded a file attached to a fraudulent email, installing malware that now steals saved passwords from their browsers. Which combination of layered security controls best addresses both the initial vulnerability and the ongoing impact of this social engineering attack?

    Email attachment sandboxing to detonate files before delivery, paired with endpoint detection to remove active malware

    Mandatory password complexity rules for all accounts, paired with regular security awareness training sessions

    Network-level encryption for all internal traffic, paired with multi-factor authentication on all employee accounts

    Disabling all external email access for employees, paired with physical security badges for server room entry

    Show answer

    Answer: (A)

    Analyzing the two-stage impact—employees were tricked into downloading malware and that malware is now actively stealing browser credentials—reveals that a layered approach must address both stages. Sandboxing intercepts malicious attachments before they reach users, while endpoint detection and response identifies and removes malware already running on compromised devices, together limiting both the initial infection vector and the ongoing credential theft.

  8. Question 8

    A social media message tricks a user into clicking a link that redirects them to a site that harvests login credentials. To prevent this outcome from recurring, a security team proposes controls at multiple layers. Which layered approach directly targets the credential-harvesting outcome?

    Browser phishing detection plus hardware security keys for login

    Network intrusion detection plus full-disk encryption on user devices

    Firewall rules blocking social media plus mandatory VPN use for remote employees

    Antivirus scans of downloaded files plus regular backups of workstation data

    Show answer

    Answer: (A)

    This pairing blocks the fake site before credentials are entered and limits what stolen passwords can do. Browser-based detection helps stop the redirect, and hardware security keys prevent login without the physical key.

  9. Question 9

    A security team is reviewing an incident where an employee downloaded a file attachment from a spoofed internal email, which then stole saved credentials from the employee's web browser. Without AI assistance, which pair of mitigations should the team implement and log to address both the immediate and systemic risk?

    Remove the malware from the device and train employees to verify sender addresses before opening attachments from internal sources

    Invalidate the employee's OTP codes and train employees to verify sender addresses before opening attachments from internal sources

    Remove the malware from the device and update the employee's account challenge questions to prevent future impersonation attempts

    Invalidate the employee's OTP codes and update the employee's account challenge questions to prevent future impersonation attempts

    Show answer

    Answer: (A)

    Removing the malware addresses the immediate technical impact—the browser credential theft—while sender-verification training targets the human vulnerability that allowed the spoofed email to succeed. Logging both actions documents the technical remediation and the awareness measure, creating a record that addresses both the impact and the social engineering tactic that enabled it.

  10. Question 10

    A university's IT security team configures its login monitoring system to generate alerts under specific conditions. The team wants to catch online password attacks as early as possible. Which alert rule would be most effective at detecting this type of attack?

    Alert when more than 10 failed logins occur for one account within 60 seconds, especially from an unrecognized device

    Alert when a user successfully logs in from a new device during normal business hours on a weekday

    Alert when any single failed login attempt is recorded, regardless of timing or device recognition status

    Alert when a user changes their password more than once in a 30-day period from a recognized device

    Show answer

    Answer: (A)

    Configuring alerts around rapid failed-login bursts from unknown devices directly targets the two most time-sensitive signs of an online password attack. Automated guessing tools produce exactly this pattern—high failure volume in a short window—making this rule effective for early detection before an attacker succeeds.

What's on the AP Cybersecurity Unit 4 practice test

The standard version takes about 77 minutes and follows the timing and directions of the AP exam, sized to one unit:

  • 20 Multiple Choice Questions (27 minutes)
  • 1 FRQ – Device Security Analysis (50 minutes)

Questions are drawn from 507 multiple-choice questions and 12 FRQs written for Unit 4, Securing Devices.

Practice AP Cybersecurity Unit 4 FRQs

Answer the unit's free-response questions one at a time and get a score on every part.

Review Unit 4 before you start

Other AP Cybersecurity unit tests