Comptia

CAS-005 Free Practice Questions

This is the free Comptia CAS-005 practice question bank — 210 of 406 total questions, each with a full explanation, free to read with no signup required. Updated 2026-11-12.

Every answer is verified against official Comptia documentation — see our methodology.

Question 1

During a vulnerability assessment, a scan reveals the following finding: Windows Server 2016 Missing hotfix KB87728 - CVSS 3.1 Score: 8.1 [High] - Affected host 172.16.15.2 Later in the review process, the remediation team marks the finding as a false positive. Which of the following is the best way to avoid this issue on future scans?

A. Getting an up-to-date list of assets from the CMDB
B. Performing an authenticated scan on the servers
C. Configuring the sensor with an advanced policy for fingerprinting servers
D. Coordinating the scan execution with the remediation team early in the process
Show Answer
Correct Answer: B
Explanation:
An authenticated scan can inspect the server’s installed updates and patch state directly, making missing-hotfix findings more accurate and helping prevent false positives on future scans.

Question 1

A company with a large, cloud-native, e-commerce website wants to know more details about an ongoing, sophisticated attack against the web platform. Which of the following is the best technique?

A. User behavior analytics
B. Dark web monitoring
C. Structured Threat Information exchange
D. High-interaction honeypots
Show Answer
Correct Answer: D
Explanation:
High-interaction honeypots provide realistic, instrumented systems that can engage attackers and capture detailed activity, tools, and techniques for analysis. User behavior analytics focuses on account behavior, dark web monitoring tracks external sources, and STIX is a format for sharing threat information rather than a direct investigation technique.

Question 1

A security analyst is attempting to determine which user accessed an internal web server. The analyst obtains the following address assignment logs from the VPN and logs from the domain when authenticating for the VPN from the SIEM: Which of the following actions should the analyst take?

Illustration for CAS-005 question 1
A. Confirm that the workstation and hostnames are the same in both logs.
B. Use the assigned VPN addresses for failed logins to identify the user.
C. Ensure that all log sources are configured to the same time zone.
D. Reduce the delay in VPN logs being sent to the SIEM.
Show Answer
Correct Answer: C
Explanation:
The timestamps in the VPN and authentication logs do not align, making it difficult to correlate a VPN address with the user who authenticated. Ensure both log sources use the same time zone before comparing events.

Question 2

An organization that utilizes token-based access for all facilities and systems recently completed an annual review of its security controls. Given the following report: Which of the following is the most important residual risk factor?

Illustration for CAS-005 question 2
A. Non-repudiation
B. Token availability
C. Attestation
D. Systems monitoring
Show Answer
Correct Answer: C
Explanation:
The highest-rated finding is unauthorized access using stolen certificates, and training users to secure badges does not adequately mitigate it. The key residual risk is attestation: a valid certificate alone may not establish that the person presenting it is its authorized holder.

Question 2

An organization wants to implement a secure cloud architecture across all instances. Given the following requirements: • Establish a standard network template • Deployments must be consistent • Security policies must be able to be changed at scale Which of the following technologies meets these requirements?

A. Serverless deployment model
B. Container orchestration
C. Infrastructure as code
D. CLI cloud administration
E. API gateway
Show Answer
Correct Answer: C
Explanation:
Infrastructure as code defines network and security configurations in reusable, machine-readable templates. Applying those templates consistently automates deployments and lets the organization update policies across many instances at scale.

Question 2

A systems administrator works for an organization that is merging with another one. The systems administrator needs to produce specific reports for the board of directors. Which of the following actions is the board of directors most likely taking?

A. Exercising due diligence
B. Enforcing a non-disclosure agreement
C. Investigating their right of first refusal
D. Performing third-party attestations
Show Answer
Correct Answer: A
Explanation:
In a merger, the board is most likely exercising due diligence by reviewing reports about the organization before completing the transaction. The other choices describe unrelated legal or assurance activities.

Question 3

A software analyst is conducting a forensic investigation. The analyst needs to differentiate between approved software components and those used within an application If used as part of the CI/CD pipeline, which of the following would most effectively help the analyst do this?

A. Dynamic analysis
B. Branch protection
C. Desenalization
D. Code signing
Show Answer
Correct Answer: D
Explanation:
Code signing applies a verifiable digital signature to software artifacts, allowing the analyst or CI/CD pipeline to confirm their publisher and detect changes. This helps distinguish approved, trusted components from unapproved or altered ones.

Question 3

A security analyst must design a system infrastructure that aligns to industry best practices and established frameworks. Which of the following should the analyst do first?

A. Establish a centralized logging tier.
B. Assign data labeling and data classification models.
C. Implement a vulnerability management program.
D. Perform a gap assessment of the security controls.
Show Answer
Correct Answer: D
Explanation:
Perform a gap assessment first to compare the current security controls with the chosen framework and identify deficiencies. That assessment informs which controls—such as centralized logging, data classification, or vulnerability management—should be designed and prioritized.

Question 3

An engineer sees the following segment while manually integrating legacy code into a modern application: Which of the following functions or expressions should the engineer modify?

Illustration for CAS-005 question 3
A. Line [03]; String destination[len];
B. Line [03]; char source[20];
C. Line [04]; if (sizeof(source) > 8)
D. Line [04]; Remove if-else clause
E. Line [05]; snprintf (...);
F. Line [05]; memcpy(...);
Show Answer
Correct Answer: E
Explanation:
The length check only establishes that the source is longer than eight characters; it does not ensure it fits in the 20-character destination. Replace the unbounded copy on line [05] with a properly bounded snprintf call to prevent a buffer overflow.

Question 4

A security engineer is reviewing a security incident in which an employee account was compromised. The engineer notes the following activity after reviewing the logs: Which of the following is the best way to reduce the probability of a future compromise?

Illustration for CAS-005 question 4
A. Using a different third-party MFA vendor
B. Configuring password complexity to include special characters
C. Implementing conditional access across the organization
D. Increasing the rotation rate of account credentials
Show Answer
Correct Answer: C
Explanation:
The log shows a login from an unknown location shortly after a login from a known location, despite MFA being enabled. Conditional access can restrict or require additional verification for sign-ins based on factors such as location, device compliance, and risk, reducing the chance that compromised credentials alone are enough to gain access.

$19

Get all 406 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.