CompTIA Security+ SY0-701 Practice Questions with Explanations

177 questions · Cybersecurity · by Study Foxy

Study these questions free

Questions

  1. A company installs a locked fence around its data center. Which control category is this?

    • Physical
    • Managerial
    • Technical
    • Operational
  2. A firewall rule blocks inbound traffic on port 23. Which control category is this?

    • Technical
    • Physical
    • Managerial
    • Operational
  3. Leadership publishes a policy requiring an annual risk assessment. Which control category is this?

    • Managerial
    • Technical
    • Physical
    • Operational
  4. After a ransomware attack, an admin restores servers from clean backups. Which control type is the backup?

    • Corrective
    • Detective
    • Deterrent
    • Preventive
  5. A sign on the fence reads "Premises monitored by video surveillance." Which control type is the sign?

    • Deterrent
    • Corrective
    • Detective
    • Compensating
  6. A legacy controller can't be patched, so it is moved onto an isolated VLAN with strict ACLs. What kind of control is the isolation?

    • Compensating
    • Directive
    • Corrective
    • Deterrent
  7. Comparing a file's current SHA-256 hash to its original hash protects which part of the CIA triad?

    • Integrity
    • Confidentiality
    • Availability
    • Authorization
  8. Which technology provides non-repudiation for an email?

    • Digital signature
    • Symmetric encryption
    • Salted password hash
    • TLS session key
  9. A user types a password to prove they own the account they claimed. Which AAA step is this?

    • Authentication
    • Authorization
    • Accounting
    • Auditing
  10. In a Zero Trust architecture, which component decides whether a subject is granted access?

    • Policy engine
    • Policy enforcement point
    • Implicit trust zone
    • Data plane switch
  11. A fake cloud access key is planted in a code repository. Any use of it triggers an alert. What is this?

    • Honeytoken
    • Honeypot
    • Honeynet
    • Sinkhole
  12. In change management, what is a backout plan?

    • Steps to return to the prior state if the change fails
    • A list of users who must approve the change
    • A schedule of the maintenance window
    • A record of who made each change
  13. An organization compares its current security posture to a target framework to find what's missing. What is this called?

    • Gap analysis
    • Tabletop exercise
    • Root cause analysis
    • Business impact analysis
  14. Which algorithm is symmetric?

    • AES
    • RSA
    • ECC
    • Diffie-Hellman
  15. Two parties need to agree on a shared secret over an untrusted network without sending the secret itself. Which method fits?

    • Diffie-Hellman
    • SHA-256 hashing
    • AES-CBC mode
    • Base64 encoding
  16. Why is a random salt added to each password before hashing?

    • So identical passwords produce different hashes
    • So the hash can be reversed if needed
    • So the hash is shorter and faster to store
    • So the password can't be changed later
  17. A browser needs to check, in real time, whether a single certificate has been revoked. Which protocol does it use?

    • OCSP
    • CRL
    • CSR
    • PEM
  18. Which hostname does a certificate for *.example.com cover?

    • mail.example.com
    • example.com
    • dev.mail.example.com
    • mail.example.net
  19. Which technique makes a weak password harder to brute force by running the hash many thousands of times?

    • Key stretching
    • Key escrow
    • Tokenization
    • Data masking
  20. A laptop stores its full-disk encryption keys in a chip soldered to the motherboard. What is that chip?

    • TPM
    • HSM
    • KMS
    • CASB
  21. An attacker hides a text file inside the pixel data of a JPEG. What technique is this?

    • Steganography
    • Obfuscation by hashing
    • Tokenization
    • Data masking
  22. A payment system replaces card numbers with random values and keeps the real numbers in a secure vault. What is this?

    • Tokenization
    • Hashing
    • Data masking
    • Key stretching
  23. Which physical control is designed to stop tailgating into a secure area?

    • Access control vestibule
    • Reinforced bollards
    • Motion-sensing lights
    • Industrial camouflage
  24. Alice wants to send Bob a message only Bob can read. Which key does she encrypt it with?

    • Bob's public key
    • Bob's private key
    • Alice's private key
    • Alice's public key
  25. Bob receives a digitally signed message from Alice. Which key does he use to verify the signature?

    • Alice's public key
    • Alice's private key
    • Bob's private key
    • Bob's public key
  26. In symmetric encryption, the same key is used to encrypt and decrypt.

    True or false

  27. Hashing is reversible if you have the correct key.

    True or false

  28. An employee gets a text message with a link claiming their package is held at customs. What is this attack?

    • Smishing
    • Vishing
    • Whaling
    • Pharming
  29. An attacker calls the help desk pretending to be a manager and asks for a password reset. What is this?

    • Vishing
    • Smishing
    • Typosquatting
    • Watering hole
  30. An attacker registers examp1e.com to catch users who mistype example.com. What is this?

    • Typosquatting
    • Domain hijacking
    • DNS poisoning
    • Brand impersonation
  31. Attackers compromise a trade-association website that employees of a target company visit often. What attack is this?

    • Watering hole
    • Spear phishing
    • Pharming
    • Credential stuffing
  32. An attacker uses one common password, like Spring2026!, against thousands of accounts. What is this?

    • Password spraying
    • Credential stuffing
    • Brute force
    • Rainbow table attack
  33. An attacker takes username/password pairs leaked from one site and tries them on a bank's login page. What is this?

    • Credential stuffing
    • Password spraying
    • Pass-the-hash
    • Dictionary attack
  34. Malware spreads across the network on its own, with no user action. What type is it?

    • Worm
    • Virus
    • Trojan
    • Logic bomb
  35. A free game download secretly installs a backdoor. What type of malware is this?

    • Trojan
    • Worm
    • Rootkit
    • Bloatware
  36. A fired developer left code that deletes the payroll database if his account is ever disabled. What is this?

    • Logic bomb
    • Worm
    • Keylogger
    • Spyware
  37. Malware hides itself by modifying the operating system kernel so antivirus can't see it. What is it?

    • Rootkit
    • Adware
    • Ransomware
    • Worm
  38. A login form accepts the username ' OR 1=1 -- and lets the attacker in. What is the best fix?

    • Parameterized queries
    • A longer password policy
    • Disabling the login form's CSS
    • Encrypting the database at rest
  39. An attacker posts a forum comment containing a script that runs in every visitor's browser. What is this?

    • Stored cross-site scripting
    • SQL injection
    • Directory traversal
    • Server-side request forgery
  40. A web request includes ../../../../etc/passwd in a file parameter. What attack is being attempted?

    • Directory traversal
    • Cross-site scripting
    • Buffer overflow
    • Replay attack
  41. A program writes more data into a memory region than it can hold, overwriting nearby memory. What is this vulnerability?

    • Buffer overflow
    • Race condition
    • Memory leak
    • Integer rounding
  42. A program checks that a file is safe, but the attacker swaps the file before the program uses it. What is this?

    • Race condition (TOCTOU)
    • Buffer overflow
    • Cross-site request forgery
    • Directory traversal
  43. An attacker captures a valid authentication message and resends it later to log in. What mitigation works best?

    • Timestamps or nonces in each message
    • A stronger hashing algorithm
    • Longer encryption keys
    • Disabling account lockout
  44. An attacker sends small DNS queries with a spoofed source address so huge responses flood the victim. What is this?

    • Amplification DDoS
    • DNS tunneling attack
    • Domain hijacking
    • ARP cache poisoning
  45. An attacker forces a TLS connection to use an older, weaker protocol version. What attack is this?

    • Downgrade attack
    • Birthday attack
    • Collision attack
    • Replay attack
  46. Which attack tries to find two different inputs that produce the same hash value?

    • Birthday attack
    • Downgrade attack
    • Pass-the-hash
    • Rainbow table attack
  47. A vendor's signed software update is compromised before it ships to thousands of customers. What type of attack is this?

    • Supply chain attack
    • Watering hole attack
    • Insider threat
    • Zero-click exploit
  48. An exploit targets a flaw the vendor doesn't know about and has no patch for. What is it called?

    • Zero-day
    • Known CVE
    • End-of-life flaw
    • Misconfiguration
  49. Which threat actor is most associated with long-term, well-funded campaigns for espionage?

    • Nation-state
    • Unskilled attacker
    • Hacktivist
    • Shadow IT user
  50. A group defaces a company website to protest the company's environmental record. What is the most likely motivation?

    • Ideological beliefs
    • Financial gain
    • Espionage for a government
    • Blackmail of executives

Showing 50 of 177. Open the quiz to study them all.