Skip to main content

CAS-005 Real Exam Questions

CompTIA SecurityX

430 questions available · Page 1 of 43

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Single choice

A developer receives feedback about code quality and efficiency. The developer needs to identify and resolve the following coding issues before submitting the code changes for peer review:

Indexing beyond arrays
Dereferencing null pointers
Potentially dangerous data type combinations
Unreachable code
Non-portable constructs

Which of the following would be most appropriate for the developer to use in this situation?

  1. A

    Linting

  2. B

    SBoM

  3. C

    DAST

  4. D

    Branch protection

  5. E

    Software composition analysis

Show answer and explanation

Correct answer: A

Question 2 Single choice

An incident response analyst finds the following content inside of a log file that was collected from a compromised server:

.2308464678 ... whoami ..... su2032829%72%322/// ...... /etc/passwd .... 2087031731467478432 ...
$6490/90/./ ..< XML ?.. .... nty.

Which of the following is the best action to prevent future compromise?

  1. A

    Blocking the processing of external files by forwarding them to another server for processing

  2. B

    Implementing an allow list for all text boxes throughout the web application

  3. C

    Filtering inserted characters for all user inputs and allowing only ASCII characters

  4. D

    Improving file-parsing capabilities to stop external entities from executing commands

Show answer and explanation

Correct answer: D

Question 3 Single choice

A security administrator needs to review the efficacy of the detection rules configured on the SIEM by
employing real-world attacker TTPs.

Which of the following actions should the security administrator take to accomplish this objective?

  1. A

    Perform an internal penetration test.

  2. B

    Use adversary emulation.

  3. C

    Execute an internal vulnerability assessment.

  4. D

    Perform a threat hunt exercise.

  5. E

    Ingest new threat intelligence feeds.

Show answer and explanation

Correct answer: B

Explanation

The best option is adversary emulation. Adversary emulation involves simulating real-world attacker Tactics, Techniques, and Procedures (TTPs) based on frameworks like MITRE ATT&CK. Unlike penetration tests, which primarily focus on identifying exploitable vulnerabilities, adversary emulation specifically tests the effectiveness of detection and response capabilities against known adversarial behaviors.

Option A (penetration testing) provides value but may not align test cases with SIEM detection rules.
Option C (vulnerability assessment) identifies weaknesses but does not test detection rules.
Option D (threat hunting) is proactive analysis but does not validate existing SIEM rule coverage in a structured manner.
Option E (threat feeds) enrich SIEM data but do not test its efficacy.

CAS-005 identifies adversary emulation as a key strategy for validating detection and response coverage. It provides measurable results about what alerts are triggered and where detection gaps exist, enabling organizations to tune SIEM rules for improved efficacy.

Question 4 Single choice

A company was recently infected by malware. During the root cause analysis, the company determined that several users were installing their own applications. To prevent further compromises, the company has decided it will only allow authorized applications to run on its systems.

Which of the following should the company implement?

  1. A

    Signing

  2. B

    Access control

  3. C

    HIPS

  4. D

    Permit listing

Show answer and explanation

Correct answer: D

Explanation

To prevent unauthorized applications from running, the company needs a mechanism to explicitly define and enforce which applications are allowed to execute. "Permit listing" (often referred to as "whitelisting" in security contexts) is the most effective solution here. It involves creating a list of approved applications, and only those on the list are permitted to run, blocking all others by default. This directly addresses the root cause--users installing unapproved software--by restricting execution to only authorized programs. Option A (Signing):Code signing ensures the authenticity and integrity of software by verifying it comes from a trusted source and hasn't been tampered with. While useful, it doesn't inherently prevent unauthorized applications from running unless combined with a policy like whitelisting.
Option B (Access control):Access control governs who can access systems or resources but doesn't specifically restrict which applications can execute. It's too broad for this scenario.
Option C (HIPS):A Host-based Intrusion Prevention System (HIPS) can detect and block malicious behavior, but it's reactive and relies on signatures or heuristics, not a proactive allow-only approach.
Option D (Permit listing):This is the best fit, as it proactively enforces a policy where only explicitly authorized applications can run, preventing malware introduced by unauthorized software.
References:
CompTIA SecurityX CAS-005 Domain 2: Security Architecture ?Application Security Controls.

Question 5 Single choice

An organization must provide access to its internal system data. The organization requires that this access complies with the following:

1. Access must be automated.
2. Data confidentiality must be preserved.
3. Access must be authenticated.
4. Data must be preprocessed before it is retrieved.

Which of the following actions should the organization take to meet these requirements?

  1. A

    Configure a reverse proxy to protect the data.

  2. B

    Implement an on-demand VPN connection.

  3. C

    Deploy an API gateway protected with access tokens.

  4. D

    Continually publish all relevant data to a CDN.

Show answer and explanation

Correct answer: C

Question 6 Single choice

An analyst wants to conduct a risk assessment on a new application that is being deployed. Given the following information:

Total budget allocation for the new application is unavailable.
Recovery time objectives have not been set.
Downtime loss calculations cannot be provided.

Which of the following statements describes the reason a qualitative assessment is the best option?

  1. A

    The analyst has previous work experience in application development.

  2. B

    Sufficient metrics are not available to conduct other risk assessment types.

  3. C

    An organizational risk register tracks all risks and mitigations across business units.

  4. D

    The organization wants to find the monetary value of any outages.

Show answer and explanation

Correct answer: B

Question 7 Single choice

A security engineer receives the following findings from a recent security audit:
1. Data should be protected based on user permissions and roles.
2. User action tracking should be implemented across the network.
3. Digital identities should be validated across the data access workflow.

Which of the following is the first action the engineer should take to address the findings?

  1. A

    Implement continuous and context-based authentication and authorization

  2. B

    Use an enhanced user credential provisioning workflow and data monitoring tools

  3. C

    Improve federation services for digital identities and data access

  4. D

    Deploy OpenID Connect for API authentication

Show answer and explanation

Correct answer: A

Explanation

The first action is to implement continuous and context-based authentication and authorization (A).
Traditional authentication validates users only at login, which creates gaps during active sessions.
Continuous authentication ensures validation throughout the data access workflow, incorporating contextual factors like device state, geolocation, and behavioral analysis. This directly aligns with audit findings requiring protection by role, identity validation, and action tracking.

Option B improves onboarding and monitoring but does not enforce continuous access control.
Option C improves identity federation but does not provide session-by-session validation.
Option D secures APIs but is too narrow for
organization-wide identity workflows.

CAS-005 stresses Zero Trust and context-aware IAM, making continuous authentication and authorization the top priority.

Question 8 Single choice

Users are willing passwords on paper because of the number of passwords needed in an environment.

Which of the following solutions is the best way to manage this situation and decrease risks?

  1. A

    Increasing password complexity to require 31 least 16 characters

  2. B

    implementing an SSO solution and integrating with applications

  3. C

    Requiring users to use an open-source password manager

  4. D

    Implementing an MFA solution to avoid reliance only on passwords

Show answer and explanation

Correct answer: B

Explanation

Implementing a Single Sign-On (SSO) solution and integrating it with applications is the best way to manage the situation and decrease risks. Here's why: Reduced Password Fatigue: SSO allows users to log in once and gain access to multiple applications and systems without needing to remember and manage multiple passwords. This reduces the likelihood of users writing down passwords.
Improved Security: By reducing the number of passwords users need to manage, SSO decreases the attack surface and potential for password-related security breaches. It also allows for the implementation of stronger authentication methods. User Convenience: SSO improves the user experience by simplifying the login process, which can lead to higher productivity and satisfaction.
References:

Question 9 Single choice

Previously intercepted communications must remain secure even if a current encryption key is compromised in the future.

Which of the following best supports this requirement?

  1. A

    Tokenization

  2. B

    Key stretching

  3. C

    Forward secrecy

  4. D

    Simultaneous authentication of equals

Show answer and explanation

Correct answer: C

Explanation

Forward secrecy (FS) ensures that past encrypted data remains secure even if encryption keys are compromised in the future. It generates ephemeral session keys that are not reused.

Other options:
A (Tokenization) replaces sensitive data with tokens but does not prevent key compromise.
B (Key stretching) makes brute-force attacks harder but does not ensure secrecy after compromise.
D (Simultaneous Authentication of Equals ?SAE) is used in WPA3 but is not related to past communication security.

Question 10 Multiple choice

Company A acquired Company B and needs to determine how the acquisition will impact the attack surface of the organization as a whole.

Which of the following is the best way to achieve this goal? (Select two).

  1. A

    Implementing DLP controls preventing sensitive data from leaving Company B's network

  2. B

    Documenting third-party connections used by Company B

  3. C

    Reviewing the privacy policies currently adopted by Company B

  4. D

    Requiring data sensitivity labeling tor all files shared with Company B

  5. E

    Forcing a password reset requiring more stringent passwords for users on Company B's network

  6. F

    Performing an architectural review of Company B's network

Show answer and explanation

Correct answers: A, B

Explanation

To determine how the acquisition of Company B will impact the attack surface, the following steps are crucial:

A. Documenting third-party connections used by Company B: Understanding all external connections is
essential for assessing potential entry points for attackers and ensuring that these connections are secure.
E. Performing an architectural
review of Company B's network: This review will identify vulnerabilities and assess the security posture of the acquired company's network, providing a comprehensive understanding of the new attack surface.
These actions will provide a clear picture of the security implications of the acquisition and help in developing a plan to mitigate any identified risks.
References:
CompTIA SecurityX Study Guide: Emphasizes the importance of understanding third-party connections and conducting architectural reviews during acquisitions. NIST Special Publication 800-37, "Guide for Applying the Risk Management Framework to Federal Information Systems": Recommends comprehensive reviews and documentation of third-party connections. "Mergers, Acquisitions, and Other Restructuring Activities" by Donald DePamphilis: Discusses the importance of security assessments during acquisitions.