Courseiva

CS0-003 Incident Response and Management Practice Question

An incident responder is performing containment of a ransomware incident that has encrypted files on several file servers. Which THREE actions are appropriate for long-term containment and recovery? (Select THREE)

⚠ Common exam trap

CS0-004 often tests the distinction between short-term containment actions (e.g., blocking IPs, isolating segments) and long-term containment/recovery actions (e.g., patching, rebuilding, rotating credentials), causing candidates to select immediate but temporary measures instead of permanent remediation steps.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Patching the vulnerability exploited by the ransomware

Patching the exploited vulnerability (B) is correct because it removes the initial access vector, preventing the ransomware from re-infecting systems during long-term containment and recovery. Rebuilding affected servers from known-good backups (C) is correct because encrypted systems cannot be trusted after compromise; restoring from clean backups ensures integrity and enables recovery. Rotating all service account credentials (D) is correct because ransomware often harvests credentials for lateral movement and persistence, so rotating them invalidates stolen secrets and blocks re-entry. Blocking the C2 IP (A) and isolating the affected segment (E) are valid immediate/short-term containment measures, but they do not address the root cause or restore operations, so they are not the long-term containment and recovery actions requested.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Blocking the ransomware's command-and-control IP at the firewall

    Why it's wrong here

    While blocking a ransomware C2 IP at the firewall can momentarily disrupt command-and-control, this measure is quickly circumvented because attackers routinely use domain generation algorithms, fast-flux DNS, or multiple fallback addresses to change their infrastructure. Moreover, it fails to address the underlying infection, the initial entry vector, or any laterally spread malware, so the ransomware remains active and capable of continuing its encryption or exfiltration. Consequently, it is only a stopgap containment tactic, not a complete containment or eradication step.

  • ✓

    Patching the vulnerability exploited by the ransomware

    Why this is correct

    Patching the specific vulnerability that the ransomware exploited is a definitive eradication measure because it closes the door at the root cause, preventing both the current strain and any similar variations from re-entering through the same path. This step, derived from the incident's root cause analysis, is essential for protecting not only the affected hosts but also all other unpatched systems in the environment. Without this patch, even after rebuilding or credential rotation, the same hole remains, leaving the network vulnerable to immediate reinfection.

  • ✓

    Rebuilding affected servers from known-good backups

    Why this is correct

    Rebuilding affected servers from known-good backups is required because ransomware often installs backdoors, disables security controls, or embeds itself in volume shadow copies and system restore points, so simply deleting the malicious files is rarely sufficient. The backups must be verified free of malware and should be restored to a clean, hardened state with patching and configuration baselines reapplied. This approach ensures that the trust boundary of the system is re-established, eliminating any persistent foothold the adversary may have planted, and is a core recovery action in the incident response plan.

  • ✓

    Rotating all service account credentials

    Why this is correct

    Rotating all service account credentials is critical because attackers frequently harvest password hashes, Kerberos tickets, or plaintext secrets from memory (e.g., via credential dumping) and then use these accounts to move laterally, maintain persistence, or access data stores. By rotating passwords for every service account, especially those with elevated privileges, the incident response team invalidates any stolen credentials, cutting off a key avenue of access. Additionally, this must include scheduled tasks, application accounts, and any embedded secrets to prevent the attacker from leveraging long-lived accounts to regain a foothold.

  • ✗

    Isolating the affected network segment

    Why it's wrong here

    Isolating the affected network segment (e.g., via VLAN segregation or disconnecting switches) is a rapid containment action that physically halts east-west propagation and buys time, but it is not a complete containment solution by itself. Attackers often have pre-positioned remote access, compromised credentials, or alternate paths that bypass the isolated segment, and the isolation does nothing to remove the malware already present or prevent reinfection from a different vector. Furthermore, continuing isolation can severely impact business operations, so it must be followed by proper eradication and recovery steps rather than being viewed as a final answer.

About these practice questions

One of 701 original CS0-004 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official CompTIA exam blueprint

This CS0-004 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CS0-004 exam.