CompTIA A+ Core 2 · Domain 2 of 4 · 28% of the exam

CompTIA A+ Core 2 Domain 2: Security

61 free practice questions for Security in the CompTIA A+ Core 2 (220-1202) exam. Try each question first, then open "Show answer" for the correct option and explanation.

Security practice questions

  1. Question 1. A data center wants to stop vehicles from being driven into the building entrance. Which physical control fits?

    1. Bollards in front of the entrance
    2. Badge readers on the inner doors
    3. Motion sensors in the server room
    4. Cable locks on each workstation
    Show answer

    Answer: A. Bollards in front of the entrance

    Bollards are sturdy posts that stop vehicles reaching a building or entrance.

  2. Question 2. An office entrance has two doors, and the second door opens only after the first has closed and the person has been verified. What is this called?

    1. A screened subnet
    2. An access control vestibule
    3. A magnetometer gate
    4. A badge reader kiosk
    Show answer

    Answer: B. An access control vestibule

    An access control vestibule (formerly mantrap) holds one person between two doors, which prevents tailgating.

  3. Question 3. A venue scans visitors for metal weapons as they walk through the entrance. Which device is used?

    1. A magnetometer
    2. A retina scanner
    3. A badge reader
    4. A smart card
    Show answer

    Answer: A. A magnetometer

    Magnetometers (metal detectors) detect metal objects carried by people.

  4. Question 4. Which physical access method lets employees unlock doors by tapping their phone against a reader?

    1. A traditional metal key cut for the door
    2. A retina scan performed at the doorway
    3. A mobile digital key stored on the phone
    4. A security guard checking printed lists
    Show answer

    Answer: C. A mobile digital key stored on the phone

    Mobile digital keys store an access credential on the phone and use NFC or Bluetooth at the reader.

  5. Question 5. Which biometric method identifies a person by the pattern of blood vessels at the back of the eye?

    1. A palm print scanner
    2. A voice recognition system
    3. A fingerprint scanner
    4. A retina scanner
    Show answer

    Answer: D. A retina scanner

    Retina scanners map the blood vessels of the retina. Palm, fingerprint, face, and voice are other biometric factors.

  6. Question 6. A help desk technician is given only the permissions needed to reset passwords, not to change server settings. Which principle is this?

    1. The principle of least privilege
    2. The principle of implicit trust
    3. The principle of open access
    4. The principle of shared accounts
    Show answer

    Answer: A. The principle of least privilege

    Least privilege gives each user only the access needed for their job, which limits the damage from mistakes or compromised accounts.

  7. Question 7. A company stops trusting devices just because they are on the internal network and checks every request for identity and device health. Which model is this?

    1. Defense by obscurity
    2. Perimeter-only security
    3. Implicit internal trust
    4. Zero Trust
    Show answer

    Answer: D. Zero Trust

    Zero Trust means "never trust, always verify": every access request is authenticated and authorized, wherever it comes from.

  8. Question 8. Which MFA method generates a new six-digit code every 30 seconds in an app on the user's phone?

    1. A Security Assertion Markup Language (SAML) assertion
    2. A time-based one-time password (TOTP) authenticator app
    3. A voice call that reads out a static PIN number
    4. An email that contains the user's current password
    Show answer

    Answer: B. A time-based one-time password (TOTP) authenticator app

    TOTP apps compute short-lived codes from a shared secret and the current time.

  9. Question 9. Why are SMS codes considered a weaker MFA method than an authenticator app or hardware token?

    1. Text messages can only be read on a desktop computer with a web browser
    2. Text messages always contain the user's password in plain readable text
    3. Text messages can be intercepted or redirected, for example by SIM swapping
    4. Text messages need a wired network connection to arrive on the phone
    Show answer

    Answer: C. Text messages can be intercepted or redirected, for example by SIM swapping

    SMS codes can be stolen through SIM swapping or interception, so app-based or hardware tokens are stronger.

  10. Question 10. Employees sign in once and then open the company's web apps without entering credentials again. Which technology provides this, often using SAML?

    1. Data loss prevention (DLP)
    2. Access control lists (ACLs)
    3. Mobile device management (MDM)
    4. Single sign-on (SSO)
    Show answer

    Answer: D. Single sign-on (SSO)

    SSO lets one authentication grant access to many applications. SAML is a common standard for passing that identity to web apps.

  11. Question 11. Administrators receive elevated rights only when they request them for a task, and the rights expire automatically afterward. What is this approach?

    1. Permanent administrator access granted to all IT staff members
    2. Shared administrator accounts with a password everyone knows
    3. Just-in-time access managed through privileged access management (PAM)
    4. Guest accounts with elevated rights enabled on every system
    Show answer

    Answer: C. Just-in-time access managed through privileged access management (PAM)

    Just-in-time access with PAM reduces standing privileges, so admin rights exist only when needed and are logged.

  12. Question 12. A company wants to stop employees emailing files that contain credit card numbers outside the organization. Which technology is designed for this?

    1. Single sign-on (SSO)
    2. Data loss prevention (DLP)
    3. Directory services
    4. Remote desktop
    Show answer

    Answer: B. Data loss prevention (DLP)

    DLP inspects data in use, in motion, or at rest and can block or alert on sensitive content such as card numbers.

  13. Question 13. Which service stores user accounts, groups, and computers centrally so that they can sign in across an organization?

    1. A directory service such as Active Directory
    2. A ticketing system such as a help desk app
    3. A knowledge base such as an internal wiki
    4. A backup service such as a cloud vault
    Show answer

    Answer: A. A directory service such as Active Directory

    Directory services hold identities and groups centrally and authenticate users across the network.

  14. Question 14. Which Wi-Fi security protocol replaces the pre-shared key handshake with SAE to resist offline password-guessing attacks?

    1. WPA2
    2. WEP
    3. WPA3
    4. TKIP
    Show answer

    Answer: C. WPA3

    WPA3-Personal uses Simultaneous Authentication of Equals (SAE), which protects against offline dictionary attacks on captured handshakes.

  15. Question 15. An older wireless network is configured for WPA2 with TKIP. What should be changed?

    1. Use WEP encryption, because TKIP is slower than older methods
    2. Use no encryption, because TKIP is already built into WPA2
    3. Use a hidden SSID, because TKIP only works with visible names
    4. Use AES (CCMP) encryption, because TKIP is outdated and weak
    Show answer

    Answer: D. Use AES (CCMP) encryption, because TKIP is outdated and weak

    TKIP was a stopgap from the WEP era and is deprecated. WPA2 and WPA3 should use AES.

  16. Question 16. Which authentication protocol, used by Active Directory, issues tickets so that users do not send their passwords across the network to each service?

    1. RADIUS
    2. Kerberos
    3. TACACS+
    4. TKIP
    Show answer

    Answer: B. Kerberos

    Kerberos uses a ticket-granting system so users authenticate once and receive tickets for services. RADIUS and TACACS+ are AAA protocols.

  17. Question 17. Which AAA protocol separates authentication, authorization, and accounting and is often used for administrator access to network devices?

    1. TACACS+
    2. RADIUS
    3. Kerberos
    4. WPA3
    Show answer

    Answer: A. TACACS+

    TACACS+ handles each AAA function separately and encrypts the whole payload, which suits device administration. RADIUS combines authentication and authorization.

  18. Question 18. A user opens what looks like a free game, and it secretly installs a backdoor. What type of malware is this?

    1. A Trojan
    2. A worm
    3. An adware bar
    4. A boot sector virus
    Show answer

    Answer: A. A Trojan

    A Trojan disguises itself as legitimate software to trick users into running it, then performs hidden malicious actions.

  19. Question 19. Malware hides itself deep in the operating system so that antivirus scans running inside Windows cannot see it. What is this?

    1. A keylogger
    2. Adware
    3. A cryptominer
    4. A rootkit
    Show answer

    Answer: D. A rootkit

    Rootkits gain privileged access and conceal themselves and other malware. Scanning from outside the OS, such as from boot media, helps find them.

  20. Question 20. A PC's fans run at full speed and the CPU stays near 100% because hidden software is generating cryptocurrency. What is this malware called?

    1. Ransomware
    2. A cryptominer
    3. Stalkerware
    4. A rootkit
    Show answer

    Answer: B. A cryptominer

    Cryptominers (cryptojackers) steal computing power to mine cryptocurrency, causing high CPU use, heat, and slowness.

  21. Question 21. A user suspects that a partner installed an app on their phone that secretly tracks their location and reads their messages. What is this type of software?

    1. Adware
    2. A cryptominer
    3. Stalkerware
    4. A boot sector virus
    Show answer

    Answer: C. Stalkerware

    Stalkerware is spyware used to monitor a specific person covertly, often installed by someone with physical access to the device.

  22. Question 22. Malware runs entirely in memory using built-in tools such as PowerShell and leaves no executable file on disk. What is this called?

    1. A boot sector virus
    2. A potentially unwanted program
    3. Fileless malware
    4. A macro-free Trojan file
    Show answer

    Answer: C. Fileless malware

    Fileless malware abuses legitimate tools and lives in memory or the registry, which makes file-based antivirus less effective.

  23. Question 23. A free utility came bundled with a browser toolbar that changes the home page but is not clearly malicious. How is this usually classified?

    1. A kernel-mode rootkit (stealth malware)
    2. A potentially unwanted program (PUP)
    3. A boot sector virus (MBR infector)
    4. Crypto ransomware (file encryptor)
    Show answer

    Answer: B. A potentially unwanted program (PUP)

    PUPs are unwanted programs often bundled with other software, such as toolbars and adware. They are flagged but are not always malicious.

  24. Question 24. Which security tool continuously monitors endpoints for suspicious behaviour and lets analysts investigate and isolate a compromised PC?

    1. Endpoint detection and response (EDR)
    2. A recovery console (Windows RE)
    3. A screened subnet (DMZ)
    4. A password manager vault
    Show answer

    Answer: A. Endpoint detection and response (EDR)

    EDR records endpoint activity, detects suspicious behaviour, and supports investigation and response such as isolating the device.

  25. Question 25. A small company has no security staff and pays an outside provider to monitor and respond to threats on its endpoints around the clock. What is this service?

    1. Extended detection and response (XDR)
    2. Data loss prevention (DLP)
    3. Identity access management (IAM)
    4. Managed detection and response (MDR)
    Show answer

    Answer: D. Managed detection and response (MDR)

    MDR is a managed service where an external team monitors, investigates, and responds using detection tools. XDR correlates data across many sources.

  26. Question 26. Which tool filters incoming mail for spam, phishing, and malicious attachments before it reaches users' inboxes?

    1. A software firewall
    2. An email security gateway
    3. A recovery console
    4. A proxy auto-config file
    Show answer

    Answer: B. An email security gateway

    An email security gateway scans mail for spam, phishing links, and malware attachments at the edge of the mail system.

  27. Question 27. A user receives a phone call from someone claiming to be the bank, asking them to read out a one-time code. What is this attack?

    1. Vishing
    2. Smishing
    3. Whaling
    4. Tailgating
    Show answer

    Answer: A. Vishing

    Vishing is voice phishing. Smishing uses text messages, and whaling targets senior executives.

  28. Question 28. Posters in a parking lot have QR codes that lead to a fake payment site that steals card details. What is this attack?

    1. Dumpster diving
    2. Shoulder surfing
    3. QR code phishing
    4. Evil twin
    Show answer

    Answer: C. QR code phishing

    QR code phishing (quishing) uses QR codes to send victims to malicious sites, bypassing link checks in email.

  29. Question 29. An attacker sends a carefully researched email to the company's CFO, pretending to be the CEO and asking for an urgent wire transfer. What is this?

    1. Vishing
    2. Smishing
    3. Spoofing a MAC address
    4. Whaling
    Show answer

    Answer: D. Whaling

    Whaling is spear phishing aimed at senior executives. Requests for urgent payments are typical.

  30. Question 30. A visitor carrying two boxes asks an employee to hold the server-room door open for them, and walks in without scanning a badge. Which social engineering technique is this?

    1. Tailgating, helped by the employee's politeness
    2. Vishing, helped by a convincing phone call
    3. Whaling, helped by a forged executive email
    4. Smishing, helped by an urgent text message
    Show answer

    Answer: A. Tailgating, helped by the employee's politeness

    Tailgating (piggybacking) is entering a secure area behind an authorized person. Access control vestibules and training reduce it.

  31. Question 31. An attacker watches a user type their PIN at a coffee shop. What is this?

    1. Dumpster diving
    2. Shoulder surfing
    3. Tailgating
    4. Vishing
    Show answer

    Answer: B. Shoulder surfing

    Shoulder surfing is observing someone's screen or keypad to steal information. Privacy filters and awareness help.

  32. Question 32. An attacker searches through a company's rubbish bins for printed invoices and old notes with passwords. What is this called?

    1. Shoulder surfing
    2. Impersonation
    3. Whaling
    4. Dumpster diving
    Show answer

    Answer: D. Dumpster diving

    Dumpster diving recovers useful information from discarded material. Shredding documents prevents it.

  33. Question 33. In a hotel, a laptop connects to a Wi-Fi network with the hotel's name, but it is actually a rogue access point run by an attacker. What is this?

    1. A zero-day attack
    2. A dictionary attack
    3. An evil twin
    4. An insider threat
    Show answer

    Answer: C. An evil twin

    An evil twin imitates a legitimate SSID so victims connect and their traffic can be intercepted.

  34. Question 34. Thousands of compromised devices flood a company's website with traffic until it stops responding. What is this attack?

    1. A structured query language (SQL) injection
    2. A distributed denial of service (DDoS)
    3. A business email compromise (BEC)
    4. A cross-site scripting (XSS) attack
    Show answer

    Answer: B. A distributed denial of service (DDoS)

    A DDoS uses many sources to overwhelm a target. A DoS comes from one source.

  35. Question 35. Attackers exploit a flaw in software that the vendor does not know about yet and has not patched. What is this?

    1. A zero-day attack
    2. A dictionary attack
    3. A tailgating attack
    4. An evil twin attack
    Show answer

    Answer: A. A zero-day attack

    A zero-day exploits a vulnerability before a fix is available, so patching alone cannot prevent it.

  36. Question 36. An attacker tries every word in a large list of common passwords against a user account. What is this attack?

    1. A zero-day attack
    2. An on-path attack
    3. A dictionary attack
    4. A supply chain attack
    Show answer

    Answer: C. A dictionary attack

    A dictionary attack tries likely passwords from a wordlist. A brute-force attack tries every possible combination.

  37. Question 37. An attacker positions themselves between a user and a website to read and alter traffic. What is this called?

    1. A brute-force attack
    2. A dumpster diving attack
    3. A whaling attack
    4. An on-path attack
    Show answer

    Answer: D. An on-path attack

    An on-path (formerly man-in-the-middle) attack intercepts communication between two parties.

  38. Question 38. A web form passes user input straight into a database query, and an attacker enters code that dumps the customer table. What is this attack?

    1. Cross-site scripting
    2. SQL injection
    3. Evil twin
    4. Tailgating
    Show answer

    Answer: B. SQL injection

    SQL injection inserts database commands through unvalidated input. Parameterized queries prevent it.

  39. Question 39. Attackers compromise a trusted software vendor's update server and push malware to all of its customers. What type of attack is this?

    1. A shoulder surfing attack
    2. A dictionary attack
    3. A supply chain attack
    4. An evil twin attack
    Show answer

    Answer: C. A supply chain attack

    A supply chain attack compromises a supplier or build pipeline to reach many downstream victims.

  40. Question 40. A disgruntled employee copies confidential files before leaving the company. Which threat does this represent?

    1. An insider threat
    2. A zero-day threat
    3. An evil twin threat
    4. A spoofing threat
    Show answer

    Answer: A. An insider threat

    Insider threats come from people with legitimate access, such as employees or contractors, whether malicious or careless.

  41. Question 41. Which Windows setting prompts for permission or administrator credentials before a program makes system-level changes?

    1. Encrypting File System (EFS)
    2. BitLocker To Go
    3. Windows Hello
    4. User Account Control (UAC)
    Show answer

    Answer: D. User Account Control (UAC)

    UAC runs apps with standard rights and asks for consent or admin credentials when elevation is needed.

  42. Question 42. A user needs to encrypt a USB flash drive so the data is protected if it is lost. Which Windows feature does this?

    1. Encrypting File System
    2. BitLocker To Go
    3. Windows Defender Firewall
    4. User Account Control
    Show answer

    Answer: B. BitLocker To Go

    BitLocker To Go encrypts removable drives, protected by a password or smart card.

  43. Question 43. A user wants to encrypt a single folder of files on an NTFS drive so that only their account can read them. Which feature does this?

    1. Encrypting File System (EFS)
    2. BitLocker To Go (removable drives)
    3. Disk Cleanup (cleanmgr)
    4. Secure Boot (UEFI)
    Show answer

    Answer: A. Encrypting File System (EFS)

    EFS encrypts individual files and folders on NTFS, tied to the user's certificate. BitLocker encrypts whole volumes.

  44. Question 44. A shared folder grants Everyone "Full Control" at the share level, and the NTFS permissions give the Sales group "Read". What access does a Sales user have over the network?

    1. Full Control, because share permissions always override NTFS permissions
    2. No access, because share and NTFS permissions can never be combined
    3. Modify, because the share and NTFS permissions are added together
    4. Read, because the most restrictive of the share and NTFS permissions applies
    Show answer

    Answer: D. Read, because the most restrictive of the share and NTFS permissions applies

    Over the network, the effective permission is the more restrictive of the share and NTFS permissions.

  45. Question 45. A file is moved to a new folder on the same NTFS volume. What usually happens to its permissions?

    1. It loses all permissions and becomes readable by every user
    2. It always takes the permissions of the destination folder
    3. It keeps its original permissions when moved within the same volume
    4. It becomes encrypted with the destination folder owner's key
    Show answer

    Answer: C. It keeps its original permissions when moved within the same volume

    Moving within a volume keeps explicit permissions; copying, or moving to another volume, inherits the destination folder's permissions.

  46. Question 46. A user wants to sign in to Windows with a PIN or face recognition instead of a password. Which feature provides this?

    1. Windows Hello
    2. BitLocker
    3. Defender
    4. Robocopy
    Show answer

    Answer: A. Windows Hello

    Windows Hello provides PIN, facial, and fingerprint sign-in. The PIN is tied to the device, not the account password.

  47. Question 47. A technician needs to place several user accounts in Active Directory so that one Group Policy applies to them. What should be done?

    1. Copy the accounts into a local group on each workstation they use
    2. Rename the accounts so they all start with the policy's name
    3. Move the accounts into an organizational unit (OU) linked to that policy
    4. Add the accounts to the Guests group on the domain controller
    Show answer

    Answer: C. Move the accounts into an organizational unit (OU) linked to that policy

    Group Policy is linked to OUs (and sites and domains). Moving objects into the right OU applies its policies.

  48. Question 48. Users' Documents folders should be stored on a file server so they are backed up centrally, while still appearing local. Which Active Directory feature does this?

    1. Login scripts
    2. Folder redirection
    3. Account lockout
    4. Security groups
    Show answer

    Answer: B. Folder redirection

    Folder redirection points known folders such as Documents to a network location, so data is stored and backed up on the server.

  49. Question 49. Which account setting helps protect against brute-force password guessing on a workstation?

    1. Enable the guest account so attackers use it instead of real ones
    2. Remove the screen lock timeout so users stay signed in longer
    3. Allow blank passwords so users never forget their credentials
    4. Lock the account after a set number of failed sign-in attempts
    Show answer

    Answer: D. Lock the account after a set number of failed sign-in attempts

    Account lockout after failed attempts slows down or stops password guessing. Disable the guest account and use screen locks too.

  50. Question 50. Why should AutoRun and AutoPlay be disabled on workstations?

    1. They can format every USB drive automatically when it is inserted
    2. They can change the user's password automatically every week
    3. They can run malicious code automatically when removable media is inserted
    4. They can disable the firewall automatically when Wi-Fi is used
    Show answer

    Answer: C. They can run malicious code automatically when removable media is inserted

    AutoRun has been used by malware to spread through USB drives. Disabling it requires users to open media deliberately.

  51. Question 51. Which step should be taken on every new workstation and network device before deployment?

    1. Change the default administrator account name and password
    2. Enable the guest account and give it local administrator rights
    3. Turn off the screen lock so the user can sign in faster
    4. Install every available browser toolbar from the vendor
    Show answer

    Answer: A. Change the default administrator account name and password

    Default credentials are widely published, so changing them is a basic hardening step.

  52. Question 52. A company laptop is reported stolen. Which mobile security measure can remove company data from it?

    1. A screen brightness change through MDM
    2. A ringtone change through the phone app
    3. A wallpaper change through the settings app
    4. A remote wipe sent through MDM
    Show answer

    Answer: D. A remote wipe sent through MDM

    MDM can remotely wipe a lost device, or wipe only company data on BYOD devices. Device encryption protects data until then.

  53. Question 53. A company wants employees' phones to erase all data after 10 failed unlock attempts. What is this setting?

    1. A remote backup application
    2. A failed log-in attempts restriction
    3. A locator application
    4. A content filtering profile
    Show answer

    Answer: B. A failed log-in attempts restriction

    Limiting failed attempts, with lockouts or a wipe, protects data if a phone is lost or stolen.

  54. Question 54. Old hard drives containing customer data must be destroyed so they can never be read. Which method is most suitable?

    1. Physical destruction, such as shredding or drilling the drives
    2. A standard format of each drive before resale
    3. Deleting the files and emptying the recycle bin
    4. Moving the drives to a storage room for later use
    Show answer

    Answer: A. Physical destruction, such as shredding or drilling the drives

    Physical destruction makes data unrecoverable. A standard format or deletion leaves data that recovery tools can read.

  55. Question 55. A degausser is used on a stack of old drives. Which drive type will it NOT reliably erase?

    1. Hard disk drives, which store data on magnetic platters inside
    2. Magnetic backup tapes, which store data on coated tape reels
    3. Floppy disks, which store data on a magnetic plastic disk
    4. Solid-state drives, which store data in flash memory, not magnetically
    Show answer

    Answer: D. Solid-state drives, which store data in flash memory, not magnetically

    Degaussing erases magnetic media. SSDs use flash memory, so they need secure erase or physical destruction.

  56. Question 56. A company hires a vendor to destroy its old drives. What should it get from the vendor as proof?

    1. A software licence key
    2. A certificate of destruction
    3. A service-level agreement
    4. A change request form
    Show answer

    Answer: B. A certificate of destruction

    A certificate of destruction documents that the media were destroyed, which supports compliance and audits.

  57. Question 57. Which SOHO router setting should be disabled because it lets devices open ports automatically without the owner's knowledge?

    1. Firmware update notifications
    2. WPA3 encryption
    3. Universal Plug and Play (UPnP)
    4. Content filtering
    Show answer

    Answer: C. Universal Plug and Play (UPnP)

    UPnP lets applications and devices open inbound ports automatically, which malware can abuse.

  58. Question 58. A home office wants visitors to have internet access without reaching the office PCs and printer. What should be configured on the wireless router?

    1. A guest network that is isolated from the main network
    2. A hidden SSID for the main network only
    3. A port forwarding rule for each visitor
    4. A disabled DHCP server for the main network
    Show answer

    Answer: A. A guest network that is isolated from the main network

    A guest network gives internet access while isolating guests from internal devices.

  59. Question 59. Which browser practice helps confirm that a downloaded installer has not been tampered with?

    1. Rename the file before running it to change its signature
    2. Run the file twice to check that it behaves the same way
    3. Open the file in a private window to avoid tracking it
    4. Compare the file's hash with the one published by the vendor
    Show answer

    Answer: D. Compare the file's hash with the one published by the vendor

    A matching hash (such as SHA-256) shows the file is identical to what the vendor published.

  60. Question 60. A browser shows a warning that a site's certificate is invalid on a banking website. What should the user do?

    1. Continue to the site, because certificate warnings are harmless
    2. Not continue to the site, and report the warning
    3. Disable the browser's certificate checks for all websites
    4. Clear the cache, then enter the bank password again
    Show answer

    Answer: B. Not continue to the site, and report the warning

    Certificate warnings can indicate an on-path attack or a fake site. Users should not enter credentials when they appear.

  61. Question 61. Which browser feature helps users create and store a unique strong password for every website?

    1. A pop-up blocker
    2. Private browsing mode
    3. A password manager
    4. An ad blocker
    Show answer

    Answer: C. A password manager

    Password managers generate and store unique passwords, so a breach at one site does not expose others.

CompTIA and A+ are trademarks or registered trademarks of CompTIA, Inc. These questions are original study material, not questions from the real exam.