Courseiva

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

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

Page 11

Page 12 of 13

Page 13
826
Multi-Selectmedium

A security team is developing a data classification policy. Which TWO of the following elements should be included in the policy to ensure effective data governance?

Select 2 answers
A.Handling requirements for each classification level, including storage and transmission
B.Data retention and disposal schedules
C.Encryption algorithms to be used for data at rest
D.Data loss prevention (DLP) rules
E.Criteria for classifying data into categories such as public, internal, confidential
AnswersA, E

Specifies how data should be protected based on classification.

Why this answer

A data classification policy must define handling requirements for each classification level, specifying how data should be stored, transmitted, and accessed. This ensures consistent protection controls are applied based on sensitivity, which is a core governance principle. Without these requirements, data may be mishandled, leading to compliance violations or data breaches.

Exam trap

CompTIA often tests the distinction between policy elements (what the policy should contain) and derived controls (e.g., DLP rules, encryption algorithms), leading candidates to confuse operational implementation details with foundational policy components.

827
MCQhard

A multinational corporation is implementing a data classification scheme. Which of the following data types should be classified as 'restricted'?

A.Internal meeting minutes
B.Customer PII with legal requirements
C.Employee training materials
D.Marketing brochures
AnswerB

PII with regulatory requirements is often classified as restricted.

Why this answer

Restricted data typically includes information that could cause severe damage if disclosed, such as trade secrets, intellectual property, or personally identifiable information (PII) that is heavily regulated. Public data is for public release. Internal data is for internal use only.

Confidential data is sensitive but less critical than restricted.

828
MCQeasy

Which of the following is a cloud-native security control provided by a cloud service provider to manage user permissions and access to resources?

A.Virtual Private Cloud (VPC)
B.CloudTrail
C.Key Management Service (KMS)
D.Identity and Access Management (IAM)
AnswerD

IAM controls authentication and authorization for cloud resources.

Why this answer

Identity and Access Management (IAM) is a fundamental cloud service for managing users, roles, and permissions.

829
Multi-Selectmedium

A security architect is designing a cloud-native application that must comply with GDPR data residency requirements. Which TWO of the following measures should the architect implement? (Choose two.)

Select 2 answers
A.Deploy the application in a single region to simplify compliance
B.Store data only in approved geographical locations
C.Use data loss prevention (DLP) policies to monitor data transfers
D.Encrypt data at rest and in transit
E.Implement data classification and labeling
AnswersB, C

Correct. Storing data only in approved geographical locations directly addresses GDPR data residency by ensuring data remains within the EEA or equivalent.

Why this answer

GDPR requires that personal data of EU residents be stored within the EEA or in jurisdictions with an adequacy decision, making geographical storage restrictions a direct residency measure. Option C is also correct because data loss prevention (DLP) policies can monitor and block unauthorized data transfers out of approved regions, enforcing compliance with data residency requirements. Option D is incorrect; while encryption is a security measure required under GDPR Article 32, it does not ensure that data stays within approved geographical boundaries.

Exam trap

Candidates may incorrectly assume that encryption (Option D) satisfies data residency because it is a commonly cited GDPR requirement. However, residency specifically concerns the geographical location of data storage, which encryption does not address. The correct complementary controls for residency are restricting storage locations (B) and monitoring data transfers (C).

830
MCQmedium

A security analyst is reviewing CVSS scores for vulnerabilities in the environment. A vulnerability has a base score of 9.0, but the organization has a compensating control that reduces the likelihood of exploitation. The analyst adjusts the score to 6.0 for prioritization. Which CVSS metric group did the analyst modify?

A.Base
B.Vector
C.Environmental
D.Temporal
AnswerC

Environmental metrics adjust for local controls and asset criticality.

Why this answer

The environmental score allows customization based on the organization's environment, including compensating controls.

831
MCQmedium

Which of the following is a key difference between compliance and security?

A.Compliance is voluntary, security is mandatory
B.Compliance is proactive, security is reactive
C.Security only applies to technical controls, compliance to administrative
D.Compliance typically represents a minimum bar, while security seeks best practice
AnswerD

Correct. Compliance is about meeting minimum requirements; security goes beyond.

Why this answer

Compliance focuses on meeting minimum legal or regulatory requirements, while security aims for best practices to protect assets beyond what is required.

832
Multi-Selecthard

A security analyst is investigating a potential advanced persistent threat (APT) that has been evading traditional detection. The analyst decides to use User and Entity Behavior Analytics (UEBA) to identify anomalous activity. Which TWO of the following activities would be most indicative of a potential compromise when analyzed through UEBA? (Choose TWO.)

Select 2 answers
A.A service account authenticating to a database server every 5 minutes
B.A user logging in from a remote location at 3:00 AM, which is outside their normal working hours
C.A user accessing a large number of files on a file server that they do not normally access
D.A user connecting to the corporate VPN from a hotel during a business trip
E.An administrator running a scheduled antivirus scan on a server
AnswersB, C

Off-hours access is a common indicator of compromise.

Why this answer

UEBA detects deviations from normal behavior. A user logging in at unusual hours and accessing large volumes of data are common anomalies. Running scheduled antivirus scans and normal VPN access are expected behaviors.

833
Multi-Selectmedium

A security architect is designing a secure wireless network for a government facility. Which TWO of the following measures should be implemented to ensure the highest level of security? (Select TWO.)

Select 2 answers
A.Use WPA2-PSK with a strong pre-shared key
B.Implement a captive portal with social login
C.Disable SSID broadcast on the access points
D.Use WPA3-Enterprise with EAP-TLS for authentication
E.Enable MAC address filtering on the access points
AnswersC, D

Disabling SSID broadcast can deter casual discovery, though it is not a primary control.

Why this answer

Disabling SSID broadcast (option C) is correct because it prevents the access point from advertising the network name in beacon frames, making the network less visible to casual scanning tools. While not a strong security control on its own (since the SSID is still discoverable via passive monitoring of probe responses and association frames), it adds a layer of obscurity that can deter low-skill attackers and is often required in government environments as part of a defense-in-depth strategy.

Exam trap

The CAS-004 exam often tests the misconception that disabling SSID broadcast or MAC filtering provides strong security, but the trap here is that these are 'security through obscurity' measures that are easily bypassed, while WPA3-Enterprise with EAP-TLS is the only option that provides cryptographic authentication and encryption suitable for a government facility.

834
MCQmedium

A company is deploying IoT sensors in a harsh environment. The sensors have limited processing power and memory. Which of the following cryptographic algorithms is most suitable for ensuring data confidentiality with minimal overhead?

A.RSA-4096
B.ChaCha20-Poly1305
C.SHA-256
D.AES-256-GCM
AnswerB

ChaCha20 is designed for high performance in software and has low memory footprint, ideal for IoT.

Why this answer

ChaCha20-Poly1305 is a stream cipher that is fast in software, especially on devices without AES hardware acceleration, and provides authenticated encryption with low overhead.

835
Multi-Selecthard

A senior security architect is designing a detection strategy for advanced persistent threats (APTs) that employ living-off-the-land (LotL) techniques. Which THREE of the following approaches are most effective for detecting LotL activities? (Choose three.)

Select 3 answers
A.User and Entity Behavior Analytics (UEBA)
B.Deploying honeytokens and honeypots
C.Signature-based detection on malicious file hashes
D.Monitoring for native tool usage with EDR and logging command-line arguments
E.Blocking all scripts and macros by default
AnswersA, B, D

UEBA can establish baselines and detect deviations, such as an admin using PowerShell in an unusual way.

Why this answer

LotL attackers use legitimate tools to avoid detection. Behavioral analytics can detect unusual usage patterns of native tools. Deception technologies can lure attackers into revealing themselves.

Endpoint detection and response (EDR) that monitors process behavior can detect anomalies like PowerShell executing scripts from unusual locations.

836
MCQeasy

Which of the following certificate types is most appropriate for an organization that needs to validate the identity of individuals for email encryption and signing?

A.S/MIME certificate
B.Domain Validation (DV) certificate
C.Client authentication certificate
D.Code signing certificate
AnswerA

S/MIME certificates are used for email signing and encryption.

Why this answer

S/MIME certificates are specifically designed for securing email. Client certificates are for authentication. Code signing is for software.

DV certificates are for websites.

837
Multi-Selecthard

An organization is implementing a PKI with a three-tier hierarchy (root CA, intermediate CA, issuing CA). The security team wants to ensure that certificate revocation information is available quickly and efficiently. Which TWO mechanisms should they implement? (Select TWO.)

Select 2 answers
A.OCSP stapling
B.Delta CRLs
C.Certificate Transparency (CT) logs
D.CRL distribution points (CRL DP)
E.OCSP responders
AnswersD, E

CRLs provide a list of revoked certificates.

Why this answer

CRL and OCSP are standard revocation mechanisms. Certificate transparency (CT) logs are for auditing, not real-time revocation. Delta CRLs are more efficient for frequent updates.

OCSP stapling reduces load on OCSP responders.

838
MCQeasy

An organization wants to enforce that only signed container images are deployed in production. Which of the following should be implemented?

A.Network policies
B.Container runtime security (e.g., seccomp)
C.Image signing and verification in the registry
D.Admission controllers
AnswerC

Image signing ensures integrity and authenticity; verifying signatures before deployment enforces only signed images.

Why this answer

Image scanning verifies signatures and checks for vulnerabilities; however, to enforce only signed images, the registry must require signature verification.

839
MCQmedium

Based on the exhibit, what vulnerability is present in the firewall rule?

A.Overly permissive service specification
B.Source IP range is too broad
C.No logging is enabled
D.Missing application ID control
AnswerA

Allowing 'any' service gives full access to all ports and protocols.

Why this answer

The firewall rule permits 'any' as the service, meaning all TCP/UDP ports and protocols are allowed through. This is overly permissive because it bypasses the principle of least privilege, exposing the internal network to unnecessary traffic and potential attacks. A proper rule should specify only required services (e.g., TCP/443 for HTTPS) to minimize the attack surface.

Exam trap

The CASP+ exam often tests the distinction between overly permissive service definitions and broad source IP ranges. Candidates mistakenly focus on the source subnet being 'too broad' when the real flaw is the 'any' service specification.

How to eliminate wrong answers

Option B is wrong because the source IP range (10.0.1.0/24) is a specific internal subnet, not overly broad; the vulnerability lies in the service specification, not the source. Option C is wrong because while logging is a best practice, its absence is not the vulnerability described in the exhibit—the rule itself is permissive regardless of logging. Option D is wrong because application ID control is a next-generation firewall feature that can enhance security, but the core issue here is the lack of port/protocol restriction, not the absence of application-layer inspection.

840
MCQhard

Based on the exhibit, which type of attack is most likely occurring?

A.Pass-the-hash attack
B.Account lockout attack
C.Replay attack
D.Brute force password guessing
AnswerD

The rapid succession of authentication failures for the root user indicates an attempt to guess the password.

Why this answer

The exhibit shows a high number of failed authentication attempts (e.g., Event ID 4625) from a single source IP against multiple user accounts over a short period. This pattern is characteristic of a brute force password guessing attack, where an attacker systematically tries common passwords against many accounts to gain unauthorized access. The absence of successful logins or account lockouts further supports this conclusion.

Exam trap

The CAS-004 exam often tests the distinction between a brute force attack (many passwords, one account) and a password spraying attack (one password, many accounts), and the trap here is confusing the high volume of failed logins with a replay or pass-the-hash attack, which would show successful authentication or token reuse instead of repeated failures.

How to eliminate wrong answers

Option A is wrong because a pass-the-hash attack uses captured NTLM or Kerberos hashes to authenticate without knowing the plaintext password, and the exhibit shows failed logins with incorrect passwords, not hash reuse. Option B is wrong because an account lockout attack would trigger Event ID 4740 (account locked out) after exceeding the lockout threshold, but the exhibit shows only failed logins without lockout events. Option C is wrong because a replay attack involves capturing and retransmitting valid authentication tokens (e.g., Kerberos TGT or NTLM challenge-response), not repeated failed password attempts.

841
Multi-Selecteasy

Which TWO of the following are primary goals of security operations monitoring? (Choose two.)

Select 2 answers
A.Automate patch deployment
B.Maintain situational awareness of the security posture
C.Conduct vulnerability scans
D.Ensure compliance with regulatory standards
E.Detect security incidents in near real-time
AnswersB, E

Situational awareness is a key outcome of monitoring.

Why this answer

Options B and E are correct. Maintaining situational awareness of the security posture (B) and detecting security incidents in near real-time (E) are primary goals of security operations monitoring. Automating patch deployment (A) is an operational task, not a monitoring goal; conducting vulnerability scans (C) is a separate proactive security activity; ensuring compliance (D) is a secondary benefit derived from monitoring, not a primary goal.

842
MCQeasy

A developer is writing a mobile app that stores sensitive user data locally on the device. Which is the best practice for protecting the data at rest?

A.Use SQLite without encryption
B.Use the device's keychain/keystore with encryption
C.Store data in a remote database only
D.Store data in plain XML files
AnswerB

Keychain/keystore uses hardware-backed encryption for secure local storage.

Why this answer

The best practice for protecting sensitive user data at rest on a mobile device is to use the device's keychain/keystore with encryption. The keychain (iOS) or keystore (Android) provides hardware-backed secure storage that encrypts data using platform-specific cryptographic APIs, ensuring that even if the device is compromised, the data remains confidential. This aligns with the principle of defense-in-depth for mobile application security.

Exam trap

The CAS-004 exam often tests the misconception that simply storing data remotely (Option C) solves local data-at-rest security, but the question explicitly requires protecting data stored locally on the device, making local encryption via keychain/keystore the correct approach.

How to eliminate wrong answers

Option A is wrong because SQLite without encryption stores data in plaintext, leaving it vulnerable to extraction via file system access or forensic tools. Option C is wrong because storing data in a remote database only does not address local data at rest; it introduces network dependency and latency, and the question specifically requires protecting data stored locally on the device. Option D is wrong because plain XML files offer no encryption or access control, making sensitive data easily readable by any process with file system access.

843
MCQhard

A financial institution manages customer data through a web application built on a LAMP stack. The application uses a third-party library for PDF generation that was patched last year. Recently, the security team discovered that an attacker exploited an unpatched vulnerability in the library to execute arbitrary code on the server. The library vendor has released an update, but the development team is concerned that updating the library will break several custom features that rely on its internal API. The CIO wants to minimize risk while maintaining business continuity. The application is critical to daily operations, and any downtime would result in significant revenue loss. Which course of action should the security analyst recommend?

A.Disable the PDF generation feature entirely until the library can be updated in the next quarterly release
B.Deploy a virtual private network (VPN) for all access to the server and restrict input to only trusted IPs
C.Implement a web application firewall (WAF) with a custom rule to block known attack patterns against the library, and then schedule the patch for the next maintenance window
D.Immediately apply the vendor's patch and then test all features in a staging environment for a month before production rollout
AnswerC

WAF provides virtual patching to block exploits while the team tests the update.

Why this answer

Deploying a WAF with custom rules provides virtual patching, reducing risk immediately while allowing time for thorough testing of the library update. Option A (immediate patch) could break features without adequate testing. Option B (VPN) does not address the vulnerability.

Option D (disable PDF generation) removes functionality, impacting business operations.

844
MCQeasy

Refer to the exhibit. A security architect is reviewing this S3 bucket policy. Which of the following security concerns is MOST evident?

A.The policy denies all write access
B.The policy allows public read access
C.The policy uses an outdated version
D.The policy lacks encryption
AnswerB

The wildcard principal '*' allows any anonymous user to read objects.

Why this answer

The policy statement includes an `Effect: Allow` with a `Principal: "*"` and an action of `s3:GetObject`, which grants public read access to all objects in the bucket. This is the most evident security concern because it allows any anonymous user on the internet to read data from the bucket, potentially exposing sensitive information.

Exam trap

CompTIA often tests the distinction between a policy that allows public read access (which is a direct security risk) versus other concerns like outdated versions or missing encryption, which are not immediately evident from the policy syntax alone.

How to eliminate wrong answers

Option A is wrong because the policy does not deny all write access; it only grants read access and does not explicitly deny write actions, so write access could still be allowed by other policies or bucket ACLs. Option C is wrong because the policy version `2012-10-17` is the current and recommended version for S3 bucket policies, not outdated. Option D is wrong because the policy does not address encryption at all; while encryption is a best practice, its absence is not evident from the policy itself, and the policy could still be secure if encryption is enforced elsewhere (e.g., bucket default encryption or object uploads).

845
MCQeasy

A SOC analyst receives an alert indicating that a workstation has been making outbound connections to a known command-and-control (C2) IP address. The analyst initiates the incident response process. Which of the following should be the FIRST action taken?

A.Run a full antivirus scan on the affected workstation.
B.Notify the organization's management and legal team.
C.Delete the suspicious files identified by the antivirus.
D.Isolate the workstation from the network.
AnswerD

Isolation stops the immediate threat and prevents spread.

Why this answer

The first priority in incident response is to contain the threat to prevent further damage. Option D, isolating the workstation, stops the C2 communication and limits lateral movement. Option A (running a full antivirus scan) is reactive and may alert the attacker.

Option B (notifying management and legal) is important but not first. Option C (deleting suspicious files) is premature without analysis.

846
MCQmedium

A financial institution is required to comply with SOX. Which of the following is a primary focus of this regulation?

A.Privacy of personal data for EU citizens
B.Accuracy of financial reporting and internal controls
C.Security of health information
D.Protection of cardholder data
AnswerB

Correct: SOX mandates controls to ensure financial reporting accuracy.

Why this answer

SOX focuses on financial reporting accuracy and internal controls over financial reporting.

847
MCQhard

A security auditor reviews this Kubernetes pod configuration. Which security vulnerability is most critical?

A.The container image is from a public registry and should use a private one.
B.The container runs as non-root, but root access is required for certain operations.
C.The container allows privilege escalation, which should be disabled.
D.The hostPath volume mount provides direct filesystem access to the host, enabling potential container escape.
AnswerD

HostPath mounts give the container access to the host filesystem; if compromised, the attacker can manipulate host files.

Why this answer

A hostPath volume mount grants the container direct read/write access to the host filesystem. If an attacker compromises the container, they can modify critical host files (e.g., /etc/shadow, /var/lib/kubelet) to escape the container and gain root access on the node. This is the most critical vulnerability because it bypasses container isolation entirely.

Exam trap

CompTIA often tests the distinction between a 'best practice' (like using a private registry) and a 'critical vulnerability' (like hostPath mounts that break isolation), tricking candidates into choosing a less severe but more commonly discussed issue.

How to eliminate wrong answers

Option A is wrong because using a public registry is not inherently a critical vulnerability; it is a best practice for supply chain security but does not directly enable container escape or privilege escalation. Option B is wrong because running as non-root is a security best practice; the statement incorrectly implies root is required, but containers should be designed to run without root. Option C is wrong because privilege escalation (e.g., via setuid binaries) is a concern, but it is less critical than a hostPath mount that provides unfettered host filesystem access, which can lead to full node compromise.

848
MCQmedium

A security engineer is reviewing the configuration of a web application firewall (WAF) that protects a public-facing e-commerce site. The site has been experiencing intermittent false positives that block legitimate customers during checkout. The WAF is deployed in blocking mode with a rule set that includes SQL injection and cross-site scripting (XSS) signatures. The engineer notices that legitimate credit card numbers containing the string 'OR' are being blocked. The site uses HTTPS and input validation on the server side. Which of the following actions would BEST resolve the false positives while maintaining security?

A.Remove the WAF and rely on server-side input validation alone.
B.Disable the specific signature that matches the string 'OR' in the SQL injection rule set.
C.Change the WAF from blocking mode to detection mode.
D.Add a custom rule to allow all traffic to the checkout page.
AnswerB

This targets the exact cause of false positives while keeping other protections active.

Why this answer

The false positive is caused by a specific SQL injection signature that matches the string 'OR' within legitimate credit card numbers. Disabling only that signature preserves the WAF's protection against actual SQL injection and XSS attacks while eliminating the false positive. The server-side input validation and HTTPS provide additional layers of defense, so removing the entire rule or switching to detection mode would unnecessarily weaken security.

Exam trap

CompTIA often tests the misconception that switching to detection mode or disabling the entire rule set is a safe compromise, but the correct approach is to surgically disable only the offending signature to balance security and usability.

How to eliminate wrong answers

Option A is wrong because removing the WAF entirely eliminates a critical defense layer, leaving the site vulnerable to attacks that server-side input validation might miss (e.g., bypasses via encoding or logic flaws). Option C is wrong because changing to detection mode would log but not block attacks, failing to protect the site during checkout and violating the requirement to maintain security. Option D is wrong because adding a custom rule to allow all traffic to the checkout page disables all WAF protections for that endpoint, exposing it to SQL injection, XSS, and other threats.

849
Multi-Selecteasy

Which THREE components are essential for a fully functional Security Operations Center (SOC)? (Select exactly 3.)

Select 3 answers
A.Incident response team
B.VPN concentrator
C.Security Information and Event Management (SIEM) system
D.Firewall
E.Standard operating procedures and playbooks
AnswersA, C, E

People are essential for investigation and response.

Why this answer

Options A, C, and E are correct because SIEM for correlation, incident response team, and playbooks are core. Option B is a security control but not a SOC component. Option D is network infrastructure.

850
Multi-Selecteasy

A security team is evaluating endpoint detection and response (EDR) solutions. They want a solution that can detect fileless malware and malicious PowerShell scripts. Which TWO capabilities should the team prioritize? (Choose TWO.)

Select 2 answers
A.Signature-based detection of known malware
B.Network traffic analysis for C2 communication
C.Behavioral monitoring of script execution (e.g., PowerShell)
D.Automated firewall rule creation
E.Memory scanning capabilities
AnswersC, E

Monitoring script behavior can detect malicious activities.

Why this answer

Fileless malware often lives in memory and uses scripting. Memory scanning and script monitoring are key. Signature-based detection may miss fileless attacks.

Firewall rules are unrelated.

851
MCQhard

An organization is evaluating its cloud service provider's security posture as part of third-party risk management. Which regulatory framework requires the organization to ensure that the provider has appropriate technical and organizational measures to protect personal data?

A.PCI DSS
B.SOX
C.GDPR
D.HIPAA
AnswerC

GDPR requires data processors to have appropriate measures.

Why this answer

The General Data Protection Regulation (GDPR) explicitly requires that data controllers (the organization) ensure that data processors (the cloud service provider) implement appropriate technical and organizational measures to protect personal data. This is mandated under Article 28 of the GDPR, which governs the relationship between controllers and processors, including contractual obligations for security measures. The regulation applies to any organization handling personal data of EU residents, regardless of where the cloud provider is located.

Exam trap

CompTIA often tests the distinction between regulations that apply to specific data types (PCI DSS for payment data, HIPAA for health data) versus GDPR's broad, extraterritorial scope over all personal data of EU residents, leading candidates to mistakenly choose a domain-specific regulation instead of the general data protection framework.

How to eliminate wrong answers

Option A is wrong because PCI DSS (Payment Card Industry Data Security Standard) focuses specifically on protecting cardholder data and the cardholder data environment (CDE), not on general personal data protection or third-party organizational measures for personal data. Option B is wrong because SOX (Sarbanes-Oxley Act) is concerned with financial reporting accuracy and internal controls over financial reporting (ICFR), not with technical and organizational measures for personal data protection. Option D is wrong because HIPAA (Health Insurance Portability and Accountability Act) applies to protected health information (PHI) held by covered entities and business associates, but it does not have the broad, cross-sector requirement for technical and organizational measures for all personal data that GDPR mandates.

852
MCQeasy

A security architect needs to protect sensitive data in use within a server's memory from other processes. Which technology should be implemented?

A.Secure Boot
B.Trusted Platform Module (TPM)
C.Intel Software Guard Extensions (SGX)
D.Hardware Security Module (HSM)
AnswerC

SGX creates secure enclaves in memory, protecting data in use from other processes and the host OS.

Why this answer

Intel Software Guard Extensions (SGX) is the correct choice because it creates hardware-enforced enclaves that isolate code and data in memory from other processes, including the operating system and hypervisor. This protects sensitive data in use by encrypting memory pages within the CPU package, ensuring that only the enclave code can access the plaintext data.

Exam trap

The trap here is that candidates confuse TPM's hardware root of trust for storage and attestation with SGX's runtime memory isolation, leading them to select TPM even though it does not protect data in use from other processes.

How to eliminate wrong answers

Option A is wrong because Secure Boot ensures that only signed firmware and bootloaders execute during system startup, but it does not protect data in use within memory from other processes. Option B is wrong because Trusted Platform Module (TPM) is a hardware chip that stores cryptographic keys and performs attestation, but it does not isolate runtime memory from other processes. Option D is wrong because Hardware Security Module (HSM) is a dedicated device for cryptographic operations and key management, but it does not protect data in use within server memory from other processes.

853
MCQeasy

A security analyst is collecting evidence from a compromised workstation. Which of the following should be collected first to preserve volatile data?

A.Memory dump
B.Hard drive image
C.Network capture
D.Event logs
AnswerA

Memory is volatile and must be captured before power loss.

Why this answer

Volatile data includes memory contents, network connections, and running processes. Memory is the most volatile and should be captured first.

854
MCQhard

During a PKI migration, the security team discovers that some internal clients do not support OCSP stapling but require online certificate status checking. Which alternative should be configured to minimize latency and ensure validity?

A.Switch to self-signed certificates to avoid revocation checking altogether.
B.Configure clients to use CRLDP with a local CRL distribution point.
C.Use a local OCSP responder to handle revocation checks within the internal network.
D.Disable CRL checking and rely on certificate expiration only.
AnswerC

A local OCSP responder reduces latency and provides timely revocation status.

Why this answer

OCSP stapling is not supported; traditional OCSP requests add latency. A locally hosted OCSP responder reduces network round trips compared to relying on external CAs.

855
MCQeasy

Refer to the exhibit. The security team has been asked to remediate the vulnerability before the next PCI DSS audit. Which of the following is the MOST appropriate action?

A.Move the host to a separate VLAN
B.Disable TLS 1.0 and enable TLS 1.2 only
C.Apply a compensating control such as an API gateway
D.Accept the risk because the CVSS score is below 8.0
AnswerB

Eliminates the vulnerability and achieves compliance.

Why this answer

The vulnerability being remediated is likely the use of outdated TLS 1.0, which is deprecated by PCI DSS and has known weaknesses (e.g., POODLE, BEAST). Disabling TLS 1.0 and enabling only TLS 1.2 directly addresses the cryptographic protocol weakness, ensuring compliance with PCI DSS requirement 4.1 (use of strong cryptography). This is the most appropriate action because it removes the insecure protocol entirely rather than isolating or compensating for it.

Exam trap

A common CompTIA exam trap is the misconception that network segmentation (VLAN) or compensating controls (API gateway) can substitute for directly disabling an insecure protocol, but PCI DSS requires the protocol itself to be removed or disabled, not just isolated or wrapped.

How to eliminate wrong answers

Option A is wrong because moving the host to a separate VLAN does not remediate the TLS 1.0 vulnerability; it only segments the network, but the insecure protocol remains active and could still be exploited within the VLAN or by an attacker who gains access. Option C is wrong because applying a compensating control such as an API gateway does not fix the underlying TLS 1.0 weakness on the host; the gateway might terminate TLS, but the backend communication could still use TLS 1.0, and PCI DSS requires the protocol itself to be disabled, not just wrapped. Option D is wrong because accepting the risk is not appropriate when a clear remediation (disabling TLS 1.0) is available and PCI DSS explicitly requires strong cryptography; CVSS score below 8.0 does not exempt the organization from compliance requirements.

856
MCQeasy

A security analyst is reviewing a Kubernetes cluster and wants to ensure that only authorized users can create or modify pods. Which Kubernetes object should be configured to enforce this?

A.Admission controllers
B.Pod security policies
C.RBAC
D.Network policies
AnswerC

RBAC grants or denies API access to users and service accounts.

Why this answer

RBAC (Role-Based Access Control) in Kubernetes controls access to API resources, including pod creation, based on roles and bindings.

857
MCQmedium

A security engineer is writing a Python script to parse system logs and alert on suspicious patterns. What is the best practice to ensure the script remains secure when handling log data?

A.Store all logs in a database and query directly.
B.Use `eval()` to dynamically evaluate log content.
C.Sanitize log input and use safe parsing functions like `json.loads()` for structured logs.
D.Run the script with root privileges to access all logs.
AnswerC

Safe parsing prevents injection and handles data securely.

Why this answer

Sanitizing log input and using safe parsing functions like `json.loads()` prevents injection attacks (e.g., command injection, code injection) that can occur when untrusted log data is processed. `json.loads()` strictly parses JSON according to RFC 7159, rejecting malformed or malicious payloads, whereas unsanitized input could contain escape sequences or embedded scripts that compromise the script's execution context.

Exam trap

Candidates often mistakenly think that `eval()` is acceptable for dynamic evaluation in scripts, when in fact it is a critical security flaw that leads to arbitrary code execution.

How to eliminate wrong answers

Option A is wrong because storing logs in a database does not inherently secure the parsing script; the script still must query and process potentially malicious data, and SQL injection risks arise if queries are not parameterized. Option B is wrong because `eval()` executes arbitrary Python code from the log content, which is extremely dangerous—an attacker could craft a log entry containing malicious code (e.g., `os.system('rm -rf /')`) that runs with the script's privileges. Option D is wrong because running the script with root privileges violates the principle of least privilege; if the script is compromised, an attacker gains full system access, and root is unnecessary for reading logs that can be accessed via group permissions or dedicated service accounts.

858
MCQeasy

During a tabletop exercise, the CSIRT discovers that the organization lacks a clear chain of command for decision-making during incidents. Which document should be updated to address this gap?

A.Incident response plan
B.Business continuity plan
C.Security awareness training material
D.Network topology diagram
AnswerA

The IR plan outlines the chain of command and communication structure.

Why this answer

The incident response plan (IRP) defines roles, responsibilities, and escalation paths for incident handling, addressing the lack of a clear chain of command. Option B (business continuity plan) focuses on maintaining critical business functions during a disruption, not incident response command structure. Option C (security awareness training material) educates users on security policies, not on incident command.

Option D (network topology diagram) depicts network layout, not decision-making hierarchy.

859
MCQmedium

An organization wants to detect and respond to advanced threats that may evade traditional endpoint security solutions. They deploy an EDR solution that provides real-time visibility into endpoint activities. However, the security team is overwhelmed by alerts. Which technology can be integrated with EDR to automate response actions and reduce alert fatigue?

A.SIEM with correlation rules
B.Network traffic analysis (NTA)
C.Deception technology
D.SOAR platform
AnswerD

SOAR orchestrates and automates response workflows.

Why this answer

SOAR platforms ingest alerts from various sources (including EDR) and use playbooks to automate incident response actions, such as isolating a host or blocking an IP. This reduces manual effort and alert fatigue.

860
MCQmedium

A security engineer is designing a secure boot process for embedded devices. Which component is responsible for verifying the signature of the bootloader before execution?

A.Secure Boot
B.Root of trust (RoT)
C.Trusted Platform Module (TPM)
D.UEFI firmware
AnswerB

RoT is the immutable hardware or code that establishes the first link in the chain of trust by verifying the bootloader.

Why this answer

The root of trust (RoT) is the immutable hardware or firmware component that anchors the secure boot chain. It is the first code executed on power-on and is responsible for verifying the digital signature of the bootloader before allowing it to run. Without a trusted RoT, the entire boot process lacks a cryptographically verifiable starting point.

Exam trap

CASP+ often tests the distinction between the component that performs the verification (RoT) and the process or policy that uses it (Secure Boot), leading candidates to mistakenly choose 'Secure Boot' as the verifying component.

How to eliminate wrong answers

Option A is wrong because Secure Boot is a process or feature (e.g., UEFI Secure Boot) that uses the RoT to verify signatures, but it is not the component itself that performs the verification. Option C is wrong because the Trusted Platform Module (TPM) provides secure storage for keys and attestation, but it does not directly verify the bootloader's signature during the boot sequence. Option D is wrong because UEFI firmware is a system firmware interface that may implement Secure Boot, but it relies on an underlying RoT (often fused into the CPU or a dedicated microcontroller) to perform the initial signature verification.

861
MCQmedium

A penetration tester is in the post-exploitation phase and wants to maintain access to a compromised system. Which of the following techniques is most effective for establishing persistent access while evading detection?

A.Uploading a web shell to a publicly accessible directory
B.Creating a new local user account with administrative privileges
C.Installing a rogue certificate authority
D.Creating a scheduled task that executes a reverse shell
AnswerD

Scheduled tasks can be used for persistence and are less monitored.

Why this answer

Creating a scheduled task that executes a backdoor is a common persistence mechanism. It can be disguised and runs at system startup or on a schedule, making it harder to detect.

862
MCQmedium

Refer to the exhibit. Which of the following best describes the effect of this ACL?

A.Blocks all traffic to the 10.0.0.0/24 network.
B.Blocks all traffic from the 10.0.0.0/24 network.
C.Permits all traffic to the 10.0.0.0/24 network.
D.Permits all traffic from the 10.0.0.0/24 network.
AnswerA

The 'deny ip any 10.0.0.0 0.0.0.255' denies any source IP to destination network 10.0.0.0/24.

Why this answer

The ACL 'deny ip any 10.0.0.0 0.0.0.255' is an extended IP access-list that filters based on both source and destination. The source is 'any', meaning all sources, and the destination is the 10.0.0.0/24 network. Therefore, this ACL blocks all IP traffic destined to the 10.0.0.0/24 network, regardless of the source.

The correct answer is that it blocks traffic to that network.

Exam trap

The CAS-004 exam often tests the distinction between source and destination in ACLs. Here, the trap is that candidates may think the ACL filters based on the source IP (like a standard ACL) and incorrectly choose an option about blocking traffic 'from' the network. However, this is an extended ACL with 'any' as source and the network as destination, so it blocks traffic 'to' the network.

How to eliminate wrong answers

Option A is wrong because it describes blocking traffic to the 10.0.0.0/24 network, but standard ACLs filter based on source IP, not destination. Option C is wrong because it claims the ACL permits all traffic to the network, whereas the ACL contains a deny statement that blocks traffic from that source. Option D is wrong because it states the ACL permits all traffic from the network, but the ACL explicitly denies traffic from the 10.0.0.0/24 source range.

863
Multi-Selecthard

A security manager is selecting key risk indicators (KRIs) for the organization's risk management program. Which THREE of the following are examples of KRIs that can provide early warning of increasing risk?

Select 3 answers
A.Number of failed login attempts per hour
B.Mean time to detect (MTTD) for incidents
C.Percentage of users with privileged access
D.Number of unpatched critical vulnerabilities
E.Percentage of systems with current backups
AnswersA, C, D

Correct: An increase may indicate brute-force attacks, increasing risk.

Why this answer

KRIs measure risk levels and can indicate changes. Unpatched critical vulnerabilities, number of failed login attempts, and percentage of users with privileged access are direct indicators of risk.

864
MCQeasy

A company is implementing a risk management framework and needs to prioritize remediation of vulnerabilities based on potential impact. Which of the following is the MOST appropriate approach?

A.Focus on vulnerabilities with the highest CVSS score regardless of asset value
B.Remediate all vulnerabilities within 30 days of discovery
C.Perform a quantitative risk assessment using asset value and loss expectancy
D.Address vulnerabilities in order of ease of exploitation
AnswerC

This approach combines asset value and potential loss to prioritize risks effectively.

Why this answer

Quantitative risk assessment (QRA) uses asset value (AV) and single loss expectancy (SLE) or annualized loss expectancy (ALE) to compute risk in monetary terms, directly aligning remediation priority with potential business impact. This approach ensures that vulnerabilities affecting high-value assets with significant loss expectancy are addressed first, which is the core principle of risk-based vulnerability management in the CAS-004 Governance, Risk and Compliance domain.

Exam trap

CompTIA often tests the misconception that CVSS score alone is sufficient for prioritization, but the exam emphasizes that risk-based decisions must incorporate asset value and financial impact, not just technical severity.

How to eliminate wrong answers

Option A is wrong because focusing solely on the highest CVSS score ignores asset criticality and business context; a critical vulnerability on a low-value or isolated asset may pose less risk than a medium-severity flaw on a core financial system. Option B is wrong because a rigid 30-day remediation timeline fails to account for resource constraints, exploitability, and the varying risk levels of vulnerabilities; it violates the risk-based prioritization principle mandated by frameworks like NIST SP 800-53. Option D is wrong because addressing vulnerabilities in order of ease of exploitation disregards impact; an easily exploited flaw on a non-critical system could be deprioritized behind a harder-to-exploit vulnerability on a crown-jewel asset, leading to unacceptable business risk.

865
Multi-Selecthard

During an incident response, the team must perform containment actions. Which TWO actions are considered proper containment? (Select exactly 2.)

Select 2 answers
A.Isolate affected systems from the network
B.Notify law enforcement
C.Disable compromised user accounts
D.Back up the affected systems
E.Patch all vulnerabilities on affected systems
AnswersA, C

Isolation stops lateral movement.

Why this answer

Options A and C are correct. Isolating affected systems (A) prevents the spread of an incident by disconnecting compromised hosts from the network, which is a classic containment action. Disabling compromised user accounts (C) stops an attacker from using stolen credentials to access resources, also a containment measure.

Option B (notify law enforcement) is a communication step that may happen after containment, not a containment action itself. Option D (back up affected systems) is typically done during evidence collection before containment, or after containment for recovery, but is not a containment action. Option E (patch all vulnerabilities) is part of eradication, not the immediate containment phase.

866
Multi-Selecteasy

An organization is planning to modernize its cryptographic infrastructure to protect sensitive data for the next 10 years. The security architect must consider future threats from quantum computing. Which TWO quantum-resistant algorithms should the architect prioritize for key encapsulation and digital signatures? (Choose TWO.)

Select 2 answers
A.CRYSTALS-Dilithium
B.AES-256 with GCM
C.ECDSA with P-521
D.RSA-4096
E.CRYSTALS-Kyber
AnswersA, E

CRYSTALS-Dilithium is a NIST-selected digital signature algorithm for post-quantum security.

Why this answer

CRYSTALS-Kyber is a key encapsulation mechanism (KEM), and CRYSTALS-Dilithium is a digital signature algorithm. Both are NIST PQC standards for post-quantum security. RSA and ECDSA are not quantum-resistant, and AES-256 is symmetric but does not provide key encapsulation or digital signatures.

867
Multi-Selectmedium

An organization is setting up a PKI with a three-tier hierarchy (root CA, issuing CA, and registration authority). Which TWO of the following are best practices for securing the root CA?

Select 2 answers
A.Allow the root CA to be accessible over the network for certificate requests
B.Enable CRL distribution points on the root CA
C.Use the root CA to issue end-entity certificates directly
D.Keep the root CA offline and physically secured
E.Store the root CA private key in an HSM
AnswersD, E

Offline storage prevents remote attacks.

Why this answer

The root CA should be kept offline to prevent compromise, and its private key should be stored in an HSM. The issuing CA handles day-to-day operations.

868
Multi-Selecthard

An organization is developing a policy exception management process. Which three of the following are essential components of an effective exception process? (Choose three.)

Select 3 answers
A.Documented business justification for the exception
B.An expiration date for the exception
C.Automatic enforcement of policy via technical controls
D.A risk assessment of the exception
E.A copy of the entire policy hierarchy
AnswersA, B, D

Justification ensures the exception is necessary.

Why this answer

An exception process should include documented justification, expiration date, and formal approval by management. Policy hierarchy documentation is separate; automated enforcement may not be required.

869
Multi-Selectmedium

A SOC analyst is investigating a potential data exfiltration incident. The analyst suspects that an insider is using encrypted tunnels to transfer data. Which TWO of the following network traffic analysis (NTA) indicators are most likely to suggest encrypted exfiltration? (Choose two.)

Select 2 answers
A.Large data transfers to an external IP address during non-business hours
B.Multiple HTTP GET requests to a known content delivery network
C.A single large file upload to a cloud storage provider during work hours
D.Repeated connections to an external host on a non-standard port using TLS
E.High volumes of DNS queries to a single external domain
AnswersA, D

Encrypted exfiltration often occurs outside business hours to avoid detection, and large transfers are a key indicator.

Why this answer

Unusual volumes of traffic to a single external IP, especially during off-hours, can indicate data exfiltration. Repeated connections to an external host using non-standard ports, even if encrypted, are suspicious because they may bypass security controls. DNS tunneling is detectable by high volumes of DNS queries to a single domain, but that is separate.

870
MCQmedium

During a penetration test, the tester has gained initial access to a network and now aims to move laterally to a sensitive database server. Which phase of the penetration testing lifecycle does this activity represent?

A.Exploitation
B.Post-exploitation
C.Reporting
D.Reconnaissance
AnswerB

Post-exploitation is the correct phase, as it involves activities performed after initial access, including lateral movement to other systems and maintaining persistence.

Why this answer

Lateral movement occurs after initial access is gained, which is the defining characteristic of the post-exploitation phase. In the penetration testing lifecycle, post-exploitation encompasses activities such as lateral movement, privilege escalation, and data exfiltration, whereas exploitation focuses on gaining the initial foothold through vulnerabilities.

871
MCQhard

During an audit, a compliance officer finds that the organization has not conducted a risk assessment in over two years. Which of the following is the MOST significant risk?

A.Inability to prioritize security investments.
B.Loss of customer trust.
C.Non-compliance with regulatory fines.
D.Increased likelihood of successful attacks.
AnswerC

Many regulations require periodic risk assessments; failure to conduct them can result in significant fines and penalties.

Why this answer

Regulatory fines can be substantial and are directly tied to compliance requirements, making it the most significant risk.

872
MCQmedium

A security analyst is conducting a threat hunt based on the hypothesis that an adversary may have used PowerShell to execute malicious scripts. Which threat hunting methodology is being employed?

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

The hunt begins with a hypothesis about specific adversary behavior.

Why this answer

Hypothesis-driven hunting starts with a hypothesis about potential adversary behavior, then searches for evidence. The analyst is hypothesizing that PowerShell was abused.

873
MCQeasy

A security engineer is integrating API security for a RESTful service. Which mechanism is used to verify that the API request has not been tampered with and originates from a legitimate client?

A.OAuth 2.0 authorization code
B.API key in query parameter
C.JWT
D.Rate limiting
AnswerC

JWT includes a signature that verifies integrity and authenticity.

Why this answer

JWT (JSON Web Token) is a compact, self-contained token that includes claims and a digital signature to verify integrity and authenticity.

874
MCQhard

A company is designing a hybrid cloud architecture with AWS and an on-premises data center. They need to ensure that all data transmitted between environments is encrypted and that the connection is resilient. Which design should the architect choose?

A.Deploy a single MPLS connection with network-based encryption
B.Set up a single AWS Direct Connect connection and rely on the provider's encryption
C.Establish multiple redundant IPsec VPN tunnels to the VPC
D.Use an SSL VPN tunnel from the on-premises firewall to the VPC
AnswerC

Redundant IPsec tunnels provide both encryption and resilience.

Why this answer

Multiple redundant IPsec VPN tunnels provide both encryption and resilience. IPsec encrypts all traffic between the on-premises data center and AWS VPC, and having multiple tunnels (e.g., over the internet or different Direct Connect virtual interfaces) ensures high availability if one tunnel fails. This meets the requirements for encrypted data transmission and resilient connectivity.

Exam trap

The CAS-004 exam often tests the misconception that a single connection (like Direct Connect or MPLS) is sufficient if it has encryption, but they ignore the resilience requirement; the trap here is that candidates choose a single connection option (A or B) thinking encryption alone satisfies the question, missing the explicit need for redundancy.

How to eliminate wrong answers

Option A is wrong because a single MPLS connection is a single point of failure and does not inherently provide encryption; network-based encryption (e.g., MPLS with IPsec) would still require additional configuration and lacks redundancy. Option B is wrong because a single AWS Direct Connect connection is not resilient (single point of failure) and relying on the provider's encryption is insufficient—Direct Connect does not encrypt data by default; you must add your own encryption (e.g., IPsec over the connection). Option D is wrong because an SSL VPN tunnel typically encrypts only application-layer traffic (e.g., HTTPS) and is not designed for site-to-site connectivity; it lacks the resilience and encryption scope of IPsec VPN tunnels for all IP traffic.

875
MCQmedium

A security analyst is configuring a TPM 2.0 for a new fleet of laptops. The requirement is to ensure that only authorized operating systems can boot and that any tampering with the boot process is detected. Which TPM feature should be used?

A.Secure boot
B.Measured boot with attestation
C.Sealed storage
D.Key attestation
AnswerB

Measured boot records boot measurements in PCRs; attestation allows verification of those measurements.

Why this answer

Measured boot records measurements of boot components in PCRs, and attestation allows a remote verifier to check these measurements. Secure boot only verifies signatures, not measurements. Sealed storage ties data to PCR values.

Key attestation is for keys.

876
MCQhard

A security engineer is reviewing an S3 bucket policy for a bucket named 'corporate-data'. The policy is shown. Which of the following describes a vulnerability in this configuration?

A.The Deny statement allows anonymous uploads over HTTP
B.The Deny statement allows any anonymous user to upload objects to the bucket
C.The Allow statement's IP address condition uses a private IP range, which is ineffective for internet-facing buckets
D.The Allow statement permits access over insecure HTTP
AnswerC

Private IP ranges (10.0.0.0/8) are not source IPs from the internet; thus the condition never matches, making the Allow statement useless.

Why this answer

The Allow statement in the S3 bucket policy restricts access to a private IP address range (e.g., 10.0.0.0/8 or 192.168.0.0/16), which is non-routable on the public internet. Since the bucket is internet-facing, this condition is ineffective—any request from a public IP will fail the condition, effectively denying all external access, but the real vulnerability is that the policy relies on a private IP range that cannot be enforced for internet traffic, leaving the bucket either inaccessible or misconfigured. This misconfiguration can lead to unintended access if the condition is bypassed or if the bucket is intended to be public.

Exam trap

CompTIA often tests the misconception that private IP ranges can be used to restrict access to internet-facing S3 buckets, when in fact S3 only evaluates public source IPs, making such conditions ineffective or overly restrictive.

How to eliminate wrong answers

Option A is wrong because the Deny statement does not allow anonymous uploads over HTTP; it explicitly denies all anonymous access, and the vulnerability is not about HTTP vs. HTTPS but about the Allow statement's IP condition. Option B is wrong because the Deny statement explicitly blocks anonymous uploads, so it does not allow any anonymous user to upload objects; the vulnerability lies in the Allow statement, not the Deny.

Option D is wrong because the Allow statement does not permit access over insecure HTTP—it specifies HTTPS (via the aws:SecureTransport condition), and the vulnerability is the private IP range, not the protocol.

877
MCQmedium

Refer to the exhibit. A security analyst reviews this pod specification. Which attack surface is most increased by the added capabilities?

A.The container can modify network settings
B.The container can kill other processes
C.The container can read all host files
D.The container can install new kernel modules
AnswerD

SYS_ADMIN capability allows loading kernel modules, potentially compromising the host.

Why this answer

The added capability of `CAP_SYS_MODULE` (or the equivalent `privileged: true` setting) allows the container to load and unload kernel modules. This directly increases the attack surface by enabling a container to modify the host kernel, potentially installing malicious modules that can bypass security controls, escalate privileges, or access sensitive kernel memory. Option D is correct because kernel module manipulation is a well-known path to host compromise in containerized environments.

Exam trap

The CAS-004 exam often tests the distinction between broad container privileges (like `privileged: true`) and specific Linux capabilities, tricking candidates into thinking that 'privileged' only affects network or process controls, when in fact it grants all capabilities including `CAP_SYS_MODULE`, which is the most dangerous for host integrity.

How to eliminate wrong answers

Option A is wrong because modifying network settings typically requires `CAP_NET_ADMIN`, not the capability to install kernel modules; the pod spec does not grant that specific capability. Option B is wrong because killing other processes is controlled by `CAP_KILL`, which is not listed; even with `privileged: true`, the primary risk is kernel module loading, not process termination. Option C is wrong because reading all host files would require host filesystem mounts or `CAP_DAC_OVERRIDE`/`CAP_DAC_READ_SEARCH`, not the ability to install kernel modules; the pod spec does not include such mounts or capabilities.

878
MCQmedium

A security engineer is configuring a web application firewall (WAF) for an e-commerce site. The application uses JSON APIs for all transactions. Which WAF mode provides the best protection against injection attacks while minimizing false positives?

A.Anomaly detection and learning mode
B.Positive security model with strict API schema validation
C.Passive mode for monitoring only
D.Negative security model with a large rule set
AnswerB

Only allows traffic that matches expected schema, effectively preventing injections.

Why this answer

Positive security model with strict API schema validation. For a web application that uses JSON APIs, a positive security model (whitelist-based) is ideal because it explicitly defines what is allowed, such as valid JSON schema structures, data types, and value ranges. This provides strong protection against injection attacks by rejecting any input that does not conform to the allowed schema, significantly reducing false positives compared to negative models that rely on blocking known attack patterns.

Option A (Anomaly detection and learning mode) can adapt but may not be as precise for structured APIs. Option C (Passive mode) only monitors without blocking. Option D (Negative security model) can block common attacks but risks false positives and may miss novel injection vectors.

879
MCQmedium

During a penetration test, an engineer discovers that the application uses client-side JavaScript to validate input before submission. What is the MOST significant vulnerability?

A.Server-side validation is missing
B.Cross-site scripting
C.Insecure direct object reference
D.Weak session management
AnswerA

The lack of server-side validation allows any client-side validation to be bypassed, creating a serious vulnerability.

Why this answer

Client-side validation can be easily bypassed by disabling JavaScript or sending crafted HTTP requests. Without server-side validation, attackers can submit malicious payloads, leading to injection attacks. XSS and IDOR are separate issues; weak session management is unrelated to input validation.

880
Multi-Selectmedium

Which TWO of the following are best practices for securing a cloud-based identity and access management (IAM) system? (Select exactly 2.)

Select 2 answers
A.Require users to change passwords every 30 days.
B.Use single sign-on (SSO) for all applications.
C.Implement the principle of least privilege for all user roles.
D.Enable multi-factor authentication (MFA) for all administrative accounts.
E.Create default admin accounts for each department.
AnswersC, D

Limiting privileges reduces the attack surface and potential damage.

Why this answer

The principle of least privilege (C) ensures that users and roles are granted only the permissions necessary to perform their job functions, reducing the attack surface and limiting potential damage from compromised accounts. Enabling multi-factor authentication (D) for administrative accounts adds a critical layer of security beyond passwords, mitigating risks from credential theft or brute-force attacks. Both are foundational controls in cloud IAM frameworks like AWS IAM, Azure AD, or GCP IAM.

Exam trap

CompTIA often tests the misconception that frequent password changes (A) are a security best practice, when in fact modern standards advise against them, and that SSO (B) alone is a security control, whereas it is primarily a convenience feature that requires additional safeguards like MFA.

881
Multi-Selecteasy

Which TWO of the following are best practices for securing a database that stores personally identifiable information (PII)? (Select TWO.)

Select 2 answers
A.Encrypt data at rest using AES-256
B.Use default admin credentials for easy access
C.Enable audit logging for all queries
D.Store all data in plaintext for performance
E.Implement role-based access control (RBAC)
AnswersA, E

Encryption protects data confidentiality even if storage media is compromised.

Why this answer

Encrypting data at rest using AES-256 ensures that even if the underlying storage media is compromised, the PII remains unreadable without the decryption key. AES-256 is a symmetric encryption standard approved by NIST for protecting sensitive data, providing a strong cryptographic barrier against unauthorized access.

Exam trap

CompTIA CASP+ often tests the distinction between detective controls (like audit logging) and preventive controls (like encryption and RBAC), leading candidates to mistakenly select audit logging as a best practice for securing PII when it is only a monitoring mechanism.

882
MCQmedium

Refer to the exhibit. This clause is a requirement of which of the following?

A.PCI DSS.
B.GDPR Article 32.
C.ISO 27001.
D.HIPAA Security Rule.
AnswerB

Article 32 of the GDPR details the security of processing, including pseudonymization, encryption, and resilience.

Why this answer

The clause in the exhibit mandates a data processor to implement appropriate technical and organizational measures to ensure a level of security appropriate to the risk, including pseudonymization and encryption of personal data. This is a direct requirement of GDPR Article 32, which specifically addresses the security of processing personal data and is distinct from sector-specific or framework-based standards.

Exam trap

A common pitfall is confusing the distinction between a regulatory requirement (GDPR) and a framework or sector-specific standard (PCI DSS, HIPAA, ISO 27001), leading candidates to choose a familiar security standard like PCI DSS or HIPAA without recognizing the unique pseudonymization and risk-based language that is exclusive to GDPR Article 32.

How to eliminate wrong answers

Option A is wrong because PCI DSS focuses on protecting cardholder data with specific requirements like encryption of PAN at rest and in transit, but it does not include the broad pseudonymization or risk-based security measures described in the clause. Option C is wrong because ISO 27001 is a management system standard that requires an organization to establish, implement, and improve an ISMS, but it does not prescribe the specific technical measures (e.g., pseudonymization) listed in the clause; it is a framework, not a regulatory requirement with such explicit controls. Option D is wrong because the HIPAA Security Rule requires administrative, physical, and technical safeguards for electronic protected health information (ePHI), but it does not mandate pseudonymization or the same risk-based language as GDPR Article 32; HIPAA focuses on ePHI confidentiality, integrity, and availability, not the broader personal data scope of GDPR.

883
Drag & Dropmedium

Drag and drop the steps to configure a site-to-site IPsec VPN on a firewall 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

IPsec VPN configuration follows a logical order: first define IKE policy, then IPsec policy, create tunnel, permit traffic, and finally apply crypto map.

884
MCQmedium

A security architect is designing a secure boot process for a new line of embedded devices. The boot ROM loads the bootloader, which then loads the OS kernel. To ensure that only signed code is executed, which mechanism should the bootloader use to verify the kernel?

A.Decrypt the kernel using a symmetric key stored in the boot ROM
B.Verify a digital signature on the kernel using a public key stored in the boot ROM
C.Check that the kernel file size matches the expected value
D.Compare the kernel hash against a list of known good hashes stored in the bootloader
AnswerB

Digital signature verification ensures the kernel is from a trusted source and has not been tampered.

Why this answer

The bootloader should verify a digital signature on the kernel image using a public key embedded in the boot ROM or bootloader. This ensures both integrity and authenticity of the kernel.

885
MCQmedium

An organization is required to comply with PCI DSS. Which of the following is a mandatory requirement for protecting cardholder data?

A.Conducting annual risk assessments
B.Using a dedicated network segment for card processing
C.Implementing multi-factor authentication for all users
D.Encrypting cardholder data at rest
AnswerD

PCI DSS Requirement 3.4 requires rendering PAN unreadable at rest.

Why this answer

PCI DSS Requirement 3 mandates that stored PAN must be rendered unreadable via encryption, truncation, hashing, or tokenization.

886
MCQmedium

A company is evaluating a new cloud service provider. The provider offers a SOC 2 Type II report, a third-party penetration test summary, and a completed security questionnaire. However, the company's procurement team discovers that the provider uses a subcontractor for data storage. Which of the following is the BEST next step for the security team?

A.Require the provider to use only in-house resources.
B.Accept the risk because the provider has a SOC 2 report.
C.Request a right-to-audit clause covering the subcontractor.
D.Immediately terminate the contract due to subcontractor risk.
AnswerC

This allows the company to assess the fourth-party risk.

Why this answer

The presence of a subcontractor introduces fourth-party risk. The company should assess the subcontractor's security through a right-to-audit clause or request equivalent evidence, as the primary provider's controls may not cover the subcontractor.

887
MCQeasy

A company is deploying a RESTful API that handles sensitive financial data. Which of the following should be implemented to ensure data integrity during transmission?

A.TLS 1.3
B.Input validation
C.JSON Web Token (JWT) authentication
D.API rate limiting
AnswerA

TLS encrypts the entire session and ensures data integrity via MACs.

Why this answer

TLS 1.3 ensures data integrity during transmission by providing transport-layer encryption with authenticated encryption (AEAD), which guarantees that any tampering with the ciphertext will be detected upon decryption. For a RESTful API handling sensitive financial data, TLS 1.3 is the correct choice because it protects the entire HTTP payload in transit, preventing man-in-the-middle attacks from modifying or replaying data.

Exam trap

The trap here is that candidates confuse application-layer integrity mechanisms (like JWT signatures or input validation) with transport-layer integrity, which is specifically provided by TLS to protect data in transit against network-level tampering.

How to eliminate wrong answers

Option B is wrong because input validation protects against injection attacks and malformed data at the application layer, but it does not ensure data integrity during transmission over the network. Option C is wrong because JSON Web Token (JWT) authentication provides stateless authorization and integrity for the token itself via digital signatures, but it does not encrypt or protect the entire HTTP message body during transit. Option D is wrong because API rate limiting controls the frequency of requests to prevent abuse or denial of service, but it has no mechanism to verify or protect the integrity of data as it travels across the network.

888
MCQhard

An organization's vulnerability management team discovers a critical vulnerability in a legacy application that cannot be patched because the vendor no longer supports it. The application is essential for business operations. Which of the following compensating controls would best reduce the risk of exploitation while maintaining functionality?

A.Apply a virtual patch using a web application firewall (WAF) rule
B.Implement network segmentation and restrict access to the application
C.Disable the application until a replacement is found
D.Increase monitoring of the application without any access restrictions
AnswerB

Segmentation limits exposure and reduces risk.

Why this answer

Network segmentation with strict firewall rules isolating the legacy application limits the attack surface and prevents lateral movement from compromised hosts. This is an effective compensating control when patching is not possible.

889
MCQmedium

A financial services company is implementing a zero-trust architecture. The security architect needs to ensure that all network traffic between application tiers is inspected and logged regardless of source location. Which of the following should be implemented?

A.Implement microsegmentation using a next-generation firewall
B.Deploy a site-to-site VPN across all tiers
C.Use a single, centralized firewall for all traffic
D.Place all application servers in a DMZ
AnswerA

Microsegmentation enables fine-grained security policies between individual workloads, supporting inspection and logging.

Why this answer

Microsegmentation using a next-generation firewall (NGFW) is the correct approach because it enforces granular, per-application-tier security policies that inspect and log all traffic regardless of source location. NGFWs provide deep packet inspection (DPI), application-level visibility, and logging capabilities, which are essential for zero-trust architecture where no implicit trust is granted to any network segment.

Exam trap

The trap here is that candidates often confuse a site-to-site VPN (Option B) with zero-trust network access (ZTNA), but VPNs only provide encrypted tunnels, not the per-flow inspection and logging required for zero-trust microsegmentation.

How to eliminate wrong answers

Option B is wrong because a site-to-site VPN only encrypts traffic between two network endpoints (e.g., branch offices) and does not provide per-tier traffic inspection or logging within the same data center. Option C is wrong because a single, centralized firewall creates a bottleneck and a single point of failure, and it cannot enforce per-application-tier policies in a zero-trust model that requires lateral traffic inspection. Option D is wrong because placing all application servers in a DMZ violates the principle of least privilege and does not provide the granular segmentation and logging needed between application tiers; DMZs are designed for external-facing services, not internal microsegmentation.

890
Multi-Selecthard

Which TWO are required by PCI DSS for all merchants?

Select 2 answers
A.Implement network segmentation
B.Maintain a vulnerability management program
C.Store CVV codes
D.Encrypt cardholder data at rest
E.Use only tokenization
AnswersB, D

PCI DSS requirement 6 requires a vulnerability management program.

Why this answer

PCI DSS Requirement 6 mandates a vulnerability management program that includes secure development and patch management. Requirement 11 requires regular vulnerability scans and penetration testing. Requirement 3.4 requires cardholder data at rest to be rendered unreadable via encryption, truncation, tokenization, or hashing.

Both are core, mandatory requirements for all merchants, regardless of size or transaction volume.

Exam trap

The PCI DSS explicitly lists mandatory requirements that apply to all merchants. A common mistake is to treat network segmentation as a required control, when in fact it is a recommended practice for reducing scope; segmentation is only mandatory in specific contexts such as isolating the cardholder data environment.

891
Multi-Selectmedium

A security engineer is hardening a Kubernetes environment. Which THREE of the following are effective controls for securing the cluster? (Select THREE.)

Select 3 answers
A.Configuring load balancers for high availability
B.Enabling Pod Security Admission (PSA) to enforce pod security standards
C.Implementing RBAC for API server access
D.Using Network Policies to isolate workloads
E.Installing antivirus on all nodes
AnswersB, C, D

PSA prevents pods from running with excessive privileges.

Why this answer

RBAC controls API access, Pod Security Standards (or admission controllers) enforce pod security, and Network Policies restrict pod communication. All three are Kubernetes-native controls for cluster hardening.

892
MCQmedium

An organization is moving to a passwordless authentication approach. They require a solution that supports hardware-based cryptographic authentication and is resistant to phishing. Which standard should they implement?

A.TOTP (Time-based One-Time Password)
B.SMS-based one-time codes
C.FIDO2/WebAuthn
D.Password manager with autofill
AnswerC

FIDO2 uses public-key cryptography and hardware authenticators, providing phishing resistance.

Why this answer

FIDO2/WebAuthn uses public-key cryptography and hardware authenticators to provide phishing-resistant, passwordless authentication. TOTP is not passwordless and can be phished.

893
MCQhard

A company is deploying containerized applications on Kubernetes and needs to ensure that only authorized images are run in the cluster. Which Kubernetes resource should be used to enforce policies on what containers can run, including image source restrictions?

A.Role-Based Access Control (RBAC)
B.Network policies
C.Seccomp profiles
D.Admission controllers
AnswerD

Admission controllers can enforce image policies, such as requiring images from a trusted registry.

Why this answer

Admission controllers intercept requests to the Kubernetes API server before object persistence, allowing policy enforcement such as ensuring images come from a trusted registry. Pod Security Policies are deprecated; Pod Security Admission or custom admission controllers are current.

894
Multi-Selecteasy

Which TWO of the following are essential characteristics of a hardware security module (HSM)? (Select TWO.)

Select 2 answers
A.Hardware acceleration of cryptographic operations.
B.Tamper-resistant key storage.
C.Virtualization of the hardware root of trust.
D.Integration with public key infrastructure (PKI) to replace certificate authorities.
E.User authentication and authorization.
AnswersA, B

HSMs offload cryptographic processing from the main CPU.

Why this answer

HSMs are dedicated hardware appliances that offload cryptographic operations from the main CPU, providing hardware acceleration for algorithms such as AES, RSA, and ECC. This acceleration is critical for high-throughput environments like TLS termination or code signing, where software-based cryptography would create a performance bottleneck.

Exam trap

The CAS-004 exam often tests the distinction between 'essential characteristics' and 'common but non-essential features' — the trap here is that candidates confuse optional integration capabilities (like PKI support or user authentication) with the fundamental purpose of an HSM, which is tamper-resistant key storage and cryptographic acceleration.

895
MCQeasy

A small business uses a single on-premise server running a custom application and a SQL database. The IT manager is concerned about data loss due to hardware failure. The company has a backup tape drive but often forgets to change tapes. The RTO is 24 hours and RPO is 4 hours. Which of the following is the BEST improvement to meet the RPO/RTO requirements?

A.Purchase a second identical server and set up failover clustering.
B.Switch to daily differential backups and store tapes offsite.
C.Implement a RAID 1 mirroring for the server's hard drives.
D.Use a cloud-based backup service with hourly incremental backups.
AnswerD

Hourly backups meet RPO of 4 hours; cloud restore can meet RTO of 24 hours.

Why this answer

Cloud-based backup services with hourly incremental backups can meet a 4-hour RPO by capturing changes every hour, and the RTO of 24 hours is achievable through rapid restoration from the cloud. This eliminates the human error of forgetting to change tapes and provides automated, off-site data protection against hardware failure.

Exam trap

Candidates often mistake RAID or clustering as a backup solution, but these do not protect against logical corruption or meet RPO/RTO without a separate backup process. Differential backups still rely on tape changes and human intervention, failing the RPO.

How to eliminate wrong answers

Option A is wrong because failover clustering requires shared storage (e.g., a SAN) and does not protect against data loss from hardware failure if the database is not replicated synchronously; it also does not address the backup gap caused by forgotten tape changes. Option B is wrong because daily differential backups cannot meet a 4-hour RPO, as they only capture changes once per day, leaving up to 24 hours of potential data loss; storing tapes offsite does not solve the human error of forgetting to change tapes. Option C is wrong because RAID 1 mirroring protects against a single disk failure but does not guard against other hardware failures (e.g., power supply, motherboard) or data corruption, and it does not provide off-site backup or meet the RPO/RTO requirements.

896
Multi-Selectmedium

A multinational corporation is adopting a zero trust architecture for its enterprise network. The security team is evaluating mechanisms to enforce granular access controls and segment workloads. Which TWO components are most critical for implementing a zero trust model? (Choose TWO.)

Select 2 answers
A.Secure Access Service Edge (SASE)
B.Micro-segmentation
C.Perimeter-based firewalls
D.Identity-centric access controls
E.Software-defined perimeter (SDP)
AnswersB, D

Micro-segmentation creates isolated security zones for workloads, enforcing least privilege and containing lateral movement.

Why this answer

Micro-segmentation and identity-centric access controls are foundational to zero trust. Micro-segmentation isolates workloads, while identity-centric controls ensure that access is based on user/device identity rather than network location. SASE is a broader framework, and VPNs are often replaced by zero trust.

Perimeter firewalls contradict the zero trust principle of assuming no implicit trust.

897
MCQhard

During a threat modeling exercise for a new web application, the team identifies that the application uses JWT for authentication. Which vulnerability is most likely if the server does not properly verify the JWT signature?

A.Cross-site scripting
B.SQL injection
C.JWT tampering
D.Insecure direct object reference
AnswerC

Correct; missing signature verification allows tampering with the JWT payload.

Why this answer

If signature verification is missing, an attacker can forge a JWT with arbitrary payload (e.g., admin role).

898
MCQeasy

An organization deploys honeypots to detect attackers. Which type of deception technology is being used?

A.Honeytokens
B.Bait networks
C.Honeypots
D.Honeynets
AnswerC

Honeypots are decoy systems used for deception.

Why this answer

Honeypots are decoy systems designed to lure attackers and detect unauthorized activity.

899
MCQhard

A security analyst is investigating a potential data exfiltration incident. The analyst has collected a memory dump from the affected server. Which Volatility command should the analyst use to extract the contents of the clipboard, which may contain copied sensitive data?

A.volatility -f dump.raw clipboards
B.volatility -f dump.raw windows.clipboard
C.volatility -f dump.raw clipboard
D.volatility -f dump.raw memdump --pid 1234
AnswerC

Correct command to extract clipboard contents.

Why this answer

The 'clipboard' plugin in Volatility extracts the contents of the Windows clipboard, which can contain copied text, including passwords or sensitive data.

900
Multi-Selectmedium

Which three options are best practices for writing secure scripts? (Choose three.)

Select 3 answers
A.Log all errors and warnings for debugging.
B.Use parameterized inputs to prevent injection attacks.
C.Validate all external input before processing.
D.Hardcode sensitive credentials in the script.
E.Run scripts with the least privilege necessary.
AnswersB, C, E

Parameterization separates code from data.

Why this answer

Parameterized inputs (also known as prepared statements or parameterized queries) separate SQL or shell command logic from user-supplied data, ensuring that input is treated strictly as data, not executable code. This prevents injection attacks such as SQL injection or command injection, which occur when untrusted input is concatenated directly into a command string. In scripting languages like Python, using `cursor.execute("SELECT * FROM users WHERE id = ?", (user_id,))` instead of string formatting eliminates the risk of an attacker breaking out of the intended syntax.

Exam trap

The CASP+ exam tests the misconception that logging all errors is always a best practice, but in secure scripting, excessive logging can leak sensitive data, making it a security risk rather than a safeguard.

Page 11

Page 12 of 13

Page 13