Comptia

CAS-005 Free Practice Questions — Page 2

Question 4

A systems administrator uses an internal AI-based tool to generate code that uses an API to connect to a company service. After testing the code, the systems administrator collects and posts data using the API for the internal system. The Chief Information Security Officer asks a security engineer to review the systems administrator's process. Which of the following should the security engineer do first?

A. Check for hard-coded secrets in the application’s source code.
B. Use prompt-testing methodologies to ensure model security.
C. Review the effectiveness of the AI tool that the administrator used.
D. Analyze the large language model used to generate the output.
Show Answer
Correct Answer: A
Explanation:
Review the generated application code first for hard-coded credentials, API keys, or other secrets that could expose the company service. Assessing the AI tool or underlying model is less direct than checking the code actually used.

Question 5

A security architect wants to configure a mail server so it maintains an updated list of IOCs and blocks known-malicious incoming emails. Which of the following will the security architect most likely need for this task?

A. Log analyzer
B. Threat feed API
C. Scheduled task
D. Webhooks
E. Inbox deletion code
F. Security runbook
Show Answer
Correct Answer: B
Explanation:
A threat feed API supplies updated indicators of compromise that the mail server can use to identify and block known-malicious incoming email. A scheduled task could automate checks, but it does not provide the threat intelligence itself.

Question 5

A security engineer discovers that some workstations are trying to establish communication with an unknown domain. The engineer compiles the following information: Which of the following best describes this attack?

Illustration for CAS-005 question 5
A. Fast flux
B. Sinkholing
C. On-path attack
D. DNS poisoning
Show Answer
Correct Answer: A
Explanation:
This is fast flux: the same domain resolves to multiple changing IP addresses with short TTLs, helping conceal resilient malicious infrastructure.

Question 5

A SOC analyst is investigating an event in which a penetration tester was able to successfully create and execute a payload. The analyst pulls the following command history from the affected server: $ uname -a && env $ vim foo.c $ gcc foo.c /tmp/lockfile $ chmod +x /tmp/lockfile $ ./tmp/lockfile Which of the following should the analyst implement to improve the security of the server?

A. Kernel-supported ASLR controls
B. Application controls with allow lists
C. OS restrictions of globally writable folders
D. EDR signatures that terminate specific processes
Show Answer
Correct Answer: C
Explanation:
The tester appears to have placed a compiled payload in a shared temporary location and attempted to execute it. Restricting globally writable directories—such as mounting temporary filesystems with `noexec` where appropriate—helps prevent execution of dropped payloads from those locations.

Question 6

Which of the following mechanisms must a security protocol provide in order for zero-knowledge proofs to work in practical cryptographic applications?

A. Challenge-response series
B. Shared secret key derivation
C. Multiparty value splitting
D. Three-way handshake
Show Answer
Correct Answer: A
Explanation:
Zero-knowledge proofs commonly use a challenge-response sequence: the verifier issues a challenge, and the prover responds in a way that demonstrates knowledge of the secret without revealing it. Shared-key derivation, multiparty value splitting, and a three-way handshake are not required mechanisms.

Question 6

A network security architect is working on capturing network traffic to support the following objectives in the pictured network: • Capture relevant traffic to share with a threat intelligence vendor. • Collect only traffic that could indicate a potential network intrusion. • Minimize the budget and resource requirements of the collected traffic. Which of the following is the best way for the network security architect to capture network traffic?

Illustration for CAS-005 question 6
A. Placing a network tap on the ISP router
B. Configuring a span port on the core switch
C. Deploying a transparent proxy on the firewall
D. Connecting a network hub to the IDS device
Show Answer
Correct Answer: B
Explanation:
A SPAN port can mirror selected traffic from the core switch to a collection device, allowing the architect to limit capture to relevant traffic without buying and installing a network tap. With the IDS upstream, the mirrored traffic can be collected after IDS inspection. A tap at the ISP router or a hub would capture a broader volume, while a transparent proxy is not primarily a traffic-capture solution.

Question 6

The following vulnerability was detected during a recent SAST scan of an application that provides an encrypted tunnel between sites: Cipher Block Chaining Initialization Vector must be unpredictable. This vulnerability was found on the following lines of the source code: iv = b"CompTIAIV202512" cipher= Cipher(Algorithms.AES(key), modes.CBC(iv)) Which of the following is the potential impact of this vulnerability?

A. An attacker could derive plaintext from the protected data.
B. An attacker could predict future key material.
C. An attacker could tamper with the value sent in the Initialization Vector variable.
D. An attacker could use a DoS by predicting the Initialization Vector and tampering with its value.
Show Answer
Correct Answer: A
Explanation:
A fixed, predictable IV weakens CBC confidentiality. In situations where an attacker can influence or compare encrypted inputs, this can enable plaintext disclosure. It does not let the attacker predict the encryption key, and denial of service is not the primary impact.

Question 7

Multiple users are continuously being prompted to use MFA to log in to their systems. The security team plans to implement policy changes that could address this type of issue for users without reducing the security of user accounts. Which of the following rule changes is the most secure?

A. Creating a conditional access rule that does not require MFA upon login when the activity originates from the corporate network
B. Creating a conditional access rule that does not require MFA when logging in with any user accounts, regardless of where the login occurs
C. Creating a conditional access rule that requires MFA only when logging in to the company email provider
D. Creating a conditional access rule that requires MFA upon all logins, but taking away some password complexity requirements
Show Answer
Correct Answer: A
Explanation:
A reduces unnecessary MFA prompts only for sign-ins from the corporate network, while retaining MFA for logins from other locations. B removes MFA everywhere, C limits MFA to one service, and D does not reduce MFA prompts. The corporate-network exception should be used only if that network is appropriately secured and monitored.

Question 7

During post-incident analysis of a recent website outage, an incident response team identifies the following commands that were run from a compromised internal machine: Which of the following should the team do?

Illustration for CAS-005 question 7
A. Sinkhole suspicious DNS traffic
B. Implement DKIM
C. Restrict host and dig command executions
D. Prevent successful zone transfers
Show Answer
Correct Answer: D
Explanation:
The `dig axfr` command attempts a full DNS zone transfer. The team should ensure zone transfers are permitted only to authorized DNS servers, preventing an attacker from obtaining the zone’s records. Blocking `host` or `dig` would not address the underlying exposure.

Question 8

A penetration tester reviews the following output: Which of the following mitigations should the security engineer recommend?

Illustration for CAS-005 question 8
A. Removing domain users from the administrator group on the reporting server
B. Disabling NTLM hash transmission over the network to prevent sniffing
C. Blocking the Kerberos protocol on servers that are shared by many users
D. Implementing password complexity requirements in the domain
Show Answer
Correct Answer: A
Explanation:
The credential-dumping output indicates that an account has sufficient privileges to access credentials on the server. Removing domain users from the reporting server’s local administrators group limits that access. Blocking NTLM transmission would not prevent credentials from being dumped locally. Sources: https://www.sans.org/cyber-security-courses/enterprise-penetration-testing

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