All CompTIA exams
Free SY0-701 practice test: 30 questions with answers
30 original questions for CompTIA Security+, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.
- Free questions
- 30
- Full bank
- 100 questions
- Real exam
- Maximum of 90 (multiple choice and performance-based) questions, 90 min
- Passing score
- 750 (scale 100-900)
All 30 SY0-701 questions with answers
The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.
Security Operations (6 questions)
Question 1
A SOC analyst must collect evidence from a compromised server while keeping it admissible in court. Which practice is most important?
- AMaintaining chain of custody and documenting every action taken
- BRebooting the server to clear the malware from RAM before imaging the disk
- CCopying files to a personal USB drive formatted as FAT32 for later transfer
- DDeleting logs to prevent misuse from the local host and the SIEM collector
Show answer and explanationHide answer
Correct answer: AChain of custody and documented actions preserve evidence integrity. Rebooting destroys volatile data, personal USB copies break custody, and deleting logs destroys evidence.
Question 2
A company wants to make sure its security tools produce alerts only when there is real activity, and to reduce noise over time. Which practice helps most?
- ATurning off alert generation across the SIEM and EDR consoles during the rollout period
- BIgnoring alerts with low severity in the triage queue during business hours
- CAllowing every alert to page the on-call team at night and weekends
- DTuning alert rules based on false positive review and documenting the changes
Show answer and explanationHide answer
Correct answer: DReviewing false positives and tuning rules improves signal quality over time. Turning off alerts, ignoring them and paging for everything cause missed detection or fatigue.
Question 3
Which vulnerability management activity identifies assets and their exposure before they are scanned for weaknesses?
- APenetration test report writing
- BFirewall policy rule cleanup
- CAsset inventory and classification
- DPhishing simulation campaign
Show answer and explanationHide answer
Correct answer: CAsset inventory and classification establish what must be scanned and how critical it is. Phishing simulations, reporting and firewall cleanup are different activities.
Question 4
A security team must ensure that a newly deployed server meets the baseline configuration. Which tool or practice helps verify this consistently?
- ACopying settings from a random server without reviewing them
- BIgnoring the baseline for speed during the overall deployment window
- CRelying on the administrator's memory to recall hardening settings
- DConfiguration baseline with automated compliance scanning
Show answer and explanationHide answer
Correct answer: DA configuration baseline checked by automated compliance scanning ensures consistency. Memory, random copies and ignoring baselines create drift.
Question 5
A security analyst must determine whether a file is malicious. Which technique is most appropriate for a file that is not known to antivirus signatures?
- AOpening the file on a production server to see if it runs
- BDeleting the file from the endpoint without static review
- CSandbox analysis to observe its behavior in an isolated environment
- DEmailing the file to every staff member's mailbox for team review and comment
Show answer and explanationHide answer
Correct answer: CSandboxes observe behavior safely in isolation, which reveals unknown malware. Production opening, deletion without analysis and mass emailing are unsafe or unhelpful.
Question 6
Which activity should occur before an organization decommissions a server that stored sensitive data?
- ALeaving the drives in an unlocked closet near the loading dock
- BSelling the drives without sanitization to a secondhand reseller through an online auction
- CSecurely sanitizing or destroying the storage media according to policy
- DFormatting the drives once with a quick format mode using the default settings
Show answer and explanationHide answer
Correct answer: CSanitizing or destroying media according to policy prevents data recovery. Unlocked storage, unsanitized sales and quick formats leave data recoverable.
Security Architecture (6 questions)
Question 7
A company is designing a network for a web application with a public web tier, an application tier, and a database tier. Which design best limits lateral movement if the web tier is compromised?
- ASeparate subnets with firewall rules that permit only required flows between tiers
- BA single flat network with every tier in one VLAN and no host-level filtering
- CGiving every tier administrator access to every other tier through one shared service account
- DExposing the database directly to the internet for monitoring with port 5432 open on a public IP
Show answer and explanationHide answer
Correct answer: ASegmented tiers with restrictive firewall rules limit how far an attacker can move. Flat networks, shared admin access and exposed databases all make lateral movement easier.
Question 8
Which network zone is used for servers that must accept connections from the internet but should be isolated from the internal network?
- AGuest wireless network VLAN
- BOut-of-band management VLAN
- CDemilitarized zone (DMZ)
- DBackend iSCSI storage network
Show answer and explanationHide answer
Correct answer: CA DMZ hosts publicly reachable services with restricted access to internal networks. Guest, management and storage networks serve other purposes.
Question 9
A company wants to reduce the risk of a compromised server affecting others in the same data center. Which approach best applies this idea?
- AMicro-segmentation with policies applied to individual workloads
- BDisabling host firewalls on every server to simplify troubleshooting
- CPlacing the workloads in one large subnet with one shared default gateway
- DSharing one local account with the same root password across the servers
Show answer and explanationHide answer
Correct answer: AMicro-segmentation applies policies at the workload level, which contains compromises. Single subnets, shared accounts and disabled firewalls increase spread.
Question 10
Which cloud deployment model uses infrastructure owned and operated exclusively by one organization?
- APrivate cloud
- BHybrid cloud
- CPublic cloud
- DCommunity cloud
Show answer and explanationHide answer
Correct answer: AA private cloud is dedicated to one organization. Public cloud is shared among tenants, community cloud serves a defined group, and hybrid combines models.
Question 11
A company must keep backups available if its primary data center is unavailable. Which strategy addresses this requirement?
- AStoring the backups in the same server room cabinet
- BDeleting backups after one day automatically to save space
- CKeeping backups on the same disk as the live production data
- DGeographically separate backups with tested restoration procedures
Show answer and explanationHide answer
Correct answer: DGeographically separate backups with tested restoration protect against site-level failures. Same-room, same-disk and short-lived backups do not survive a site outage.
Question 12
A firm's application must continue operating if one data center fails. Which concept describes this requirement?
- AConfidentiality through symmetric encryption
- BHigh availability through redundant sites and failover
- CNon-repudiation through digital signatures
- DObfuscation through renaming of executable files
Show answer and explanationHide answer
Correct answer: BHigh availability uses redundancy and failover to keep services running during failures. Encryption, signatures and renaming address other goals.
Threats, Vulnerabilities, and Mitigations (6 questions)
Question 13
A user receives a text message claiming to be from a bank and asks for account details. What is this attack called?
- AWhaling
- BSmishing
- CVishing
- DPharming
Show answer and explanationHide answer
Correct answer: BSmishing is phishing carried out by SMS text message. Vishing uses voice calls, whaling targets executives, and pharming redirects users to malicious sites through DNS or host manipulation.
Question 14
An attacker places a malicious device between two hosts on a network to intercept traffic. Which attack is this?
- ADenial of service
- BBrute force
- CMan-in-the-middle
- DSQL injection
Show answer and explanationHide answer
Correct answer: CA man-in-the-middle attack places the attacker between two parties to intercept or alter traffic. DoS disrupts availability, SQL injection targets databases, and brute force guesses credentials.
Question 15
Which type of malware encrypts a victim's files and demands payment for the decryption key?
- ASnoopware
- BAdware bundle
- CRootkit tool
- DRansomware
Show answer and explanationHide answer
Correct answer: DRansomware encrypts data and demands payment for recovery. Spyware gathers information, rootkits hide persistence, and adware displays unwanted advertising.
Question 16
An attacker sends a flood of requests from thousands of compromised devices to overwhelm a web service. Which attack category does this describe?
- ADistributed denial of service
- BCross-site scripting in a form field
- CPrivilege escalation via setuid
- DSession hijacking via token reuse
Show answer and explanationHide answer
Correct answer: AA flood from many compromised devices is a distributed denial-of-service attack. Privilege escalation gains higher rights, XSS injects scripts, and session hijacking takes over a session.
Question 17
An attacker enters a single quote character in a login form and the application returns a database error. Which vulnerability is most likely present?
- ACertificate pinning failure
- BSQL injection
- CClickjacking
- DDNS amplification
Show answer and explanationHide answer
Correct answer: BA database error from a quote character suggests unsanitized input to a SQL query, which is SQL injection. The other vulnerabilities do not match this behavior.
Question 18
A security analyst discovers that an application accepts a stored script in a comment field that runs for every user who views the page. Which attack is this?
- AReflected cross-site scripting
- BCertificate spoofing
- CStored cross-site scripting
- DReplay attack
Show answer and explanationHide answer
Correct answer: CA script stored in content and run for every viewer is stored cross-site scripting. Reflected XSS requires a crafted link, replay attacks resend captured messages, and certificate spoofing impersonates servers.
General Security Concepts (6 questions)
Question 19
A company wants to ensure that a message sent by an employee cannot later be denied as having been sent. Which security concept applies?
- ABinary obfuscation
- BDynamic elasticity
- CNon-repudiation
- DLinear scalability
Show answer and explanationHide answer
Correct answer: CNon-repudiation prevents a party from denying an action, often through digital signatures and logs. Obfuscation hides information, while scalability and elasticity are capacity concepts.
Question 20
An administrator needs to protect data stored on a laptop in case the device is stolen. Which control provides the best protection for data at rest?
- AStrong passwords on the desktop background
- BFull-disk encryption with a managed recovery key
- CA steel cable lock wrapped round the laptop
- DAntivirus suite with no disk encryption
Show answer and explanationHide answer
Correct answer: BFull-disk encryption protects data at rest if the device is lost, and a managed recovery key allows recovery. Wallpaper passwords, cable locks and antivirus alone do not protect stored data.
Question 21
Which cryptographic approach uses the same key for both encryption and decryption?
- AAsymmetric encryption
- BHashing
- CSymmetric encryption
- DDigital signatures only
Show answer and explanationHide answer
Correct answer: CSymmetric encryption uses one shared key for both operations. Asymmetric encryption uses a key pair, hashing is one-way, and signatures use a private key to sign.
Question 22
A security architect wants to protect a web application against an attacker who has stolen a valid session cookie. Which control best limits this risk?
- ABinding sessions to the client and expiring them quickly, with secure cookie attributes
- BStoring session cookies in a publicly shared text file in the web root
- CSetting session cookies to be readable by JavaScript so scripts can read them
- DReusing one shared session cookie across many user accounts on the same server
Show answer and explanationHide answer
Correct answer: ASecure cookie attributes, short expiry and session binding limit how useful a stolen cookie is. Readable cookies, shared cookies and public storage make theft easier.
Question 23
Which security control type is a cable lock on a server rack?
- AManagerial
- BPhysical
- CTechnical
- DAdministrative
Show answer and explanationHide answer
Correct answer: BA cable lock is a physical control that restricts access to equipment. Technical controls are logical or software based, and administrative or managerial controls are policies and processes.
Question 24
A company requires a security awareness program and written acceptable use policies. Which control category do these represent?
- AAdministrative
- BPhysical
- CTechnical
- DCorrective only
Show answer and explanationHide answer
Correct answer: APolicies and training are administrative controls that shape behavior and governance. Physical controls are tangible barriers and technical controls are system based.
Security Program Management (6 questions)
Question 25
A company wants to identify the most important risks to its business and rank them. Which practice does this?
- APenetration testing of exposed hosts to locate flaws
- BSoftware licensing review of installed applications annually
- CRisk assessment with likelihood and impact analysis
- DPrinter inventory with model and serial numbers
Show answer and explanationHide answer
Correct answer: CRisk assessment evaluates likelihood and impact to rank risks. A pen test identifies vulnerabilities, licensing reviews cover software use, and printer inventories are asset lists.
Question 26
An organization accepts a risk because the cost of mitigation is higher than the expected loss. Which risk response is this?
- ARisk transference
- BRisk acceptance
- CRisk avoidance
- DRisk amplification
Show answer and explanationHide answer
Correct answer: BAccepting a risk means choosing to live with it when mitigation is not justified. Transference shifts risk to a third party, avoidance stops the activity, and amplification is not a response.
Question 27
A company buys cyber insurance to cover the financial impact of a data breach. Which risk response does this represent?
- ARisk transference
- BRisk mitigation through patching
- CRisk acceptance
- DRisk avoidance
Show answer and explanationHide answer
Correct answer: AInsurance transfers financial risk to another party. Acceptance keeps the risk, avoidance removes the activity, and patching is mitigation.
Question 28
Which document describes the contractual security requirements and service levels a vendor must meet?
- AService level agreement or security addendum
- BA printer manual covering duplex printing settings
- CA marketing brochure describing product features in full
- DAn employee holiday calendar with office closures
Show answer and explanationHide answer
Correct answer: AService level agreements and security addenda define vendor obligations. Brochures, calendars and manuals do not form binding security requirements.
Question 29
A company must comply with a data protection regulation that requires notification of breaches within a defined time frame. Which governance element defines this obligation?
- ACompliance requirements and incident notification procedures
- BDesktop wallpaper policy specifying approved corporate images for staff
- CPrinter toner specifications listing cartridge yield and page counts
- DHoliday schedules listing office closures and public observance dates
Show answer and explanationHide answer
Correct answer: ACompliance requirements and notification procedures define the obligation and steps to meet it. The other items are not governance obligations.
Question 30
Which control helps an organization prove that its employees have read and agreed to security policies?
- AVerbal agreements given during weekly team meetings
- BSigned acknowledgments tracked for each policy
- CAssuming staff read the policy upon hire
- DPosting the policy on a shared drive without logs
Show answer and explanationHide answer
Correct answer: BSigned and tracked acknowledgments provide evidence of policy acceptance. Verbal agreements, assumptions and unrecorded postings are not verifiable.