Courseiva

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

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

Page 9

Page 10 of 13

Page 11
676
MCQmedium

Refer to the exhibit. A security analyst reviews the following firewall rule on a border firewall. Which vulnerability is present?

A.HTTPS is only allowed from a single host
B.SSH access is allowed from any source
C.HTTP is allowed from the internal network
D.An implicit deny rule is missing
AnswerB

Permitting SSH from any source exposes the server to unauthorized access attempts.

Why this answer

The firewall rule allows SSH (TCP port 22) from any source, which exposes the border firewall to brute-force attacks, unauthorized access, and potential credential harvesting. SSH should be restricted to specific trusted IP addresses or management networks to reduce the attack surface. An implicit deny rule exists by default at the end of most firewall rule sets, but the explicit permissive SSH rule overrides it, creating a critical security gap.

Exam trap

A common trap is the misconception that an implicit deny rule is missing when the real vulnerability is an overly permissive explicit allow rule, such as SSH from any source, which candidates overlook because they focus on the absence of a deny-all statement.

How to eliminate wrong answers

Option A is wrong because HTTPS being allowed from a single host is a security best practice, not a vulnerability; it restricts encrypted web traffic to a specific trusted source. Option C is wrong because HTTP from the internal network is a typical and acceptable rule for outbound web access, and the vulnerability is about inbound or management access, not internal HTTP. Option D is wrong because an implicit deny rule is standard in most firewall configurations (e.g., Cisco ASA, iptables, or Palo Alto) and is not missing; the vulnerability is the explicit permissive SSH rule, not the absence of a deny-all.

677
MCQmedium

A defense contractor is developing a new secure messaging application for classified communications. The application must ensure end-to-end encryption, perfect forward secrecy, and resistance to quantum computing attacks. The development team proposes using ECDH for key exchange and AES-256-GCM for message encryption. The security architect reviews the design and identifies a weakness: the current key exchange does not authenticate the public keys, making it vulnerable to man-in-the-middle attacks. The team suggests adding digital signatures using RSA-2048. However, the architect is concerned about quantum resistance. What should the architect recommend?

A.Replace ECDH with Diffie-Hellman using 4096-bit prime modulus and use RSA-4096 signatures.
B.Implement ECDH with Edwards-curve Digital Signature Algorithm (EdDSA) using Curve25519 and hash-based signatures for long-term keys.
C.Use pre-shared keys (PSK) for both key exchange and encryption, eliminating the need for public key authentication.
D.Use ECDH with RSA-2048 signatures for authentication and plan to migrate to CRYSTALS-KYBER when standardized.
AnswerD

This hybrid approach provides immediate authentication and a clear path to quantum resistance.

Why this answer

It provides a practical hybrid approach: using ECDH for key exchange (ensuring perfect forward secrecy) with RSA-2048 signatures for authentication (preventing man-in-the-middle attacks), while planning to migrate to the NIST-standardized post-quantum algorithm CRYSTALS-KYBER when available. This balances current security needs with future quantum resistance. Option A is wrong because increasing Diffie-Hellman parameters does not provide quantum resistance, and RSA-4096 is still vulnerable to quantum attacks.

Option B is wrong because EdDSA with Curve25519 is not quantum-resistant, and hash-based signatures are unsuitable for real-time key exchange. Option C is wrong because pre-shared keys break perfect forward secrecy and are not scalable.

678
Multi-Selectmedium

A security manager is selecting metrics to present to the board. Which two of the following are key risk indicators (KRIs) that would be most relevant for executive oversight? (Choose two.)

Select 2 answers
A.Average time to patch critical vulnerabilities
B.Mean time to detect (MTTD)
C.Number of security incidents per quarter
D.Number of security awareness training completions
E.Percentage of systems with critical vulnerabilities
AnswersC, E

This indicates the level of threat activity.

Why this answer

KRIs provide early warning of increasing risk. Percentage of systems with critical vulnerabilities indicates exposure; number of security incidents indicates threat activity.

679
MCQhard

A mid-sized e-commerce company has recently experienced a data breach where customer payment card information was exfiltrated. The security team has identified that the breach originated from a compromised web server that was part of a PCI DSS compliant environment. The server was running outdated software and had several known vulnerabilities. Post-incident analysis reveals that the attacker exploited a SQL injection vulnerability in the order-tracking feature. The incident response team followed NIST SP 800-61 guidelines: they contained the threat, eradicated the malicious code, and restored the server from a known clean backup. However, two weeks after the restoration, the same server is again showing signs of similar malicious activity. The server is still in production and handling credit card transactions. Which of the following is the MOST effective course of action to prevent this recurring compromise?

A.Conduct a thorough code review of the order-tracking feature, implement parameterized queries, and then redeploy the application after passing a static code analysis scan.
B.Replace the web server with a new server running the latest OS and web server version, then redeploy the same web application code.
C.Implement network segmentation to isolate the web server and restrict outbound traffic to only essential services.
D.Increase logging and deploy a WAF in front of the server with rules to block common SQLi patterns.
AnswerA

Directly addresses the SQLi vulnerability at the code level.

Why this answer

The root cause of the breach is a SQL injection vulnerability in the order-tracking feature. Simply patching the server or redeploying the same code (Option B), implementing network segmentation (Option C), or adding a WAF (Option D) are all band-aid solutions that do not address the underlying flawed code. To prevent recurrence, the application code must be reviewed and the SQL injection flaw remediated by using parameterized queries.

After fixing the code, redeploying after passing a static code analysis scan ensures the vulnerability is resolved. Therefore, option A is the most effective course of action.

680
MCQmedium

A financial institution needs to ensure that transaction logs are tamper-proof after creation. Which solution should be implemented?

A.Cryptographic hashing with chain hashing
B.Access control lists
C.Encryption with AES
D.Digital signatures on each log entry
AnswerA

Chain hashing creates a tamper-evident log by linking entries cryptographically.

Why this answer

Chain hashing (also known as hash chaining or blockchain-style linking) ensures tamper-proof logs by including the cryptographic hash of the previous log entry in the current entry. This creates an immutable chain: any modification to a prior entry changes its hash, breaking the chain for all subsequent entries, making tampering immediately detectable. Unlike simple hashing of individual entries, chain hashing ties the entire log sequence together, providing integrity and non-repudiation of the log's chronological order.

Exam trap

CompTIA CASP+ often tests the distinction between integrity (hash chaining) and non-repudiation (digital signatures), leading candidates to choose digital signatures because they associate them with 'proof'—but signatures alone do not enforce sequential ordering or detect reordering/deletion, which is the core requirement for tamper-proof logs.

How to eliminate wrong answers

Option B (Access control lists) is wrong because ACLs only control who can read or write logs, but they do not provide cryptographic proof of tampering after the fact—an attacker with elevated privileges could modify logs undetected. Option C (Encryption with AES) is wrong because encryption protects confidentiality (secrecy) of log data, not integrity; an attacker could still alter encrypted logs (though garbled) or replace entire encrypted blocks without detection unless an integrity check like HMAC is used. Option D (Digital signatures on each log entry) is wrong because while a digital signature proves the origin and integrity of a single entry, it does not enforce ordering or detect deletion/reordering of entries—an attacker could remove or reorder signed entries without breaking individual signatures, whereas chain hashing links entries sequentially.

681
MCQhard

A security analyst is analyzing a memory dump using Volatility. The analyst wants to list all running processes and identify any hidden processes. Which Volatility plugin should be used?

A.psxview
B.pslist
C.pstree
D.psscan
AnswerD

psscan scans for processes in memory pools and can detect hidden or terminated processes.

Why this answer

The pslist plugin lists processes from the doubly linked list, while psscan uses pool tag scanning to find hidden processes that are not in the linked list.

682
MCQeasy

A company is implementing a passwordless authentication solution using FIDO2/WebAuthn. What is the primary security advantage of this approach over traditional password-based authentication?

A.It allows users to share passwords securely.
B.It reduces server storage requirements.
C.It eliminates the need for multi-factor authentication.
D.It prevents phishing attacks by using cryptographic keys.
AnswerD

FIDO2's origin-bound keys prevent phishing.

Why this answer

FIDO2 uses public key cryptography, so private keys never leave the device, preventing credential theft.

683
MCQeasy

An organization is implementing a third-party risk management program. Which of the following is the FIRST step in the vendor risk assessment process?

A.Identify the vendor and the type of data it will handle
B.Conduct an on-site audit of the vendor's facilities
C.Review the vendor's contractual security clauses
D.Determine risk treatment options
AnswerA

First step is understanding the vendor and data.

Why this answer

The first step in a vendor risk assessment is to identify the vendor and the type of data it will handle. This foundational step determines the scope and criticality of the assessment, as the data classification (e.g., PII, PHI, PCI-DSS) directly dictates the required security controls and regulatory compliance obligations. Without this identification, subsequent steps like audits or contract reviews lack context and may miss key risk areas.

Exam trap

The trap here is that candidates often jump to contractual or audit steps (options B or C) because they seem like concrete actions, but the exam tests the logical sequence of risk management, where identification of the asset (vendor and data) must precede any control evaluation.

How to eliminate wrong answers

Option B is wrong because conducting an on-site audit occurs later in the process, after the vendor and data type are identified and a risk assessment plan is developed; auditing prematurely wastes resources without understanding what to audit. Option C is wrong because reviewing contractual security clauses assumes a contract exists, but the initial step is to identify the vendor and data before any contractual relationship is established or reviewed. Option D is wrong because determining risk treatment options (e.g., accept, mitigate, transfer) is a downstream decision made after risks are identified and assessed, not the first step.

684
MCQhard

After a risk assessment, a company identifies that the residual risk for a critical application is higher than the risk appetite. The risk owner proposes implementing additional controls to reduce the risk further. Which risk treatment option does this represent?

A.Risk transfer
B.Risk mitigation
C.Risk acceptance
D.Risk avoidance
AnswerB

Correct: adding controls to reduce risk.

Why this answer

Implementing additional controls to reduce risk is an example of risk mitigation. Residual risk is the risk remaining after controls are applied; if it still exceeds appetite, further mitigation is needed.

685
MCQmedium

A security manager is reviewing the organization's security policy hierarchy. Which of the following correctly orders these documents from highest to lowest level of authority?

A.Guideline, Policy, Procedure, Standard
B.Standard, Policy, Procedure, Guideline
C.Policy, Standard, Guideline, Procedure
D.Procedure, Guideline, Standard, Policy
AnswerC

Correct. Policy is top-level, then standard, guideline, procedure.

Why this answer

The typical hierarchy is: policy (high-level, mandatory), standard (specific requirements), guideline (recommendations), procedure (step-by-step instructions).

686
Drag & Dropmedium

Drag and drop the steps to respond to a ransomware incident in 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

Incident response follows NIST framework: isolate, identify, contain, eradicate, recover.

687
MCQmedium

A security architect is designing a VPN solution for remote employees. The company requires strong authentication and integrity protection but is less concerned about confidentiality for non-sensitive traffic. Which protocol is most appropriate?

A.L2TP/IPsec with ESP
B.SSL/TLS VPN
C.ESP in tunnel mode with null encryption
D.AH in transport mode
AnswerC

ESP can be configured with null encryption to provide integrity and authentication without confidentiality.

Why this answer

ESP in tunnel mode with null encryption provides authentication and integrity via HMAC (e.g., HMAC-SHA256) while omitting encryption (ESP_NULL, RFC 2410). This satisfies the requirement for strong authentication and integrity without confidentiality for non-sensitive traffic, as the payload is authenticated but not encrypted.

Exam trap

The trap here is that candidates often assume ESP always requires encryption, but ESP_NULL (RFC 2410) explicitly allows authentication-only mode, making it ideal when confidentiality is not needed.

How to eliminate wrong answers

Option A is wrong because L2TP/IPsec with ESP typically uses encryption (e.g., AES) for confidentiality, which is unnecessary and adds overhead for non-sensitive traffic. Option B is wrong because SSL/TLS VPN inherently provides confidentiality via encryption (e.g., AES-GCM), which is not required and may be excessive. Option D is wrong because AH in transport mode provides authentication and integrity but does not support null encryption; it authenticates the entire packet (including immutable IP header fields) and cannot be used with ESP_NULL, making it unsuitable for this scenario where only payload integrity is needed.

688
Multi-Selectmedium

A penetration tester is preparing for an engagement and must define the rules of engagement (ROE) with the client. Which TWO of the following should be included in the ROE? Select TWO.

Select 2 answers
A.Time window for testing (e.g., after hours)
B.Scope of testing (IP ranges and systems)
C.List of vulnerabilities to be tested
D.Testing credentials provided by the client
E.Vendor contact information
AnswersA, B

Specifies when testing can occur to minimize impact.

Why this answer

Rules of engagement should include scope (IP ranges, systems), limitations (what is off-limits), and authorization. Testing credentials and vulnerability details are not part of ROE.

689
MCQhard

A security team is auditing a Kubernetes cluster. They find a pod running with `securityContext`: `privileged: true` and `runAsUser: 0`. Which of the following is the most critical risk?

A.The pod cannot communicate with other pods.
B.The pod cannot mount volumes.
C.The pod can access all node resources and potentially escape to the host.
D.The pod will be killed by Kubernetes if it consumes too much memory.
AnswerC

Privileged mode grants unrestricted host access.

Why this answer

Setting `privileged: true` and `runAsUser: 0` (root) in a pod's securityContext grants the container unrestricted access to the host's kernel capabilities. This effectively disables all container isolation, allowing the container to perform privileged operations such as loading kernel modules, accessing raw block devices, and using `nsenter` or `chroot` to escape the container and gain root-level access to the underlying node. This is the most critical risk because it directly compromises the host and potentially the entire cluster.

Exam trap

A common misconception is that privileged mode only affects resource limits or network policies, when in fact it removes all kernel-level isolation, enabling container escape to the host.

How to eliminate wrong answers

Option A is wrong because privileged containers can communicate with other pods normally via the cluster's CNI network plugin; privilege escalation does not affect network isolation. Option B is wrong because privileged containers can mount volumes, and in fact they have greater ability to mount host paths and devices. Option D is wrong because Kubernetes does not automatically kill pods for high memory consumption; it uses resource limits and the OOM killer, but this is a resource management issue, not a security risk.

690
Multi-Selecthard

A company is migrating critical applications to a multi-cloud architecture using AWS and Google Cloud Platform (GCP). The security team must ensure secure connectivity between on-premises data centers and cloud environments while meeting data residency requirements in the EU. Which TWO solutions should the architect implement to address these requirements? (Choose TWO.)

Select 2 answers
A.Dedicated physical connections (e.g., AWS Direct Connect, GCP Dedicated Interconnect)
B.Private link services (e.g., AWS PrivateLink, GCP Private Service Connect)
C.Cloud Access Security Broker (CASB)
D.Secure Access Service Edge (SASE)
E.Site-to-site VPN with IPsec
AnswersA, B

Dedicated connections provide high bandwidth, low latency, and help meet data residency by keeping traffic within trusted networks.

Why this answer

Private link services (AWS PrivateLink, GCP Private Service Connect) provide secure connectivity without traversing the internet, maintaining data privacy. Direct Connect (or equivalent dedicated connections) ensures reliable, low-latency connectivity with compliance benefits. VPNs are less secure and not preferred for high-performance workloads.

CASB and SASE are not direct connectivity solutions.

691
MCQeasy

A security analyst is performing incident response and needs to collect evidence from a live system. Which of the following should be collected first to preserve volatile data?

A.Memory (RAM)
B.Network connections
C.Hard drive contents
D.System logs
AnswerA

Memory is the most volatile and must be captured first.

Why this answer

The order of volatility dictates that memory (RAM) is the most volatile and must be captured before any other evidence.

692
MCQeasy

A security analyst is investigating a potential malware infection on a user's workstation. The analyst wants to examine the file system for any suspicious files without altering the original data. Which forensic principle is the analyst following?

A.Chain of custody
B.Hashing
C.Order of volatility
D.Forensic imaging
AnswerA

Chain of custody documents the handling of evidence to maintain its integrity.

Why this answer

Preserving the chain of custody ensures that evidence is not tampered with and maintains its integrity for legal proceedings.

693
MCQmedium

A healthcare organization must comply with HIPAA. Which of the following is a key requirement for protecting electronic protected health information (ePHI)?

A.Data masking for all patient data
B.Encryption of ePHI at rest and in transit
C.Annual penetration testing
D.Public key infrastructure for all users
AnswerB

HIPAA Security Rule includes encryption as an addressable specification for ePHI.

Why this answer

HIPAA requires encryption of ePHI both at rest and in transit as an addressable implementation specification to ensure confidentiality.

694
MCQhard

A security architect is evaluating a new cloud SaaS application that will handle sensitive customer data. The SaaS provider offers a shared responsibility model where the customer is responsible for data classification, access management, and encryption of data at rest using customer-managed keys. The architect must ensure that the organization retains the ability to revoke access to the data if the provider is compromised. Which key management strategy best meets this requirement?

A.Escrow the encryption key with a third-party and rely on legal agreements for revocation
B.Use the provider's default encryption with a customer-managed key stored in the provider's KMS
C.Use a cloud hardware security module (HSM) to generate and store keys
D.Implement bring-your-own-key (BYOK) with keys stored in a customer-controlled external KMS
AnswerD

BYOK with external KMS gives the customer full control to revoke access immediately.

Why this answer

BYOK with keys stored in a customer-controlled external KMS ensures the organization retains full control over encryption keys, enabling immediate revocation of access to data at rest if the SaaS provider is compromised. This aligns with the shared responsibility model where the customer manages keys, and external KMS decouples key management from the provider's infrastructure, preventing the provider from accessing data after key revocation.

Exam trap

The CAS-004 exam often tests the misconception that using a provider's KMS or HSM (even with customer-managed keys) provides sufficient separation, but the trap is that any key stored within the provider's boundary can be accessed by the provider if their security is breached, whereas BYOK with an external KMS ensures true customer-only control.

How to eliminate wrong answers

Option A is wrong because escrowing keys with a third-party and relying on legal agreements introduces latency and lacks technical immediacy for revocation; legal processes cannot guarantee instant access removal during a breach. Option B is wrong because storing a customer-managed key in the provider's KMS still places the key under the provider's control, as the provider's KMS is part of their trusted environment, allowing potential access if the provider is compromised. Option C is wrong because using a cloud HSM within the provider's ecosystem still ties key management to the provider's infrastructure; while HSMs offer hardware security, the provider retains administrative access to the HSM service, undermining customer-only revocation capability.

695
Multi-Selectmedium

A security architect is designing a network segmentation strategy for a data center to reduce the attack surface. Which TWO of the following are best practices for implementing effective network segmentation?

Select 2 answers
A.Deploy network access control (NAC) to authenticate devices before granting network access.
B.Place all external-facing services in a single shared DMZ segment.
C.Allow any-to-any communication within each security zone to avoid performance bottlenecks.
D.Use VLANs to logically isolate traffic between different security zones.
E.Implement microsegmentation using host-based firewalls or virtual networking to restrict east-west traffic.
AnswersD, E

VLANs provide Layer 2 isolation, which is a fundamental segmentation technique.

Why this answer

VLANs (IEEE 802.1Q) provide Layer 2 isolation between security zones by segmenting broadcast domains, preventing traffic from crossing zone boundaries without a Layer 3 device (router/firewall). This reduces the attack surface by containing lateral movement within a single VLAN and enforcing access control at the gateway.

Exam trap

A common misconception is that NAC alone is a segmentation technique, when in fact it is an authentication and authorization mechanism that complements but does not replace Layer 2/3 isolation methods like VLANs or microsegmentation.

696
MCQeasy

A company is implementing a microservices architecture and needs to ensure secure service-to-service communication. Which of the following BEST describes the recommended approach?

A.Basic HTTP authentication
B.Mutual TLS (mTLS) with certificate authentication
C.IP whitelisting
D.Shared API keys
AnswerB

mTLS provides mutual authentication and encryption, ideal for microservices.

Why this answer

Mutual TLS (mTLS) with certificate authentication is the recommended approach for secure service-to-service communication in a microservices architecture because it provides both encryption and bidirectional authentication. Each service presents a unique X.509 certificate to verify its identity, preventing unauthorized access and man-in-the-middle attacks. This aligns with the principle of zero-trust networking, where no implicit trust is granted based on network location.

Exam trap

CompTIA often tests the misconception that IP whitelisting or shared API keys are sufficient for service-to-service security, but the trap here is that candidates overlook the need for both encryption and mutual authentication in a zero-trust microservices environment, where network perimeters are obsolete and dynamic identity verification is critical.

How to eliminate wrong answers

Option A is wrong because Basic HTTP authentication transmits credentials (username and password) in cleartext (Base64-encoded, not encrypted) and offers no protection against replay attacks or eavesdropping, making it unsuitable for service-to-service communication. Option C is wrong because IP whitelisting relies on network-layer addresses, which can be spoofed, and does not provide encryption or mutual authentication; it also breaks down in dynamic environments like Kubernetes where pod IPs change frequently. Option D is wrong because shared API keys are static secrets that must be transmitted with each request, lack built-in encryption, and are vulnerable to leakage, rotation complexity, and replay attacks; they also do not provide mutual authentication.

697
MCQeasy

A security engineer is configuring a VPN between two sites and needs to ensure data confidentiality and integrity. Which IPsec mode and protocol combination should be used to encrypt the entire IP packet including the header?

A.Transport mode with ESP
B.Transport mode with AH
C.Tunnel mode with AH
D.Tunnel mode with ESP
AnswerD

ESP in tunnel mode encrypts the entire IP packet, including the original header.

Why this answer

IPsec tunnel mode with ESP encrypts and authenticates the entire IP packet, providing confidentiality and integrity. Transport mode only encrypts the payload, and AH provides integrity without encryption.

698
MCQeasy

An organization wants to implement continuous compliance monitoring for PCI DSS. Which of the following tools would be MOST effective for this purpose?

A.Encryption solution
B.Network firewall
C.Vulnerability scanner
D.SIEM system
AnswerD

SIEM provides real-time log analysis and alerting for continuous monitoring.

Why this answer

A security information and event management (SIEM) system can collect and analyze logs in real-time, enabling continuous monitoring of security controls and compliance with PCI DSS requirements. Vulnerability scanners are periodic, not continuous. Firewalls are control devices, not monitoring tools.

Encryption is a protection mechanism.

699
Multi-Selectmedium

A company is migrating its monolithic application to a microservices architecture. The security team wants to implement controls to protect inter-service communication and ensure data integrity. Which THREE security controls should be implemented? (Select THREE.)

Select 3 answers
A.Encrypt data at rest using AES-256
B.Deploy an API gateway to enforce rate limiting and authentication
C.Implement mutual TLS (mTLS) for service-to-service authentication
D.Use a container orchestration platform to manage service discovery
E.Conduct static code analysis on all microservices
AnswersB, C, D

Correct. An API gateway centralizes authentication and rate limiting, protecting inter-service communication.

Why this answer

An API gateway acts as a single entry point for all service calls, enforcing rate limiting to prevent abuse and authentication (e.g., OAuth2, JWT) to verify identity before requests reach backend microservices. This centralizes security policy enforcement and protects inter-service communication by reducing the attack surface.

Option C is correct because mutual TLS (mTLS) provides strong service-to-service authentication and encryption for data in transit. With mTLS, each service presents a certificate to verify its identity, and the TLS handshake ensures all communication is encrypted and integrity-protected, preventing eavesdropping and man-in-the-middle attacks.

Option D is correct because a container orchestration platform (e.g., Kubernetes) can enforce network policies that restrict communication between services, ensuring only authorized service-to-service interactions. This provides an additional layer of security for inter-service communication beyond the API gateway and mTLS.

Exam trap

CompTIA often tests the distinction between data-at-rest and data-in-transit controls, so candidates mistakenly select 'encrypt data at rest' (Option A) when the question explicitly asks about protecting inter-service communication, which requires in-transit protections like mTLS or API gateway authentication.

700
MCQeasy

Which of the following is the BEST practice for securely storing secrets (e.g., database passwords) in a cloud-native application?

A.Embed the secrets in the application's source code
B.Store them in environment variables
C.Use a secrets management service with encryption and access policies
D.Store them in a configuration file with restricted file permissions
AnswerC

Why this answer

Cloud-native applications should rely on a dedicated secrets management service (e.g., AWS Secrets Manager, Azure Key Vault, HashiCorp Vault) that encrypts secrets at rest and in transit, enforces fine-grained access policies via IAM, and supports automatic rotation. This approach decouples secrets from code and infrastructure, eliminating the risks of exposure through version control, logs, or misconfigured permissions.

Exam trap

The CAS-004 exam often tests the misconception that environment variables are a secure storage method because they are not in source code, but the trap is that they are still plaintext and accessible via runtime introspection, logging, or orchestration APIs, lacking the encryption and access control of a dedicated secrets manager.

Why the other options are wrong

A

Hardcoding secrets exposes them in version control and to anyone with code access.

B

Environment variables can be leaked through debugging interfaces or process listings; they are not encrypted.

D

File permissions can be bypassed; configuration files are often not encrypted.

701
MCQhard

A security analyst observes that SSH connections to the server are failing, but HTTP and HTTPS traffic works. Based on the exhibit, what is the most likely cause?

A.The HTTPS rule is overriding the SSH rule.
B.The SSH service is being blocked by a firewall rule that drops TCP port 22 traffic.
C.The SSH service is only allowed from the 10.0.0.0/8 subnet.
D.The SSH service is misconfigured and not listening on the correct interface.
AnswerB

The DROP rule for tcp dpt:22 is blocking SSH.

Why this answer

The exhibit shows a firewall rule that explicitly drops TCP port 22 traffic, which is the default port for SSH. Since HTTP (port 80) and HTTPS (port 443) are unaffected, the issue is isolated to SSH. This rule is the most direct cause of the connection failures, as it blocks all SSH traffic regardless of source or destination.

Exam trap

The trap here is that candidates may assume SSH is failing due to a service misconfiguration (Option D) or an overly restrictive allow rule (Option C), but the exhibit clearly shows a specific drop rule for port 22, which is the definitive cause.

How to eliminate wrong answers

Option A is wrong because HTTPS (port 443) and SSH (port 22) are different protocols and ports; firewall rules are evaluated in order, and unless the HTTPS rule explicitly matches SSH traffic (which it does not), it cannot override the SSH rule. Option C is wrong because the exhibit does not show any source subnet restriction for SSH; the rule simply drops all TCP port 22 traffic without any allow condition for 10.0.0.0/8. Option D is wrong because if the SSH service were misconfigured to listen on the wrong interface, the failure would be at the application layer, but the firewall rule explicitly drops the traffic before it reaches the SSH daemon, making a misconfiguration irrelevant to the observed symptom.

702
MCQmedium

A security architect is designing a zero-trust network architecture. Which of the following is a fundamental principle of zero trust?

A.Place all resources on the internal network and rely on perimeter firewalls.
B.Authenticate and authorize every device and user for every resource access, and encrypt all communication.
C.Implement VLANs to separate traffic based on user roles.
D.Use a VPN to secure all remote access to the corporate network.
AnswerB

This is the core of zero trust: never trust, always verify, and ensure encrypted communication.

Why this answer

Zero trust is built on the principle of 'never trust, always verify.' This means every device and user must be authenticated and authorized for each resource access, regardless of network location, and all communication should be encrypted to protect data in transit. This eliminates implicit trust based on network perimeter and enforces least-privilege access.

Exam trap

Candidates often mistakenly believe that network segmentation (VLANs) or VPNs achieve zero trust, but zero trust requires per-session authentication, authorization, and encryption for every access regardless of network location.

How to eliminate wrong answers

Option A is wrong because placing all resources on the internal network and relying on perimeter firewalls assumes a trusted internal network, which violates the zero-trust principle of eliminating implicit trust. Option C is wrong because implementing VLANs to separate traffic based on user roles provides network segmentation but does not enforce per-request authentication, authorization, or encryption, which are core to zero trust. Option D is wrong because using a VPN secures remote access but still creates a trusted tunnel into the network, contradicting the zero-trust requirement to authenticate and authorize every access attempt regardless of source.

703
MCQmedium

A company is evaluating a new cloud service provider. The provider has a SOC 2 Type II report covering the previous year. Which additional assurance should the company request to verify the provider's current security controls?

A.Accept the SOC 2 report as sufficient
B.Implement continuous monitoring of the provider
C.Request a penetration test report covering the current year
D.Request a third-party audit of the SOC 2 report
AnswerC

Provides current assessment of security posture.

Why this answer

A SOC 2 Type II report provides assurance over controls in place during a historical period (the previous year), but it does not guarantee that those controls remain effective today. Requesting a current-year penetration test report (Option C) gives the company direct, timely evidence of the provider's security posture, including any vulnerabilities that may have emerged since the SOC 2 audit period ended.

Exam trap

The CASP+ exam often tests the distinction between historical assurance (SOC 2 Type II) and current assurance (penetration test), tempting candidates to accept the SOC 2 report as sufficient or to propose continuous monitoring, which is impractical without direct access to the provider's systems.

How to eliminate wrong answers

Option A is wrong because a SOC 2 Type II report is point-in-time and may be outdated; accepting it as sufficient ignores the risk that controls have degraded or been bypassed since the audit period. Option B is wrong because implementing continuous monitoring of the provider is typically not feasible for a customer without a contractual agreement and technical integration (e.g., API-based logging), and it does not replace the need for an independent, standardized assessment like a penetration test. Option D is wrong because a third-party audit of the SOC 2 report would merely re-validate the historical audit work, not provide current evidence of control effectiveness; it adds no new insight into the provider's present security state.

704
MCQmedium

A security architect is designing a secure connection between an on-premises data center and a cloud provider's virtual network. The connection must be private, low-latency, and not traverse the public internet. Which solution should they recommend?

A.Software-Defined WAN (SD-WAN)
B.Cloud Access Security Broker (CASB)
C.Site-to-site VPN over the internet
D.Direct Connect / ExpressRoute
AnswerD

This is a dedicated private connection that does not use the internet.

Why this answer

Direct Connect (or AWS Direct Connect, Azure ExpressRoute) provides a dedicated private network connection from on-premises to the cloud, bypassing the internet for lower latency and increased security.

705
MCQeasy

A company's development team uses a CI/CD pipeline hosted in a public cloud. The pipeline builds container images, pushes them to a private registry, and deploys them to a Kubernetes cluster. A security engineer must ensure that only signed and vulnerability-scanned images are deployed. The engineer has configured the registry to require signatures and the CI/CD pipeline to scan images. However, deployments are still failing because unsigned images are being pulled. The engineer discovers that developers can push images directly to the registry bypassing the CI/CD pipeline and that Kubernetes nodes can pull images without signature verification. Which of the following should the engineer implement to enforce image signing and scanning?

A.Implement a manual approval step in the pipeline for each deployment.
B.Use network policies to block all outbound traffic from developer workstations to the container registry.
C.Restrict registry write access to the CI/CD service account and enable image signature verification via admission controller in Kubernetes.
D.Configure the CI/CD pipeline to perform vulnerability scanning after every build.
AnswerC

Restricts pushes to authorized accounts and verifies signatures at deployment time.

Why this answer

It addresses both root causes: restricting registry write access to only the CI/CD service account prevents developers from bypassing the pipeline, and enabling image signature verification via an admission controller (e.g., using Kubernetes ImagePolicyWebhook or a tool like Cosign with OCI signatures) ensures that only signed and scanned images are allowed to run in the cluster. This combination enforces the security policy at both the registry and the cluster level, closing the gaps identified in the scenario.

Exam trap

The trap here is that candidates often focus only on the CI/CD pipeline (e.g., scanning or approvals) and overlook the need to restrict direct registry access and enforce signature verification at the cluster level, which are the two distinct vulnerabilities described in the scenario.

How to eliminate wrong answers

Option A is wrong because a manual approval step in the pipeline does not prevent developers from pushing unsigned images directly to the registry, nor does it enforce signature verification at the Kubernetes level; it only adds a human gate in the CI/CD process. Option B is wrong because network policies blocking outbound traffic from developer workstations to the registry would not stop developers from pushing images via other means (e.g., through a jump host or VPN), and it does not address the lack of signature verification on Kubernetes nodes. Option D is wrong because configuring the pipeline to perform vulnerability scanning after every build does not prevent unsigned images from being deployed; scanning alone does not enforce signature verification, and it does not restrict direct pushes to the registry or enforce admission control.

706
Multi-Selecteasy

An IoT device manufacturer wants to ensure the security of over-the-air (OTA) firmware updates. Which TWO measures are essential to protect the update process?

Select 2 answers
A.Sign the firmware with a trusted code signing certificate
B.Use a simple checksum for integrity verification
C.Implement a secure boot chain that verifies the signature before applying the update
D.Encrypt the firmware using a hardcoded key
E.Allow firmware downgrades to previous versions
AnswersA, C

Digital signatures verify the firmware comes from a trusted source and has not been modified.

Why this answer

Code signing ensures firmware integrity and authenticity. A secure boot chain verifies the signature before execution. Encrypting the firmware in transit protects confidentiality, but integrity is paramount.

Hardcoding keys is insecure. Rolling back firmware can introduce vulnerabilities.

707
MCQmedium

Refer to the exhibit. Which of the following best describes the security constraint imposed by this policy?

A.Only allows access during business hours.
B.Only allows access from a specific user account.
C.Only allows access to a specific storage bucket.
D.Only allows access from a specific network endpoint.
AnswerD

Correct. The policy condition requires the request to originate from a specific network endpoint, enforcing network-level access control.

Why this answer

The condition in the policy requires the request to originate from a specified network endpoint, enforcing a network-level constraint.

708
MCQhard

A security architect is designing a hybrid cloud environment with workloads in AWS and on-premises. The architect needs to ensure secure, low-latency connectivity between the two environments without traversing the internet. Which solution should be used?

A.AWS Direct Connect
B.Site-to-site VPN over the internet
C.AWS Client VPN
D.AWS Transit Gateway with internet gateway
AnswerA

Direct Connect provides a dedicated private connection meeting the requirements.

Why this answer

AWS Direct Connect provides dedicated private network connectivity from on-premises to AWS, offering low latency and security without internet exposure.

709
MCQhard

A financial institution is implementing a privacy program based on GDPR principles. Which of the following best describes the concept of 'privacy by design'?

A.Ensuring that data subjects can exercise their rights upon request
B.Appointing a Data Protection Officer to oversee all privacy matters
C.Embedding privacy controls into the design and architecture of systems and processes
D.Conducting a privacy impact assessment after a data breach
AnswerC

This is the essence of privacy by design.

Why this answer

Privacy by design is a proactive approach that integrates privacy into the system development lifecycle, not just a one-time assessment.

710
MCQmedium

During a merger, two companies need to integrate their networks securely. Company A uses RFC 1918 addresses (10.0.0.0/8) and Company B also uses 10.0.0.0/8. Which architectural solution prevents routing conflicts and maintains security?

A.Configure a site-to-site VPN with no address translation
B.Enable direct BGP peering between the two networks
C.Implement a firewall between the networks and allow all traffic
D.Deploy network address translation (NAT) on the border routers to translate one company's addresses to a unique range
AnswerD

NAT resolves IP overlap and allows secure communication.

Why this answer

Both companies use the same RFC 1918 address space (10.0.0.0/8), which would cause routing conflicts if directly connected. Deploying NAT on the border routers translates one company's overlapping addresses to a unique range (e.g., 172.16.0.0/12 or a public IP block), eliminating IP collisions while maintaining security through stateful inspection or ACLs. This allows the merged networks to communicate without renumbering either company's internal infrastructure.

Exam trap

The trap here is that candidates assume a site-to-site VPN (Option A) inherently resolves overlapping IPs, but VPNs only encrypt traffic—they do not translate addresses, so routing conflicts persist without NAT or renumbering.

How to eliminate wrong answers

Option A is wrong because a site-to-site VPN with no address translation would directly expose the overlapping 10.0.0.0/8 addresses, causing routing conflicts and packet misdelivery. Option B is wrong because enabling direct BGP peering between the two networks would advertise the same 10.0.0.0/8 prefixes, leading to route flapping, black holes, and potential loops. Option C is wrong because implementing a firewall between the networks and allowing all traffic does not resolve the underlying IP overlap; traffic would still be dropped or misrouted due to duplicate addresses, and it violates the principle of least privilege.

711
MCQhard

An organization is concerned about future quantum computer attacks on their public key infrastructure. Which NIST-standardized algorithm is designed for digital signatures and is resistant to quantum attacks?

A.CRYSTALS-Dilithium
B.Falcon
C.RSA-4096
D.CRYSTALS-Kyber
AnswerA

Correct; Dilithium is a digital signature algorithm.

Why this answer

CRYSTALS-Dilithium is a NIST PQC standard for digital signatures.

712
MCQhard

A security engineer is writing a Python script to automate the revocation of compromised certificates using the ACME protocol. The script uses the `acme` library and requires secure credential storage. Which method is MOST appropriate for storing the ACME account private key used for authentication?

A.Store the key in the operating system's keychain (e.g., macOS Keychain, Windows Credential Manager) or a HSM
B.Store the key in a configuration file with 600 permissions
C.Embed the key directly in the script as a string variable
D.Store the key in an environment variable
AnswerA

Why this answer

The ACME account private key is a highly sensitive cryptographic credential used to authenticate against the ACME server (RFC 8555). Storing it in the OS keychain or a Hardware Security Module (HSM) provides encryption at rest, access control via OS-level permissions, and protection against accidental exposure. This aligns with the principle of least privilege and secure key management required for automation scripts handling certificate revocation.

Exam trap

The CAS-004 exam often tests the misconception that file permissions (e.g., 600) or environment variables are sufficient for secure credential storage, when in fact they lack encryption at rest and are vulnerable to broader system-level access.

Why the other options are wrong

B

The key remains in plaintext on disk; even with restricted permissions, it can be read by any process running as the same user or through privilege escalation.

C

The key is exposed in source code, version control, and accessible to anyone who can read the script.

D

Environment variables are often written to logs, process dumps, and are not encrypted at rest; they are not designed for long-term cryptographic key storage.

713
MCQhard

A security architect is designing a data classification scheme. Which classification level should be used for data that, if disclosed, could cause serious damage to the organization's reputation or financial standing?

A.Confidential
B.Public
C.Internal
D.Restricted
AnswerD

Correct. Restricted data is the most sensitive, causing serious damage if disclosed.

Why this answer

Restricted data is typically the highest level, where unauthorized disclosure could cause severe harm. Confidential is often a lower level.

714
MCQhard

A cloud security architect is designing a multi-region active-active application. The application must maintain high availability even if an entire AWS region fails. Which architecture BEST meets this requirement?

A.Active-active in one region with auto scaling
B.Deploy identical stacks in two regions with Route 53 weighted routing and DynamoDB global tables
C.Single region with multiple AZs and RDS Multi-AZ
D.Two regions with active-passive failover using Route 53 health checks
AnswerB

This provides active-active multi-region with automatic traffic distribution and data replication.

Why this answer

Deploying identical application stacks in two AWS regions with Route 53 weighted routing distributes traffic evenly across both regions, and DynamoDB global tables provide multi-region, multi-master replication with eventual consistency, ensuring the application remains fully active and available even if an entire AWS region fails. This architecture meets the active-active and region-failure requirement without relying on failover or single-region dependencies.

Exam trap

The primary trap in this question is that candidates may confuse multi-AZ or single-region high availability with true multi-region active-active resilience, or assume that Route 53 health checks alone make an architecture active-active when they are often used for failover (active-passive).

How to eliminate wrong answers

Option A is wrong because active-active in a single region with auto scaling cannot survive the failure of an entire AWS region; it only handles scaling within that region. Option C is wrong because a single region with multiple AZs and RDS Multi-AZ protects against Availability Zone failures but not against a complete region outage. Option D is wrong because active-passive failover using Route 53 health checks is not active-active; it introduces a passive standby that does not serve traffic until failover, violating the requirement for continuous active-active operation.

715
Multi-Selecthard

A company is implementing a zero-trust network architecture. Which THREE of the following are critical components of this approach?

Select 3 answers
A.VPN for all remote access
B.Default-deny access policies (least privilege)
C.Continuous monitoring and authentication
D.Micro-segmentation of network resources
E.A single perimeter firewall
AnswersB, C, D

Users and devices are given only the access necessary.

Why this answer

Zero-trust architecture (ZTA) explicitly mandates default-deny access policies based on least privilege. This means no user or device is trusted by default, regardless of network location; access is granted only after verifying identity, device health, and context, and is limited to the minimum necessary resources.

Exam trap

The trap here is that candidates confuse VPNs with secure remote access in zero-trust, but ZTA replaces VPNs with identity-aware proxies (e.g., Zscaler, Cloudflare Access) that enforce per-session authentication and least privilege, not persistent tunnels.

716
MCQmedium

A company is adopting a DevOps model and wants to integrate security into CI/CD pipelines. Which of the following is the MOST effective approach?

A.Annual vulnerability scans
B.Post-deployment security testing
C.Manual security reviews before each release
D.Automated security scanning in the pipeline with fail-fast
AnswerD

Automation with fail-fast provides immediate feedback and prevents vulnerable code from progressing.

Why this answer

Automated security scanning in the pipeline with fail-fast is the most effective approach because it integrates security checks (e.g., SAST, DAST, dependency scanning) directly into the CI/CD workflow, enabling immediate detection and blocking of vulnerabilities before they reach production. This aligns with DevSecOps principles by shifting security left, reducing remediation costs, and ensuring that insecure code fails the build automatically, preventing deployment of vulnerable artifacts.

Exam trap

The CAS-004 exam often tests the misconception that post-deployment testing (Option B) is sufficient for security, but the trap here is that candidates overlook the fundamental DevSecOps principle of shifting security left, where automated fail-fast scanning in the pipeline is the only approach that prevents vulnerable code from ever reaching production.

How to eliminate wrong answers

Option A is wrong because annual vulnerability scans are far too infrequent for a DevOps model with frequent releases, leaving critical vulnerabilities undetected for months and failing to provide real-time feedback to developers. Option B is wrong because post-deployment security testing detects vulnerabilities only after code is already in production, increasing risk and remediation cost, and violates the shift-left security principle. Option C is wrong because manual security reviews before each release introduce human error, are not scalable for rapid CI/CD pipelines, and cannot keep pace with the speed of automated builds and deployments.

717
MCQhard

Refer to the exhibit. A cloud security engineer is reviewing an AWS S3 bucket policy. What security issue does the policy contain?

A.No server-side encryption is specified
B.Public read access is allowed
C.No version ID is specified in the resource
D.No logging is enabled for the bucket
AnswerB

Principal '*' with Allow effect grants anonymous access to objects, making them public.

Why this answer

The policy allows any principal ('*') to perform s3:GetObject on the bucket, making the bucket publicly readable. This exposes objects to anyone on the internet. No encryption, logging, or versioning issues are indicated by this JSON snippet.

718
MCQmedium

A security architect is designing a defense-in-depth strategy for a web application. Which combination of controls provides overlapping protection against SQL injection attacks?

A.Encryption and hashing
B.Input validation and parameterized queries
C.Intrusion detection system (IDS) and antivirus
D.Web application firewall (WAF) and network segmentation
AnswerB

Input validation prevents malicious input, and parameterized queries prevent injection in database calls; together they provide overlapping protection.

Why this answer

Defense-in-depth layers multiple controls. Input validation prevents malicious input from reaching the application, while parameterized queries ensure that SQL statements are safe even if validation fails. WAFs can detect and block injection attempts at the network layer.

719
MCQhard

A security analyst is investigating a potential advanced persistent threat (APT) that has evaded traditional signature-based defenses. The analyst hypothesizes that the attacker is using a specific technique from the MITRE ATT&CK framework: process injection. Which threat hunting methodology is most appropriate for this scenario?

A.TTP-driven hunting by analyzing adversary behaviors mapped to the ATT&CK framework
B.Hypothesis-driven hunting based on a specific technique (process injection) and searching for evidence in memory and process activity
C.Automated hunting using SIEM correlation rules that trigger on known malicious file hashes
D.IoC-driven hunting using known indicators of compromise from open-source feeds
AnswerB

Hypothesis-driven hunting starts with a hypothesis about adversary behavior and proactively searches for evidence, making it ideal for detecting novel or evasive techniques.

Why this answer

Hypothesis-driven hunting starts with a specific hypothesis based on threat intelligence or a known TTP, such as process injection. This approach is proactive and focuses on detecting behaviors consistent with the hypothesis, unlike IoC-driven hunting which relies on known indicators.

720
Multi-Selectmedium

A financial institution is implementing a secure software development lifecycle (SSDLC) for a new web application that will handle sensitive transactions. The security architect must ensure that application security testing is integrated into the development process. Which THREE testing techniques should be used to identify vulnerabilities early and throughout the lifecycle? (Choose THREE.)

Select 3 answers
A.Static Application Security Testing (SAST)
B.Runtime Application Self-Protection (RASP)
C.Interactive Application Security Testing (IAST)
D.Dynamic Application Security Testing (DAST)
E.Threat modeling
AnswersA, C, D

SAST scans source code for vulnerabilities early in development, enabling low-cost remediation.

Why this answer

SAST (Static Application Security Testing) identifies vulnerabilities in source code early, DAST (Dynamic Application Security Testing) tests running applications for runtime vulnerabilities, and IAST (Interactive Application Security Testing) combines aspects of both for real-time analysis. RASP is a runtime protection tool, not a testing technique. Threat modeling is a design-phase activity, not a testing technique.

721
Multi-Selecthard

During an incident response exercise, a company discovers that sensitive data was exfiltrated. The CIRT needs to determine the root cause and prevent recurrence. Which THREE of the following steps are part of the lessons learned process? (Choose THREE.)

Select 3 answers
A.Conduct a full forensic analysis of affected systems.
B.Identify gaps in security controls and recommend improvements.
C.Update the incident response plan based on findings.
D.Document the timeline of events and actions taken.
E.Disable the compromised accounts immediately.
AnswersB, C, D

Identifying gaps and recommending improvements is a core lesson learned activity.

Why this answer

Identifying gaps in security controls and recommending improvements is a core component of the lessons learned phase. This step ensures that the root cause of the exfiltration is addressed by analyzing which controls failed (e.g., missing DLP rules, inadequate network segmentation) and proposing concrete enhancements to prevent recurrence.

Exam trap

The CASP+ exam often tests the distinction between reactive incident response steps (forensics, containment) and the proactive, improvement-focused lessons learned phase, leading candidates to mistakenly include forensic analysis or immediate containment actions as part of lessons learned.

722
MCQhard

An organization uses a CI/CD pipeline that builds Docker images and pushes them to a private registry. A security analyst discovers that some images contain environment variables with database credentials. Which of the following is the most effective way to prevent this in the future?

A.Use a .dockerignore file to exclude credential files.
B.Implement multi-stage builds to separate build and runtime environments.
C.Scan images with a vulnerability scanner after build.
D.Reduce the base image size to minimize attack surface.
AnswerB

Why this answer

The best approach is to use multi-stage builds: build the application in one stage, then copy only the artifact to a final, clean image. This avoids including build-time secrets in the final image. Additionally, using Docker BuildKit's --secret flag can inject secrets without persisting them.

Exam trap

Candidates often choose 'Use .dockerignore to exclude files' because it can prevent some files from being copied, but environment variables set via ENV or passed at build time are not files. Multi-stage builds address the root cause.

Why the other options are wrong

A

.dockerignore prevents copying files but does not eliminate secrets set via ENV or build args.

C

Scanning detects known vulnerabilities, not embedded secrets.

D

Size reduction does not remove secrets already embedded.

723
MCQmedium

A company uses a multi-cloud strategy with workloads in AWS and Azure. They need a centralized solution to enforce consistent security policies across both cloud environments. Which type of tool should they deploy?

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

CSPM automates the identification and remediation of risks across cloud infrastructure configurations.

Why this answer

A Cloud Security Posture Management (CSPM) tool provides visibility and policy enforcement across multiple cloud providers, helping to ensure compliance with security best practices.

724
MCQmedium

A company's security policy requires all sensitive data to be encrypted at rest. However, a business unit requests an exception to store certain data unencrypted due to performance constraints. Which document should govern the exception process?

A.Security policy
B.Risk treatment plan
C.Acceptable use policy
D.Data classification standard
AnswerA

The security policy should include an exception management clause.

Why this answer

An exception management process is typically defined within the security policy or a related standard, outlining how to request, approve, and track exceptions.

725
MCQhard

A security analyst is using a SOAR platform to automate response to phishing emails reported by users. The playbook should perform the following actions in order: (1) extract indicators from the email, (2) query threat intelligence feeds for reputation, (3) if malicious, block the sender's domain at the email gateway and delete the email from all user inboxes. Which type of playbook step is most appropriate for step 3?

A.Playbook trigger
B.Output step
C.Action step
D.Conditional step
AnswerC

Action steps execute automated tasks such as API calls to block or delete.

Why this answer

In SOAR, an action step performs a specific operation like blocking a domain or deleting emails. Conditional steps would check conditions, but the playbook already determined the email is malicious, so an action is needed.

726
MCQhard

A security analyst is reviewing a third-party assessment report and notes that the vendor's encryption algorithms are outdated. The contract requires the vendor to follow industry best practices. Which of the following is the BEST response?

A.Conduct a penetration test on the vendor's system.
B.Request the vendor to upgrade encryption algorithms to current standards.
C.Terminate the contract immediately.
D.Accept the risk because the vendor is technically compliant with the contract.
AnswerB

Directly asking the vendor to comply with the contract's best-practice clause is the most appropriate first step.

Why this answer

The contract requires the vendor to follow industry best practices, and outdated encryption algorithms (e.g., DES, RC4, or 3DES) are no longer considered secure or compliant with standards like NIST SP 800-131A or PCI DSS. The best response is to formally request the vendor to upgrade to current, approved algorithms such as AES-256 or ChaCha20, as this directly addresses the non-compliance with the contractual requirement. This action aligns with the governance and risk management process of enforcing contractual security obligations.

Exam trap

The trap here is that candidates may confuse 'technically compliant' with 'secure' and choose to accept the risk (Option D), failing to recognize that outdated encryption algorithms violate the contractual requirement to follow industry best practices, which is a governance and compliance issue, not just a technical one.

How to eliminate wrong answers

Option A is wrong because conducting a penetration test on the vendor's system would test for exploitable vulnerabilities but does not directly enforce the contractual requirement to use current encryption standards; it is a detective control, not a corrective action. Option C is wrong because terminating the contract immediately is a disproportionate response without first attempting to remediate the issue through a formal request, and it could cause unnecessary business disruption. Option D is wrong because accepting the risk is inappropriate when the vendor is not technically compliant with the contract's requirement to follow industry best practices; outdated encryption algorithms are a known security risk and violate the agreement.

727
Multi-Selectmedium

A small business is implementing a privacy impact assessment (PIA) for a new application that processes personal data of EU citizens. Which TWO of the following are required under GDPR?

Select 2 answers
A.Obtain approval from a data protection authority before processing
B.Appoint a data protection officer (DPO)
C.Publish the PIA on the company website
D.Describe the processing operations and purposes
E.Assess the necessity and proportionality of the processing
AnswersD, E

Correct: The PIA must include a description of the processing.

Why this answer

GDPR requires a PIA when processing is likely to result in high risk to individuals, and the PIA must describe the processing and assess necessity and proportionality.

728
MCQhard

A security team is analyzing a suspicious binary using static analysis. They run the strings command and observe references to 'CreateRemoteThread' and 'WriteProcessMemory'. Which technique is the binary likely employing?

A.DLL sideloading
B.Reflective DLL loading
C.Process injection
D.API hooking
AnswerC

These API calls are typical of process injection techniques.

Why this answer

CreateRemoteThread and WriteProcessMemory are commonly used for process injection, allowing code execution in another process's address space.

729
MCQeasy

A security architect is designing a VPN that requires both authentication and encryption. Which IPsec protocol provides both services in a single protocol?

A.AH in transport mode
B.IKEv2
C.ESP in tunnel mode
D.AH in tunnel mode
AnswerC

ESP offers both encryption and authentication, tunnel mode encapsulates the entire IP packet.

Why this answer

ESP provides both encryption and optional authentication, while AH only provides authentication without encryption.

730
MCQmedium

A multinational corporation must comply with GDPR, CCPA, and LGPD. The CISO proposes a unified data classification policy. Which approach best minimizes compliance conflicts?

A.Adopt a unified policy based on GDPR as the strictest regulation
B.Create a unified policy meeting the most stringent requirements of all three regulations
C.Use a single policy based on the company's country of incorporation
D.Implement separate policies for each regulation
AnswerB

A unified baseline using the most restrictive elements ensures compliance with all three.

Why this answer

A unified policy that meets the most stringent requirements of GDPR, CCPA, and LGPD ensures baseline compliance across all jurisdictions without violating any regulation. This approach minimizes conflicts by harmonizing data classification rules, such as consent management and data subject rights, under the highest common denominator, which is GDPR for most provisions like explicit consent and 72-hour breach notification.

Exam trap

CompTIA often tests the misconception that adopting the strictest single regulation (GDPR) is sufficient, but the trap is that each regulation has unique requirements (e.g., CCPA’s right to opt out of sale, LGPD’s appointment of a DPO under Article 41) that must be explicitly addressed in a unified policy to avoid compliance gaps.

How to eliminate wrong answers

Option A is wrong because adopting a unified policy based solely on GDPR as the strictest regulation may not address CCPA-specific requirements, such as the right to opt out of the sale of personal information (California Civil Code §1798.120) or LGPD’s unique legal basis for processing (e.g., legitimate interest under Article 10), leading to non-compliance. Option C is wrong because using a single policy based on the company's country of incorporation ignores extraterritorial scope requirements of GDPR (Article 3), CCPA (California Consumer Privacy Act), and LGPD (Article 3), creating gaps for data subjects in other jurisdictions. Option D is wrong because implementing separate policies for each regulation increases administrative overhead, risks conflicting data handling procedures (e.g., different retention periods), and fails to provide a unified data classification framework, which the CISO specifically proposed to minimize conflicts.

731
MCQmedium

A security manager is reviewing the company's security policy hierarchy. Which of the following correctly orders these documents from highest to lowest authority?

A.Standard, Policy, Procedure, Guideline
B.Policy, Standard, Guideline, Procedure
C.Policy, Guideline, Standard, Procedure
D.Procedure, Guideline, Standard, Policy
AnswerB

Correct order: Policy -> Standard -> Guideline -> Procedure.

Why this answer

The policy hierarchy typically follows: Policy (high-level, mandatory) -> Standard (specific requirements) -> Guideline (recommendations) -> Procedure (step-by-step instructions).

732
MCQhard

A company is migrating to a zero trust architecture. Which of the following is a key principle of zero trust?

A.Allow all traffic within the corporate network
B.Assume breach and verify every request
C.Trust devices based on their IP address
D.Trust but verify for all internal traffic
AnswerB

Zero trust operates on the principle of never trusting and always verifying.

Why this answer

Zero trust architecture is built on the principle of 'never trust, always verify,' which explicitly requires that every access request—regardless of origin—be authenticated, authorized, and continuously validated. Option B ('Assume breach and verify every request') captures this core tenet, as it mandates that no implicit trust is granted based on network location or device status, and every request must be treated as potentially malicious until proven otherwise.

Exam trap

The trap here is that candidates often confuse 'trust but verify' (Option D) with zero trust, but zero trust explicitly eliminates the initial trust assumption, requiring verification before any access is granted, not after.

How to eliminate wrong answers

Option A is wrong because zero trust explicitly rejects the model of allowing all traffic within the corporate network; instead, it enforces micro-segmentation and least-privilege access, blocking all traffic by default and only permitting what is explicitly allowed. Option C is wrong because zero trust does not trust devices based on their IP address—IP addresses are easily spoofed and change frequently; trust is instead established through device identity, health posture, and continuous authentication (e.g., using certificates or device attestation). Option D is wrong because 'trust but verify' is the opposite of zero trust; zero trust assumes no trust at any point, requiring verification for every request, including internal traffic, rather than granting initial trust and then verifying.

733
MCQhard

A security manager is evaluating two risk quantification approaches: Factor Analysis of Information Risk (FAIR) and a qualitative heat map. Which of the following is a key advantage of using FAIR over the qualitative heat map?

A.FAIR is the only framework recognized by NIST
B.FAIR is easier to communicate to non-technical stakeholders
C.FAIR requires less data and expertise to implement
D.FAIR provides a monetary value for risk, enabling ROI calculations
AnswerD

Correct: FAIR produces dollar figures for risk, supporting cost-benefit decisions.

Why this answer

FAIR provides a more rigorous, quantitative analysis that enables cost-benefit analysis, unlike qualitative methods.

734
MCQeasy

During a secure SDLC, a development team wants to identify vulnerabilities in running code. Which type of testing should be performed?

A.IAST
B.SAST
C.DAST
D.RASP
AnswerC

DAST tests running code for vulnerabilities.

Why this answer

DAST (Dynamic Application Security Testing) tests running applications from the outside, simulating attacks to find vulnerabilities in runtime behavior.

735
MCQhard

During a security assessment, an engineer discovers that a smartcard used for authentication is vulnerable to side-channel attacks. Which countermeasure would best mitigate power analysis attacks?

A.Adding redundant cryptographic operations to equalize power consumption
B.Using a shielded enclosure to reduce electromagnetic emissions
C.Increasing the key length
D.Implementing a hardware random number generator
AnswerA

This makes power consumption more uniform, reducing leakage.

Why this answer

Power analysis attacks exploit variations in power consumption; constant-time algorithms and power smoothing hardware help mitigate this.

736
MCQhard

An organization is implementing a hybrid cloud architecture and must ensure secure connectivity between its on-premises network and a public cloud VPC. The traffic includes sensitive data that must not traverse the internet. The solution must provide high bandwidth and low latency. Which connectivity option should the architect choose?

A.AWS Direct Connect
B.Site-to-Site VPN over the internet
C.AWS Client VPN
D.Internet gateway with encryption
AnswerA

Direct Connect provides a private, dedicated connection with high bandwidth and low latency.

Why this answer

Direct Connect provides a dedicated, private, high-bandwidth connection between on-premises and cloud, bypassing the internet.

737
Multi-Selecthard

Which THREE of the following are required for a valid Business Associate Agreement (BAA) under HIPAA? (Select THREE)

Select 3 answers
A.Indemnification clause for breaches
B.Permitted and required uses of PHI
C.Requirement to store data in the United States
D.Safeguards to protect PHI
E.Procedures for breach notification
AnswersB, D, E

Must be specified

Why this answer

A Business Associate Agreement (BAA) must specify the permitted and required uses of Protected Health Information (PHI) by the business associate. This is a core requirement under HIPAA §164.504(e)(2)(i) to ensure the business associate does not use or disclose PHI beyond what is authorized by the covered entity or required by law.

Exam trap

The CAS-004 exam often tests the distinction between mandatory BAA elements (permitted uses, safeguards, breach notification) and optional contractual terms (indemnification, data storage location) to see if candidates confuse common business contract clauses with HIPAA regulatory requirements.

738
Multi-Selectmedium

An organization is deploying a Kubernetes cluster and needs to harden security. Which THREE controls should be implemented? (Choose three.)

Select 3 answers
A.Role-Based Access Control (RBAC)
B.Admission controllers
C.Seccomp profiles
D.Network policies
E.Service mesh
AnswersA, B, D

RBAC restricts user and service account permissions.

Why this answer

RBAC controls access, network policies segment traffic, and admission controllers enforce policies before pods are created.

739
Multi-Selecteasy

A penetration tester is planning a test for a client that has a critical web application. The rules of engagement specify that the tester must avoid causing a denial of service (DoS). Which THREE actions are appropriate for the tester to include in the scope? (Select THREE.)

Select 3 answers
A.Conducting social engineering attacks against employees without prior approval
B.Port scanning to identify open services on the web server
C.Performing a distributed denial-of-service (DDoS) attack to test resilience
D.Attempting to brute-force directories and files on the web server
E.Testing for SQL injection vulnerabilities in input fields
AnswersB, D, E

Port scanning is a standard reconnaissance technique that does not cause DoS.

Why this answer

Port scanning, SQL injection testing, and directory brute-forcing are common penetration testing activities that do not inherently cause DoS. DoS attacks and social engineering without approval are typically out of scope.

740
MCQeasy

A security architect is implementing defense-in-depth for a critical application. Which of the following is an example of a detective control?

A.Data encryption
B.Access control list
C.Firewall
D.Intrusion detection system
AnswerD

Correct; IDS monitors and alerts on potential incidents.

Why this answer

Detective controls identify and record security events after they occur; an IDS monitors traffic for suspicious activity.

741
Matchingmedium

Match each error code or HTTP status code to its meaning.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Forbidden

Not Found

Internal Server Error

Bad Gateway

Unauthorized

Why these pairings

Common HTTP status codes: 200 OK, 403 Forbidden, 404 Not Found, and 500 Internal Server Error. Distractors swap codes with similar meanings or misinterpretations.

742
Multi-Selecthard

During a penetration test, an assessor successfully exploits a timing side-channel attack to extract an ECDSA private key from a secure enclave. Which TWO mitigations should the development team implement to prevent such attacks? (Select TWO.)

Select 2 answers
A.Implement constant-time cryptographic operations
B.Add random delays to cryptographic operations
C.Disable debug interfaces on the secure enclave
D.Use blinding techniques for ECDSA signing
E.Replace ECDSA with Ed25519
AnswersA, D

Constant-time code ensures execution time is independent of secret data, thwarting timing attacks.

Why this answer

Timing attacks exploit variations in execution time based on secret data. Constant-time algorithms ensure that execution time does not depend on secret inputs. Blinding techniques randomize the computation so that timing variations are independent of the secret.

Using stronger algorithms like Ed25519 does not inherently prevent timing attacks; constant-time implementation is needed. Adding noise to operations can help but is less effective than constant-time. Disabling debug interfaces is not a direct mitigation for timing attacks.

743
MCQhard

To protect against quantum computing attacks, a security architect is planning to transition to post-quantum cryptography. Which algorithm has been selected by NIST for general encryption (key encapsulation) in the PQC standard?

A.Falcon
B.CRYSTALS-Dilithium
C.CRYSTALS-Kyber
D.SPHINCS+
AnswerC

Correct – Kyber is the key encapsulation mechanism.

Why this answer

NIST selected CRYSTALS-Kyber for key encapsulation (encryption) and CRYSTALS-Dilithium for digital signatures.

744
MCQhard

During a security assessment, a tester finds that a web application accepts user input and directly uses it in an LDAP query without sanitization. Which of the following attacks is most likely to be successful?

A.Cross-site scripting
B.SQL injection
C.Remote file inclusion
D.LDAP injection
AnswerD

LDAP injection occurs when user input is improperly concatenated into LDAP queries.

Why this answer

The scenario explicitly describes unsanitized user input being used directly in an LDAP query. LDAP injection occurs when an attacker manipulates LDAP statements by injecting special characters (e.g., *, (, ), &, |, !) to alter the query logic, potentially bypassing authentication or extracting unauthorized directory information. This is a direct injection attack against the LDAP protocol (RFC 4511), not against a database or web client.

Exam trap

The trap here is that candidates see 'user input' and 'query' and immediately think SQL injection, failing to recognize that the specific technology mentioned (LDAP) requires its own injection class, and that each injection type is tied to a distinct backend protocol.

How to eliminate wrong answers

Option A is wrong because cross-site scripting (XSS) targets the client-side execution of scripts in a user's browser, not the server-side LDAP query processing; the vulnerability here is server-side injection, not output encoding to the browser. Option B is wrong because SQL injection targets relational databases using SQL syntax (e.g., SELECT, UNION), whereas LDAP uses a different query language (LDAP filters based on RFC 4515) with distinct special characters and structure. Option C is wrong because remote file inclusion (RFI) involves including a remote file into a server-side script (e.g., PHP include()), which is unrelated to manipulating directory service queries.

745
Multi-Selectmedium

A DevOps engineer is automating the deployment of a web application using containers. Which of the following security practices should be implemented to reduce the attack surface of the containers? (Select TWO.)

Select 2 answers
A.Run containers as a non-root user
B.Build images with embedded database credentials
C.Use minimal base images like Alpine or distroless
D.Expose port 22 for SSH debugging
E.Grant all Linux capabilities to the container
AnswersA, C

Why this answer

Running containers as a non-root user (option A) is a fundamental security best practice because it limits the privileges available to processes inside the container. If an attacker compromises the application, they will not have root access to the host or the container runtime, reducing the potential for privilege escalation or host-level damage. This aligns with the principle of least privilege, which is critical for container security.

Exam trap

CompTIA often tests the misconception that containers are inherently secure because they are isolated, but the trap here is that default root execution and bloated base images are common misconfigurations that dramatically increase the attack surface, and candidates may overlook the need to explicitly drop privileges and minimize image content.

Why the other options are wrong

B

Embedding secrets in images is insecure; they should be injected at runtime.

D

Exposing SSH adds an attack vector and is unnecessary in production.

E

Granting all capabilities weakens isolation; should drop all unnecessary capabilities.

746
MCQhard

An organization is implementing a CASB to secure their SaaS applications. Which CASB deployment mode is most appropriate for monitoring and controlling data in transit between users and cloud apps without modifying the user's device?

A.API-based
B.Reverse proxy
C.Forward proxy
D.Inline gateway
AnswerA

Correct; API-based CASB uses cloud provider APIs for visibility and control without modifying endpoints.

Why this answer

API-based CASB connects directly to the cloud app's API to monitor and control data, without requiring client software.

747
MCQhard

A security operations center (SOC) analyst is tuning a SIEM correlation rule to detect a known attack pattern that involves multiple failed logins followed by a successful login from a different IP address. Which approach best reduces false positives while maintaining detection effectiveness?

A.Use User Behavior Analytics (UBA) to baseline normal login patterns
B.Create a rule that alerts on any failed login
C.Correlate only with known malicious IP addresses
D.Set a threshold of 10 failed logins within 5 minutes
AnswerA

UBA adapts to user behavior, reducing false positives.

Why this answer

UBA establishes a baseline of user behavior and flags deviations, reducing false positives from legitimate multiple failed logins (e.g., forgotten passwords) while still detecting anomalous patterns.

748
MCQmedium

During an incident response, a security analyst identifies a previously unknown malware variant. Which type of threat intelligence feed would provide the most timely and structured information about this threat?

A.STIX/TAXII feed
B.An ISAC
C.Open source intelligence (OSINT)
D.A commercial threat feed
AnswerA

STIX/TAXII provides structured, machine-readable threat intelligence.

Why this answer

STIX/TAXII enables sharing of structured threat intelligence in a standardized format, allowing for automated consumption and immediate updates.

749
MCQeasy

A small business wants to achieve compliance with the Payment Card Industry Data Security Standard (PCI DSS). Which of the following is an essential requirement they must implement?

A.Implement logging and monitoring of all access to cardholder data
B.Encrypt all cardholder data at rest
C.Conduct vulnerability scans on a monthly basis
D.Perform continuous penetration testing
AnswerA

PCI DSS Requirement 10 requires logging and monitoring.

Why this answer

PCI DSS Requirement 10 mandates logging and monitoring of access to cardholder data. Option B is wrong because encryption in transit is required, not at rest by all merchants. Option C is wrong because quarterly scans are required, not monthly.

Option D is wrong because penetration testing is required annually, not continuously.

750
MCQhard

A security engineer is implementing deception technology to detect lateral movement by adversaries. Which type of deception resource would be MOST effective for capturing adversary credential harvesting activities on a network segment that contains no real domain controllers?

A.A SIEM correlation rule for anomalous logins
B.A network-based intrusion detection system (NIDS)
C.A honeypot configured as a domain controller
D.A honeytoken in the form of a fake service account password
AnswerD

Honeytokens are lightweight and trigger alerts when used.

Why this answer

A honeytoken (e.g., a fake credential file or a service account password) planted on a system can trigger an alert when an adversary attempts to use it. A fake domain controller honeypot is also effective but may require more resources. However, a honeytoken is specifically designed to be used by attackers and is simple to deploy.

Page 9

Page 10 of 13

Page 11