Courseiva

CompTIA SecurityX (CAS-005) (CAS-005) — Questions 301375

968 questions total · 13pages · All types, answers revealed

Page 4

Page 5 of 13

Page 6
301
MCQmedium

An organization is implementing a PKI hierarchy. The security team wants to ensure that if an issuing CA is compromised, the root CA remains unaffected and can revoke the issuing CA's certificate. Which of the following BEST describes the recommended architecture?

A.A single-tier CA with the root CA online and issuing certificates directly
B.A three-tier hierarchy with a root CA, an intermediate CA, and an issuing CA, all online
C.Using self-signed certificates from the issuing CA without a root CA
D.A two-tier hierarchy with an offline root CA and an online issuing CA
AnswerD

The offline root CA is kept secure and can revoke the issuing CA if needed.

Why this answer

In a hierarchical PKI, the root CA is offline and issues certificates to intermediate CAs. The root CA can revoke the intermediate CA's certificate without being compromised itself.

302
MCQeasy

A security architect is designing a network segmentation strategy for a multi-tier web application. The web servers must be accessible from the internet, while the application and database servers must only be accessible from the web tier. Which architecture best meets these requirements?

A.Use a single VLAN with access control lists to restrict traffic between servers.
B.Place all servers in the same subnet and use host-based firewalls for isolation.
C.Deploy web servers in a DMZ, application servers in an internal network, and database servers in a separate restricted network with firewall rules allowing only necessary traffic.
D.Use a VPN concentrator for all external access and place all servers in a private subnet.
AnswerC

This provides defense in depth with proper segmentation and access controls.

Why this answer

It implements a classic three-tier DMZ architecture: web servers in a DMZ (publicly accessible), application servers in an internal network (accessible only from the DMZ), and database servers in a restricted backend network (accessible only from the application tier). This layered segmentation enforces the principle of least privilege and uses firewall rules to control traffic between each tier, ensuring that internet-facing components cannot directly reach sensitive data stores.

Exam trap

The trap here is that candidates often confuse network segmentation with simple access control lists or host-based firewalls, failing to recognize that true segmentation requires separate network zones (DMZ, internal, restricted) with firewall-enforced traffic flows between them.

How to eliminate wrong answers

Option A is wrong because a single VLAN with ACLs does not provide true network segmentation; ACLs on a Layer 3 device can filter traffic but all servers remain in the same broadcast domain, increasing the attack surface and risk of lateral movement. Option B is wrong because placing all servers in the same subnet with host-based firewalls relies solely on endpoint security, which can be bypassed if a host is compromised, and does not provide network-level isolation or defense in depth. Option D is wrong because using a VPN concentrator for all external access and placing all servers in a private subnet would require all users to connect via VPN, which is impractical for a public web application and does not segment internal tiers from each other.

303
MCQhard

A multinational corporation must comply with multiple data protection laws. What is the BEST strategy?

A.Use a minimal baseline that meets all laws
B.Follow only the laws of the home country
C.Follow local laws per region
D.Implement the most stringent requirements across all regions
AnswerD

This ensures compliance with the highest standards and reduces legal risk.

Why this answer

Implementing the most stringent requirements across all regions ensures compliance with the strictest data protection law (e.g., GDPR's Article 3 territorial scope, LGPD, or CCPA) without needing to track per-region variations. This approach reduces legal risk and operational complexity by applying a single, high-standard baseline that satisfies all applicable regulations, such as requiring explicit consent for data processing and 72-hour breach notification timelines.

Exam trap

CompTIA CASP+ often tests the misconception that following local laws per region (Option C) is sufficient, but the trap is that this ignores the cost and complexity of managing multiple compliance frameworks and the risk of missing extraterritorial requirements like GDPR's broad territorial scope.

How to eliminate wrong answers

Option A is wrong because a minimal baseline that meets all laws often fails to satisfy the highest standard (e.g., GDPR's 72-hour breach notification vs. a local law's 96-hour window), leading to non-compliance with the strictest regulation. Option B is wrong because following only the laws of the home country ignores extraterritorial requirements like GDPR's Article 3, which applies to any entity processing EU residents' data regardless of location. Option C is wrong because following local laws per region creates fragmented compliance efforts, increasing administrative overhead and risking conflicts where one region's law requires data retention while another mandates deletion, without a unified strategy.

304
Multi-Selectmedium

An organization's security team is reviewing security metrics to present to the board. Which THREE of the following are commonly used Key Performance Indicators (KPIs) for a security program? (Select THREE.)

Select 3 answers
A.Patch compliance percentage
B.Mean time to respond (MTTR)
C.Number of firewalls deployed
D.Vulnerabilities by severity
E.Mean time to detect (MTTD)
AnswersA, B, E

Indicates the proportion of systems with up-to-date patches.

Why this answer

Common security KPIs include mean time to detect (MTTD), mean time to respond (MTTR), and patch compliance percentage. Vulnerability by severity is typically a Key Risk Indicator (KRI). Number of firewalls is a configuration metric, not a KPI.

305
Multi-Selecthard

A company is implementing a secure SDLC and wants to integrate application security testing early. Which THREE tools are most appropriate for shift-left security? (Select THREE.)

Select 3 answers
A.Runtime Application Self-Protection (RASP)
B.Static Application Security Testing (SAST)
C.Interactive Application Security Testing (IAST)
D.Software Composition Analysis (SCA)
E.Dynamic Application Security Testing (DAST)
AnswersB, C, D

SAST can be integrated into the IDE or build pipeline.

Why this answer

SAST scans source code early, SCA identifies open-source vulnerabilities, and IAST combines static and dynamic analysis within the CI/CD pipeline. DAST and RASP are typically run later or in production.

306
MCQhard

During a security assessment, a penetration tester discovers that a web application uses a custom encryption algorithm to protect session tokens. According to secure engineering principles, what is the primary concern?

A.Performance overhead of the custom algorithm
B.Insufficient key length used in the algorithm
C.Incompatibility with modern browsers
D.Lack of peer review and cryptanalysis
AnswerD

Custom algorithms have not been scrutinized by the cryptographic community, making them vulnerable to undiscovered weaknesses.

Why this answer

The primary concern with a custom encryption algorithm is the lack of peer review and cryptanalysis. Without rigorous public scrutiny by the cryptographic community, hidden vulnerabilities or backdoors may remain undetected, violating the secure engineering principle of using well-vetted, standard cryptographic primitives. This is a foundational principle in security engineering, as custom algorithms often fail to withstand known attack vectors like differential or linear cryptanalysis.

Exam trap

CompTIA emphasizes that security through obscurity (custom algorithms) is fundamentally flawed, and candidates mistakenly focus on implementation details like key length or performance instead of the critical lack of peer review.

How to eliminate wrong answers

Option A is wrong because performance overhead, while a practical consideration, is not the primary security concern; a custom algorithm could be fast but still insecure. Option B is wrong because insufficient key length is a symptom of poor algorithm design, but the root issue is the lack of validation and analysis, not the key length itself—even a long key in a flawed algorithm offers no real security. Option C is wrong because incompatibility with modern browsers is a deployment issue, not a cryptographic security concern; session tokens are typically handled server-side and transmitted via cookies or headers, not directly executed by the browser's encryption engine.

307
MCQmedium

A small business runs its critical line-of-business application on a single Windows server located in a local data center. The server is accessed by employees remotely via RDP over a VPN. Recently, the server has been experiencing slow performance, and the administrator notices high CPU usage from a process named 'svchost.exe'. The administrator suspects malware but is not sure. The business has no security tools beyond Windows Defender. Management wants to minimize downtime and ensure the server is back to full operation as soon as possible. Which of the following is the BEST course of action for the administrator to take first?

A.Run a full offline scan using Microsoft Defender (Windows Defender Offline) from a bootable media.
B.Restore the server from the most recent backup taken before the performance issues started.
C.Install a third-party antivirus solution and perform a full system scan.
D.Disconnect the server from the network immediately to contain any potential threat.
AnswerA

Can detect and remove malware without affecting the running system, minimizing downtime.

Why this answer

A full offline scan using Microsoft Defender Offline boots the server from a clean environment, bypassing the running operating system where malware can hide or resist detection. This approach directly addresses the suspected malware without relying on the compromised OS, minimizes downtime by avoiding unnecessary restoration or network changes, and uses the only security tool available (Windows Defender) effectively.

Exam trap

CompTIA often tests the principle of 'least disruption first' combined with 'clean environment scanning,' where candidates mistakenly choose immediate network isolation (Option D) or backup restoration (Option B) without first using a low-impact diagnostic tool like an offline scan.

How to eliminate wrong answers

Option B is wrong because restoring from a backup taken before the performance issues started assumes the backup is clean and that the issue is definitively malware, but it could be a non-malware cause (e.g., a corrupted update or misconfiguration) and restoration incurs significant downtime and potential data loss. Option C is wrong because installing a third-party antivirus on a potentially compromised system can itself trigger conflicts, increase downtime, and the scan runs within the same vulnerable OS environment where malware may evade detection. Option D is wrong because immediately disconnecting the server from the network is premature without confirming a threat exists, and it causes unnecessary downtime for a business that relies on remote access via VPN; containment should follow confirmation of an active threat.

308
MCQeasy

During an incident response engagement, the team has completed containment and eradication. What is the next phase in the incident response lifecycle according to NIST SP 800-61?

A.Recovery
B.Preparation
C.Detection
D.Lessons Learned
AnswerA

Recovery is the phase after eradication.

Why this answer

The NIST incident response lifecycle includes Preparation, Detection & Analysis, Containment, Eradication, Recovery, and Post-Incident Activity (lessons learned). After eradication, recovery follows.

309
MCQhard

You are the security architect for a mid-sized e-commerce company that processes credit card payments. The company must comply with PCI DSS. Currently, the cardholder data environment (CDE) includes a web server, an application server, and a database server, all on the same flat network segment. The QSA has identified that the CDE is not properly segmented, and network access controls are insufficient. The company wants to minimize the scope of PCI compliance by reducing the number of systems that handle cardholder data. You propose implementing network segmentation to isolate the CDE. Which of the following is the most effective approach to reduce PCI scope while maintaining business functionality?

A.Encrypt all cardholder data at rest and in transit
B.Replace the database with a tokenization service and remove the database from the CDE
C.Move all servers to a DMZ and implement host-based firewalls
D.Deploy a firewall between the CDE and corporate network, allowing only necessary traffic
AnswerD

Segmenting the CDE reduces scope

Why this answer

Deploying a firewall between the CDE and the corporate network, and restricting traffic to only what is necessary, creates a proper network segmentation boundary. This isolation reduces the PCI DSS scope by ensuring that only systems within the CDE are subject to the full set of PCI requirements, while the corporate network remains out of scope. The firewall enforces a default-deny policy, which aligns with PCI DSS Requirement 1 for network segmentation and access control.

Exam trap

The trap here is that candidates often confuse data-centric controls (like encryption or tokenization) with network-centric controls (like segmentation), leading them to choose options that protect data but do not reduce the number of systems in the CDE.

How to eliminate wrong answers

Option A is wrong because encrypting cardholder data at rest and in transit does not reduce the number of systems that handle cardholder data; it only protects the data but does not change the CDE boundary or scope. Option B is wrong because replacing the database with a tokenization service and removing the database from the CDE would reduce scope, but the question asks for the most effective approach to segment the existing CDE; tokenization is a data-centric approach, not a network segmentation technique, and does not address the immediate need for network isolation. Option C is wrong because moving all servers to a DMZ and implementing host-based firewalls does not isolate the CDE from the corporate network; a DMZ is typically used for public-facing services and does not provide the strict segmentation required to reduce PCI scope, and host-based firewalls alone are insufficient for network-level segmentation.

310
MCQeasy

A company wants to implement certificate pinning for its mobile application to prevent man-in-the-middle attacks. Which of the following is the BEST practice when implementing certificate pinning?

A.Disable certificate pinning after the first successful connection
B.Pin the root CA certificate only
C.Pin the public key of the server certificate
D.Pin the entire certificate chain
AnswerC

Public key pinning remains valid across certificate renewals.

Why this answer

Pinning the public key rather than the entire certificate allows for certificate renewal without invalidating the pin.

311
MCQhard

During a forensic investigation, an analyst finds that a compromised system's memory dump shows signs of a kernel-mode rootkit. Which technique is MOST effective to detect the rootkit without relying on the compromised OS?

A.Run antivirus scans on the disk image.
B.Compare registry snapshots before and after infection.
C.Analyze network packet captures for C2 traffic.
D.Perform memory analysis using volatility on an isolated forensic workstation.
AnswerD

Memory analysis from a dump allows detection of kernel-mode artifacts without trusting the compromised OS.

Why this answer

Memory forensics on a different system enables analysis of the memory dump without relying on the compromised OS, allowing detection of kernel-mode rootkits that hide from OS-level tools. Option A (antivirus on disk image) depends on the compromised OS and may miss rootkits that hide from file system scans. Option B (registry snapshots) is ineffective because kernel rootkits operate below the registry level and can manipulate or avoid registry entries.

Option C (network packet captures) may show C2 traffic but does not directly detect the rootkit itself, and many rootkits use encrypted communication.

312
Multi-Selecteasy

Which two practices are essential for securing a CI/CD pipeline? (Choose two.)

Select 2 answers
A.Allow any developer to merge code into the main branch without review.
B.Implement code signing for all build artifacts.
C.Store credentials in plaintext within pipeline configuration files.
D.Use immutable tags for container images.
E.Scan container images for vulnerabilities before deployment.
AnswersB, E

Code signing ensures artifacts have not been tampered with.

Why this answer

Code signing ensures the integrity and authenticity of build artifacts, preventing tampering or injection of malicious code during the CI/CD pipeline. This practice verifies that artifacts originate from a trusted source and have not been altered, which is critical for secure software supply chain management.

Exam trap

The trap here is that candidates may confuse 'immutable tags' (Option D) as a security practice when it is actually a supply chain integrity mechanism, not a direct security control like code signing or vulnerability scanning.

313
Multi-Selectmedium

A security analyst is reviewing a web application's authentication mechanism. Which of the following are best practices to prevent session hijacking? (Select TWO.)

Select 2 answers
A.Regenerate session ID upon successful login
B.Set the session timeout to 5 minutes
C.Use the same session ID before and after authentication
D.Store session tokens in localStorage
E.Use the Secure and HttpOnly flags on session cookies
AnswersA, E

Why this answer

Regenerating the session ID upon successful login (option A) is a critical defense against session fixation attacks, where an attacker forces a known session ID on a user before authentication. By issuing a new, server-generated session ID after login, the application ensures that any pre-authentication session ID controlled by an attacker becomes invalid. This practice is recommended by OWASP and aligns with RFC 6265 session management guidelines.

Exam trap

The CAS-004 exam often tests the misconception that short session timeouts (like 5 minutes) are a primary defense against session hijacking, when in fact they are a secondary mitigation that can harm usability, while the core technical controls are session ID regeneration and cookie security flags.

Why the other options are wrong

B

Short timeouts reduce risk but do not prevent hijacking; they are a mitigation, not a prevention.

C

Using the same session ID allows session fixation attacks.

D

localStorage is accessible by JavaScript and vulnerable to XSS; cookies with HttpOnly flag are more secure.

314
MCQeasy

A security engineer is configuring a TLS 1.3 connection between a web server and client. Which feature is unique to TLS 1.3 and provides reduced latency for returning clients?

A.Cipher suite negotiation
B.0-RTT
C.Forward secrecy
D.Mutual authentication
AnswerB

0-RTT is a feature introduced in TLS 1.3 that allows a client to send data in the first message, reducing latency for returning clients.

Why this answer

TLS 1.3 includes a 0-RTT (zero round-trip time) feature that allows a client to send data immediately with the first message to a server it has previously connected to, reducing latency.

315
MCQeasy

Which of the following is the primary purpose of input validation in application security?

A.To improve application performance by filtering out large inputs
B.To prevent injection attacks by ensuring data conforms to expected formats
C.To encrypt user input before storing it in the database
D.To log all user input for auditing purposes
AnswerB

Why this answer

Input validation is a security control that ensures user-supplied data matches expected formats, types, lengths, and ranges before processing. By rejecting malformed input, it directly prevents injection attacks (e.g., SQL injection, XSS, command injection) where an attacker embeds malicious code within input fields. This aligns with OWASP's top application security risks and is a foundational defense-in-depth measure.

Exam trap

The CAS-004 exam often tests the misconception that input validation is about performance or logging, but the core purpose is always preventing injection attacks by enforcing data integrity at the application layer.

Why the other options are wrong

A

Performance improvement is a side effect, not the primary security goal.

C

Encryption protects data at rest, but input validation focuses on input integrity.

D

Logging is important but not the primary purpose of input validation.

316
MCQeasy

An organization is adopting a cloud-first strategy and wants to ensure proper security responsibilities are understood. Which concept defines the division of security responsibilities between the cloud provider and the customer?

A.Zero trust
B.Shared responsibility model
C.Software-defined perimeter
D.Defense in depth
AnswerB

Correctly describes the division of security responsibilities in cloud computing.

Why this answer

The shared responsibility model defines which security tasks are handled by the provider (e.g., physical security) and which by the customer (e.g., data access).

317
MCQhard

An organization is adopting the NIST Risk Management Framework (RMF). During which step would the security team select and implement security controls, and how does this map to the organization's governance structure?

A.Step 4: Assess — controls are evaluated for effectiveness.
B.Step 1: Prepare — the organization establishes risk management roles and responsibilities.
C.Step 5: Authorize — a senior official accepts the risk.
D.Step 2: Select and Step 3: Implement — controls are chosen based on risk assessment and integrated into the system.
AnswerD

These steps directly involve selecting and deploying security controls.

Why this answer

In NIST RMF, Step 2 (Select) and Step 3 (Implement) involve selecting controls from NIST SP 800-53 and implementing them. This aligns with governance through the risk executive function.

318
MCQeasy

A security team wants to implement a certificate pinning strategy for their mobile application to prevent man-in-the-middle attacks. Which of the following should be pinned in the application code?

A.The server's public key
B.The intermediate CA certificate
C.The server's IP address
D.The root CA certificate
AnswerA

Pinning the public key ensures that only the specific server key is trusted, even if the certificate changes.

Why this answer

Certificate pinning involves pinning the public key of the server's certificate or the certificate itself. Pinning the public key allows for certificate renewal without updating the app.

319
Multi-Selecthard

Which THREE of the following are common vulnerabilities in IoT devices? (Select THREE.)

Select 3 answers
A.Large storage capacity
B.Hardcoded credentials
C.Lack of secure boot
D.High compute power
E.Unencrypted communications
AnswersB, C, E

Many IoT devices ship with default or hardcoded credentials that cannot be changed.

Why this answer

Hardcoded credentials (Option B) are a common IoT vulnerability because manufacturers often embed default usernames and passwords (e.g., 'admin/admin') into device firmware for ease of deployment. Attackers can exploit these static credentials via SSH, Telnet, or web interfaces to gain unauthorized access, as seen in Mirai botnet attacks. This violates the principle of least privilege and secure credential management.

Exam trap

CompTIA often tests the misconception that hardware features like storage or compute power are vulnerabilities, when in fact the risks stem from insecure design choices (e.g., hardcoded credentials, lack of encryption) rather than raw capability.

320
MCQmedium

A security analyst at a financial institution is investigating a potential data exfiltration incident. The organization uses a zero-trust network architecture with micro-segmentation. The analyst notices that a database server with sensitive customer financial data has been communicating with an external IP address (198.51.100.45) over port 443 during non-business hours. The database server is not supposed to initiate outbound connections; all outbound traffic is logged and blocked by default except for specific allowlisted IPs and ports. The analyst reviews the firewall logs and finds that the outbound connection to 198.51.100.45 was allowed because the source port was 443, which is an allowed port for inbound HTTPS traffic. The database server is not a web server and does not run any HTTPS services. Which of the following is the best course of action for the analyst to take first?

A.Immediately block the external IP address at the perimeter firewall
B.Disable the database server's network interface
C.Review the database server's recent application logs for any anomalies
D.Check the endpoint detection and response (EDR) logs on the database server for signs of malware or unauthorized processes
AnswerD

Checking EDR logs can quickly indicate whether the server is compromised, guiding further actions.

Why this answer

The database server is not supposed to initiate outbound connections, yet a connection to an external IP over port 443 was allowed due to source port 443 matching an inbound allow rule. This strongly suggests the server may be compromised, with malware or an unauthorized process using source port 443 to bypass firewall restrictions. Checking EDR logs is the best first step to identify malicious processes or indicators of compromise without prematurely destroying evidence.

Exam trap

The trap here is that candidates assume the firewall allowed the connection because port 443 is legitimate for HTTPS, but the key insight is that the source port (not destination port) was used to bypass egress rules, requiring endpoint-level investigation rather than network-level blocking or application log review.

How to eliminate wrong answers

Option A is wrong because immediately blocking the external IP at the perimeter firewall could alert an attacker and destroy forensic evidence before the scope of the incident is understood. Option B is wrong because disabling the database server's network interface is a drastic, disruptive action that should only be taken after confirming compromise and preserving evidence; it may also cause unnecessary downtime for legitimate services. Option C is wrong because while reviewing application logs may be useful later, the database server is not a web server and does not run HTTPS services, so application logs are unlikely to reveal the root cause of the outbound connection; the anomaly is at the network and process level, best captured by EDR.

321
Multi-Selecteasy

A security analyst is reviewing web server logs and notices repeated requests to URLs containing sequences like '/../../../etc/shadow' and '/../../../etc/passwd'. Which TWO actions should the analyst take as part of the immediate incident response process?

Select 2 answers
A.Check for successful exploitation by reviewing file access logs
B.Block the source IP address at the firewall
C.Run a full antivirus scan on the web server
D.Rebuild the web server from a known good backup
E.Disable the web server until a patch is applied
AnswersA, B

Determines if sensitive files were actually accessed.

Why this answer

The correct immediate actions are A and B. Checking for successful exploitation (A) is crucial to determine if the attacker accessed sensitive files like /etc/shadow or /etc/passwd, which would indicate a breach requiring further response. Blocking the source IP at the firewall (B) stops further exploitation attempts from that address.

Running a full antivirus scan (C) is not directly relevant to a directory traversal attack, which exploits application logic rather than malware. Rebuilding the web server from backup (D) is premature before confirming compromise, and disabling the server (E) is too disruptive when containment via IP blocking suffices.

322
Multi-Selecthard

When evaluating the security architecture of a containerized application, which THREE of the following practices should be implemented to minimize the attack surface? (Select THREE.)

Select 3 answers
A.Encrypt sensitive data at rest within the container
B.Use minimal base images (e.g., Alpine Linux) instead of full OS images
C.Implement multi-factor authentication for container registries
D.Set container file systems to read-only where possible
E.Drop all capabilities except those required for the application
AnswersB, D, E

Smaller images have fewer packages and vulnerabilities.

Why this answer

Using minimal base images like Alpine Linux reduces the number of installed packages, libraries, and utilities, which directly shrinks the attack surface by eliminating unnecessary components that could contain vulnerabilities. This practice aligns with the principle of least functionality, ensuring only essential binaries are present in the container image.

Exam trap

CompTIA CASP+ often tests the distinction between security controls that protect data (encryption, MFA) versus controls that reduce the attack surface (minimal images, read-only filesystems, dropped capabilities), causing candidates to select all seemingly 'secure' options rather than those that specifically minimize exploitable components.

323
Multi-Selectmedium

A security analyst is analyzing a network capture and sees repeated TCP SYN packets to a host but no SYN-ACK responses. Which TWO conclusions are MOST likely? (Choose two.)

Select 2 answers
A.The host is out of TCP receive window space.
B.The network has a loop causing packet duplication.
C.The host has accepted the connections.
D.A firewall is dropping the SYN packets before they reach the host.
E.An attacker is performing a SYN flood DDoS attack.
AnswersD, E

Firewalls can block incoming SYN packets, resulting in no response.

Why this answer

Repeated TCP SYN packets without any SYN-ACK responses indicate that the target host is not responding to connection attempts. This can occur if a stateful firewall is blocking the incoming SYN packets before they reach the host (option D). Alternatively, an attacker may be conducting a SYN flood DDoS attack, overwhelming the host with SYN packets so that it cannot send SYN-ACK responses (option E).

Options A, B, and C are incorrect because TCP receive window issues (A) do not prevent SYN-ACKs, network loops (B) would still allow responses, and accepted connections (C) would produce SYN-ACKs.

324
MCQmedium

A security team is conducting a penetration test against a client's web application. During the reconnaissance phase, the tester discovers a subdomain that hosts a development version of the application with debug mode enabled. Which type of reconnaissance does this activity represent?

A.Open-source intelligence (OSINT) gathering by examining the target's website source code
B.Social engineering because the tester tricked an employee into revealing the subdomain
C.Active reconnaissance because the tester is sending requests to the target network to identify subdomains
D.Passive reconnaissance because the tester is using publicly available information
AnswerC

Active reconnaissance involves direct interaction with the target, such as DNS enumeration or port scanning.

Why this answer

Active reconnaissance involves directly interacting with the target, such as probing subdomains or services. Discovering a subdomain by scanning or querying DNS is active, as it sends traffic to the target's infrastructure.

325
MCQhard

In a CI/CD pipeline, a container image is built from a Dockerfile that uses a base image from a public registry. To minimize the attack surface, which of the following actions should be automated in the pipeline?

A.Use the 'latest' tag for the base image to get latest patches
B.Run a vulnerability scanner and fail the build on critical findings
C.Store the Dockerfile in a private repository only
D.Install all available packages inside the container
AnswerB

Why this answer

Integrating a vulnerability scanner into the CI/CD pipeline and failing the build on critical findings directly reduces the attack surface by preventing deployment of images with known exploitable vulnerabilities. This aligns with the principle of secure software supply chain management, where automated security gates are essential for containerized environments.

Exam trap

CompTIA often tests the misconception that using the 'latest' tag is a safe practice for security patching, when in fact it undermines deterministic builds and introduces supply chain risks.

Why the other options are wrong

A

'latest' can introduce breaking changes or untested versions.

C

Storage location does not reduce attack surface.

D

Installing extra packages increases attack surface.

326
MCQeasy

A system administrator is configuring a Linux server to host a web application. Which file permission should be set for the private SSL key?

A.600
B.644
C.444
D.755
AnswerA

600 grants read/write to owner only, which is secure for private keys.

Why this answer

The private SSL key must be protected from unauthorized access because it is used to decrypt traffic and establish trust. Setting permissions to 600 (owner read/write only) ensures that only the root or the application user who owns the key can read it, preventing other users or processes from extracting the key material.

Exam trap

The trap here is that candidates confuse file permissions for private keys with those for public certificates or configuration files, often choosing 644 because it is common for non-sensitive files, but private keys must never be readable by anyone except the owner.

How to eliminate wrong answers

Option B (644) is wrong because it grants read access to the group and others, which would allow any user on the system to read the private key, compromising its secrecy. Option C (444) is wrong because while it restricts write access, it still allows all users to read the key, which is a critical security failure. Option D (755) is wrong because it gives read and execute permissions to everyone, and execute is unnecessary for a key file, while also exposing the key to all users.

327
MCQmedium

During a vendor risk assessment, a company receives a SOC 2 Type II report from a cloud service provider. What does this report primarily attest to?

A.The design and operating effectiveness of controls over a period of time
B.The vendor's financial stability
C.The vendor's compliance with privacy laws
D.The vendor's penetration test results
AnswerA

Correct: SOC 2 Type II assesses control effectiveness over a period.

Why this answer

SOC 2 Type II reports on the effectiveness of controls over a period of time.

328
Multi-Selecthard

A security assessor is evaluating an application that uses ChaCha20-Poly1305 for encryption. Which TWO of the following are true about this cryptographic algorithm?

Select 2 answers
A.It is based on the AES algorithm
B.It requires padding to achieve correct block sizes
C.It is a stream cipher
D.It provides authenticated encryption with additional data (AEAD)
E.It is a block cipher
AnswersC, D

ChaCha20 is a stream cipher.

Why this answer

ChaCha20-Poly1305 is a stream cipher (ChaCha20) combined with a MAC (Poly1305). It is an AEAD cipher. It is not a block cipher, and it does not require padding.

329
MCQmedium

A company uses a microservices architecture with Docker containers orchestrated by Kubernetes. Developers push code to a Git repository, which triggers a CI/CD pipeline using Jenkins. The pipeline builds Docker images and pushes them to a private registry (Harbor). Recently, a critical vulnerability (CVE-2024-XXXX) was discovered in the base image of several containers. The security team wants to ensure that only images that pass vulnerability scans are deployed to production. The pipeline currently builds and pushes images without any security check. Developers are responsible for updating base images, but this has been inconsistent. Which action should the security team take?

A.Require developers to manually check their images and update base images
B.Implement a webhook in Harbor to automatically scan all images upon push and block vulnerable images from being pulled
C.Configure Jenkins to run Trivy scans on each built image and fail the pipeline if vulnerabilities exceed a defined threshold, and only allow images that pass to be pushed to the production registry
D.Use Kubernetes PodSecurity admission to block containers with high-severity vulnerabilities
AnswerC

This integrates security into the CI/CD pipeline, ensuring only compliant images are deployed.

Why this answer

It integrates vulnerability scanning directly into the CI/CD pipeline. By running Trivy as a step after the image is built but before it is pushed to the production registry, the pipeline can fail if the vulnerability count or severity exceeds a defined threshold. This ensures that only images that pass the security scan are deployed to production.

Option A (manual updates) is unreliable and does not enforce policy. Option B (Harbor webhook) would block pulls but does not prevent the push of vulnerable images; the image would already be in the registry. Option D (PodSecurity admission) controls what runs in Kubernetes but does not assess vulnerability severity and operates too late; the image would already be built and pushed.

330
MCQmedium

A company is deploying a cloud access security broker (CASB) to gain visibility into shadow IT. Which mode of operation would allow the CASB to inspect traffic without requiring proxy configuration on endpoints?

A.Reverse proxy mode
B.Inline mode
C.API-based mode
D.Forward proxy mode
AnswerC

API-based mode uses cloud provider APIs for out-of-band visibility.

Why this answer

API-based mode uses cloud provider APIs to access logs and metadata, providing visibility without inline traffic interception or endpoint changes.

331
MCQeasy

A security architect is selecting a cipher suite for TLS 1.3 to ensure forward secrecy and high performance. Which cipher suite should be recommended?

A.TLS_RSA_WITH_AES_256_CBC_SHA
B.TLS_AES_256_GCM_SHA384
C.TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
D.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256
AnswerB

Correct. This is a standard TLS 1.3 cipher suite providing forward secrecy and AEAD.

Why this answer

TLS 1.3 requires forward secrecy and uses AEAD ciphers. AES-256-GCM is a recommended AEAD cipher with strong security and performance.

332
MCQhard

An organization has a critical vulnerability in a legacy application that cannot be patched due to vendor end-of-life. The application is required for business operations and is accessible only from the internal network. Which compensating control would best reduce the risk of exploitation while maintaining availability?

A.Deploy a host-based intrusion prevention system (HIPS) on the server
B.Apply a vendor-supplied patch
C.Implement network segmentation and strict ACLs to limit access to the application
D.Uninstall the application
AnswerC

This reduces the likelihood of exploitation by restricting access.

Why this answer

Network segmentation and strict ACLs limit access to the vulnerable application, reducing the attack surface without patching.

333
MCQhard

During a compliance audit, an organization's security team discovers that sensitive data in a legacy database is stored in plaintext. The database is critical for operations and cannot be taken offline for patching until the next maintenance window in three months. Which of the following is the BEST compensating control to reduce risk immediately?

A.Restrict network access to the database to only authorized applications
B.Use file-level encryption on the database storage volume
C.Implement transparent database encryption (TDE)
D.Apply a digital signature to the database files
AnswerA

Network restrictions reduce attack surface without downtime.

Why this answer

Restricting network access to the database to only authorized applications is the best compensating control because it immediately reduces the attack surface without requiring any changes to the database itself. By implementing a host-based firewall or network ACLs that limit inbound connections to only specific application servers (e.g., via IP whitelisting and port restrictions), the organization can prevent unauthorized users or malware from directly querying the plaintext data. This control is operational immediately, does not require downtime, and aligns with the principle of least privilege, making it the most practical short-term risk mitigation while awaiting the maintenance window.

Exam trap

The key trap is that encryption solutions like TDE or file-level encryption require database downtime or reconfiguration, which is not permitted in the scenario. Network access control provides immediate risk reduction without touching the database.

How to eliminate wrong answers

Option B is wrong because file-level encryption on the database storage volume would require the volume to be taken offline or remounted to enable encryption, which contradicts the constraint that the database cannot be taken offline; additionally, it does not protect data in transit or in use, only at rest. Option C is wrong because implementing transparent database encryption (TDE) typically requires a database restart or at least a schema change, which would cause downtime, and it also requires the database to be taken offline for the initial encryption process, violating the operational constraint. Option D is wrong because applying a digital signature to the database files only ensures integrity and authenticity of the files, not confidentiality; it does not prevent unauthorized access to the plaintext data stored within the database.

334
MCQhard

A large enterprise is migrating its critical financial applications to a public cloud provider. The security architecture team has designed a multi-region deployment to ensure availability and disaster recovery. The applications use TLS for data in transit and rely on a key management service (KMS) for encryption keys. During a penetration test, it was discovered that the KMS master keys are stored in a single region, creating a single point of failure. Additionally, the load balancer configuration exposes internal application health check ports to the internet. The security architect must remediate these issues while minimizing latency and cost. Which of the following is the BEST course of action?

A.Replace the TLS encryption with IPsec VPNs and use a third-party key management appliance in each region
B.Implement cross-region replication of KMS master keys and restrict health check ports to internal IP ranges only
C.Move all applications to a single region to simplify key management and use a single shared load balancer
D.Use client-side encryption with keys stored in the application code and disable the health checks entirely
AnswerB

Replication ensures key availability; restricting health check ports reduces attack surface.

Why this answer

The best course of action because it directly addresses both security issues: cross-region replication of KMS master keys eliminates the single point of failure, and restricting health check ports to internal IP ranges reduces exposure. Option A is incorrect because it replaces TLS with IPsec (unnecessary) and adds complexity. Option C consolidates to one region, which defeats the purpose of multi-region deployment for availability and disaster recovery.

Option D embeds keys in code, violating key management best practices. Option B minimizes latency and cost while ensuring security.

335
MCQeasy

Under GDPR, which of the following is a data subject right that allows an individual to request that their personal data be erased?

A.Right to portability
B.Right to access
C.Right to erasure
D.Right to rectification
AnswerC

Correct. Also known as the right to be forgotten.

Why this answer

GDPR Article 17 gives individuals the right to erasure ('right to be forgotten').

336
MCQmedium

A SOC team receives an alert from a SOAR platform indicating a potential phishing email. The SOAR playbook automatically quarantines the email, blocks the sender, and opens a ticket. This is an example of which SOAR capability?

A.Response
B.Automation
C.Orchestration
D.Correlation
AnswerB

Automation performs actions automatically based on triggers.

Why this answer

Automation is the ability to execute predefined actions without human intervention, as in automatically quarantining and blocking.

337
MCQhard

An organization is deploying a containerized application on Kubernetes and must enforce that only approved container images are allowed to run, and that containers cannot escalate privileges. Which combination of controls should the architect implement?

A.Seccomp and AppArmor profiles with RBAC
B.Kubernetes network policies and RBAC
C.Admission controllers with image signing and PodSecurityPolicy
D.Container image scanning and network policies
AnswerC

Admission controllers can validate image signatures and PodSecurityPolicy restricts privilege escalation. Together they enforce image approval and prevent privilege escalation.

Why this answer

Admission controllers intercept requests to the Kubernetes API server; PodSecurityPolicy (now replaced by Pod Security Standards) can enforce privilege escalation restrictions. Image signing ensures only approved images are run. Seccomp and AppArmor are runtime security profiles, but they don't enforce image approval.

RBAC controls user access, not image approval. Network policies control traffic, not image approval.

338
MCQeasy

A small business uses Puppet for configuration management on Linux servers. They are now migrating to containers and want to maintain security. The operations team is unfamiliar with containers. The security team insists on automated vulnerability scanning of container images before deployment. What should be the company's first step?

A.Deploy a Kubernetes cluster and migrate all applications.
B.Discontinue using Puppet and switch entirely to container-based configurations.
C.Train the operations team on Docker and Kubernetes fundamentals.
D.Create a hardened base image standard, and set up a CI pipeline that automatically scans every image for vulnerabilities before it is pushed to the registry.
AnswerD

This establishes security controls early and automates the scanning requirement.

Why this answer

The first step in securing container images is to establish a hardened base image standard and integrate vulnerability scanning into a CI pipeline. This ensures that every image is automatically checked for known vulnerabilities before being pushed to the registry, addressing the security team's requirement without requiring the operations team to immediately master container orchestration. This approach aligns with the principle of shifting security left, preventing vulnerable images from ever reaching production.

Exam trap

The trap here is that candidates often confuse the immediate security requirement (vulnerability scanning) with broader orchestration or training needs, leading them to choose a later-stage activity (like deploying Kubernetes or training) instead of the foundational step of establishing a secure image pipeline.

How to eliminate wrong answers

Option A is wrong because deploying a Kubernetes cluster and migrating all applications is a premature and risky step; it assumes the operations team understands containers and orchestration, and it does not address the immediate need for automated vulnerability scanning of images. Option B is wrong because discontinuing Puppet entirely is unnecessary; Puppet can still manage host-level configurations (e.g., Docker daemon settings, OS hardening) while containers are introduced, and the question does not require a complete switch. Option C is wrong because training the operations team on Docker and Kubernetes fundamentals is important but is not the first step; the immediate priority is to implement the vulnerability scanning process to satisfy the security team's requirement, and training can occur in parallel.

339
MCQhard

A security analyst is reviewing the following JSON Web Token (JWT) header: {"alg":"none","typ":"JWT"}. Which of the following vulnerabilities does this indicate?

A.Weak signing key
B.Algorithm confusion attack surface
C.Token expiration not set
D.Unencrypted payload
AnswerB

The 'none' algorithm allows attackers to bypass verification, a known JWT vulnerability.

Why this answer

The JWT header specifies `"alg":"none"`, which instructs the server to accept a token without any cryptographic signature. This is a critical vulnerability because an attacker can forge arbitrary tokens by setting the algorithm to `none`, bypassing signature verification entirely. The correct answer is B because this directly creates an algorithm confusion attack surface, where the server may be tricked into accepting unsigned tokens.

Exam trap

CompTIA often tests the misconception that 'none' algorithm is about encryption or key strength, when in fact it is a direct signature bypass that enables algorithm confusion attacks.

How to eliminate wrong answers

Option A is wrong because a weak signing key refers to a key that is short or predictable (e.g., 'secret'), but here no key is used at all since the algorithm is 'none'. Option C is wrong because token expiration not set is a separate issue related to the `exp` claim in the payload, not the header's algorithm field. Option D is wrong because the payload is not encrypted by design in a standard JWT (it is base64url-encoded, not encrypted); the vulnerability here is about signature bypass, not payload confidentiality.

340
MCQmedium

An organization is implementing a hardware security module (HSM) to protect cryptographic keys used for code signing. The HSM is required to meet a government standard for physical security and tamper resistance. Which FIPS 140 security level must the HSM achieve to provide tamper-evident coatings and tamper response mechanisms?

A.FIPS 140-2 Level 3
B.FIPS 140-2 Level 4
C.FIPS 140-2 Level 2
D.FIPS 140-2 Level 1
AnswerA

Level 3 requires tamper-evident coatings and tamper response mechanisms.

Why this answer

FIPS 140-2 Level 3 requires tamper-evident coatings and tamper response mechanisms that zeroize keys upon tampering. Level 2 requires tamper-evident coatings but no response, Level 4 is for extreme environments.

341
Multi-Selectmedium

Which of the following are secure scripting practices when automating administrative tasks? (Choose two.)

Select 2 answers
A.Hardcode credentials in the script for convenience
B.Use a secrets management service to retrieve credentials at runtime
C.Run the script with the highest privileges required
D.Implement input validation to prevent injection attacks
AnswersB, D

Why this answer

Using a secrets management service (e.g., HashiCorp Vault, AWS Secrets Manager) retrieves credentials at runtime via secure APIs, avoiding hardcoded secrets in scripts. This practice ensures credentials are encrypted at rest and in transit, and supports rotation without modifying the script. It aligns with the principle of least privilege and reduces the risk of credential exposure in version control or logs.

Exam trap

The CAS-004 exam often tests the misconception that running with elevated privileges is necessary for automation, when in fact least privilege and secrets management are the secure practices, and input validation is a separate but equally important control.

Why the other options are wrong

A

Hardcoding exposes secrets in version control.

C

Should run with least privilege, not highest.

342
Multi-Selectmedium

A security analyst is investigating a potential data breach. The logs show that an attacker used a compromised service account to access sensitive files on a file server. Which TWO actions should the analyst take FIRST to contain the incident? (Choose TWO.)

Select 2 answers
A.Check the workstation logs for signs of malware.
B.Notify law enforcement and the organization's legal department.
C.Reset the service account password and revoke any active tokens.
D.Review and modify permissions on the file server to limit the account's access.
E.Restore the affected files from a known good backup.
AnswersC, D

Immediately stops the attacker's access.

Why this answer

Resetting the service account password and revoking active tokens (C) immediately invalidates the attacker's current authentication credentials, preventing further unauthorized access via that compromised account. This is a critical containment step because service accounts often have persistent access and may use long-lived tokens or cached credentials that remain valid until explicitly revoked.

Exam trap

The CAS-004 exam often tests the distinction between containment, eradication, and recovery phases; the trap here is that candidates may confuse a recovery action (restoring backups) or a notification step (calling law enforcement) with the immediate containment priority of cutting off the attacker's access.

343
MCQmedium

A security administrator is configuring SSH for a jump host used to access critical servers. Which of the following is the most secure configuration option to restrict authentication and reduce the attack surface?

A.Enable root login with a strong password
B.Allow only SSH protocol version 2
C.Change the default port to 2222
D.Allow only key-based authentication
AnswerD

Key-based authentication is resistant to brute force and password attacks.

Why this answer

Disabling password authentication and using only key-based authentication eliminates the risk of password brute force and credential theft. Listening on a non-standard port provides security through obscurity, which is not a strong control.

344
Multi-Selectmedium

A security architect is reviewing supply chain security for a software product. Which TWO artifacts are most important for verifying the integrity and provenance of third-party components?

Select 2 answers
A.Penetration test results
B.Software bill of materials (SBOM)
C.Dependency analysis report
D.Network flow logs
E.Database encryption configuration
AnswersB, C

Correct – SBOM provides component inventory.

Why this answer

SBOMs list all components and their versions; dependency analysis identifies vulnerabilities in those components.

345
Multi-Selecthard

Which THREE of the following are common techniques to mitigate side-channel attacks?

Select 3 answers
A.Disable CPU caching to prevent cache timing attacks
B.Implement constant-time algorithms for cryptographic operations
C.Add noise to power consumption or electromagnetic emissions
D.Ensure memory access patterns are independent of secret data
E.Use random delays in code execution paths
AnswersB, C, D

Constant-time execution prevents timing variations based on secret data.

Why this answer

Constant-time algorithms ensure that the execution time of cryptographic operations does not depend on secret data, such as keys. By avoiding conditional branches or variable-time instructions (e.g., multiplication or memory accesses) that vary with input, these algorithms prevent attackers from inferring secrets through timing measurements. This is a fundamental mitigation against timing side-channel attacks, as specified in standards like FIPS 140-3 and NIST SP 800-56B.

Exam trap

CompTIA often tests the misconception that adding random delays (Option E) is a valid side-channel mitigation, but candidates must recognize that statistical averaging defeats such noise, whereas constant-time algorithms (Option B) and noise injection (Option C) are standard, effective techniques.

346
MCQmedium

An organization is implementing a governance framework to ensure that security controls are aligned with business objectives. Which of the following frameworks is specifically designed for this purpose?

A.COBIT 2019
B.NIST SP 800-53
C.ITIL 4
D.ISO/IEC 27001
AnswerA

COBIT is a governance framework that aligns IT with business objectives.

Why this answer

COBIT 2019 is specifically designed to align IT governance and security controls with business objectives by providing a comprehensive framework that links business goals to IT goals and enablers. It focuses on governance of enterprise IT (GEIT), ensuring that security investments and controls directly support strategic business outcomes, unlike other frameworks that are more operational or compliance-focused.

Exam trap

CompTIA often tests the distinction between governance frameworks (COBIT) and operational or compliance frameworks (NIST SP 800-53, ITIL, ISO 27001), trapping candidates who confuse control implementation with strategic alignment.

How to eliminate wrong answers

Option B (NIST SP 800-53) is wrong because it is a catalog of security and privacy controls for federal information systems, not a governance framework designed to align controls with business objectives; it focuses on technical and operational control implementation rather than strategic alignment. Option C (ITIL 4) is wrong because it is a service management framework that focuses on IT service lifecycle and delivery processes, not on governance or linking security controls to business goals. Option D (ISO/IEC 27001) is wrong because it is an information security management standard that specifies requirements for an ISMS, emphasizing risk management and compliance, but it does not inherently provide a governance structure to align controls with business objectives like COBIT does.

347
Multi-Selecthard

An organization is implementing a software-defined perimeter (SDP) for zero trust network access. Which THREE characteristics are typical of an SDP architecture? (Choose three.)

Select 3 answers
A.Relies on IP-based allowlists
B.Applications are invisible to unauthorized users
C.Creates encrypted tunnels per session
D.Uses a single shared firewall for all traffic
E.Requires device authentication before granting network access
AnswersB, C, E

Correct; SDP hides applications until authenticated.

Why this answer

SDP hides infrastructure, requires authentication before connectivity, and creates per-session encrypted tunnels.

348
MCQeasy

A security architect is designing a zero trust architecture for a corporate network. Which principle is fundamental to the zero trust model?

A.Trust based on device compliance
B.Never trust, always verify
C.Trust based on network location
D.Trust but verify
AnswerB

Correct; this is the core principle of zero trust.

Why this answer

Zero trust assumes no implicit trust; every access request must be verified regardless of origin.

349
MCQhard

During a penetration test, the tester gains access to a web server and wants to escalate privileges to root. The tester discovers that the web application runs with a service account that has the SeImpersonatePrivilege enabled. Which attack is most likely to succeed for privilege escalation?

A.SQL injection
B.Pass-the-hash attack
C.DLL hijacking
D.JuicyPotato attack
AnswerD

JuicyPotato exploits SeImpersonatePrivilege to escalate to SYSTEM.

Why this answer

SeImpersonatePrivilege allows a process to impersonate a user token. Tools like JuicyPotato exploit this privilege to impersonate SYSTEM by forcing a higher-privileged process to authenticate and then stealing its token. This is a common technique for local privilege escalation on Windows.

350
MCQhard

An organization uses AWS, Azure, and GCP for different workloads. They want a single tool to manage infrastructure consistently across all providers. Which approach is most appropriate?

A.Use Terraform with provider plugins
B.Use Azure Resource Manager templates
C.Write provider-specific scripts in PowerShell
D.Use AWS CloudFormation
AnswerA

Terraform’s provider model allows unified management across clouds.

Why this answer

Terraform is an infrastructure-as-code tool that uses provider plugins to interact with the APIs of AWS, Azure, GCP, and hundreds of other services. This allows a single declarative configuration language (HCL) to manage resources consistently across all three cloud providers, making it the most appropriate choice for multi-cloud infrastructure management.

Exam trap

Candidates often mistakenly choose a single-vendor tool like CloudFormation or ARM templates for multi-cloud management. The correct approach uses a cloud-agnostic tool that abstracts provider APIs.

How to eliminate wrong answers

Option B is wrong because Azure Resource Manager (ARM) templates are Azure-specific JSON templates that cannot manage AWS or GCP resources. Option C is wrong because writing provider-specific scripts in PowerShell would require separate scripts for each cloud provider (e.g., AWS Tools for PowerShell, Azure PowerShell, and GCP PowerShell cmdlets), failing to provide a single consistent tool. Option D is wrong because AWS CloudFormation is a native AWS service that uses JSON or YAML templates and cannot manage Azure or GCP resources.

351
MCQeasy

Which of the following is a primary benefit of using a Web Application Firewall (WAF) in front of a web application?

A.It encrypts all traffic between client and server
B.It prevents all types of attacks against the application
C.It filters malicious HTTP requests and can block common web exploits
D.It performs static code analysis on the application
AnswerC

Why this answer

A Web Application Firewall (WAF) operates at Layer 7 (application layer) of the OSI model and inspects HTTP/HTTPS traffic for malicious payloads. It uses a combination of signature-based detection, behavioral analysis, and rule sets (e.g., OWASP ModSecurity Core Rule Set) to filter out common web exploits such as SQL injection, cross-site scripting (XSS), and path traversal. By intercepting and blocking malicious requests before they reach the web application, a WAF provides a critical layer of defense without requiring changes to the application code.

Exam trap

CompTIA often tests the misconception that a WAF provides comprehensive protection against all attacks, when in fact it is a specialized Layer 7 filter that cannot prevent network-layer attacks, business logic abuse, or vulnerabilities in the application's own code logic.

Why the other options are wrong

A

Encryption is typically handled by TLS, not the WAF.

B

WAFs cannot prevent all attacks, especially logic flaws or zero-days.

D

Static code analysis is a separate process, not a WAF function.

352
MCQmedium

A company wants to reduce the mean time to detect (MTTD) for security incidents. Which technology is most effective for this purpose?

A.Security information and event management (SIEM) with behavior analytics
B.Full disk encryption software
C.Data loss prevention (DLP) system
D.Network-based intrusion detection system (NIDS)
AnswerA

SIEM with UEBA provides real-time correlation and anomaly detection, reducing MTTD.

Why this answer

A SIEM with User and Entity Behavior Analytics (UEBA) is most effective for reducing MTTD because it baselines normal behavior and detects anomalies in real time, enabling early detection of threats. Full disk encryption (B) protects data at rest but does not aid detection. A DLP system (C) focuses on preventing data exfiltration, not broad detection.

A NIDS (D) relies on signature matching, which can miss novel or subtle attacks and typically has a higher detection latency than behavior analytics.

353
Multi-Selectmedium

A security architect is designing deception technologies to detect and delay attackers. Which TWO of the following are examples of deception technologies that can be deployed? Select TWO.

Select 2 answers
A.Honeytokens
B.Honeypots
C.Security Information and Event Management (SIEM)
D.Vulnerability scanner
E.Intrusion Prevention System (IPS)
AnswersA, B

Honeytokens are fake credentials or data used to detect unauthorized access.

Why this answer

Honeypots and honeytokens are classic deception technologies. Honeypots mimic real systems, and honeytokens are fake data objects.

354
MCQmedium

A company uses a SIEM with User Behavior Analytics (UBA). The UBA generates an alert when a user accesses sensitive data at unusual hours. Which type of correlation rule is being applied?

A.Threshold-based correlation
B.Signature-based correlation
C.Anomaly-based correlation
D.Trend-based correlation
AnswerC

UBA uses anomaly detection to identify deviations from normal behavior.

Why this answer

UBA establishes baselines of normal user behavior and alerts on deviations, which is an anomaly-based detection method.

355
MCQmedium

A network administrator is configuring a firewall rule set. The requirement is to allow inbound HTTPS traffic from the internet to a web server at 10.1.1.10, and to allow the web server to respond. All other inbound traffic should be blocked. Which rule set accomplishes this?

A.Allow inbound TCP 80 to 10.1.1.10; allow outbound TCP from 10.1.1.10; deny all inbound
B.Allow inbound TCP 443 to 10.1.1.10; allow outbound TCP from 10.1.1.10; deny all inbound
C.Deny all inbound; allow inbound TCP 443 to 10.1.1.10; allow outbound TCP from 10.1.1.10
D.Allow inbound TCP 22 to 10.1.1.10; allow outbound TCP from 10.1.1.10; deny all inbound
AnswerB

Correctly permits HTTPS and related responses.

Why this answer

HTTPS uses TCP port 443, and the rule set correctly allows inbound TCP 443 to the web server at 10.1.1.10, permits the server's outbound responses (stateful or explicit), and then denies all other inbound traffic. This matches the requirement to allow only HTTPS traffic from the internet while blocking everything else.

Exam trap

The trap here is that candidates often overlook rule order and choose Option C, thinking a 'deny all' at the top is safe, but it actually blocks the intended traffic before the allow rule is processed.

How to eliminate wrong answers

Option A is wrong because it allows inbound TCP port 80 (HTTP), not HTTPS (TCP 443), so it does not meet the requirement for HTTPS traffic. Option C is wrong because the order of rules matters: placing 'deny all inbound' first would block all inbound traffic, including the intended HTTPS traffic, before the allow rule is evaluated. Option D is wrong because it allows inbound TCP port 22 (SSH), which is not HTTPS and would permit unauthorized administrative access, violating the requirement to block all other inbound traffic.

356
Multi-Selecthard

An organization is deploying a new PKI and wants to ensure certificate revocation is performed efficiently. Which THREE methods should be implemented? (Select THREE.)

Select 3 answers
A.Short-lived certificates
B.Online Certificate Status Protocol (OCSP)
C.OCSP stapling
D.Certificate transparency logs
E.Certificate revocation lists (CRLs)
AnswersB, C, E

OCSP provides real-time status.

Why this answer

CRL, OCSP, and OCSP stapling are all standard revocation checking mechanisms; OCSP stapling improves performance by having the server present the OCSP response.

357
Multi-Selecthard

A security engineer is hardening an SSH server. The policy requires disabling all legacy algorithms and using only modern, secure cryptography. Which THREE of the following configurations should the engineer apply?

Select 3 answers
A.Set HMAC algorithms to use only SHA-2 or stronger.
B.Allow only SSH protocol version 1 for compatibility.
C.Enable root login with password for administrative convenience.
D.Disable password authentication and allow only key-based authentication.
E.Restrict key exchange algorithms to curve25519-sha256.
AnswersA, D, E

SHA-1 is deprecated; SHA-2 or newer should be used.

Why this answer

Key-based authentication only is more secure than passwords. Disabling password authentication prevents brute-force attacks. Restricting key exchange to curve25519 ensures strong forward secrecy.

Enabling root login with password is insecure. Using SHA-1 for HMAC is weak.

358
MCQmedium

A security engineer is reviewing the configuration of an AWS S3 bucket that stores customer data. Which of the following settings is most likely to cause a data breach?

A.Versioning enabled on the bucket
B.Bucket policy that allows public read access
C.Server-side encryption with AWS KMS
D.MFA delete enabled on the bucket
AnswerB

A bucket policy allowing public read access exposes all objects in the bucket to anyone, leading to potential data breach.

Why this answer

A bucket policy allowing public read access exposes data to anyone. Option A (versioning) is a feature, not a risk. Option C (encryption) is secure.

Option D (MFA delete) is a security control.

359
Drag & Dropmedium

Drag and drop the steps to perform a forensic acquisition of a hard drive using FTK Imager into the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

Forensic acquisition requires write-blocking first, then using FTK Imager to create a forensic image, ensuring integrity with hash verification.

360
MCQhard

A security analyst is reviewing the firewall rules. Which of the following best describes the rule set's effect?

A.HTTP is allowed from any source
B.Default input policy is ACCEPT
C.ICMP is logged
D.SSH is allowed from any source
AnswerA

The first rule accepts TCP on port 80 from any source (0.0.0.0/0).

Why this answer

The rule set includes an explicit permit rule for HTTP traffic from any source, which overrides the default deny policy. Since the default input policy is set to DROP (or DENY), only traffic matching a permit rule is allowed; HTTP is explicitly permitted, making option A correct.

Exam trap

The CAS-004 exam often tests the distinction between the default policy and explicit rules; candidates mistakenly assume a default ACCEPT policy when the rule set only shows explicit permits, overlooking that the default is DROP unless stated otherwise.

How to eliminate wrong answers

Option B is wrong because the default input policy is DROP, not ACCEPT; if it were ACCEPT, all traffic would be allowed by default, which contradicts the rule set's restrictive behavior. Option C is wrong because ICMP is not logged; the rule set does not include any logging action for ICMP traffic. Option D is wrong because SSH is not allowed from any source; the rule set only permits SSH from a specific source IP or subnet, not any source.

361
MCQeasy

Which key exchange algorithm provides perfect forward secrecy (PFS) and is recommended for use in TLS 1.3?

A.ECDHE
B.RSA key exchange
C.Pre-shared key (PSK)
D.Diffie-Hellman (DH)
AnswerA

ECDHE generates ephemeral keys, ensuring PFS.

Why this answer

ECDHE (Elliptic Curve Diffie-Hellman Ephemeral) provides PFS as session keys are ephemeral.

362
MCQmedium

An organization's risk appetite is defined as 'low' for data privacy. Which of the following risk treatments is most aligned with this appetite?

A.Transfer the risk through cyber insurance
B.Mitigate the risk by encrypting personal data
C.Avoid the risk by not collecting unnecessary personal data
D.Accept the risk and self-insure
AnswerC

Eliminates risk directly

Why this answer

With a 'low' risk appetite for data privacy, the organization must minimize exposure to privacy breaches. Avoiding the risk by not collecting unnecessary personal data is the most aligned treatment because it eliminates the privacy risk entirely rather than reducing or transferring it. This approach ensures no personal data exists to be compromised, directly supporting a low-risk appetite.

Exam trap

The CAS-004 exam often tests the distinction between risk mitigation and risk avoidance, where candidates mistakenly choose encryption (mitigation) as the best option for a low-risk appetite, overlooking that avoidance eliminates the risk entirely.

How to eliminate wrong answers

Option A is wrong because transferring risk through cyber insurance does not reduce the likelihood or impact of a privacy breach; it only provides financial compensation, which is insufficient for a low-risk appetite that demands minimal exposure. Option B is wrong because mitigating the risk by encrypting personal data reduces but does not eliminate the risk; encrypted data can still be exfiltrated and decrypted, leaving residual privacy risk unacceptable for a low appetite. Option D is wrong because accepting the risk and self-insuring implies tolerance of potential privacy breaches, which contradicts a low-risk appetite that seeks to avoid such events entirely.

363
Multi-Selectmedium

A security engineer is hardening SSH server configuration. Which TWO options improve security? (Select TWO.)

Select 2 answers
A.Allow all cipher suites for compatibility
B.Restrict allowed key exchange algorithms to strong ones
C.Use key-based authentication only
D.Disable root login via SSH
E.Enable password authentication for convenience
AnswersB, C

Restricting allowed key exchange algorithms to strong ones eliminates weak algorithms, improving security.

Why this answer

Restricting key exchange algorithms to strong ones (B) prevents downgrade attacks and ensures only secure cryptographic methods are used. Using key-based authentication only (C) eliminates password-based vulnerabilities such as brute-force and credential theft. Option D (disable root login) is also a security best practice but is not one of the two required selections in this question.

Option A weakens security by allowing weak ciphers, and option E introduces password authentication which increases attack surface.

364
MCQhard

An organization has recently migrated its on-premises data center to a public cloud. The security team notices that several virtual machines (VMs) in the same subnet are communicating with each other without any restrictions. The company policy requires that only specific application traffic (e.g., database queries from web servers) be allowed between VMs, and all other inter-VM traffic must be blocked to comply with a zero-trust model. The cloud provider offers native security group and network ACL features. The architect must design a solution that enforces the policy with minimal administrative overhead and supports future expansion. Which of the following is the BEST course of action?

A.Move each application tier to a separate VPC and use VPC peering with strict routing policies
B.Place all VMs in the same subnet and configure security groups that only allow necessary inter-VM traffic (e.g., web-to-db), with a default deny rule
C.Place all VMs in the same subnet and configure network ACLs with explicit allow rules for required traffic and a deny-all rule for other traffic
D.Keep all VMs in the same subnet but deploy a third-party next-generation firewall as a virtual appliance to inspect and filter inter-VM traffic
AnswerB

Security groups are stateful and evaluated at the instance level; they allow fine-grained control with default deny.

Why this answer

Security groups are stateful firewalls that operate at the instance level and are deny-by-default. By placing all VMs in the same subnet and applying security groups with allow rules only for required application traffic (e.g., web-to-db), we enforce zero-trust principles: all traffic is denied unless explicitly allowed. This minimizes administrative overhead because security groups are easy to manage and do not require separate subnetting or additional appliances.

Option A is incorrect because moving to separate VPCs introduces unnecessary complexity and VPC peering overhead. Option C is incorrect because network ACLs are stateless and require explicit inbound and outbound rules for each flow, increasing administrative effort. Option D is incorrect because a third-party firewall adds cost and complexity without providing additional security benefit beyond what native security groups already offer.

365
MCQhard

A digital forensics investigator is called to the scene of a potential data breach. The investigator must collect evidence from a live Windows system. Which of the following represents the correct order of volatility when collecting volatile data?

A.Network connections, memory, disk, running processes
B.Memory, network connections, running processes, disk
C.Disk, memory, network connections, running processes
D.Running processes, memory, network connections, disk
AnswerB

Memory is most volatile, then network, then processes, then disk.

Why this answer

The order of volatility dictates that the most volatile data (memory, network connections) should be collected first. The standard order: registers/cache, routing table, ARP cache, process table, kernel statistics, memory, temporary file systems, disk.

366
MCQmedium

A security engineer is writing a Python script to automate the revocation of compromised credentials across multiple cloud services. Which of the following is the most critical security consideration when implementing this script?

A.Ensure the script runs with the least privilege necessary.
B.Use a secrets management service to store API keys.
C.Log all actions performed by the script.
D.Run the script from a hardened bastion host.
AnswerB

Why this answer

Storing API keys in a secrets management service (e.g., HashiCorp Vault, AWS Secrets Manager) prevents hardcoding credentials in the script, which is a critical security practice for automation. Even with least privilege, if the API key is exposed in plaintext (e.g., in source code or logs), an attacker can reuse it across services. Secrets management also enables rotation, auditing, and dynamic access control, directly addressing the risk of credential compromise in multi-cloud revocation scripts.

Exam trap

The CAS-004 exam often tests the misconception that least privilege (Option A) is the most critical control, but the trap here is that without secure credential storage, even a least-privilege key can be exfiltrated and reused, making secrets management the foundational security consideration for automation scripts.

Why the other options are wrong

A

Important but not the most critical; the script's credentials must be protected first.

C

Logging is good for auditing but does not protect the script's credentials.

D

While a hardened host reduces risk, the script's secrets are still exposed if hardcoded.

367
MCQeasy

Based on the auth.log exhibit, what is the MOST appropriate immediate action to mitigate this attack?

A.Disable root login and remove the admin account.
B.Block the entire 192.168.1.0/24 subnet at the firewall.
C.Configure fail2ban to block the IP address after a threshold of failed attempts.
D.Change the SSH port to a non-standard port.
AnswerC

fail2ban automatically blocks the attacking IP, stopping the attack.

Why this answer

The log shows a brute-force attack against SSH. Installing fail2ban will dynamically block the IP after multiple failures. Option A is too broad and may block legitimate users from that subnet.

Option B doesn't address the immediate attack. Option D is good practice but does not stop the ongoing attack immediately.

368
MCQeasy

Which key performance indicator (KPI) is most useful for measuring the effectiveness of an incident response process?

A.Patch compliance percentage
B.Vulnerabilities by severity
C.Number of security awareness training sessions
D.Mean time to respond (MTTR)
AnswerD

MTTR measures the average time to respond to incidents, a direct measure of response efficiency.

Why this answer

Mean time to respond (MTTR) directly measures how quickly incidents are contained and remediated, reflecting process efficiency.

369
MCQmedium

An organization wants to adopt a cybersecurity framework that provides a structured approach to managing cyber risks. Which framework is BEST suited?

A.COBIT
B.NIST Cybersecurity Framework
C.ISO 27001
D.ITIL
AnswerB

NIST CSF provides a comprehensive framework for managing cybersecurity risks.

Why this answer

The NIST Cybersecurity Framework (CSF) is specifically designed to provide a structured, risk-based approach to managing cybersecurity risks, offering core functions (Identify, Protect, Detect, Respond, Recover) and implementation tiers that align with an organization's risk appetite. It is the best fit because it directly addresses cyber risk management through a flexible, outcome-driven framework, unlike other frameworks that focus on IT governance, information security management systems, or service management.

Exam trap

CompTIA often tests the distinction between governance/IT management frameworks (COBIT, ITIL) and cybersecurity-specific risk frameworks, trapping candidates who confuse ISO 27001's ISMS certification with a structured cyber risk management approach.

How to eliminate wrong answers

Option A (COBIT) is wrong because it is an IT governance and management framework focused on aligning IT processes with business objectives and control objectives, not a dedicated cybersecurity risk management framework. Option C (ISO 27001) is wrong because it is an information security management standard that specifies requirements for an ISMS (Information Security Management System) and is certification-oriented, not a structured cyber risk management framework like the NIST CSF. Option D (ITIL) is wrong because it is a set of best practices for IT service management (ITSM), focusing on service lifecycle and delivery, with no direct emphasis on cybersecurity risk management.

370
Multi-Selectmedium

A company is evaluating multi-factor authentication methods. Which TWO are considered phishing-resistant? (Select TWO.)

Select 2 answers
A.FIDO2/WebAuthn
B.Biometric authentication on a smartphone
C.TOTP via mobile app
D.SMS one-time codes
E.Hardware security tokens (e.g., YubiKey)
AnswersA, E

FIDO2 uses public key cryptography tied to the origin.

Why this answer

FIDO2/WebAuthn uses origin-bound keys, and hardware tokens (e.g., YubiKey) generate one-time passwords or use challenge-response resistant to phishing.

371
MCQmedium

An organization is using the FAIR model to quantify risk. Which of the following is a primary component of the FAIR taxonomy?

A.Inherent risk and residual risk
B.Annualized loss expectancy and single loss expectancy
C.Loss event frequency and loss magnitude
D.Threat event frequency and vulnerability
AnswerC

Correct. These are the two main branches in FAIR.

Why this answer

FAIR decomposes risk into loss event frequency and loss magnitude. These are core components used to calculate risk.

372
Multi-Selecteasy

A company is implementing a software-defined perimeter (SDP) architecture. Which TWO of the following are key characteristics of SDP? (Select TWO.)

Select 2 answers
A.Network segmentation is implemented via VLANs
B.The infrastructure is invisible to unauthorized users
C.Peering between SDP components is done via BGP
D.All communications are encrypted using public key cryptography
E.Device authentication is required before granting network access
AnswersB, E

SDP uses a black cloud model, hiding assets until authentication.

Why this answer

A core principle of Software-Defined Perimeter (SDP) is to make the infrastructure invisible to unauthorized users. This is achieved by deploying SDP controllers and gateways that hide network components (e.g., servers, IP addresses) from unauthenticated clients, effectively creating a 'black cloud' that only reveals resources after successful authentication and authorization.

Exam trap

The trap here is that candidates often confuse SDP's encryption requirement with 'public key cryptography only,' forgetting that SDP uses a hybrid approach (public key for key exchange, symmetric for bulk encryption) and that the defining characteristic is invisibility and device authentication, not the specific encryption algorithm.

373
MCQeasy

A company is migrating its applications to a SaaS model. Which of the following should be included in the contract to ensure secure data handling?

A.Right to audit
B.Indemnification clause
C.SLA for uptime
D.Data encryption at rest and in transit
AnswerD

Encryption protects confidentiality of data regardless of where it is stored or transmitted.

Why this answer

Data encryption at rest and in transit is a fundamental security requirement for protecting sensitive data in a SaaS environment. Encryption at rest (e.g., AES-256) ensures data stored on the provider's servers is unreadable if physically compromised, while encryption in transit (e.g., TLS 1.2/1.3) protects data as it moves between the client and the SaaS platform. This directly addresses secure data handling, which is the core concern of the question.

Exam trap

The trap here is that candidates often confuse legal or operational clauses (audit, indemnification, SLA) with technical security controls, mistakenly believing that contractual terms alone can enforce secure data handling without specifying cryptographic protections.

How to eliminate wrong answers

Option A is wrong because a right to audit clause allows the customer to verify the provider's security controls, but it does not itself ensure secure data handling; it is a verification mechanism, not a technical safeguard. Option B is wrong because an indemnification clause is a legal remedy that transfers liability for breaches or damages, but it does not prevent data mishandling or enforce encryption; it is a post-incident financial protection, not a proactive security control. Option C is wrong because an SLA for uptime (e.g., 99.9% availability) addresses service reliability and availability, not data confidentiality or integrity; it is unrelated to secure data handling.

374
MCQmedium

A security architect is evaluating a hardware security module (HSM) for key management. Which of the following is a PRIMARY benefit of using an HSM over software-based key storage?

A.Easier key rotation
B.Integration with cloud APIs
C.Tamper-resistant physical protection of keys
D.Lower cost
AnswerC

HSMs are designed to protect keys against physical tampering.

Why this answer

An HSM provides tamper-resistant physical protection for cryptographic keys, ensuring that even if an attacker gains physical access to the device, the keys cannot be extracted or modified. This is a primary benefit over software-based key storage, which stores keys in memory or disk and is vulnerable to OS-level attacks, memory dumps, or file system breaches. The HSM's hardware root of trust and physical security mechanisms (e.g., tamper switches, zeroization) make it the gold standard for key protection in compliance-heavy environments like FIPS 140-2 Level 3 or PCI DSS.

Exam trap

The trap here is that candidates confuse 'ease of use' or 'cost savings' with security benefits, overlooking that the HSM's core value is its physical tamper resistance and hardware-enforced key isolation, not operational convenience or lower price.

How to eliminate wrong answers

Option A is wrong because key rotation is not inherently easier with an HSM; in fact, software-based solutions often provide more flexible scripting and automation for rotation, while HSM rotation may require specific API calls or manual intervention depending on the model. Option B is wrong because integration with cloud APIs is a feature of cloud HSM offerings (e.g., AWS CloudHSM, Azure Key Vault), not a primary benefit of HSM technology itself; on-premises HSMs often lack native cloud API integration and require additional middleware. Option D is wrong because HSMs are significantly more expensive than software-based key storage due to dedicated hardware, certification costs, and maintenance, making lower cost a disadvantage, not a benefit.

375
MCQeasy

A security analyst discovers that a containerized application is running with root privileges. Which of the following is the best practice to reduce the attack surface?

A.Use a minimal base image
B.Disable network access for the container
C.Run the container as a non-root user
D.Use a read-only root filesystem
AnswerC

Running as non-root ensures the container does not have unnecessary privileges, reducing the blast radius of a compromise.

Why this answer

Running a container as a non-root user directly reduces the attack surface by limiting the privileges available to an attacker if the container is compromised. Option A (minimal base image) reduces potential vulnerabilities but does not address the root privilege issue. Option B (disable network access) could break application functionality and does not affect privilege level.

Option D (read-only root filesystem) prevents writing to the filesystem but still allows root-level access.

Page 4

Page 5 of 13

Page 6