Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Practice questions demo

CS0-004 Exam Dumps and Practice Questions

Questions 1 to 5 of the 82-question CS0-004 bank, each with its correct answer and an explanation. This is page 1 of 16.

1 / 16

Actual CompTIA CS0-004 Exam Questions

Question 1

A security operations center (SOC) analyst investigates the results of a password spray test conducted by the vulnerability management team.

The analyst must:

Identify Linux systems that have successful and unsuccessful logins with username "User1".

Create an output report named "linux-events" of all the events to a flat file.

The analyst issues the following console command:

ls /var/log/

The shortened output of the command is below:

Which of the following commands should the analyst use to meet the report output requirements?

Correct answer: D

/var/log/auth.log is the appropriate source because it records authentication and authorization activity on Debian/Ubuntu-style Linux systems, including password-related events, SSH logins, PAM authentication, and other authorization events. Canonical's Ubuntu documentation specifically identifies /var/log/auth.log as the authorization log used for password prompts, sudo, and remote logins.

The command performs three operations. cat /var/log/auth.log sends the log contents to standard output. The pipe forwards that data to grep 'User1', which selects records containing the required username. Finally, > linux-events.txt redirects the resulting matching records into the requested flat-file report. Because auth.log can contain both accepted and rejected authentication activity, the command can capture successful and unsuccessful events associated with User1.

sssd is not the general authentication log path shown in the scenario and may contain only SSSD-specific events. A faillog-oriented source emphasizes failed logins and therefore does not satisfy the requirement to collect both successful and failed activity. /var/log/syslog contains broad system messages but is less precise than the dedicated authentication log.

Study Guide Reference: Security Operations Linux Log Analysis /var/log/auth.log cat grep Output Redirection Authentication Investigation.


Question 2

Which of the following is the best reason to heavily segment business-critical assets from within the network?

Correct answer: A

Legacy systems present a significant security problem because they frequently cannot support current operating systems, security agents, encryption mechanisms, authentication controls, or vendor patches. When a business-critical legacy system cannot be remediated normally, strong network segmentation becomes an important compensating control. The objective is to reduce the system's reachable attack surface and restrict which users, hosts, protocols, and applications can communicate with it.

A segmented legacy asset might be placed in a dedicated VLAN or security zone and protected through restrictive firewall access-control rules, jump hosts, allowlisting, enhanced logging, and continuous monitoring. Even though segmentation does not remove the underlying vulnerability, it decreases exposure and makes exploitation or lateral movement considerably more difficult.

Degraded functionality is generally an effect or remediation constraint rather than the strongest reason for isolation. Asset obfuscation does not provide reliable security because hidden systems can still be discovered through enumeration or traffic analysis. A proprietary server is not automatically vulnerable merely because its implementation is proprietary; it may still support modern patches and security controls.

CS0-004 specifically covers segmentation as a vulnerability-scanning consideration, compensating controls as a mitigation strategy, and legacy systems as an important inhibitor to remediation.

Study Guide Reference: Vulnerability Management Vulnerability Prioritization and Mitigation Compensating Controls Segmentation Legacy-System Constraints.


Question 3

A server was recently compromised. A security analyst needs to collect artifacts for further analysis before disconnecting the server from the network.

Which of the following artifacts should the analyst collect first?

Correct answer: D

The analyst should collect the Netstat output first because current network-connection information is highly volatile and will change immediately when the server is disconnected. netstat-type evidence can identify active TCP/UDP connections, listening services, remote endpoints, and potentially the communication channels associated with an attacker or command-and-control infrastructure.

Digital-forensic acquisition follows the order of volatility: evidence most likely to disappear or change should be captured before more persistent artifacts. RFC 3227 explicitly directs investigators to proceed from volatile to less-volatile evidence and identifies information such as routing data, ARP cache, process state, memory-related information, and network state as highly time-sensitive.

The ARP table is also volatile and should be captured early, but the wording ''before disconnecting the server from the network'' makes active connection state particularly important because those sessions will terminate when network connectivity is removed. ShellBags are persistent forensic artifacts stored within Windows Registry data and can be collected later from disk. A hard-disk image is critical but comparatively nonvolatile and should follow acquisition of live state.

Therefore, live network-session information takes priority.

Study Guide Reference: Incident Response and Management Evidence Acquisition Order of Volatility Live Response netstat Network Connections Forensic Preservation.


Question 4

A security operations center (SOC) manager makes significant updates to the incident response plan and wants to test these updates with all stakeholders collaboratively.

Which of the following is the best way to accomplish this task?

Correct answer: B

A tabletop exercise is the most appropriate method because the objective is to collaboratively validate an updated incident-response plan with relevant stakeholders. Tabletop exercises are discussion-driven simulations in which participants work through a realistic incident scenario, explain their expected actions, identify dependencies, evaluate communication paths, and expose procedural or organizational gaps without performing disruptive live attacks.

CISA states that tabletop exercises are used to validate or improve understanding of plans and procedures, rehearse concepts, assess incident-response and recovery requirements, and identify areas requiring improvement. CISA also provides Tabletop Exercise Packages specifically to help stakeholders conduct collaborative exercises and organizational discussions.

A red-team event involves active adversary simulation and focuses primarily on testing defensive capabilities against realistic attacker behavior. A penetration test evaluates exploitable technical weaknesses. Security awareness training teaches users security knowledge but does not collaboratively validate incident-response roles, escalation paths, communications, and decision-making.

Because the manager recently made significant plan updates, a tabletop exercise provides a controlled mechanism for all stakeholders to determine whether those procedures actually function as intended before a real incident occurs.

Study Guide Reference: Incident Response and Management Preparation Incident Response Plan Tabletop Exercises Stakeholder Coordination Testing Plans and Procedures.


Question 5

An analyst receives the following output:

Which of the following is the correct number of discovered systems that are allowing unencrypted traffic?

Correct answer: B

The scan results identify two systems exposing services that permit communications without transport encryption, making B the correct count. The analyst must examine each discovered service rather than merely count open ports, because the security property being evaluated is whether the identified protocol transmits its session or application data without adequate encryption.

Common examples include HTTP instead of HTTPS, Telnet instead of SSH, and legacy FTP rather than protected file-transfer alternatives. The presence of an unencrypted service does not automatically prove that sensitive information is currently being transmitted, but it identifies a configuration that can expose credentials, commands, session content, or application data to interception when used.

The correct vulnerability-management workflow is to map discovered ports to services, determine the security characteristics of those protocols, verify whether encryption is available and enforced, and then prioritize remediation according to asset exposure and business requirements. Where possible, administrators should disable unnecessary cleartext services or replace them with cryptographically protected equivalents.

This question therefore tests interpretation of vulnerability or port-scan output, not simple arithmetic. The two affected systems are those whose discovered services permit cleartext communications.

Study Guide Reference: Vulnerability Management Scan Result Interpretation Ports and Protocols Cleartext Services Encryption in Transit Remediation and Secure Configuration.


Unlock all CompTIA CS0-004 questions

Full exam access, validated answers, and unlimited practice with no download limits.