Comptia

CAS-005 Free Practice Questions — Page 12

Question 55

A security technician is investigating a system that tracks inventory via a batch update each night. The technician is concerned that the system poses a risk to the business, as errors are occasionally generated and reported inventory appears incorrect. The following output log is provided: The technician reviews the output of the batch job and discovers that the inventory was never less than zero, and the final inventory was 100 rather than 60. Which of the following should the technician do to resolve this issue?

Illustration for CAS-005 question 55
A. Ensure that the application is using memory-safe functions to prevent integer overflows.
B. Recommend thread-safe processes in the code to eliminate race conditions.
C. Require the developers to include exception handlers to accommodate out-of-bounds results.
D. Move the batch processing from client side to server side to remove client processing inconsistencies.
Show Answer
Correct Answer: B
Explanation:
The transaction values are small, so integer overflow is not a plausible cause. The mismatched running totals suggest updates are being lost or overwritten when the inventory value is accessed concurrently. The developers should make those updates thread-safe to prevent race conditions.

Question 56

Source code snippets for two separate malware samples are shown below: Which of the following describes the most important observation about the two samples?

Illustration for CAS-005 question 56
A. Telemetry is first buffered and then transmitted in paranoid mode
B. The samples were probably written by the same developer.
C. Both samples use IP connectivity for command and control
D. Sample 1 is the target agent while Sample 2 is the C2 server.
Show Answer
Correct Answer: B
Explanation:
Both samples use the distinctive `knockEmDown` function name and similar status-string construction, which most strongly suggests shared authorship or a shared codebase. The snippets do not establish that both use IP-based C2 or that telemetry is buffered.

Question 57

A multinational enterprise is planning to implement a centralized authentication solution across its global offices. The risk team identifies that some regional offices operate in areas with high latency and some data centers experience intermittent connectivity issues. The Chief Information Officer requests a solution that minimizes authentication disruptions without compromising security. Which of the following is the best risk treatment strategy?

A. Implement a hybrid identity solution with local failover authentication
B. Require that all users authenticate only during on-site visits to headquarters
C. Accept the risk due to the low probability of simultaneous authentication failures
D. Outsource authentication to a third-party cloud provider
Show Answer
Correct Answer: A
Explanation:
A hybrid identity solution with local failover authentication preserves centralized security controls while allowing regional offices to authenticate during high latency or intermittent connectivity. This minimizes disruption without accepting the risk or imposing impractical restrictions.

Question 57

A company's SIEM is designed to associate the company’s asset inventory with user events. Given the following report: Which of the following should a security engineer investigate first as part of a log audit?

Illustration for CAS-005 question 57
A. An endpoint that is not submitting any logs
B. Potential activity indicating an attacker moving laterally in the network
C. A misconfigured syslog server creating false negatives
D. Unauthorized usage attempts of the administrator account
Show Answer
Correct Answer: A
Explanation:
Server 3 has no account or login data, indicating it may not be submitting logs to the SIEM. Investigate this visibility gap first, since missing telemetry could conceal security events.

Question 58

A user reports application access issues to the help desk. The help desk reviews the logs for the user: Which of the following is most likely the reason for the issue?

Illustration for CAS-005 question 58
A. The user inadvertently tripped the geoblock rule in NGFW.
B. A threat actor has compromised the user's account and attempted to log in.
C. The user is not allowed to access the human resources system outside of business hours.
D. The user did not attempt to connect from an approved subnet.
Show Answer
Correct Answer: D
Explanation:
The HR system allowed access from the Los Angeles IP/subnet but denied the later request from Toronto. This suggests the denied attempt came from a subnet that is not approved for HR access.

Question 59

A security engineer wants to improve the security of an application as part of the development pipeline. The engineer reviews the following component of an internally developed web application that allows employees to manipulate documents from a number of internal servers. response = requests.get(url) Users can specify the document to be parsed by passing the document URL to the application as a parameter. Which of the following is the best solution to verify the quality and security of this component?

A. Indexing
B. Output encoding
C. Code scanner
D. Penetration testing
Show Answer
Correct Answer: C
Explanation:
A code scanner can be integrated into the development pipeline to flag unsafe use of a user-supplied URL in requests.get(url), which could allow server-side request forgery (SSRF).

Question 59

The security team is receiving escalated support tickets stating that one of the company's publicly available websites is not loading as expected. Given the following observations: Which of the following is most likely the root cause?

Illustration for CAS-005 question 59
A. A certificate signed by a global root certification authority has expired.
B. A protocol mismatch error is expected to occur when using outdated browsers.
C. One certificate is being bound to multiple websites on the same server.
D. Subject alternative names were not used appropriately for subdomains.
Show Answer
Correct Answer: D
Explanation:
The certificate shown for WEB27 is for website.com, while the site is www.website.com. Unless the certificate’s SAN extension also lists www.website.com, browsers will reject the hostname. The certificate’s age alone does not establish that it has expired.

Question 60

A network engineer recorded the following test results: After a new network security appliance was deployed, the results of the network test are as follows: Which of the following network infrastructure components most likely produced these results?

Illustration for CAS-005 question 60 Illustration for CAS-005 question 60
A. IPS
B. CDN
C. VPN
D. IDS
Show Answer
Correct Answer: A
Explanation:
An IPS operates inline, inspecting traffic and blocking packets it identifies as suspicious. Its inspection can increase latency on allowed connections, while the dropped connection is consistent with active prevention. An IDS typically monitors traffic without blocking it.

Question 61

As part of a security audit in the software development life cycle, a product manager must demonstrate and provide evidence of a complete representation of the code and modules used within the production-deployed application prior to the build. Which of the following best provides the required evidence?

A. Software composition analysis
B. Runtime application inspection
C. Static application security testing
D. Interactive application security testing
Show Answer
Correct Answer: A
Explanation:
Software composition analysis inventories an application’s components and dependencies before the build, providing the basis for a software bill of materials. Runtime inspection occurs after deployment; SAST and IAST test for vulnerabilities rather than provide a component inventory.

Question 61

A company's security policy states that any publicly available server must be patched within 12 hours after a patch is released. A recent IIS zero-day vulnerability was discovered that affects all versions of the Windows Server OS: Which of the following hosts should a security analyst patch first once a patch is available?

Illustration for CAS-005 question 61
A. 1
B. 2
C. 3
D. 4
E. 5
F. 6
Show Answer
Correct Answer: D
Explanation:
Host 4 is externally available, runs IIS, and is not behind a WAF, making it the most directly exposed host affected by the IIS zero-day. It should be patched first once a patch is available.

$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.