Comptia

CAS-005 Free Practice Questions — Page 19

Question 125

A software developer is working on a piece of code required by a new software package. The code should use a protocol to verify the validity of a remote identity. Which of the following should the developer implement in the code?

A. RSA
B. OCSP
C. HSTS
D. CRL
Show Answer
Correct Answer: B
Explanation:
OCSP (Online Certificate Status Protocol) checks whether a digital certificate has been revoked, helping verify the validity of a remote identity. RSA is a cryptographic algorithm, HSTS enforces HTTPS, and a CRL is a published list rather than a status-checking protocol.

Question 126

A company is looking for a solution to hide data stored in databases. The solution must meet the following requirements: • Be efficient at protecting the production environment • Not require any change to the application • Act at the presentation layer Which of the following techniques should be used?

A. Masking
B. Steganography
C. Algorithmic
D. Random substitution
Show Answer
Correct Answer: A
Explanation:
Data masking can hide sensitive database values at the presentation layer, protecting what users see in production without requiring changes to the application.

Question 127

An organization’s senior security architect would like to develop cyberdefensive strategies based on standardized adversary techniques, tactics, and procedures commonly observed. Which of the following would best support this objective?

A. OSINT analysis
B. The Diamond Model of Intrusion Analysis
C. MITRE ATT&CK
D. Deepfake generation
E. Closed-source intelligence reporting
Show Answer
Correct Answer: C
Explanation:
MITRE ATT&CK is a standardized knowledge base of adversary tactics and techniques, with procedures and observed behaviors, and can guide cyberdefensive planning. The Diamond Model supports intrusion analysis but is not a catalog of standardized adversary TTPs.

Question 128

An organization is researching the automation capabilities for systems within an OT network. A security analyst wants to assist with creating secure coding practices and would like to learn about the programming languages used on the PLCs. Which of the following programming languages is the most relevant for PLCs?

A. Ladder logic
B. Rust
C. C
D. Python
E. Java
Show Answer
Correct Answer: A
Explanation:
Ladder logic is a widely used PLC programming language, designed to represent relay-based control circuits and standardized as part of IEC 61131-3. The other options are general-purpose languages and are not as directly associated with PLC programming.

Question 129

A security administrator needs to develop a remediation plan to address a large number of vulnerability scan results. Which of the following should the administrator use to determine the vulnerabilities that should be addressed first?

A. CPE
B. CCE
C. CVSS
D. CVE
Show Answer
Correct Answer: C
Explanation:
CVSS (Common Vulnerability Scoring System) assigns standardized severity scores to vulnerabilities, helping administrators prioritize remediation. CPE identifies products, CCE identifies configuration issues, and CVE provides vulnerability identifiers.

Question 131

Due to reports of malware targeting companies in the same industry, an organization wants to develop a comprehensive list of IoCs to determine if its systems might be affected in a similar attack. Which of the following would be best to use to develop this list?

A. Simulators
B. Sandbox detonation
C. Antivirus
D. Endpoint detection and response
Show Answer
Correct Answer: B
Explanation:
Sandbox detonation runs the suspected malware in an isolated environment and observes its behavior, helping analysts extract IoCs such as file hashes, domains, IP addresses, and system changes to check against their own systems.

Question 132

A company created an external application for its customers. A security researcher now reports that the application has a serious LDAP injection vulnerability that could be leveraged to bypass authentication and authorization. Which of the following actions would best resolve the issue? (Choose two.)

A. Conduct input sanitization.
B. Deploy a SIEM.
C. Use containers.
D. Patch the OS.
E. Deploy a WAF.
F. Deploy a reverse proxy.
G. Deploy an IDS.
Show Answer
Correct Answer: A, E
Explanation:
Input sanitization (ideally using safe LDAP query construction and validation) addresses the injection flaw in the application. A WAF can provide an additional protective layer by detecting and blocking LDAP injection payloads while the application is fixed. The other options do not directly remediate this application-layer vulnerability.

Question 133

The management team at a company with a large, aging server environment is conducting a server risk assessment in order to create a replacement strategy. The replacement strategy will be based upon the likelihood a server will fail, regardless of the criticality of the application running on a particular server. Which of the following should be used to prioritize the server replacements?

A. SLE
B. MTTR
C. TCO
D. MTBF
E. MSA
Show Answer
Correct Answer: D
Explanation:
MTBF (mean time between failures) measures the average operating time between failures, so it helps compare server reliability and prioritize servers more likely to fail. The other options measure incident impact, restoration time, ownership cost, or a contractual agreement.

Question 134

A technician is reviewing the logs and notices a large number of files were transferred to remote sites over the course of three months. This activity then stopped. The files were transferred via TLS-protected HTTP sessions from systems that do not send traffic to those sites. The technician will define this threat as:

A. a decrypting RSA using an obsolete and weakened encryption attack.
B. a zero-day attack.
C. an advanced persistent threat.
D. an on-path attack.
Show Answer
Correct Answer: C
Explanation:
The sustained transfer of large volumes of files to unusual remote sites over several months is characteristic of a stealthy, long-term compromise—an advanced persistent threat (APT). The scenario does not indicate that TLS was broken, a zero-day was used, or traffic was intercepted in transit.

Question 135

A company recently migrated its critical web application to a cloud provider’s environment. As part of the company’s risk management program, the company intends to conduct an external penetration test. According to the scope of work and the rules of engagement, the penetration tester will validate the web application’s security and check for opportunities to expose sensitive company information in the newly migrated cloud environment. Which of the following should be the first consideration prior to engaging in the test?

A. Prepare a redundant server to ensure the critical web application’s availability during the test.
B. Obtain agreement between the company and the cloud provider to conduct penetration testing.
C. Ensure the latest patches and signatures are deployed on the web server.
D. Create an NDA between the external penetration tester and the company.
Show Answer
Correct Answer: B
Explanation:
Because the application is hosted in a cloud provider’s environment, the company should first confirm that the provider authorizes the planned penetration test. Testing without the required approval may violate the provider’s terms or affect shared infrastructure. Redundancy, patching, and an NDA may be useful, but they do not replace that authorization.

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