Courseiva

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

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

Page 3

Page 4 of 13

Page 5
226
Multi-Selecthard

A security operations center (SOC) is evaluating a new EDR solution. Which three capabilities are essential for effective endpoint detection and response? (Select THREE).

Select 3 answers
A.Network firewall management
B.Behavioral analysis to detect anomalies
C.Automated containment of malicious processes
D.Real-time monitoring of endpoint activities
E.Vulnerability scanning of endpoints
AnswersB, C, D

Behavioral analysis helps identify unknown threats.

Why this answer

EDR essentials include real-time monitoring, behavioral analysis, and automated response to contain threats.

227
Multi-Selecthard

During an incident response, a team is prioritizing containment actions. Which THREE of the following actions should be taken to contain the incident effectively?

Select 3 answers
A.Blocking malicious IP addresses at the firewall
B.Notifying law enforcement
C.Collecting forensic images of affected systems
D.Isolating affected systems from the network
E.Disabling compromised user accounts
AnswersA, D, E

This prevents further communication with the attacker.

Why this answer

Containment focuses on stopping the spread and limiting damage. Blocking malicious IPs at the firewall, isolating affected systems from the network, and disabling compromised user accounts are key containment steps. Collecting forensic images is part of evidence preservation, not containment, and notifying law enforcement is optional and not a containment action.

228
MCQmedium

A cloud security team uses AWS and has configured a virtual private cloud (VPC) with a public subnet for a web application. The web servers in the public subnet have security groups that allow inbound HTTP/HTTPS from 0.0.0.0/0. The security team receives an alert that an EC2 instance in the public subnet is making outbound connections to an IP address that is listed on a threat intelligence feed as a known mining pool. The instance's security group allows all outbound traffic. The team suspects the instance is compromised and running cryptocurrency mining malware. Which of the following should be the FIRST action to take?

A.Isolate the instance by revoking its security group egress rules temporarily to prevent further communication.
B.Start a full antivirus scan on the instance and monitor the network logs.
C.Take a forensic snapshot of the instance and then terminate it.
D.Modify the security group inbound rules to block traffic from the miner IP only.
AnswerA

Immediate containment by blocking outbound traffic stops the malware from phoning home.

Why this answer

The first action should be to isolate the instance to immediately stop communication with the mining pool. This is achieved by revoking the security group egress rules (Option A), which contains the threat. Option B (running a scan) allows the attack to continue.

Option C (terminating after snapshot) loses volatile evidence. Option D (inbound rule) does not block outbound connections.

229
MCQmedium

A security architect is designing a cloud security strategy for a company that uses multiple cloud providers. The architect needs a solution that provides visibility into cloud application usage, enforces security policies, and protects data. Which technology is most appropriate?

A.Cloud Workload Protection Platform (CWPP)
B.Cloud Access Security Broker (CASB)
C.Cloud Security Posture Management (CSPM)
D.Secure Access Service Edge (SASE)
AnswerB

CASB provides visibility, compliance, and data security for cloud applications.

Why this answer

A Cloud Access Security Broker (CASB) provides visibility, policy enforcement, and data protection across multiple cloud services.

230
Multi-Selecthard

An organization is implementing a zero trust architecture and needs to enforce identity-centric access for all resources. Which THREE components are essential to this approach?

Select 3 answers
A.User and entity behavior analytics (UEBA)
B.Network segmentation
C.Policy enforcement point (PEP)
D.Virtual private network (VPN)
E.Multi-factor authentication (MFA)
AnswersA, C, E

Correct – UEBA monitors for anomalous behavior.

Why this answer

Zero trust requires strong identity verification (MFA), dynamic policy enforcement (PEP), and continuous monitoring (UEBA).

231
MCQeasy

A small business is designing a defense-in-depth strategy for its e-commerce website. The web server is hosted in a cloud provider and handles credit card transactions. Which of the following additional controls best complements the existing firewall and IDS?

A.Set up a security information and event management (SIEM) system
B.Add a load balancer with SSL termination
C.Implement a web application firewall (WAF)
D.Deploy a network-based antivirus on the web server
AnswerC

A WAF inspects HTTP/HTTPS traffic and blocks SQL injection, XSS, etc., adding a critical defense layer.

Why this answer

A web application firewall (WAF) is the correct complement because it specifically protects against application-layer attacks (e.g., SQL injection, cross-site scripting) that a network firewall and IDS cannot block. Since the e-commerce site handles credit card transactions, a WAF is critical for PCI DSS compliance and to filter malicious HTTP/HTTPS traffic targeting the web application logic.

Exam trap

The trap here is that candidates confuse a SIEM or load balancer with a security control, but the question specifically asks for a control that 'complements' existing firewall and IDS by addressing the missing application-layer protection, which only a WAF provides.

How to eliminate wrong answers

Option A is wrong because a SIEM system aggregates and correlates logs for analysis and alerting, but it does not actively block attacks; it is a detection and monitoring tool, not a preventive control. Option B is wrong because a load balancer with SSL termination distributes traffic and offloads encryption, but it does not inspect application-layer payloads for malicious content; it provides availability and performance, not security against web attacks. Option D is wrong because network-based antivirus scans for malware signatures at the network level, but it cannot inspect or block application-layer attacks like SQL injection or XSS, and it is redundant with host-based antivirus already assumed on the server.

232
Drag & Dropmedium

Drag and drop the steps to implement a DLP policy to prevent credit card data exfiltration via email 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

DLP implementation: classify data, create policy, define match condition, set action, then enable and test.

233
Multi-Selectmedium

A security architect is designing a PKI for a large enterprise that issues certificates to thousands of users and devices. The architect wants to implement a mechanism to efficiently check certificate revocation status without requiring clients to download a full CRL. Which TWO technologies should be considered?

Select 2 answers
A.CRL distribution points
B.Certificate transparency logs
C.OCSP stapling
D.Online Certificate Status Protocol (OCSP)
E.Delta CRL
AnswersC, D

OCSP stapling allows the server to provide a cached OCSP response, reducing load and improving privacy.

Why this answer

OCSP allows real-time revocation status checking without downloading a CRL. OCSP stapling improves performance by having the server present a signed OCSP response. CRL distribution points are still used but require downloads.

Certificate transparency logs are for monitoring, not revocation.

234
MCQhard

The exhibit shows results from a CIS Controls assessment. Based on the findings, which control deficiency poses the greatest risk to the organization and should be prioritized for remediation?

A.Incident response (Control 8) because testing is only at 1/5
B.Network monitoring and defense (Control 13) because it has the lowest overall score and intrusion detection is missing
C.Data protection (Control 3) because sensitive data inventory is not implemented
D.Data encryption at rest (Subcontrol 3.2) because it received a score of 4/5, indicating room for improvement
AnswerB

This control has the lowest score (1/5) and lacks intrusion detection, which is vital for detecting threats.

Why this answer

The network monitoring and defense control (Control 13) has the lowest overall score (1/5), and within it, intrusion detection is completely unimplemented (0/5), leaving the organization blind to active attacks. Option A is wrong because incident response (Control 8) has a score of 3/5, which is higher, and testing at 1/5 is a partial implementation; while testing is low, the overall risk is lower than network monitoring. Option C is wrong because data protection (Control 3) has a score of 2/5 with some subcontrols partially implemented; the missing sensitive data inventory is concerning but not as critical as the lack of network monitoring.

Option D is wrong because data encryption at rest (Subcontrol 3.2) has a score of 4/5, indicating it's already highly implemented and not a priority.

235
MCQeasy

Refer to the exhibit. A security analyst is reviewing the firewall rule set for a corporate network. Which misconfiguration is present?

A.No default deny rule present
B.Overly permissive source IP addresses
C.Unnecessary allowed ports
D.Missing logging on permit rules
AnswerA

A deny rule should be the last rule to drop all other traffic; otherwise, it may be implicitly allowed.

Why this answer

The rule set lacks an explicit deny rule at the end. Without a default deny, traffic that does not match any rule may be implicitly permitted depending on the firewall platform. Most security best practices require a deny-all trailing rule to ensure only explicitly allowed traffic passes.

236
Drag & Dropmedium

Drag and drop the steps to set up a SIEM alert for a failed login threshold 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

SIEM rule creation: identify log source, create rule, set threshold, configure response, then enable and test.

237
MCQmedium

An organization is adopting a DevSecOps approach and wants to integrate security early in the development lifecycle. Which practice involves creating visual representations of threats and identifying potential attack vectors during the design phase?

A.Threat modeling
B.Dynamic application security testing (DAST)
C.Static application security testing (SAST)
D.Runtime application self-protection (RASP)
AnswerA

Threat modeling identifies threats during design.

Why this answer

Threat modeling is a structured approach to identify and prioritize potential threats, often using diagrams like data flow diagrams, during the design phase of the SDLC.

238
MCQhard

A DevOps team integrates security into the CI/CD pipeline. They want to identify vulnerabilities in open-source libraries used by their application. Which tool or practice is specifically designed for this purpose?

A.Software Bill of Materials (SBOM) and dependency analysis
B.Runtime Application Self-Protection (RASP)
C.Static Application Security Testing (SAST)
D.Dynamic Application Security Testing (DAST)
AnswerA

SBOM lists all components, and dependency analysis checks them against known vulnerability databases.

Why this answer

Software Bill of Materials (SBOM) is a list of all components in the application, including open-source libraries. Dependency analysis tools use SBOMs to identify known vulnerabilities. SAST analyzes source code, not libraries.

DAST tests running applications. RASP provides runtime protection.

239
MCQmedium

A company is migrating critical workloads to AWS and must secure data at rest. They need to maintain control over the encryption keys. Which service should they use to meet this requirement?

A.AWS Secrets Manager
B.AWS Certificate Manager (ACM)
C.AWS CloudHSM
D.AWS Shield
AnswerC

CloudHSM provides dedicated hardware security modules (HSMs) for key generation and storage, giving the customer full control over keys.

Why this answer

AWS CloudHSM provides dedicated Hardware Security Modules (HSMs) that allow customers to maintain full control over their encryption keys. Unlike AWS KMS, where AWS manages the underlying hardware, CloudHSM gives customers exclusive ownership and management of keys, meeting the requirement to maintain control over encryption keys.

240
MCQeasy

During a penetration test, the tester has gained initial access to a web server and wants to move laterally to a database server. Which technique is most commonly used for lateral movement in a Windows environment?

A.SQL injection
B.Cross-site scripting (XSS)
C.Pass-the-Hash
D.ARP spoofing
AnswerC

Pass-the-Hash enables lateral movement by using harvested password hashes to authenticate to other systems.

Why this answer

Pass-the-Hash allows an attacker to authenticate to other systems using NTLM hashes without knowing the plaintext password, enabling lateral movement.

241
MCQmedium

An organization uses a PKI with a three-tier hierarchy: root CA, issuing CA, and registration authority. The root CA is kept offline. An intermediate CA certificate must be renewed. Which of the following is the correct process?

A.The intermediate CA self-signs its new certificate.
B.The issuing CA signs the new intermediate CA certificate.
C.The root CA signs the new intermediate CA certificate after being brought online.
D.The registration authority signs the new intermediate CA certificate.
AnswerC

The root CA signs intermediate CA certificates. Since it's offline, it must be accessed securely for this purpose.

Why this answer

The root CA signs the intermediate CA certificate. Since the root CA is offline, it must be brought online temporarily to sign the new intermediate certificate. The RA does not sign certificates; it handles verification requests.

The intermediate CA cannot self-sign its own certificate.

242
MCQeasy

A financial institution must ensure that its data classification policy aligns with regulatory requirements for customer financial information. Which of the following actions best demonstrates governance in this context?

A.Implement a formal data classification policy that maps data types to regulatory categories and enforce it via technical controls.
B.Restrict all customer financial data to a single secure server without labeling.
C.Allow data owners to classify data on an ad-hoc basis as needed.
D.Encrypt all customer data at rest and in transit regardless of classification.
AnswerA

This establishes clear rules, accountability, and enforcement — core governance elements.

Why this answer

It directly implements governance by establishing a formal data classification policy that maps data types to specific regulatory categories (e.g., PCI DSS, GLBA, SOX) and enforces compliance through technical controls such as Data Loss Prevention (DLP) rules, access control lists (ACLs), and encryption policies. This structured approach ensures that customer financial information is consistently protected according to legal requirements, rather than relying on ad-hoc or incomplete measures.

Exam trap

The trap here is that candidates often confuse encryption (a security control) with governance (a policy-driven framework), leading them to select Option D because they assume encryption alone satisfies regulatory compliance, when in fact governance requires classification to define which data must be encrypted and under what conditions.

How to eliminate wrong answers

Option B is wrong because restricting all customer financial data to a single secure server without labeling violates the principle of data classification; without labels or tags, the organization cannot differentiate between data types or apply granular controls (e.g., retention policies, access restrictions) required by regulations like GDPR or PCI DSS. Option C is wrong because allowing data owners to classify data on an ad-hoc basis introduces inconsistency and human error, undermining governance and potentially leading to misclassification that fails to meet regulatory mandates. Option D is wrong because encrypting all customer data at rest and in transit regardless of classification ignores the need for differentiated controls; while encryption is a security control, governance requires classification to apply appropriate policies (e.g., key management, access logging, retention) based on data sensitivity and regulatory obligations.

243
MCQhard

A security analyst is investigating a potential side-channel attack on an IoT device. The device's cryptographic operations show variable execution times based on the key and plaintext. Which mitigation is most effective against timing attacks?

A.Use a faster processor to reduce execution time.
B.Use constant-time cryptographic implementations.
C.Implement random delays in cryptographic operations.
D.Disable caching in the CPU during cryptographic operations.
AnswerB

Constant-time code eliminates timing variations.

Why this answer

Timing attacks exploit variations in execution time. Using constant-time algorithms ensures that operations take the same amount of time regardless of input, preventing information leakage.

244
MCQhard

A security manager is reviewing business continuity plans. Which element is MOST critical to test regularly?

A.Updated contact lists
B.Failover capability of critical systems
C.Alternate site readiness
D.Backup media integrity
AnswerB

Testing failover validates that critical systems can be recovered in a disaster.

Why this answer

The most critical element to test regularly is the failover capability of critical systems, as it directly validates that business-critical operations can continue during a disruption. This testing ensures that the entire failover process works, including system redundancy, network paths, and data synchronization. While updated contact lists (A) are important for communication, they do not test operational continuity.

Alternate site readiness (C) is a component of failover testing, but testing the full failover capability is more comprehensive. Backup media integrity (D) is essential for data recovery but does not validate the entire system recovery process.

245
MCQhard

A regional healthcare provider with 2,000 employees recently acquired a smaller clinic that uses a legacy electronic health record (EHR) system. The provider's security team performed a risk assessment and identified that the legacy system does not support encryption at rest, lacks role-based access controls (RBAC), and stores administrative credentials in plaintext. The system is scheduled to be decommissioned in 18 months, but it must remain operational to support patient care during the transition. The provider is subject to HIPAA and state breach notification laws. The CEO wants to avoid any disruption to patient services but also minimize regulatory risk. Which of the following is the BEST course of action?

A.Accelerate the migration timeline to replace the legacy system within 6 months.
B.Immediately disconnect the legacy system from the network and use manual processes.
C.Accept the residual risk and document it in the risk register.
D.Implement compensating controls such as network segmentation, storage-level encryption, and strict access monitoring.
AnswerD

Compensating controls mitigate risk while the system remains operational.

Why this answer

The best course of action because it allows the legacy EHR system to remain operational for patient care while reducing regulatory risk. Compensating controls like network segmentation isolate the vulnerable system, storage-level encryption (e.g., BitLocker or LUKS) protects data at rest, and strict access monitoring (e.g., SIEM with real-time alerts) mitigates the lack of RBAC and plaintext credentials. This approach balances the CEO's requirement for no disruption with HIPAA's security rule requirements for reasonable safeguards.

Exam trap

CompTIA often tests the concept that compensating controls are a valid risk treatment option when a vulnerability cannot be immediately remediated, and candidates mistakenly choose risk acceptance (Option C) without realizing that HIPAA requires active safeguards, not just documentation.

How to eliminate wrong answers

Option A is wrong because accelerating migration to 6 months is unrealistic and would likely cause significant disruption to patient services, violating the CEO's directive to avoid disruption. Option B is wrong because immediately disconnecting the legacy system would halt patient care, creating an unacceptable operational impact and potentially violating continuity of care requirements under HIPAA. Option C is wrong because accepting residual risk without implementing any compensating controls would leave the organization exposed to a high likelihood of a breach, violating HIPAA's requirement to implement reasonable and appropriate safeguards and increasing regulatory risk under state breach notification laws.

246
MCQmedium

An organization is deploying a just-in-time (JIT) privileged access management solution. What is a key benefit of JIT access compared to standing privileged accounts?

A.It allows users to permanently elevate privileges.
B.It eliminates the need for multi-factor authentication.
C.It requires no audit logging.
D.It reduces the window of exposure for privileged credentials.
AnswerD

JIT grants access only when needed and for a limited time.

Why this answer

JIT access provides temporary privileges that are automatically revoked after use, reducing the attack surface and limiting lateral movement.

247
MCQeasy

Which of the following is a benefit of using an immutable infrastructure approach?

A.Reduced need for configuration management
B.Easier manual patching of running servers
C.Elimination of configuration drift
D.Lower cost due to reusable hardware
AnswerC

Since servers are replaced rather than modified, drift is eliminated.

Why this answer

Immutable infrastructure means servers are never modified after deployment; instead, they are replaced with new instances. This eliminates configuration drift and ensures consistency.

248
MCQhard

A company is deploying a new IoT device that must perform secure boot and verify the integrity of firmware updates. The device has limited processing power. Which cryptographic algorithm combination is MOST appropriate for verifying firmware signatures efficiently?

A.AES-256-GCM for signing
B.RSA-4096 with SHA-256
C.ECDSA P-384 with SHA-384
D.Ed25519 with BLAKE3
AnswerD

Ed25519 is fast and secure, and BLAKE3 is a high-speed hash, ideal for IoT.

Why this answer

Ed25519 offers high performance and small key sizes compared to RSA or ECDSA, making it ideal for resource-constrained devices.

249
MCQeasy

An organization wants to implement a solution that automatically detects and blocks malicious traffic based on known signatures and behavioral anomalies. Which of the following should be deployed?

A.Next-generation firewall with application control
B.Web application firewall (WAF)
C.Security information and event management (SIEM) system
D.Network-based IDS/IPS
AnswerD

IDS/IPS combined provides detection and prevention for known signatures and anomalies.

Why this answer

A network-based IDS/IPS (Intrusion Detection/Prevention System) is designed to inspect network traffic in real time, using a combination of signature-based detection (matching known attack patterns) and behavioral/anomaly-based detection (identifying deviations from normal traffic baselines). This dual approach allows it to both detect and automatically block malicious traffic, fulfilling the organization's requirement directly.

Exam trap

The trap here is that candidates often confuse a next-generation firewall's application control with the deep packet inspection and behavioral analysis capabilities of a dedicated IDS/IPS, overlooking that NGFWs typically lack comprehensive signature-based threat detection for non-application-layer attacks.

How to eliminate wrong answers

Option A is wrong because a next-generation firewall with application control primarily focuses on application-layer filtering and policy enforcement, not on deep packet inspection for known attack signatures or behavioral anomaly detection. Option B is wrong because a web application firewall (WAF) is specialized to protect web applications from HTTP/S-specific attacks (e.g., SQL injection, XSS) and does not provide general network-level signature or anomaly detection for all traffic types. Option C is wrong because a security information and event management (SIEM) system aggregates and correlates logs from multiple sources for analysis and alerting, but it does not perform inline traffic inspection or automatic blocking of malicious packets.

250
MCQmedium

A company is adopting a defense-in-depth strategy. Which of the following is an example of a preventive control at the network layer?

A.Intrusion Detection System (IDS)
B.Security Information and Event Management (SIEM)
C.Network segmentation
D.Penetration testing
AnswerC

Segmentation prevents unauthorized access between network zones.

Why this answer

Network segmentation limits lateral movement and reduces attack surface, making it a preventive network control.

251
MCQmedium

Which of the following is the MOST effective way to detect unauthorized changes to critical files?

A.Antivirus software
B.Intrusion detection system
C.Regular backups
D.File integrity monitoring
AnswerD

FIM specifically monitors file changes.

Why this answer

File integrity monitoring (FIM) is the most effective method for detecting unauthorized changes to critical files because it uses cryptographic hashing (e.g., SHA-256) to create a baseline of file states and then periodically re-computes hashes to identify any alterations. Unlike other security controls, FIM specifically focuses on the integrity of file content, metadata, and permissions, providing immediate alerts when a deviation from the baseline occurs.

Exam trap

The trap here is that candidates confuse detection (FIM) with prevention (antivirus) or recovery (backups), or mistakenly think an IDS can monitor file integrity when it is designed for network-level anomaly detection.

How to eliminate wrong answers

Option A is wrong because antivirus software relies on signature-based or heuristic detection of known malware patterns, not on monitoring file integrity; it cannot detect unauthorized changes to non-malicious files or changes made by authorized users. Option B is wrong because an intrusion detection system (IDS) monitors network traffic or system logs for suspicious activity patterns, not the integrity of individual files on disk; it would miss file changes that do not generate network or log anomalies. Option C is wrong because regular backups are a recovery mechanism, not a detection control; they restore files after a change is discovered but do not alert on or identify unauthorized modifications in real time.

252
MCQmedium

During a threat modeling exercise for a new web application, the team identifies a risk of API abuse due to lack of rate limiting. Which security control should be implemented at the API gateway to mitigate this risk?

A.Input validation
B.OAuth 2.0 scopes
C.Rate limiting policies
D.JWT token expiration
AnswerC

Rate limiting directly addresses API abuse by throttling requests.

Why this answer

Rate limiting at the API gateway restricts the number of requests per client over a specified time, preventing abuse and DoS attacks.

253
Multi-Selecthard

A security operations team wants to improve their threat intelligence program. Which THREE of the following are most important for ensuring that threat intelligence is actionable and effectively integrated into security operations?

Select 3 answers
A.Ensure threat intelligence feeds provide timely indicators of compromise (IOCs) that are less than 24 hours old.
B.Require that all threat intelligence sources are completely anonymous to ensure unbiased reporting.
C.Integrate threat intelligence feeds directly into SIEM and SOAR platforms for automated correlation and response.
D.Subscribe to as many threat intelligence feeds as possible to maximize coverage.
E.Prioritize intelligence that includes context such as targeted sectors, attacker motivations, and TTPs.
AnswersA, C, E

Stale IOCs are useless; timeliness is critical for blocking active campaigns.

Why this answer

For threat intelligence to be actionable and effectively integrated into security operations, timeliness (A) ensures that IOCs are relevant for current threats. Integration with SIEM and SOAR platforms (C) automates correlation and response, reducing manual effort. Context such as targeted sectors, attacker motivations, and TTPs (E) allows prioritization and informed decision-making.

Option B (anonymity) is not a key quality; intelligence sources should be credible, not necessarily anonymous. Option D (subscribing to many feeds) can lead to noise and alert fatigue, diluting the value of intelligence.

254
MCQmedium

During a penetration test, the tester successfully gains access to a web server and wants to escalate privileges to domain administrator. The tester discovers that the web server has a service account that is a member of the local administrators group. Which technique would the tester most likely use to move laterally to a domain controller?

A.DNS poisoning
B.ARP spoofing
C.Pass-the-hash
D.SQL injection
AnswerC

Pass-the-hash uses the NTLM hash to authenticate to other systems.

Why this answer

Pass-the-hash allows the tester to use the hash of the service account to authenticate to other systems without the plaintext password, enabling lateral movement.

255
MCQmedium

A security analyst discovers that a third-party vendor has been granted access to the company's production database for support purposes. The vendor's contract expires in two weeks. What is the BEST course of action to ensure compliance with the principle of least privilege and reduce risk?

A.Immediately revoke the vendor's database access and provide temporary access only if needed.
B.Extend the contract for another year to maintain support continuity.
C.Wait until the contract expires and then revoke access.
D.Monitor the vendor's activities until the contract expires.
AnswerA

Immediate revocation aligns with least privilege and reduces risk.

Why this answer

The principle of least privilege requires that access rights be granted only for the minimum necessary duration. Since the vendor's contract expires in two weeks, there is no ongoing business need for continued access. Immediately revoking access and providing temporary access only if needed ensures that the vendor cannot access the production database after the contract ends, reducing the risk of unauthorized data exposure or malicious activity.

Exam trap

CompTIA often tests the misconception that monitoring or waiting until expiration is sufficient, but the trap here is that any unnecessary access, even if monitored, violates the principle of least privilege and increases risk.

How to eliminate wrong answers

Option B is wrong because extending the contract for another year violates the principle of least privilege by maintaining unnecessary access beyond the required support period, increasing the attack surface and potential for data breach. Option C is wrong because waiting until the contract expires leaves the database exposed for two weeks with no active business justification, which is a security risk and non-compliant with least privilege. Option D is wrong because monitoring alone does not enforce least privilege; it only detects misuse but does not prevent unauthorized access or reduce the risk of a compromise during the remaining contract period.

256
MCQmedium

A data loss prevention (DLP) solution is being implemented to prevent sensitive data from leaving the corporate network. Which of the following is the most effective approach for detecting structured data like credit card numbers in outbound traffic?

A.Keyword matching
B.Regular expression matching
C.Machine learning classification
D.Exact file hash matching
AnswerB

Regular expressions can accurately match patterns like credit card number formats.

Why this answer

Regular expressions can match patterns like credit card numbers, while other methods are less precise or suited for different data types.

257
MCQhard

An organization is implementing network segmentation to limit lateral movement. It wants to isolate application tiers at the virtual network level in a cloud environment. Which technology enforces policies on east-west traffic between VMs in different subnets?

A.Micro-segmentation
B.Transport Layer Security (TLS)
C.Virtual Private Network (VPN)
D.Secure Access Service Edge (SASE)
AnswerA

It enables granular control of east-west traffic between workloads.

Why this answer

Micro-segmentation uses software-defined policies to control traffic between individual workloads, often implemented via distributed firewalls or network security groups in cloud environments.

258
MCQmedium

A security architect is designing a zero-trust architecture for a multi-cloud environment. Which principle is essential for enforcing identity-centric micro-segmentation?

A.Identity-based access policies
B.VPN concentrators
C.Network address translation
D.Perimeter firewalls
AnswerA

Identity-centric micro-segmentation relies on identity and attributes for granular access control.

Why this answer

In a zero-trust model, identity is the primary security boundary. Micro-segmentation uses identity and context to enforce least-privilege access, regardless of network location.

259
MCQmedium

An organization wants to enforce consistent security policies across multiple cloud providers (AWS, Azure, GCP). Which tool is designed to continuously monitor and remediate misconfigurations in cloud environments?

A.Cloud Access Security Broker (CASB)
B.Security Information and Event Management (SIEM)
C.Cloud Workload Protection Platform (CWPP)
D.Cloud Security Posture Management (CSPM)
AnswerD

CSPM is specifically for continuous compliance and misconfiguration detection.

Why this answer

Cloud Security Posture Management (CSPM) automates the detection and remediation of cloud misconfigurations across multiple providers.

260
MCQeasy

An organization is implementing a PKI and wants to ensure that clients can quickly check if a certificate has been revoked without downloading a large list. Which protocol should be used?

A.Certificate Revocation List (CRL)
B.Online Certificate Status Protocol (OCSP)
C.Certificate Transparency (CT)
D.Simple Certificate Enrollment Protocol (SCEP)
AnswerB

OCSP provides real-time revocation status checks.

Why this answer

OCSP (Online Certificate Status Protocol) allows clients to check the revocation status of a single certificate in real time without downloading a full CRL.

261
MCQeasy

In the shared responsibility model for cloud security, which of the following is generally the responsibility of the cloud customer?

A.Configuration of network access controls
B.Hardware maintenance of servers
C.Hypervisor vulnerability patching
D.Physical security of data centers
AnswerA

Correct – customer configures firewalls, security groups.

Why this answer

The customer is responsible for security 'in' the cloud, including guest OS, applications, and access management, while the provider secures the infrastructure.

262
MCQmedium

A company is deploying containers in a Kubernetes cluster and needs to enforce that containers run with reduced capabilities. Which Linux security feature should be configured to drop unnecessary capabilities?

A.PodSecurityPolicy
B.Seccomp
C.AppArmor
D.SELinux
AnswerC

AppArmor is a Linux MAC system that can be configured to drop specific capabilities using its profile language, making it the correct choice for directly managing capabilities in containers.

Why this answer

To drop unnecessary capabilities in a Linux container, the correct Linux security feature is AppArmor. AppArmor is a Mandatory Access Control (MAC) system that can be configured with profiles to restrict capabilities granted to processes. By defining an AppArmor profile that drops specific capabilities (e.g., using the 'capability' rule set to deny), administrators can enforce that containers run with reduced privileges.

While Seccomp filters system calls, it does not directly manage capabilities. PodSecurityPolicy is a Kubernetes resource, not a Linux feature. SELinux can also control capabilities but is more complex and less commonly used for this specific purpose in container environments.

263
MCQmedium

During a vulnerability assessment, a security analyst discovers a critical vulnerability in a legacy application that cannot be patched due to vendor end-of-life. Which compensating control would best mitigate the risk?

A.Apply a virtual patch via an intrusion prevention system (IPS)
B.Implement network segmentation to isolate the application
C.Increase logging and monitoring for that application
D.Decommission the application immediately
AnswerB

Segmentation is a strong compensating control that limits exposure.

Why this answer

Network segmentation isolates the vulnerable system, reducing the attack surface and preventing lateral movement from a compromised system.

264
MCQhard

A healthtech startup is developing a mobile app that collects PHI. They plan to use a third-party cloud provider for data storage. What is the most critical compliance requirement before signing the contract?

A.Verify the provider's data center locations comply with data residency laws
B.Execute a Business Associate Agreement (BAA) with the provider
C.Review the provider's SOC 2 Type II report
D.Ensure all data is encrypted at rest and in transit
AnswerB

A BAA is a legal requirement under HIPAA for any vendor handling PHI.

Why this answer

Under HIPAA, a Business Associate Agreement (BAA) is a mandatory contract that ensures the third-party cloud provider (a business associate) will safeguard Protected Health Information (PHI). Without a BAA, the startup would be in direct violation of HIPAA's Privacy and Security Rules, regardless of other security measures. This requirement is non-negotiable before any PHI is shared or stored by the provider.

Exam trap

CompTIA often tests the distinction between contractual compliance (BAA) and technical controls (encryption, SOC reports), leading candidates to prioritize security measures over the mandatory legal agreement required by HIPAA.

How to eliminate wrong answers

Option A is wrong because while data residency laws (e.g., GDPR, local regulations) are important, they are not the most critical compliance requirement under HIPAA; a BAA is the foundational legal agreement. Option C is wrong because reviewing a SOC 2 Type II report provides assurance about the provider's controls but does not satisfy the HIPAA requirement for a contractual BAA; it is a supplementary due diligence step. Option D is wrong because encryption at rest and in transit is a technical safeguard, but it does not replace the legal obligation of a BAA; HIPAA mandates the BAA even if encryption is implemented.

265
Multi-Selecteasy

Which TWO of the following are examples of administrative controls? (Select TWO)

Select 2 answers
A.Firewall rules
B.Encryption of data at rest
C.Security awareness training
D.Access control policy
E.Intrusion detection system
AnswersC, D

Administrative control

Why this answer

Security awareness training (C) is an administrative control because it involves policies, procedures, and human behavior management rather than technical mechanisms. It educates users on security risks and compliance requirements, reducing the likelihood of social engineering or policy violations. This aligns with the administrative domain of the CIA triad's governance framework.

Exam trap

The CAS-004 exam often tests the distinction between administrative, technical, and physical controls, and the trap here is that candidates confuse technical controls like encryption or firewalls with administrative controls because they are both part of a defense-in-depth strategy, but only administrative controls involve human processes and documentation.

266
MCQmedium

During a policy gap analysis, it is discovered that the organization has a policy stating that sensitive data must be encrypted, but there are no procedures for implementing encryption on mobile devices. This is an example of a gap between:

A.Standards and guidelines
B.Policy and standards
C.Policy and guidelines
D.Policy and procedures
AnswerD

The policy exists but the procedures to operationalize it are missing.

Why this answer

A gap exists when a policy sets a requirement but the supporting procedures to implement it are missing.

267
MCQeasy

A developer needs to securely store user passwords in a database. Which hashing technique is recommended for password storage?

A.SHA-256 with a random salt
B.bcrypt with a per-user salt
C.MD5 with a static salt
D.Base64 encoding
AnswerB

bcrypt is slow and includes salting, resistant to rainbow tables.

Why this answer

Bcrypt is recommended for password storage because it incorporates a per-user salt to prevent rainbow table attacks and uses a configurable cost factor to slow down brute-force attempts, making it resistant to GPU-based cracking. Unlike general-purpose hashes like SHA-256, bcrypt is designed specifically for password hashing with built-in salting and adaptive work factor.

Exam trap

CompTIA CASP+ often tests the misconception that adding a salt to a fast hash like SHA-256 makes it suitable for passwords, but the trap is that without a built-in work factor, the hash remains too fast for attackers to brute-force efficiently.

How to eliminate wrong answers

Option A is wrong because SHA-256 is a fast general-purpose hash that lacks an inherent work factor, making it vulnerable to high-speed brute-force attacks even with a salt; it is not designed for password storage. Option C is wrong because MD5 is cryptographically broken (collision attacks demonstrated) and a static salt means all users with the same password produce the same hash, nullifying salt benefits. Option D is wrong because Base64 is an encoding scheme, not a hashing algorithm; it provides no security whatsoever and can be trivially reversed.

268
MCQmedium

An administrator runs the above iptables command on a Linux server. The server is directly connected to the internet. Which of the following is the MOST significant security issue with this configuration?

A.The INPUT chain default policy is DROP, which will block legitimate traffic
B.The OUTPUT chain default policy is ACCEPT, allowing any outbound traffic
C.SSH (port 22) is allowed from any source, which is overly permissive
D.ICMP echo requests are allowed, which could be used for network reconnaissance
AnswerB

This could allow data exfiltration or command and control traffic.

Why this answer

The most significant security issue is that the OUTPUT chain default policy is ACCEPT, allowing any outbound traffic from the server. Since the server is directly connected to the internet, this means that if the server is compromised, an attacker can freely exfiltrate data, initiate outbound connections to command-and-control servers, or perform other malicious activities without any firewall restriction. A default DROP policy on the OUTPUT chain would require explicit rules for allowed outbound traffic, providing defense in depth.

Exam trap

The trap here is that candidates focus on inbound rules (like SSH or ICMP) because they are more familiar, but the exam tests understanding that a default ACCEPT on the OUTPUT chain is a critical security gap that enables data exfiltration and is often overlooked in firewall configurations.

How to eliminate wrong answers

Option A is wrong because the INPUT chain default policy is DROP, which is a security best practice to block unsolicited inbound traffic; legitimate traffic is explicitly allowed by rules (e.g., SSH on port 22, ICMP echo requests), so it does not block legitimate traffic. Option C is wrong because while allowing SSH from any source is overly permissive, it is less significant than the OUTPUT chain default ACCEPT, as SSH can be restricted to specific source IPs or a jump box, whereas a default ACCEPT on OUTPUT is a fundamental architectural flaw that enables data exfiltration. Option D is wrong because allowing ICMP echo requests is a common and generally acceptable practice for network troubleshooting; while it can aid reconnaissance, it is not the most significant issue compared to unrestricted outbound traffic.

269
MCQhard

You are the security architect for a global manufacturing company that has recently experienced a ransomware attack. The attack originated from a third-party vendor's compromised VPN account, which had been granted privileged access to the corporate network for remote maintenance. The vendor is a critical supplier of industrial control system (ICS) components. The incident severely disrupted production for three days. Post-incident analysis reveals that the vendor's security posture was not assessed prior to granting access, and the contract did not include specific security requirements or audit rights. The company now wants to implement a vendor risk management program to prevent future incidents. Which of the following is the MOST comprehensive and effective course of action to address the root cause?

A.Implement network segmentation to isolate vendor access to specific systems
B.Conduct background checks on all vendor personnel before granting access
C.Develop a vendor risk management policy that includes security assessments, contractual clauses, and periodic audits
D.Require all vendors to use multi-factor authentication (MFA) for remote access
AnswerC

A comprehensive program addresses root cause of lack of oversight.

Why this answer

Establishing a formal vendor risk management program with contractual security requirements and periodic audits directly addresses the lack of assessment and oversight. Option A is wrong because network segmentation alone does not enforce vendor compliance. Option B is wrong because MFA is a single control; it does not replace a program.

Option D is wrong because instituting background checks does not ensure technical security controls.

270
MCQhard

A security team discovers a misconfiguration that exposes sensitive data. The operations team wants to wait until the next maintenance window. What is the BEST course of action?

A.Document the risk and accept it
B.Notify the data protection authority
C.Immediately fix the misconfiguration
D.Implement a temporary workaround
AnswerC

Reduces risk immediately.

Why this answer

When a misconfiguration exposes sensitive data, the security team must prioritize immediate remediation to prevent data exfiltration or regulatory penalties. Waiting for a maintenance window violates the principle of timely risk mitigation, especially when the exposure is active and exploitable. The best course of action is to fix the misconfiguration immediately, even if it requires a temporary service disruption, as the risk of data breach outweighs operational convenience.

Exam trap

CompTIA often tests the misconception that operational convenience (waiting for a maintenance window) can override immediate security risks, but in CAS-004, the correct answer always prioritizes containment and remediation of active exposures over change management schedules.

How to eliminate wrong answers

Option A is wrong because documenting and accepting the risk without action is only appropriate after a formal risk assessment and approval from management, not when an active exposure of sensitive data is known and can be quickly remediated. Option B is wrong because notifying the data protection authority is a mandatory breach notification step after a confirmed data breach, not a first response to a misconfiguration that has not yet been exploited; premature notification can cause unnecessary regulatory scrutiny. Option D is wrong because implementing a temporary workaround does not address the root cause of the misconfiguration and may leave the sensitive data exposed or introduce new vulnerabilities, whereas a direct fix is more effective and permanent.

271
MCQhard

During a security audit, it is discovered that a critical server uses SSH with password authentication and supports weak key exchange algorithms. Which of the following is the most effective hardening step to prevent brute-force attacks and ensure forward secrecy?

A.Implement fail2ban to block IPs after failed attempts
B.Disable password authentication and restrict key exchange algorithms to curve25519-sha256
C.Change the SSH port to a non-default high port
D.Use RSA keys with 4096-bit length
AnswerB

This eliminates password vulnerabilities and ensures forward secrecy.

Why this answer

Disabling password authentication forces the use of key-based authentication, which is resistant to brute-force attacks. Restricting key exchange algorithms to those providing forward secrecy (e.g., Curve25519) ensures that session keys cannot be compromised even if the long-term private key is exposed.

272
MCQhard

A company is deploying a new authentication system that leverages FIDO2/WebAuthn. Security architects want to ensure that the private key never leaves the authenticator device. Which attack vector is mitigated by this approach?

A.Man-in-the-middle attacks on TLS
B.Server-side database breach exposing credentials
C.Replay attacks on authentication tokens
D.Phishing attacks
AnswerB

Since no private keys or secrets are stored on the server, a breach does not expose authentication secrets.

Why this answer

FIDO2/WebAuthn uses public-key cryptography where the private key is generated on the authenticator and never exported. This prevents server-side database breaches from compromising private keys, as there are no shared secrets stored on the server.

273
MCQhard

A security engineer needs to design a solution to detect and respond to insider threats involving unauthorized data exfiltration via USB devices. Which of the following is the MOST effective approach?

A.Conduct regular security awareness training on data handling policies.
B.Deploy endpoint detection and response (EDR) agents on all workstations.
C.Disable all USB ports via group policy.
D.Implement a data loss prevention (DLP) solution with device control and content inspection.
AnswerD

DLP can block, log, and alert on unauthorized USB transfers.

Why this answer

The most effective because a DLP solution with device control and content inspection can monitor, block, or alert on unauthorized data transfers to USB devices by inspecting the content being written (e.g., file types, keywords, patterns) and enforcing policies at the endpoint or network level. This directly addresses the specific threat of data exfiltration via USB, unlike other options that either lack detection or are too restrictive.

Exam trap

The trap here is that candidates often choose EDR (Option B) because they associate it with endpoint security, but EDR is designed for threat detection (e.g., malware, lateral movement), not for granular data exfiltration control via USB, which requires DLP's content-aware inspection and device control capabilities.

How to eliminate wrong answers

Option A is wrong because security awareness training is a preventive control that relies on user compliance and does not provide real-time detection or automated response to unauthorized USB data transfers. Option B is wrong because EDR agents focus on detecting and responding to malware and suspicious process behavior, not on monitoring or blocking file copy operations to removable media. Option C is wrong because disabling all USB ports via group policy is a brute-force approach that prevents legitimate use (e.g., keyboards, mice) and does not allow for granular control or detection of authorized vs. unauthorized data transfers.

274
MCQmedium

An organization wants to detect attackers who have already breached the network by deploying decoy credentials and data files. Which type of deception technology should they use?

A.Sandbox
B.Honeypot
C.Honeytoken
D.Honeynet
AnswerC

Honeytokens are decoy data objects.

Why this answer

Honeytokens are decoy data objects, such as fake credentials or files, used to detect unauthorized access.

275
MCQhard

An organization is implementing a privacy program based on privacy by design. Which principle requires that privacy controls be integrated into the system's default settings?

A.Full functionality – positive-sum, not zero-sum
B.Privacy embedded into design
C.Privacy as the default setting
D.Proactive not reactive; preventative not remedial
AnswerC

This principle ensures privacy settings are automatically applied.

Why this answer

Privacy by design includes the principle that privacy settings should be maximized by default, so users do not need to take action to protect their data.

276
MCQeasy

An organization wants to collect threat intelligence from multiple Information Sharing and Analysis Centers (ISACs) relevant to their industry. Which of the following is a primary benefit of participating in an ISAC?

A.Free penetration testing services
B.Access to proprietary threat intelligence feeds
C.Ability to share sensitive information anonymously
D.Timely and relevant threat data from peers
AnswerD

ISACs provide sector-specific, actionable threat intelligence.

Why this answer

ISACs provide a trusted community for sharing threat intelligence, early warnings, and best practices, helping members defend against sector-specific threats.

277
MCQmedium

An organization is implementing SSH hardening for server access. Which configuration change most effectively reduces the attack surface against brute-force and credential theft?

A.Change the default SSH port from 22 to a high-numbered port.
B.Enable public-key authentication and disable password authentication.
C.Set MaxAuthTries to 6 to limit login attempts.
D.Use TCP wrappers to restrict source IP addresses.
AnswerB

Key-based auth is resistant to brute-force and phishing.

Why this answer

Disabling password authentication and requiring key-based authentication eliminates the risk of password brute-force attacks and credential theft via phishing.

278
MCQmedium

An organization uses a multi-cloud strategy with workloads on AWS, Azure, and GCP. They need a single tool to monitor and enforce security configurations across all cloud environments. Which cloud security solution is best suited for this requirement?

A.Secure Access Service Edge (SASE)
B.Cloud Access Security Broker (CASB)
C.Cloud Workload Protection Platform (CWPP)
D.Cloud Security Posture Management (CSPM)
AnswerD

CSPM continuously monitors cloud configurations against best practices and compliance standards across multi-cloud environments.

Why this answer

Cloud Security Posture Management (CSPM) automates the monitoring and remediation of security misconfigurations across multiple cloud providers. CASB focuses on application access. CWPP protects workloads.

SASE is for network and security convergence.

279
MCQmedium

An organization is implementing a Secure Access Service Edge (SASE) architecture. Which of the following is a key component of SASE?

A.Demilitarized Zone (DMZ)
B.Cloud Access Security Broker (CASB)
C.Intrusion Prevention System (IPS)
D.Virtual Private Network (VPN)
AnswerB

CASB is a core component of SASE.

Why this answer

SASE converges SD-WAN and security functions, including SWG, CASB, ZTNA, and FWaaS, delivered from the cloud.

280
MCQhard

A company is merging with another organization and needs to integrate their identity management systems. The security team is concerned about maintaining least privilege and segregation of duties across the combined environment. Which of the following approaches BEST addresses these concerns?

A.Deploy single sign-on (SSO) across both organizations
B.Create a unified user group with the same permissions for all employees
C.Use an identity governance and administration (IGA) tool with automated provisioning
D.Perform a role-mining exercise and design new roles based on common job functions
AnswerD

Role mining ensures roles are aligned with business needs and reduces conflict.

Why this answer

Role-mining analyzes existing user entitlements and access patterns across both organizations to identify common job functions, enabling the design of least-privilege roles that enforce segregation of duties. This approach directly addresses the security concerns by ensuring users receive only the permissions necessary for their roles, preventing conflicts of interest inherent in merged environments.

Exam trap

CompTIA often tests the misconception that SSO or automated provisioning alone solves authorization and segregation issues, when in fact they are authentication and enforcement mechanisms that require proper role design (via role-mining) to achieve least privilege.

How to eliminate wrong answers

Option A is wrong because SSO only simplifies authentication by allowing users to log in once, but it does not manage authorization or enforce least privilege or segregation of duties across the combined identity systems. Option B is wrong because creating a unified user group with identical permissions for all employees violates least privilege by granting excessive access and eliminates segregation of duties, as every user would have the same capabilities. Option C is wrong because while an IGA tool with automated provisioning can enforce policies, without first performing role-mining to define appropriate roles based on actual job functions, it would simply automate existing (potentially flawed) permissions, failing to establish proper least privilege and segregation of duties.

281
Multi-Selectmedium

A security operations team is developing a SOAR playbook to automate response to a detected ransomware outbreak. The team wants to ensure the playbook can contain the threat quickly while minimizing business disruption. Which TWO actions should the playbook include as automated responses? (Select TWO.)

Select 2 answers
A.Run a full antivirus scan on all systems
B.Restore all systems from the latest backup automatically
C.Power off all affected servers immediately
D.Block outbound traffic to known malicious IP addresses and domains
E.Isolate the affected endpoints from the network
AnswersD, E

Blocking C2 communication can stop the ransomware from encrypting further or exfiltrating data.

Why this answer

Isolating affected systems and blocking communication to known command-and-control (C2) servers are effective containment actions. Isolating prevents lateral movement, and blocking C2 disrupts the ransomware's ability to receive instructions or exfiltrate data.

282
MCQhard

A security engineer is configuring a web server to use TLS 1.3. Which feature of TLS 1.3 should be disabled to prevent replay attacks in 0-RTT mode?

A.0-RTT
B.Session resumption
C.Forward secrecy
D.Cipher suite negotiation
AnswerA

0-RTT data can be replayed; disabling 0-RTT prevents this.

Why this answer

0-RTT data is vulnerable to replay; disabling 0-RTT eliminates this risk. However, the question asks what should be disabled to prevent replay attacks in 0-RTT mode, so the answer is 0-RTT itself.

283
Multi-Selectmedium

A security manager is implementing a policy exception management process. Which TWO of the following are essential components of an effective exception management process?

Select 2 answers
A.A policy that all exceptions are denied
B.A defined expiration date for each exception
C.A formal request and approval workflow
D.Automatic approval for temporary workarounds
E.Immediate policy revision to eliminate the need for exceptions
AnswersB, C

Prevents indefinite exceptions and ensures periodic review.

Why this answer

An exception management process must include: (1) a formal request and approval workflow to ensure accountability, and (2) a defined expiration date to prevent permanent exceptions. Temporary workarounds without expiration undermine security. Exceptions may be approved if risk is accepted.

Policy changes are separate.

284
MCQhard

During an API security review, an assessor finds that the API uses JSON Web Tokens (JWT) with a symmetric key shared among multiple services. Which of the following is the MOST significant security concern?

A.The token is not encrypted
B.Multiple services share the same symmetric key
C.The token does not include audience claim
D.Token expiration is not set
AnswerB

Shared symmetric keys increase the attack surface and risk of token forgery.

Why this answer

Using a shared symmetric key means any service with the key can forge tokens, compromising authentication integrity.

285
MCQmedium

An enterprise is adopting a DevOps model and wants to integrate security into the CI/CD pipeline. The security architect recommends adding automated security testing. Which phase of the pipeline should static application security testing (SAST) be introduced to minimize rework?

A.During the build phase after code commit
B.During the production deployment phase
C.After the code is promoted to production
D.During runtime in the staging environment
AnswerA

SAST analyzes source code, so running it in the build phase catches issues early.

Why this answer

SAST scans source code or compiled binaries for vulnerabilities without executing the application. Introducing SAST during the build phase, immediately after code commit and before artifacts are packaged, allows developers to catch and fix security flaws early when remediation cost is lowest, aligning with the 'shift left' principle in DevOps.

Exam trap

CompTIA often tests the distinction between SAST (static, pre-execution) and DAST (dynamic, runtime), and the trap here is assuming security testing can be deferred to later stages like staging or production without understanding the cost of rework.

How to eliminate wrong answers

Option B is wrong because production deployment is too late; vulnerabilities found here require emergency patches or rollbacks, increasing rework and risk. Option C is wrong because promoting code to production before security testing defeats the purpose of CI/CD security gates and exposes the live environment to exploits. Option D is wrong because runtime in staging is the domain of DAST (Dynamic Application Security Testing) or IAST, not SAST; SAST does not execute code and cannot analyze runtime behavior.

286
MCQhard

An organization is implementing a privacy program to comply with GDPR. Which of the following BEST describes the concept of 'privacy by design' as it applies to a new customer relationship management (CRM) system?

A.Incorporating data minimization and access controls into the system architecture from the start.
B.Assigning a data protection officer to review system logs quarterly.
C.Adding a privacy notice to the CRM after deployment.
D.Conducting a privacy impact assessment (PIA) after the system is live.
AnswerA

This aligns with privacy by design principles.

Why this answer

Privacy by design requires embedding privacy controls into the system's architecture from the outset, not as an afterthought. This includes data minimization, purpose limitation, and security controls integrated during development.

287
MCQhard

A large healthcare organization has implemented a zero-trust network architecture (ZTNA) to secure access to its electronic health record (EHR) system. The architecture uses a software-defined perimeter (SDP) where all users must authenticate and be authorized before accessing the EHR. The EHR system is hosted in a private cloud and communicates with a legacy billing system that cannot support modern authentication protocols. The billing system is accessed by a small number of finance employees via a dedicated VPN. Recently, an auditor discovered that a finance employee's credentials were compromised, and the attacker used the VPN to access the billing system and exfiltrate patient billing data. The security architect must prevent such lateral movement while maintaining access for legitimate users. Which of the following is the BEST course of action?

A.Apply micro-segmentation to isolate the billing system and allow only finance VLAN traffic
B.Remove the VPN and allow finance employees to access the billing system directly via RDP over the internet
C.Implement a jump server with multi-factor authentication (MFA) and session recording, and restrict the VPN to only allow access to the jump server
D.Upgrade the billing system to support OAuth 2.0 and integrate it with the ZTNA SDP
AnswerC

This adds an extra layer of security and auditability, preventing direct access to the billing system.

Why this answer

A jump server with MFA and session recording creates a controlled, auditable choke point that prevents lateral movement from the VPN to the billing system. By restricting the VPN to only allow access to the jump server, the attacker cannot directly reach the billing system even with compromised VPN credentials, and MFA adds an additional layer of authentication. Session recording provides forensic evidence for post-incident analysis, addressing the auditor's concern without requiring the legacy billing system to support modern protocols.

Exam trap

The trap here is that candidates often choose micro-segmentation (Option A) thinking it prevents lateral movement, but they overlook that the compromised VPN credentials already provide authenticated access to the network segment, so micro-segmentation alone does not stop the attacker from reaching the billing system within the same VLAN.

How to eliminate wrong answers

Option A is wrong because micro-segmentation and VLAN isolation can reduce lateral movement but do not address the compromised VPN credentials; an attacker with valid VPN access could still move laterally within the finance VLAN to the billing system. Option B is wrong because removing the VPN and exposing the billing system directly via RDP over the internet dramatically increases the attack surface, bypassing all network segmentation and introducing significant security risks without any compensating controls. Option D is wrong because upgrading the legacy billing system to support OAuth 2.0 is often technically infeasible or cost-prohibitive, and the question explicitly states the system cannot support modern authentication protocols, making this option unrealistic.

288
MCQmedium

During a threat hunting exercise, a security analyst hypothesizes that an adversary is using PowerShell to execute malicious scripts. Which approach is the analyst employing?

A.TTP-driven hunting
B.Machine learning-driven hunting
C.IoC-driven hunting
D.Hypothesis-driven hunting
AnswerD

The analyst starts with an assumption about adversary behavior, which is hypothesis-driven.

Why this answer

Hypothesis-driven hunting starts with a specific assumption about adversary behavior, unlike IoC-driven (based on known indicators) or TTP-driven (focused on tactics, techniques, procedures).

289
MCQhard

A security architect finds this IAM policy attached to an S3 bucket. Which of the following best describes a critical security flaw in this policy?

A.The condition on the second statement uses StringEquals instead of IpAddress
B.The second statement allows public access from the 10.0.0.0/8 IP range
C.The first statement allows EC2 to assume any role in the account
D.The policy should use a NotPrincipal element to restrict access
AnswerA

Correct. The condition uses StringEquals instead of IpAddress, causing the condition to never evaluate to true. This is the critical security flaw.

Why this answer

The second statement uses StringEquals for the aws:SourceIp condition. StringEquals performs a literal string comparison, so the condition checks if the source IP exactly equals the string '10.0.0.0/8', which never happens. As a result, the condition always evaluates to false, and the Allow statement never grants any access.

The critical security flaw is the misuse of the condition operator: StringEquals should be IpAddress to match IP ranges. This misconfiguration renders the intended IP restriction ineffective, and the bucket remains private (no public access is granted from the 10.0.0.0/8 range or anywhere else).

Exam trap

Candidates may think the flaw is that the statement allows public access from the specified IP range, but in reality the condition never matches, so the statement never grants access. The real flaw is the incorrect operator, which breaks the intended access control.

How to eliminate wrong answers

Option A is wrong because the core flaw is not the use of `StringEquals` versus `IpAddress`; the flaw is that `StringEquals` cannot evaluate CIDR ranges, but the real security issue is that the policy allows public access due to the condition being ineffective. Option C is wrong because the first statement grants the `sts:AssumeRole` action to the EC2 service principal, which is a legitimate and common pattern for allowing EC2 instances to assume roles; it does not allow EC2 to assume any role in the account—it only allows the EC2 service to assume the specific role attached to the bucket policy, and this is not a security flaw. Option D is wrong because using a `NotPrincipal` element would not fix the core issue; the problem is that the condition is misconfigured, and the policy lacks proper restrictions to prevent public access—`NotPrincipal` is typically used to deny all principals except a specified set, but here the fix should involve using `IpAddress` condition or adding a `Deny` for public access.

290
MCQeasy

Which of the following is a primary function of a Cloud Access Security Broker (CASB)?

A.Scan container images for vulnerabilities
B.Provide IAM for cloud infrastructure
C.Enforce security policies between users and cloud applications
D.Monitor network traffic at the packet level
AnswerC

CASBs enforce policies for cloud application access and usage.

Why this answer

A CASB acts as an intermediary between users and cloud services, enforcing security policies such as access control, data loss prevention, and visibility into cloud application usage.

291
MCQeasy

An organization is deploying a new IoT device that must securely update its firmware over the air (OTA). The device has limited processing power and memory. Which cryptographic solution would provide the BEST balance of security and performance for verifying firmware updates?

A.RSA-4096 digital signatures
B.Ed25519 digital signatures
C.HMAC-SHA256 with pre-shared key
D.AES-256-GCM for authentication
AnswerB

Ed25519 offers fast verification with strong security, suitable for constrained devices.

Why this answer

Ed25519 is a fast and secure digital signature algorithm that performs well on constrained devices. RSA 4096 is computationally expensive. HMAC-SHA256 is a symmetric key technique and requires key management overhead.

AES-256-GCM is for encryption, not verification.

292
MCQhard

A large enterprise recently migrated its critical applications to a hybrid cloud environment. The security team is concerned about the risk of privileged account abuse. They have implemented a privileged access management (PAM) solution that rotates passwords for service accounts after each use. However, during a incident response drill, the team discovers that an attacker who compromised a jump server was able to access multiple administrative consoles without re-authentication. Investigation reveals that the PAM solution uses session recording but does not enforce session termination; instead, it relies on the lifecycle of the token issued during initial authentication. The attacker captured a valid token and reused it from a different machine. Which of the following is the most effective remediation?

A.Implement token-binding by including the client's TLS certificate in the token
B.Require multi-factor authentication at each console access
C.Shorten the token lifetime to 30 seconds
D.Deploy a host-based intrusion detection system on the jump server
AnswerA

Token-binding binds the token to the device, ensuring it cannot be used elsewhere.

Why this answer

Token binding (RFC 8471) cryptographically ties the token to the client's TLS session, preventing an attacker from replaying a captured token from a different machine. Since the PAM solution does not enforce session termination, binding the token to the client's TLS certificate ensures that even if the token is stolen, it cannot be reused from any other endpoint, directly addressing the root cause of the token reuse attack.

Exam trap

The trap here is that candidates often choose to shorten token lifetimes (Option C) as a quick fix, overlooking that token binding is the only option that cryptographically ties the token to the client's TLS session, making it unreplayable from a different machine regardless of the token's lifetime.

How to eliminate wrong answers

Option B is wrong because requiring multi-factor authentication at each console access would disrupt legitimate workflows and does not prevent token reuse; the attacker already has a valid token and would simply present it again without needing to re-authenticate. Option C is wrong because shortening the token lifetime to 30 seconds would cause excessive re-authentication overhead for legitimate users and still leaves a window (30 seconds) during which a captured token could be reused from a different machine. Option D is wrong because deploying a host-based intrusion detection system on the jump server would detect suspicious activity but does not prevent the fundamental token reuse vulnerability; it is a detective control, not a preventive remediation.

293
MCQmedium

Which of the following is a key feature of TLS 1.3 compared to earlier versions?

A.Mandatory use of static RSA key exchange
B.Support for RC4 cipher
C.Backward compatibility with SSL 3.0
D.Reduced handshake latency
AnswerD

TLS 1.3 requires one round trip (or zero with pre-shared keys) compared to two in TLS 1.2.

Why this answer

TLS 1.3 reduces handshake latency by eliminating unnecessary round trips and removing insecure cipher suites, improving both security and performance.

294
MCQeasy

A small business uses an on-premises Active Directory for user authentication. They want to enable employees to use their corporate credentials to access a SaaS application that supports SAML 2.0. The security administrator needs to set up a federation between the on-premises AD and the SaaS provider. Which of the following components must be deployed on-premises to act as a bridge between AD and the SAML identity provider?

A.RADIUS server
B.Active Directory Federation Services (AD FS)
C.Kerberos key distribution center (KDC)
D.Azure AD Connect
AnswerB

AD FS is a SAML 2.0 IdP that authenticates against AD.

Why this answer

Active Directory Federation Services (AD FS) is Microsoft's solution for federated identity and can act as the SAML IdP, integrating with AD.

295
Multi-Selecthard

A healthcare organization is implementing a vendor risk management program. Which THREE of the following should be included in the vendor risk assessment process? (Select THREE.)

Select 3 answers
A.Requiring the vendor to purchase cyber insurance
B.Reviewing the vendor's financial statements
C.Reviewing the vendor's SOC 2 Type II report
D.Conducting a penetration test of the vendor's environment
E.Administering a security questionnaire to the vendor
AnswersC, D, E

Correct. SOC 2 reports provide independent assurance.

Why this answer

Effective vendor risk assessment includes reviewing audit reports, performing security questionnaires, and conducting penetration tests to evaluate controls.

296
MCQmedium

A company is required to comply with FedRAMP for its cloud deployment. Which of the following is a key requirement for FedRAMP compliance?

A.Continuous monitoring and incident response
B.Third-party assessment by an accredited organization
C.Implementation of AES-256 encryption for all data
D.Annual penetration testing by internal team
AnswerB

A 3PAO must conduct the initial and periodic assessments.

Why this answer

FedRAMP requires third-party assessment by an accredited organization (3PAO) to verify that the cloud service provider meets the security controls.

297
MCQmedium

A vulnerability management team is prioritizing patches for a large enterprise. They have identified a critical vulnerability in a widely used software with a CVSS base score of 9.8. However, the exploit requires local access and authentication. Which CVSS metric should the team use to adjust the score to reflect the actual risk in their environment?

A.Privileges required metric
B.Temporal score
C.Attack vector metric
D.Environmental score
AnswerD

Environmental score modifies the base score based on the organization's specific context, such as asset criticality and compensating controls.

Why this answer

The question asks for a metric to adjust the CVSS base score to reflect actual risk in the organization's specific environment. The Environmental score is designed for this purpose, allowing customization based on factors such as security controls, asset criticality, and compensating measures. In contrast, the Temporal score adjusts for factors that change over time (e.g., exploit maturity), but it does not account for organization-specific context.

Therefore, the Environmental score is the correct metric to use.

298
MCQmedium

A security analyst reviews this output from an SSH session. What security control is in place on the remote server?

A.Account lockout policy
B.MaxAuthTries limit in SSH configuration
C.Fail2ban or similar IP blocking
D.SSH banner
AnswerB

The SSH server's MaxAuthTries setting limits the number of authentication attempts per connection.

Why this answer

The output shows repeated 'Permission denied' messages followed by 'Connection closed by remote host' after a specific number of attempts. This behavior is characteristic of the MaxAuthTries directive in the SSH server configuration (sshd_config), which limits the number of authentication attempts per connection. When the limit is reached, the SSH server immediately closes the connection, as seen in the output.

Exam trap

The CAS-004 exam often tests the distinction between server-side connection termination (MaxAuthTries) and account-level lockout or external IP blocking, leading candidates to confuse a per-connection limit with a per-account or firewall-based control.

How to eliminate wrong answers

Option A is wrong because an account lockout policy would lock the user account after failed attempts, but the output shows the connection being closed by the remote host without any account lockout message, and the SSH session itself is terminated. Option C is wrong because Fail2ban or similar IP blocking would block the source IP at the firewall level, resulting in a timeout or connection refused, not the 'Connection closed by remote host' message after authentication attempts. Option D is wrong because an SSH banner is displayed before authentication begins and does not cause connection closure after failed attempts; it is a pre-authentication message.

299
Multi-Selecthard

A security architect is designing a data classification scheme aligned with a new privacy regulation. Which THREE of the following are common data classification levels used in enterprise environments? (Select THREE.)

Select 3 answers
A.Public
B.Internal
C.Critical
D.Secret
E.Confidential
AnswersA, B, E

Data that can be freely disclosed; no sensitivity.

Why this answer

Common classification levels include public (no impact), internal (moderate impact), confidential (high impact), and restricted (very high impact). Secret is typically a government classification, not enterprise. Critical is not a standard classification level.

300
MCQmedium

Based on the exhibit, what is the primary purpose of the condition in this IAM policy?

A.Enable encryption in transit for the S3 bucket
B.Allow all incoming traffic to the S3 bucket
C.Deny access from the specified IP ranges
D.Restrict access to requests originating from the specified IP ranges
AnswerD

The condition allows only requests from those IPs.

Why this answer

The condition in the IAM policy uses the `aws:SourceIp` key to restrict access to requests originating from the specified IP ranges. Option A is incorrect because the condition does not address encryption in transit. Option B is incorrect because the policy does not allow all traffic; it allows only requests from the specified IPs.

Option C is incorrect because the policy is an allow with a condition, not a deny statement. The condition effectively limits which IPs can perform the allowed actions, making D the primary purpose.

Page 3

Page 4 of 13

Page 5