Month End Sale Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 75only

CompTIA CS0-004 CompTIA Cybersecurity Analyst CySA+ V4 (New Version) Exam Practice Test

Demo: 24 questions
Total 82 questions

CompTIA Cybersecurity Analyst CySA+ V4 (New Version) Questions and Answers

Question 1

A security team reviews a penetration testing report of a web application that contains multiple cross-site scripting (XSS) and Structured Query Language injection (SQLi) vulnerabilities.

Which of the following is most likely causing these to occur?

Options:

A.

Misconfigured web application firewall (WAF)

B.

Lack of secure input validation

C.

Lack of a Hypertext Transfer Protocol (HTTP) Strict Transport Security (HSTS) header

D.

Lack of endpoint protection in the environment

Question 2

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?

Options:

A.

cat /var/log/sssd | grep "User1" > linux-events.txt

B.

cat /var/log/faillog.log | grep "User1" > linux-events.txt

C.

cat /var/log/syslog | grep "User1" > linux-events.txt

D.

cat /var/log/auth.log | grep "User1" > linux-events.txt

Question 3

The Chief Information Security Officer wants to improve internal security measures by continuously validating and verifying access to the production environment.

Which of the following concepts best describes this practice?

Options:

A.

Secure access service edge

B.

Next-generation firewall

C.

Zero Trust

D.

Privileged access management

Question 4

Which of the following actions should an incident response analyst take during the recovery phase of the incident response process?

Options:

A.

Verify that malicious activity has occurred.

B.

Reimage the disk.

C.

Take the system offline.

D.

Write the final report.

Question 5

Which of the following is the main concept behind the use of an attack methodology framework?

Options:

A.

Implementing continuous monitoring and rapid deployment of system fixes over the traditional patch, test, and deploy approach

B.

Prioritizing vulnerabilities that can be exploited based on risk calculations and using the consequences and likelihood of the exploits to determine where resources should be allocated

C.

Approaching cybersecurity from the perspective of a threat actor and using their common behaviors and motivations to identify secure solutions

D.

Applying a Zero Trust environment by assuming networks and systems are vulnerable to malicious actions by both external, hostile adversaries and insider threats

Question 6

A team lead asks an analyst to integrate multiple security tools to provide an enhanced view into data that is not readily available in the tool console.

Which of the following will best meet this requirement?

Options:

A.

Utilizing application programming interfaces

B.

Deploying security orchestration, automation, and response

C.

Templating with infrastructure as code

D.

Using playbooks

Question 7

An analyst receives the following output:

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

Options:

A.

1

B.

2

C.

3

D.

5

Question 8

Which of the following describes the main benefits of MITRE ATT & CK Navigator?

Options:

A.

Replicating adversary behavior and blocking gaps in defenses

B.

Monitoring adversary behavior and performing malware reverse engineering

C.

Responding to adversary behavior and building security defense tools

D.

Understanding adversary behavior and identifying gaps in defenses

Question 9

Which of the following occurs during the analysis phase of the incident response process?

Options:

A.

Triage

B.

Alert writing

C.

Reimaging

D.

Isolation

Question 10

Which of the following phases of the incident response process will permanently remove an attacker’s access to corporate resources?

Options:

A.

Eradication

B.

Containment

C.

Denial of service

D.

Detection

Question 11

Which of the following network architectures would best implement a perimeter-less network topology?

Options:

A.

Hybrid cloud networks

B.

Secure access service edge

C.

Cloud-native computing

D.

Content delivery networks

Question 12

An analyst receives an alert that a user clicked on a malicious link. The analyst verifies that the link is malicious and was intended to capture credentials. The analyst verifies that the user visited the website, but no evidence indicates that the credentials were used. The analyst recommends that the user take remedial training and closes the case.

Which of the following steps in the incident response process did the analyst neglect?

Options:

A.

Analysis

B.

Containment

C.

Recovery

D.

Post-incident

Question 13

Which of the following does a phishing campaign click rate measure?

Options:

A.

The effectiveness of an organization's email filters

B.

The false-positive rate of data leakage prevention behavior

C.

The employees' security awareness

D.

The speed of responding to a social engineering attack

Question 14

The Chief Information Officer (CIO) is requiring users to phase out a legacy system that no longer receives security updates because the system will be decommissioned soon.

Which of the following risk management strategies is the CIO using?

Options:

A.

Avoidance

B.

Mitigation

C.

Acceptance

D.

Transference

Question 15

A security analyst runs an Nmap scan against a host with multiple open ports using the following command:

nmap 10.10.10.1 -p-

The following output is obtained after the scan:

Starting Nmap 7.95 ( https://nmap.org ) at 2025-07-15 15:55 UTC

Note: Host seems down.

Nmap done: 1 IP address (0 hosts up) scanned in 3.16 seconds

Which of the following is the most accurate way to scan the target IP for open ports?

Options:

A.

nmap 10.10.10.1 -p80, 443, 445, 9999, 135, 22, 21 -b --traceroute

B.

nmap -sn -p- 10.10.10.1

C.

nmap -p- -Pn 10.10.10.1

D.

nmap 10.10.10.1/24 -p- -R -O --script=ssl-enum-ciphers

Question 16

Which of the following is the most likely reason an organization might implement compensating controls?

Options:

A.

A vulnerability does not have a patch, and the system is mission critical.

B.

A vulnerability has been fixed, tested, and deployed to production.

C.

A vulnerability is being actively exploited in the wild, but the organization does not use the affected system.

D.

A vulnerability was detected, but the organization has determined the result is a false positive.

Question 17

A security analyst responds to an alert regarding identity and access management activity within the cloud environment. The attacker is currently trying to gain access from one isolated cloud subscription to another via a compromised user role.

Which of the following aspects of the MITRE ATT & CK framework is the attacker trying to perform?

Options:

A.

Privilege escalation

B.

Lateral movement

C.

Persistence

D.

Execution

E.

Credential access

Question 18

A security analyst reruns infrastructure as code (IaC) to tear down and rebuild a new environment after a ransomware attack.

Which of the following describes this phase?

Options:

A.

Analysis

B.

Post-incident

C.

Detection

D.

Containment

E.

Recovery

Question 19

A vulnerability scanner shows discrepancies between the number of Internet Protocol (IP) addresses across the sites being scanned and the number of systems reporting into the patching system.

Which of the following actions will resolve this issue?

Options:

A.

Enable verbose logging in the scanner and check for failures.

B.

Rebuild the vulnerability report selection criteria to account for all sites.

C.

Request the infrastructure team rerun patching deployments.

D.

Conduct a comprehensive asset inventory with the infrastructure team.

Question 20

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?

Options:

A.

Red-teaming event

B.

Tabletop exercise

C.

Security awareness training

D.

Penetration test

Question 21

An analyst performs Nmap scans to determine which hosts may need to be targeted to deploy a critical Windows patch. The patch for the vulnerability is to address a critical security flaw that targets open Server Message Block (SMB) ports on Windows systems only.

The analyst scans with the following command:

$sudo nmap -Pn 10.203.10.0/24

The analyst then receives the following output:

Which of the following hosts should the analyst prioritize for patching?

Options:

A.

10.203.10.11

B.

10.203.10.12

C.

10.203.10.13

D.

10.203.10.16

Question 22

A security team deploys a new scanning solution that requires root, domain administrator, and local server administrator permissions on all systems.

Which of the following is the best way to help mitigate the risk for this level of access?

Options:

A.

Enabling single sign-on for all administrators

B.

Integrating token-based authentication using a privileged access management (PAM) solution

C.

Using temporary, one-time passwords as part of the login process

D.

Configuring agentless scanning for critical targets

Question 23

Before merging with a software company, the acquiring company's legal team requires a detailed software scan to determine if all code base is using open-source or paid licensed libraries. The vulnerability management analyst needs to provide this report.

Which of the following scan methods will best meet this requirement?

Options:

A.

Static application security testing (SAST)

B.

Dynamic application security testing (DAST)

C.

Software composition analysis (SCA)

D.

Runtime application self-protection (RASP)

E.

Credentialed vulnerability scan

Question 24

Based on recent alerts, a security analyst thinks a web application server was compromised. The analyst reviews the following server output:

Which of the following best describes what has occurred?

Options:

A.

An initiated unauthorized session

B.

Too many users logged in at the same time

C.

High resource consumption

D.

Abnormal idle times for each user

Demo: 24 questions
Total 82 questions