CompTIA certification · Exam CS0-004

CS0-004 Mock Exam Page 3

CompTIA Cybersecurity Analyst CySA+ V4

Free CS0-004 mock exam questions 21–23, each with the answer and an explanation.

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

Free CS0-004 questions

21–23 of 23 free
Question 21 Choose 1
A security analyst receives a notice about a possible data breach. The report identifies unapproved, current access dates for files found in the following personnel archives:

Which of the following actions should the analyst take first?
Show answerHide answer

Correct answer: E Establish a legal hold.

Explanation

✅ Explanation:

The analyst has identified unapproved, current access dates for files in personnel archives, which indicates a possible data breach involving sensitive employee records. The first priority in any potential breach scenario is to  preserve evidence for forensic investigation and potential legal proceedings. By establishing a legal hold, the analyst ensures that all relevant data, including the affected files, logs, and metadata, are preserved in their current state and not altered, deleted, or overwritten. This is a critical step to maintain the integrity of evidence and comply with legal and regulatory requirements.

E. Establish a legal hold.
– This is the correct first action. A legal hold suspends normal data retention and deletion policies to preserve evidence. It ensures that the files, logs, and other relevant artifacts are protected from modification or destruction, which is essential for forensic analysis and potential litigation.

❌ Why Other Options Are Incorrect:

A. Perform log correlation.
– Log correlation is important for understanding the scope and timeline of the breach, but it should not be the first step. Evidence preservation takes precedence to ensure that logs and data are not lost during the investigation.

B. Reset user credentials.
– Resetting credentials may be necessary later to contain the breach, but doing so prematurely could alert the attacker and destroy evidence. Containment should follow evidence preservation and investigation.

C. Restore files from backup.
– Restoring files alters the state of the data and could destroy evidence. Restoration is part of recovery, not initial response.

D. Establish a timeline.
– Establishing a timeline is an investigative activity that relies on preserved evidence. It is important but should follow evidence preservation.

References:

CompTIA CySA+ CS0-004 Exam Objectives – Domain 3.0 (Incident Response) – Understand the importance of evidence preservation, including legal holds, during data breach investigations.

NIST SP 800-61 Rev. 2 (Computer Security Incident Handling Guide) – Recommends preserving evidence as a priority during incident response.
Question 22 Choose 1
Which of the following phases of the incident response process will permanently remove an attacker’s access to corporate resources?
Show answerHide answer

Correct answer: A Eradication

Explanation

✅ Explanation:

During an incident, once the attacker's presence has been confirmed, the incident response team must take steps to remove the threat from the environment. Containment is the phase where the team limits the spread of the attack by isolating affected systems. However, containment does not permanently remove the attacker's access—it only stops active movement and prevents further damage. Eradication is the phase that follows containment and is specifically focused on permanently removing the attacker's access by eliminating the root cause, such as deleting malware, removing backdoors, disabling compromised accounts, and closing exploited vulnerabilities. Without eradication, the attacker can regain access once containment is lifted.

A. Eradication
– Eradication is the phase of incident response that removes the threat from the environment, including the attacker's access, persistence mechanisms, malware, and vulnerabilities. It is the only phase that permanently eliminates the adversary's foothold.

❌ Why Other Options Are Incorrect:

B. Containment
– Containment isolates affected systems to prevent the attack from spreading, but it does not remove the attacker's access. The attacker may still have persistence mechanisms that allow them to return if not eradicated.

C. Denial of service
– Denial of service (DoS) is a type of attack, not a phase of incident response. It does not relate to removing attacker access.

D. Detection
– Detection is the phase where the incident is identified and confirmed. It occurs before containment and eradication, and does not remove the attacker's access.

📚 References:

CompTIA CySA+ CS0-004 Exam Objectives – Domain 3.0 (Incident Response) – Understand the incident response lifecycle, including the eradication phase and its role in permanently removing threats.

NIST SP 800-61 Rev. 2 (Computer Security Incident Handling Guide) – Defines eradication as the phase that removes the components of the incident from the environment.
Question 23 Choose 1
A security operations center analyst receives an alert from the security information and event management system. The analyst quickly reviews the alert and sees a workstation infected with malware. The analyst then uses the endpoint detection and response tool to isolate the workstation from the network. Which of the following best describes the steps that occurred in this scenario?
Show answerHide answer

Correct answer: C Detection, analysis, and containment

Explanation

✅ Explanation:

The scenario describes a sequence of actions taken by the SOC analyst in response to an alert. First, the analyst receives an alert from the SIEM (this is detection—identifying a potential security event). Second, the analyst quickly reviews the alert and confirms that a workstation is infected with malware (this is analysis—validating the alert, understanding the scope, and confirming the threat). Third, the analyst uses the EDR tool to isolate the workstation from the network (this is containment—limiting the spread of the infection by severing the compromised system's network connectivity). The sequence accurately maps to the first three phases of the incident response lifecycle: Detection, Analysis, and Containment.

C. Detection, analysis, and containment – This is the correct sequence. The SIEM alert triggered the initial detection, the analyst's review and confirmation of malware constituted analysis, and the network isolation via EDR was containment.

❌ Why Other Options Are Incorrect:

A. Analysis, containment, and eradication
– This sequence misses the initial detection step and incorrectly places analysis first. The scenario starts with a SIEM alert (detection), not analysis. Eradication (removing the malware) is not mentioned.

B. Analysis, eradication, and recovery
– This is incorrect because detection occurred first, and the analyst did not perform eradication (e.g., deleting malware, patching) or recovery (restoring systems) in the described actions.

D. Isolation, mitigation, and analysis
– This sequence is out of order and misses detection. The analyst received an alert before isolating the system, and mitigation is a broader term that includes containment, but the specific sequence is detection → analysis → containment.

📚 References:

CompTIA CySA+ CS0-004 Exam Objectives – Domain 3.0 (Incident Response) – Understand the incident response lifecycle, including detection, analysis, and containment.

NIST SP 800-61 Rev. 2 (Computer Security Incident Handling Guide) – Defines incident response phases: Detection, Analysis, Containment, Eradication, Recovery, and Post-Incident.

That's the last free question

You've seen the free 30% (23 of 82 questions). Full access unlocks every question and full-length CS0-004 mock exams (85 questions, 165 minutes), a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the CS0-004 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real CS0-004 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-004 mock exam
  • 85questions per mock
  • 165 mintime limit
  • 82questions in the bank
  • Newmock on every attempt