CompTIA SY0-701 Practice Exams
Last updated on Nov 16,2026- Exam Code: SY0-701
- Exam Name: CompTIA Security+
- Certification Provider: CompTIA
- Latest update: Nov 16,2026
Which of the following is an example of memory injection?
- A . Two processes access the same variable, allowing one to cause a privilege escalation.
- B . A process receives an unexpected amount of data, which causes malicious code to be executed.
- C . Malicious code is copied to the allocated space of an already running process.
- D . An executable is overwritten on the disk, and malicious code runs the next time it is executed.
C
Explanation:
Memory injection occurs when malicious code is written into the memory space of a running process, allowing it to execute without writing anything to disk. This is often used in fileless malware attacks, making detection harder.
A (privilege escalation) describes a race condition, not memory injection.
B (unexpected data causing execution) describes a buffer overflow attack, not memory injection.
D (overwriting an executable) is a persistence technique, but it is not an example of in-memory injection.
Reference: CompTIA Security+ SY0-701 Official Study Guide, Threats, Vulnerabilities, and Mitigations domain.
Security controls in a data center are being reviewed to ensure data is properly protected and that human life considerations are included.
Which of the following best describes how the controls should be set up?
- A . Remote access points should fail closed.
- B . Logging controls should fail open.
- C . Safety controls should fail open.
- D . Logical security controls should fail closed.
C
Explanation:
Safety controls are security controls that are designed to protect human life and physical assets from harm or damage. Examples of safety controls include fire alarms, sprinklers, emergency exits, backup generators, and surge protectors. Safety controls should fail open, which means that they should remain operational or allow access when a failure or error occurs. Failing open can prevent or minimize the impact of a disaster, such as a fire, flood, earthquake, or power outage, on human life and physical assets. For example, if a fire alarm fails, it should still trigger the sprinklers and unlock the emergency exits, rather than remain silent and locked. Failing open can also ensure that essential services, such as healthcare, transportation, or communication, are available during a crisis. Remote access points, logging controls, and logical security controls are other types of security controls, but they should not fail open in a data center. Remote access points are security controls that allow users or systems to access a network or a system from a remote location, such as a VPN, a web portal, or a wireless access point. Remote access points should fail closed, which means that they should deny access when a failure or error occurs. Failing closed can prevent unauthorized or malicious access to the data center’s network or systems, such as by hackers, malware, or rogue devices. Logging controls are security controls that record and monitor the activities and events that occur on a network or a system, such as user actions, system errors, security incidents, or performance metrics. Logging controls should also fail closed, which means that they should stop or suspend the activities or events when a failure or error occurs. Failing closed can prevent data loss, corruption, or tampering, as well as ensure compliance with regulations and standards. Logical security controls are security controls that use software or code to protect data and systems from unauthorized or malicious access, modification, or destruction, such as encryption, authentication, authorization, or firewall. Logical security controls should also fail closed, which means that they should block or restrict access when a failure or error occurs. Failing closed can prevent data breaches, cyberattacks, or logical flaws, as well as ensure confidentiality, integrity, and availability of data and systems.
Reference: CompTIA Security+ Study Guide: Exam SY0-701, 9th Edition, page 142-143, 372-373, 376-377
Which of the following agreements defines response time, escalation, and performance metrics?
- A . BPA
- B . MOA
- C . NDA
- D . SLA
D
Explanation:
An SLA (D) or Service Level Agreement is a formal contract that defines performance standards, including response times, escalation procedures, uptime guarantees, and other service-related metrics.
This is referenced in Domain 5.2: Explain the importance of managing third-party risk under “Agreements (e.g., SLA, NDA, MOU/MOA, BPA).”
Reference: CompTIA Security+ SY0-701 Objectives, Domain 5.2 C “Agreements: SLA (service-level agreement).”
Which of the following describes the procedures a penetration tester must follow while conducting a test?
- A . Rules of engagement
- B . Rules of acceptance
- C . Rules of understanding
- D . Rules of execution
A
Explanation:
Detailed Rules of engagement specify the agreed-upon boundaries, scope, and procedures for a penetration test to ensure compliance and avoid disruption to the environment.
Reference: CompTIA Security+ SY0-701 Study Guide, Domain 4: Security Operations, Section: "Penetration Testing Procedures".
Which of the following should a security team do first before a new web server goes live?
- A . Harden the virtual host.
- B . Create WAF rules.
- C . Enable network intrusion detection.
- D . Apply patch management
Several customers want an organization to verify its security controls are operating effectively and have requested an independent opinion.
Which of the following is the most efficient way to address these requests?
- A . Hire a vendor to perform a penetration test.
- B . Perform an annual self-assessment.
- C . Allow each client the right to audit.
- D . Provide a third-party attestation report.
A company’s online shopping website became unusable shortly after midnight on January 30, 2023. When a security analyst reviewed the database server, the analyst noticed the following code used for backing up data:
Which of the following should the analyst do next?
- A . Check for recently terminated DBAs.
- B . Review WAF logs for evidence of command injection.
- C . Scan the database server for malware.
- D . Search the web server for ransomware notes.
A user would like to install software and features that are not available with a smartphone’s default software.
Which of the following would allow the user to install unauthorized software and enable new features?
- A . SOU
- B . Cross-site scripting
- C . Jailbreaking
- D . Side loading
C
Explanation:
Jailbreaking is the process of removing restrictions imposed by the manufacturer on a smartphone, allowing the user to install unauthorized software and features not available through official app stores. This action typically voids the warranty and can introduce security risks by bypassing built-in protections.
SOU (Statement of Understanding) is not related to modifying devices.
Cross-site scripting is a web-based attack technique, unrelated to smartphone software.
Side loading refers to installing apps from unofficial sources but without necessarily removing built-in restrictions like jailbreaking does.
Which of the following should a security operations center use to improve its incident response procedure?
- A . Playbooks
- B . Frameworks
- C . Baselines
- D . Benchmarks
A
Explanation:
A playbook is a documented set of procedures that outlines the step-by-step response to specific types of cybersecurity incidents. Security Operations Centers (SOCs) use playbooks to improve consistency, efficiency, and accuracy during incident response. Playbooks help ensure that the correct procedures are followed based on the type of incident, ensuring swift and effective remediation. Frameworks provide general guidelines for implementing security but are not specific enough for incident response procedures.
Baselines represent normal system behavior and are used for anomaly detection, not incident response guidance.
Benchmarks are performance standards and are not directly related to incident response.
During a penetration test, a vendor attempts to enter an unauthorized area using an access badge
Which of the following types of tests does this represent?
- A . Defensive
- B . Passive
- C . Offensive
- D . Physical
D
Explanation:
Attempting to enter an unauthorized area using an access badge during a penetration test is an example of a physical test. This type of test evaluates the effectiveness of physical security controls, such as access badges, security guards, and locks, in preventing unauthorized access to restricted areas.
Defensive and offensive testing typically refer to digital or network-based penetration testing strategies.
Passive testing involves observing or monitoring but not interacting with the environment.