Courseiva

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

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

Page 12

Page 13 of 13

901
MCQhard

During a security assessment, an analyst discovers that an HSM used for key generation is FIPS 140-2 Level 2 compliant. The organization requires a higher level of physical security to prevent tampering. Which upgrade would best address this requirement?

A.Implement a TPM 2.0 instead
B.Upgrade to FIPS 140-2 Level 4
C.Upgrade to FIPS 140-2 Level 3
D.Use a software-based key store
AnswerC

Level 3 adds tamper-evident seals and physical security requirements.

Why this answer

FIPS 140-2 Level 3 requires tamper-evident coatings and physical security mechanisms. Level 4 is even higher but may be overkill. Moving to Level 2 is same.

Level 1 has no physical security. Software-based TPM is not equivalent.

902
Multi-Selectmedium

A penetration tester is performing reconnaissance against a target. Which TWO of the following are examples of active reconnaissance? (Select TWO.)

Select 2 answers
A.Banner grabbing
B.Social media profiling
C.Port scanning
D.WHOIS lookup
E.Searching job postings for technology details
AnswersA, C

Banner grabbing connects to services to read banners.

Why this answer

Active reconnaissance involves direct interaction with the target. Port scanning and banner grabbing are active; OSINT and WHOIS lookups are passive (no direct interaction).

903
MCQeasy

A company's internal audit found that employees often share passwords. Which policy change would BEST address this?

A.Implement multi-factor authentication
B.Increase password complexity requirements
C.Require password changes every 30 days
D.Provide security awareness training on password sharing
AnswerA

MFA provides an additional layer, making password sharing less effective for unauthorized access.

Why this answer

Multi-factor authentication (MFA) directly mitigates the risk of password sharing by requiring a second authentication factor (e.g., a one-time passcode from a hardware token or authenticator app, or a biometric) in addition to the password. Even if employees share passwords, an attacker cannot authenticate without the second factor, which is typically not shared. This policy change addresses the root cause—unauthorized access via shared credentials—rather than trying to prevent the sharing behavior itself.

Exam trap

CompTIA often tests the distinction between administrative controls (training, policies) and technical controls (MFA), where candidates mistakenly choose training (Option D) because it directly addresses the behavior, but the question asks for the BEST policy change to address the risk, which requires a technical enforcement mechanism like MFA.

How to eliminate wrong answers

Option B is wrong because increasing password complexity (e.g., longer, mixed-case passwords) does not prevent employees from sharing those complex passwords; it only makes them harder to guess or crack, but shared passwords remain shared. Option C is wrong because requiring password changes every 30 days may reduce the window of exposure if a password is shared, but it does not stop the sharing behavior and can lead to weaker passwords due to user fatigue, often resulting in predictable patterns (e.g., Password1!, Password2!). Option D is wrong because security awareness training, while valuable for education, is a soft control that relies on behavioral change and does not technically enforce the prevention of password sharing; it can be ignored or forgotten, whereas MFA provides a technical enforcement mechanism.

904
Multi-Selecthard

During an incident response, a forensic examiner is collecting evidence from a compromised Windows workstation. The examiner must follow proper order of volatility to preserve potential evidence. Which THREE of the following items should be collected first, before the others? (Choose THREE.)

Select 3 answers
A.Master File Table (MFT) from the hard drive
B.Event logs from the Security log
C.List of active network connections
D.List of running processes
E.Contents of RAM (memory dump)
AnswersC, D, E

Network state can change quickly.

Why this answer

The order of volatility dictates that the most volatile data (registers, cache, memory, network connections, running processes) should be collected first. Disk data is less volatile.

905
Multi-Selecthard

Which three measures should be implemented to secure a RESTful API? (Select THREE.)

Select 3 answers
A.Use JSONP for cross-origin requests
B.Implement proper error handling that does not expose stack traces
C.Disable rate limiting to ensure availability
D.Validate all input against a strict schema
E.Use OAuth2 with scopes for authorization
AnswersB, D, E

Generic error messages prevent information leakage.

Why this answer

Proper error handling in a RESTful API must never expose stack traces or internal implementation details to the client. Stack traces can reveal file paths, database schemas, library versions, and logic flows that attackers can exploit to craft targeted attacks. Instead, the API should return generic error messages (e.g., '500 Internal Server Error') while logging full details server-side for debugging.

Exam trap

CASP+ often tests the misconception that disabling rate limiting improves availability, when in fact it destroys availability by removing protection against resource exhaustion attacks.

906
MCQmedium

A company is deploying a SASE architecture. Which component is responsible for securing web traffic and enforcing acceptable use policies at the edge?

A.Zero Trust Network Access (ZTNA)
B.Secure Web Gateway (SWG)
C.Cloud Access Security Broker (CASB)
D.SD-WAN
AnswerB

SWG is designed for web traffic filtering and policy enforcement.

Why this answer

A Secure Web Gateway (SWG) is a core SASE function that filters web traffic and enforces security policies like URL filtering and malware detection.

907
MCQhard

A security engineer is reviewing a Kubernetes deployment where the pod spec includes `securityContext: { privileged: true }`. What is the primary security concern of this configuration?

A.The container can access host resources like the filesystem
B.The container can run as root
C.The container has unrestricted network access
D.The container can modify the host's kernel
AnswerD

Privileged mode grants direct access to host kernel functions and devices.

Why this answer

Privileged containers have almost all capabilities of the host, including access to host devices and kernel modules. This significantly increases the attack surface compared to running as root alone.

908
MCQhard

A security audit reveals that Docker containers are built with multiple unnecessary layers and utilities. Which practice reduces the attack surface of the container image?

A.Use multi-stage builds
B.Use a base image with only the required packages
C.Combine multiple RUN commands into one
D.Delete the apt cache in the Dockerfile
AnswerB

Minimizing installed packages reduces the attack surface.

Why this answer

Using a base image with only the required packages directly reduces the attack surface by eliminating unnecessary binaries, libraries, and services that could contain vulnerabilities. This practice aligns with the principle of minimalism in container security, where every extra package increases the potential for exploitation. Unlike multi-stage builds or RUN command consolidation, this approach targets the root cause: the contents of the image itself.

Exam trap

The CAS-004 exam often tests the misconception that reducing image size (via multi-stage builds or cache deletion) is equivalent to reducing attack surface, but the real security improvement comes from removing unnecessary software, not just shrinking the image.

How to eliminate wrong answers

Option A is wrong because multi-stage builds primarily reduce image size by separating build-time dependencies from runtime artifacts, but they do not inherently reduce the attack surface if the final stage still contains unnecessary packages. Option C is wrong because combining multiple RUN commands into one reduces the number of layers, which can slightly improve build efficiency and reduce layer count, but it does not remove unnecessary utilities or packages from the image. Option D is wrong because deleting the apt cache reduces image size but does not eliminate the unnecessary packages themselves; the vulnerable binaries and libraries remain installed.

909
MCQeasy

During a threat hunting exercise, a security analyst hypothesizes that adversaries may be using PowerShell to execute commands in memory. Which threat hunting methodology is being employed?

A.Signature-based hunting
B.TTP-driven hunting
C.Hypothesis-driven hunting
D.IoC-driven hunting
AnswerC

The analyst is starting with a hypothesis about PowerShell usage, which is hypothesis-driven.

Why this answer

Hypothesis-driven hunting starts with a hypothesis about potential adversary behavior, then searches for evidence. IoC-driven uses indicators of compromise, and TTP-driven focuses on tactics, techniques, and procedures.

910
MCQeasy

A security manager is reviewing the company's vendor risk management program. Which of the following should be included as a mandatory step BEFORE entering into a contract with a new cloud service provider?

A.Establishing an incident response plan
B.Performing a penetration test of the vendor's infrastructure
C.Conducting a third-party security assessment
D.Requesting monthly vulnerability reports
AnswerC

Pre-contract assessment ensures vendor meets security requirements.

Why this answer

A third-party security assessment is a mandatory due diligence step before entering into a contract with a new cloud service provider. This assessment evaluates the vendor's security controls, compliance posture, and risk profile against the organization's requirements, ensuring that the vendor meets minimum security standards before any data or systems are entrusted to them. Without this pre-contract assessment, the organization would be accepting unknown risks that could lead to data breaches or compliance violations.

Exam trap

The trap here is that candidates often confuse post-contract operational activities (like incident response planning or vulnerability reporting) with pre-contract due diligence, leading them to select options that are important but not mandatory before signing a contract.

How to eliminate wrong answers

Option A is wrong because establishing an incident response plan is an operational step that should occur after the contract is signed and the service is being integrated, not before entering into the contract; it is not a prerequisite for vendor selection. Option B is wrong because performing a penetration test of the vendor's infrastructure is typically not feasible or allowed before a contract is in place, as it requires legal agreements and access permissions that do not exist pre-contract; such testing is usually conducted post-contract as part of ongoing validation. Option D is wrong because requesting monthly vulnerability reports is a post-contract monitoring activity, not a pre-contract due diligence step; the vendor may not even have such reports available before the business relationship is established.

911
MCQmedium

A multinational corporation is deploying a new application that will be accessed by employees, partners, and customers. The security architecture must support single sign-on (SSO) across different identity providers (IdPs) while maintaining strict access control based on user attributes such as role, location, and device posture. The company uses Active Directory for employees, a cloud IdP for partners, and self-registration for customers. The architect needs to design a centralized policy enforcement point that can evaluate access requests from multiple IdPs and enforce dynamic access policies before granting access to the application. Which of the following is the BEST architectural approach?

A.Deploy a SAML/WS-Federation federation server that authenticates users and then passes the identity to the application for authorization
B.Have each IdP enforce its own access policies and pass the authorization decision via SAML assertions
C.Configure a reverse proxy to authenticate users from any IdP and pass their identity to the application
D.Implement an externalized authorization management system (e.g., OAuth 2.0 with OpenID Connect) using a policy decision point (PDP) and a policy enforcement point (PEP) at the application gateway
AnswerD

This separates authentication from authorization, allows centralized attribute-based policy, and works across IdPs.

Why this answer

It uses an externalized authorization management system with a Policy Decision Point (PDP) and Policy Enforcement Point (PEP) at the application gateway, which decouples authentication from authorization. This architecture allows centralized, attribute-based access control (ABAC) across multiple IdPs (Active Directory, cloud IdP, self-registration) while supporting SSO via OAuth 2.0 and OpenID Connect. The PDP evaluates dynamic policies based on user attributes (role, location, device posture) and the PEP enforces the decision before granting access, meeting the requirement for strict, context-aware access control.

Exam trap

The CAS-004 exam often tests the misconception that a federation server or reverse proxy alone can handle dynamic authorization, when in fact they only handle authentication and identity propagation, not the centralized, attribute-based policy evaluation required for strict access control.

How to eliminate wrong answers

Option A is wrong because a SAML/WS-Federation federation server primarily handles authentication and identity federation, not dynamic authorization; it would pass identity to the application, which would then need to implement its own authorization logic, violating the centralized policy enforcement requirement. Option B is wrong because having each IdP enforce its own access policies fragments policy management and cannot provide a unified, dynamic access control across different IdPs; SAML assertions carry authentication and static attributes, not real-time authorization decisions based on device posture or location. Option C is wrong because a reverse proxy authenticates users and passes identity to the application, but it lacks a dedicated PDP for evaluating dynamic, attribute-based policies; it would still require the application to implement authorization logic, failing to centralize policy enforcement.

912
MCQhard

A company is merging with another company that has a different security posture. The CISO wants to integrate the two security programs quickly. Which of the following is the MOST critical first step?

A.Establish a joint governance committee
B.Align security policies and standards
C.Implement the same security tools across the enterprise
D.Conduct a joint risk assessment
AnswerA

Governance provides strategic oversight for integration.

Why this answer

The first and most critical step when merging two security programs is to establish a joint governance committee to provide oversight, direction, and decision-making authority for the integration. This ensures that strategic alignment and resource allocation are managed from the top down. Aligning policies, implementing tools, and conducting risk assessments are subsequent tactical steps that should be guided by governance.

913
Multi-Selecteasy

An organization is planning to deploy digital certificates for various use cases. Which TWO of the following certificate types are typically used for email security?

Select 2 answers
A.Client certificates
B.Code signing certificates
C.Extended validation (EV) certificates
D.S/MIME certificates
E.Domain-validated (DV) certificates
AnswersA, D

Client certificates can be used for email authentication and signing.

Why this answer

S/MIME certificates are specifically used for secure email (encryption and signing). Client certificates can also be used for email authentication (e.g., in some setups). Code signing is for software, DV/OV/EV are for websites.

914
MCQeasy

Based on the exhibit, what type of attack is indicated?

A.Brute-force attack
B.Man-in-the-middle
C.Denial of service
D.Replay attack
AnswerA

Multiple failed attempts then success is characteristic of brute-force.

Why this answer

The exhibit shows a high number of failed authentication attempts (e.g., 500+ in a short window) against a single user account, which is characteristic of a brute-force attack. This attack systematically tries multiple password combinations to gain unauthorized access, often targeting a specific username or service. The log entries indicate repeated login failures without any evidence of intercepted traffic or session manipulation.

Exam trap

CompTIA CASP+ often tests the distinction between brute-force and replay attacks by presenting logs with repeated failed logins, leading candidates to confuse the 'replay' of credentials with the 'replay' of captured packets, but replay attacks require a valid captured session token, not failed authentication attempts.

How to eliminate wrong answers

Option B is wrong because a man-in-the-middle attack involves intercepting and potentially altering communications between two parties, which would show evidence of ARP spoofing, SSL stripping, or unusual packet forwarding, not repeated failed logins. Option C is wrong because a denial of service attack aims to overwhelm a system with traffic or requests to disrupt service, which would manifest as high resource utilization or service unavailability, not a pattern of authentication failures. Option D is wrong because a replay attack captures and retransmits valid authentication tokens or packets, which would show successful logins from the same token rather than repeated failed attempts.

915
MCQeasy

A compliance officer is reviewing logs from a web application and finds multiple failed login attempts from a single IP address. Which type of control should be implemented to reduce the risk of brute-force attacks?

A.Account lockout policy
B.Network firewall
C.Password hashing
D.Encryption of traffic
AnswerA

Account lockout limits the number of attempts, reducing brute-force risk.

Why this answer

An account lockout policy is the correct control because it directly mitigates brute-force attacks by temporarily disabling the account after a predefined number of failed login attempts (e.g., 5 failures within 15 minutes). This prevents an attacker from continuously guessing passwords from a single IP address, as the account becomes unavailable for further attempts until the lockout period expires or an administrator intervenes.

Exam trap

CompTIA often tests the misconception that network-level controls like firewalls are sufficient to stop application-layer attacks, but the trap here is that brute-force prevention requires application-layer logic (account lockout or rate limiting), not just network filtering.

How to eliminate wrong answers

Option B is wrong because a network firewall filters traffic based on IP addresses, ports, or protocols, but it cannot distinguish between legitimate and malicious login attempts at the application layer; it would block the IP only if manually configured, which is reactive and not a standard brute-force prevention control. Option C is wrong because password hashing protects stored passwords from exposure if the database is compromised, but it does not prevent an attacker from attempting multiple logins against the live application. Option D is wrong because encryption of traffic (e.g., TLS) secures data in transit against eavesdropping and tampering, but it has no effect on the rate or success of login attempts at the application layer.

916
MCQeasy

A security analyst is reviewing a suspicious file. Which static analysis technique would the analyst use to examine the file without executing it?

A.Submit the file to VirusTotal
B.Execute the file in a debugger
C.Run the file in a sandbox
D.Use strings to extract readable text
AnswerD

Strings is a common static analysis tool.

Why this answer

Static analysis examines the file without running it. Running strings extracts readable text, which can reveal clues like IP addresses or commands.

917
Multi-Selectmedium

An organization is reviewing its supply chain risk management. Which TWO of the following are effective strategies to manage fourth-party risk?

Select 2 answers
A.Use only vendors that are SOC 2 certified
B.Reduce reliance on vendors by bringing services in-house
C.Conduct penetration tests on all fourth parties directly
D.Include a right-to-audit clause that covers subcontractors
E.Require vendors to contractually mandate security controls for their subcontractors
AnswersD, E

Correct: This ensures the ability to audit fourth parties.

Why this answer

To manage fourth-party risk, organizations can require their vendors to flow down security requirements to subcontractors and include right-to-audit clauses that extend to subcontractors.

918
MCQeasy

An organization wants to ensure that its third-party vendors comply with the company's security policies. Which of the following is the MOST effective method?

A.Include security requirements in contracts and conduct periodic audits
B.Require vendors to obtain ISO 27001 certification
C.Send annual self-assessment questionnaires
D.Perform quarterly penetration tests on vendor networks
AnswerA

Legally binding and verifiable

Why this answer

Including security requirements in contracts and conducting periodic audits is the most effective method because it creates a legally binding obligation for vendors to adhere to the organization's security policies, and audits provide direct, verifiable evidence of compliance. Unlike self-assessments or certifications, audits allow the organization to actively inspect controls, configurations, and processes, ensuring ongoing adherence rather than relying on a point-in-time assertion. This approach aligns with the NIST SP 800-53 continuous monitoring framework and is a core principle of third-party risk management (TPRM) in the CAS-004 domain.

Exam trap

The CAS-004 exam often tests the misconception that a one-time certification or a technical test like a penetration test is sufficient to ensure ongoing compliance, when in reality, continuous contractual obligations and independent audits are required to enforce and verify policy adherence over time.

How to eliminate wrong answers

Option B is wrong because requiring ISO 27001 certification only proves that a vendor had a compliant Information Security Management System (ISMS) at the time of certification, but it does not guarantee ongoing compliance with the organization's specific security policies, nor does it provide a mechanism for the organization to verify current controls or address unique contractual requirements. Option C is wrong because annual self-assessment questionnaires rely on the vendor's self-reported data, which is subjective, lacks independent verification, and can easily miss critical security gaps or misconfigurations, making it unreliable for ensuring compliance. Option D is wrong because quarterly penetration tests on vendor networks only assess technical vulnerabilities at a point in time and do not evaluate the vendor's adherence to security policies, processes, or administrative controls, nor do they cover all aspects of compliance such as data handling, access management, or incident response procedures.

919
Matchingmedium

Match each port number to its associated protocol.

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

Concepts
Matches

RDP

SSH

HTTPS

LDAP

LDAPS

Why these pairings

These are standard IANA port assignments for common protocols. Correct matches: Port 80=HTTP, Port 443=HTTPS, Port 22=SSH, Port 21=FTP. Common confusions involve swapping port numbers for similar protocols.

920
MCQeasy

Which technology is used to discover and control cloud applications, enforce security policies, and provide visibility into cloud usage?

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

CASB provides visibility, compliance, data security, and threat protection for cloud services.

Why this answer

A Cloud Access Security Broker (CASB) is a security policy enforcement point that sits between cloud service consumers and providers to monitor activity and enforce policies. CSPM focuses on cloud configuration posture. CWPP protects cloud workloads.

SASE combines network and security functions.

921
MCQmedium

An organization wants to protect cryptographic keys used for TLS termination. Which hardware solution should be deployed to prevent key extraction?

A.KMS
B.TPM
C.UEFI
D.HSM
AnswerD

HSMs are purpose-built for key protection and cryptographic operations.

Why this answer

Hardware Security Modules (HSMs) are dedicated hardware that securely generate, store, and manage cryptographic keys, making them resistant to extraction even if the host is compromised.

922
MCQmedium

A security operations center (SOC) is implementing a SOAR platform to automate responses to phishing incidents. The playbook will include steps to automatically quarantine suspicious emails, delete them from user mailboxes, and block the sender's domain. Which element should the SOAR playbook incorporate to ensure the automated response does not cause unintended disruption?

A.An automatic rollback script that restores quarantined emails after 24 hours if no user complaint
B.Integration with threat intelligence to verify the sender domain reputation score before blocking
C.A confirmation step that prompts the analyst to approve the quarantine and deletion actions
D.A manual approval step before executing any automated response
AnswerC

Having the analyst approve destructive actions like deletion reduces the risk of removing legitimate emails.

Why this answer

Automated actions can have negative consequences if not validated. Incorporating user confirmation before destructive actions reduces risk, especially in cases of false positives.

923
MCQeasy

In a cloud shared responsibility model, which of the following is typically the customer's responsibility for IaaS?

A.Hypervisor security
B.Guest OS patch management
C.Hardware maintenance
D.Physical security of data centers
AnswerB

The customer is responsible for securing the guest OS and applications.

Why this answer

In IaaS, the customer manages the guest OS, applications, and data, while the cloud provider secures the physical hosts and hypervisor.

924
Multi-Selectmedium

A company is implementing a defense-in-depth strategy for its web application. Which THREE security controls should be included in the architecture? (Choose three.)

Select 3 answers
A.Web application firewall (WAF)
B.Load balancer with SSL termination
C.Runtime application self-protection (RASP)
D.Single sign-on (SSO)
E.Network segmentation
AnswersA, C, E

WAF inspects HTTP traffic for attacks like SQL injection.

Why this answer

Defense-in-depth uses multiple layers. WAF filters malicious traffic, network segmentation limits lateral movement, and RASP protects the application at runtime.

925
Multi-Selecthard

A global company must comply with data residency regulations that require customer data to stay within specific geographic boundaries. The company uses a multi-cloud architecture. Which THREE strategies should the architect implement to ensure compliance?

Select 3 answers
A.Using cloud provider's region-specific services and data centers
B.Encrypting all data at rest and in transit
C.Implementing strict identity and access management (IAM) policies
D.Configuring data classification tags to identify regulated data
E.Deploying data loss prevention (DLP) policies to block cross-border data transfers
AnswersA, D, E

Choosing specific regions ensures data is stored and processed within the desired geography.

Why this answer

To meet data residency requirements, data must be stored and processed locally. Encryption alone does not prevent data from leaving the region. Private links keep traffic within the cloud provider's network but do not guarantee data stays in region.

Access controls do not prevent data movement. Data classification helps identify regulated data. Cloud provider's region-specific services ensure data remains in that region.

926
MCQmedium

Refer to the exhibit. Which security issue does this cloud storage bucket policy present?

A.The bucket allows anonymous GET operations from any IP
B.The bucket policy is too restrictive
C.The bucket allows anonymous PUT operations from any source
D.The bucket is not encrypted
AnswerC

The second statement permits any principal to put objects without an IP condition.

Why this answer

The cloud storage bucket policy shown includes a `Principal: "*"` with `Action: "PutObject"` and no `Condition` block restricting the source IP or requiring authentication. This means any unauthenticated user on the internet can upload objects to the bucket, which is a classic data ingestion vulnerability. Option C correctly identifies this as allowing anonymous PUT operations from any source.

Exam trap

The trap here is that candidates confuse the action (`PutObject` vs `GetObject`) and assume any anonymous principal implies read access, when in fact the policy explicitly allows write operations without any authentication or IP restriction.

How to eliminate wrong answers

Option A is wrong because the policy grants `s3:PutObject` (write), not `s3:GetObject` (read), so anonymous GET operations are not explicitly allowed by this policy. Option B is wrong because the policy is not too restrictive; it is overly permissive by allowing anonymous writes without any conditions. Option D is wrong because the policy does not mention encryption settings at all; the issue is about access control, not encryption, and S3 buckets can be encrypted separately via bucket policies or default encryption settings.

927
Multi-Selecthard

An organization is automating cloud security group management across AWS, Azure, and GCP. Which TWO approaches provide centralized, auditable control? (Select TWO.)

Select 2 answers
A.Leverage infrastructure as code tools (e.g., Terraform) to define and enforce security group rules.
B.Require manual approval for every security group change through a ticketing system.
C.Disable logging on security group changes to reduce performance impact.
D.Use cloud provider CLI commands (e.g., AWS CLI, Azure CLI) in scripts to update security groups.
E.Store service account credentials directly in automation scripts for simplicity.
AnswersA, D

IaC provides a single source of truth and automates enforcement across multiple clouds.

Why this answer

Infrastructure as Code (IaC) tools like Terraform provide a declarative, version-controlled, and repeatable method to define and enforce security group rules across AWS, Azure, and GCP. This approach ensures that all changes are auditable through code repositories (e.g., Git), and can be automatically validated and applied via CI/CD pipelines, eliminating manual drift and providing centralized control.

Exam trap

Candidates often mistakenly believe that only Infrastructure as Code tools (Option A) provide centralized, auditable control, while dismissing CLI scripting (Option D) as insufficient. However, CLI scripts executed via automation pipelines with version control and logging can also achieve the same goal, as long as credentials are not hard-coded (Option E is a trap). The key is that both IaC and properly orchestrated CLI scripts offer repeatability and auditability; manual approvals (B) are slow and not centralized, and disabling logs (C) defeats auditability.

928
Multi-Selectmedium

A security operations team is implementing deception technology to detect lateral movement. Which TWO of the following are examples of deception technologies? (Select TWO.)

Select 2 answers
A.Honeytoken
B.Intrusion prevention system
C.Endpoint detection and response (EDR)
D.Security information and event management (SIEM)
E.Honeypot
AnswersA, E

Honeytokens are deceptive tokens like fake credentials.

Why this answer

Honeypots are decoy systems, and honeytokens are fake credentials or data used to trigger alerts when accessed.

929
Multi-Selecteasy

A compliance officer is preparing for an audit and needs to collect evidence. Which TWO of the following are considered acceptable forms of audit evidence? (Select TWO.)

Select 2 answers
A.Screenshots of unofficial reports
B.Verbal statements from employees
C.Written security policies
D.Assumptions about system configurations
E.System access logs
AnswersC, E

Policies demonstrate what is required.

Why this answer

Audit evidence includes system logs (factual records) and policy documentation (proof of requirements).

930
Multi-Selecthard

A security administrator is reviewing a Python script used to automate compliance checks across cloud resources. The script uses environment variables for API tokens. Which of the following are secure coding practices that should be implemented in this script? (Select TWO.)

Select 2 answers
A.Use try-except blocks to handle exceptions gracefully
B.Use os.system() to run shell commands for resource management
C.Hardcode API tokens as fallback if environment variables are missing
D.Validate that required environment variables exist before proceeding
E.Log the API tokens for troubleshooting purposes
AnswersA, D

Why this answer

Using try-except blocks in Python allows the script to catch and handle exceptions (e.g., missing environment variables, API call failures) gracefully without crashing. This is a fundamental secure coding practice that prevents unhandled errors from exposing sensitive information or causing unpredictable behavior in automated compliance checks.

Exam trap

The CAS-004 exam often tests the misconception that hardcoding fallback values or logging sensitive data is acceptable for troubleshooting, but the trap here is that both practices directly violate secure coding principles by exposing secrets, while os.system() is a known anti-pattern for command execution in Python.

Why the other options are wrong

B

os.system is vulnerable to injection; prefer subprocess with parameterized commands.

C

Hardcoding tokens is insecure and defeats the purpose of using environment variables.

E

Logging credentials exposes them in logs, which is a security risk.

931
MCQhard

During a penetration test, the tester successfully gains initial access to a web server and wants to move laterally to a database server. The web server uses a service account that has local admin rights on the database server. What is the most effective technique for lateral movement in this scenario?

A.Exploit a SQL injection vulnerability in the database server
B.Brute-force the database server administrator password
C.Use a keylogger to capture credentials on the web server
D.Pass-the-Hash
AnswerD

The service account's hash can be used to authenticate to the database server.

Why this answer

Pass-the-Hash uses NTLM hashes to authenticate without the plaintext password, effective when the same account hash is reused across systems.

932
MCQmedium

An organization wants to ensure that its supply chain vendors are compliant with its security policies. Which of the following is the MOST effective approach?

A.Conduct on-site audits of all vendors.
B.Include security requirements in contracts and rely on legal remedies.
C.Require vendors to complete a self-assessment questionnaire.
D.Implement a continuous monitoring program using automated tools.
AnswerD

Continuous monitoring provides ongoing visibility into vendor security and reduces manual effort.

Why this answer

Continuous monitoring using automated tools provides real-time visibility into vendor security posture, enabling proactive detection of policy violations, configuration drift, or emerging threats. Unlike point-in-time assessments, automated monitoring can detect changes in vendor environments (e.g., new open ports, SSL/TLS certificate expiration, or exposed credentials) as they happen, aligning with the CAS-004 emphasis on ongoing risk management rather than static compliance checks.

Exam trap

The trap here is that candidates often choose on-site audits (Option A) as the 'most thorough' approach, failing to recognize that continuous monitoring provides superior real-time visibility and is more scalable for supply chain risk management in modern, dynamic environments.

How to eliminate wrong answers

Option A is wrong because on-site audits are resource-intensive, provide only a snapshot in time, and are impractical for a large vendor ecosystem; they also fail to detect post-audit changes. Option B is wrong because relying solely on contracts and legal remedies is reactive—it does not prevent security incidents and assumes legal action can undo damage, which is ineffective against real-time threats like data exfiltration. Option C is wrong because self-assessment questionnaires rely on self-reported data, which is subjective, often incomplete, and cannot be verified; they also lack the ability to detect ongoing changes or actual security posture (e.g., missing patches or misconfigurations).

933
MCQeasy

Which of the following is a primary purpose of using code signing for application deployment?

A.To encrypt the application code
B.To verify the integrity and authenticity of the code
C.To prevent reverse engineering
D.To speed up application deployment
AnswerB

Why this answer

Code signing uses a digital signature (typically RSA or ECDSA) to bind the publisher's identity to the code. The primary purpose is to verify both the integrity (the code has not been tampered with) and the authenticity (the code comes from a trusted source) before deployment. This is achieved by hashing the code and signing the hash with the publisher's private key; the recipient verifies the signature using the publisher's public certificate.

Exam trap

The CAS-004 exam often tests the misconception that code signing provides encryption or obfuscation, when in fact it only provides integrity and authenticity verification without hiding the code content.

Why the other options are wrong

A

Encryption is for confidentiality; code signing does not encrypt the code.

C

Code signing does not prevent reverse engineering; obfuscation or other techniques are used for that.

D

Code signing adds overhead, not speed.

934
MCQhard

Given the exhibit, what is the MOST likely scenario?

A.A misconfigured application is sending malformed data to a server.
B.An external attacker is scanning the internal network.
C.An internal host is compromised and attacking an external web server.
D.A web vulnerability scanner is performing authorized tests.
AnswerC

The host adapts to firewall rules and launches SQL injection attack.

Why this answer

The internal host 10.0.1.100 initially tried to connect to port 80 (HTTP) but was denied, then used port 443 (HTTPS) which was allowed, and then performed SQL injection on the web server. This suggests the host is compromised and attempting to attack an external server via HTTPS to bypass firewall rules. Option A is wrong because the traffic is outward, not inbound.

Option B is wrong because SQL injection is detected, and the pattern is deliberate. Option D is wrong because host is active.

935
MCQeasy

A company requires a cryptographic hash function for integrity verification of large files. The solution must be resistant to length extension attacks and provide high performance. Which of the following is the best choice?

A.BLAKE3
B.SHA-256
C.SHA-3
D.MD5
AnswerC

SHA-3 is resistant to length extension attacks and is a NIST standard.

Why this answer

SHA-3 is not vulnerable to length extension attacks and offers good performance. SHA-256 is vulnerable to length extension. BLAKE3 is fast but less standardized.

MD5 is broken and insecure.

936
MCQmedium

A company is conducting a third-party risk assessment for a SaaS provider. The provider has provided a SOC 2 Type II report, penetration test results, and a completed security questionnaire. Which of these provides the most independent and comprehensive view of the provider's control environment over time?

A.Penetration test report
B.Security questionnaire
C.Vendor's marketing materials
D.SOC 2 Type II report
AnswerD

Provides independent assurance over controls over time.

Why this answer

A SOC 2 Type II report is an independent auditor's opinion on controls over a period, making it the most comprehensive.

937
Multi-Selecteasy

A security architect is designing a secure remote access solution for contractors who need temporary access to a few internal applications. Which THREE of the following are best practices for controlling contractor access? (Select THREE.)

Select 3 answers
A.Allow contractors to use a shared account for simplicity
B.Implement just-in-time (JIT) temporary privilege elevation
C.Create time-limited accounts that expire automatically
D.Provide full network-level VPN access
E.Use a VPN with application-level access control
AnswersB, C, E

JIT provides access only when needed, reducing the risk of unused standing privileges.

Why this answer

Just-in-time (JIT) temporary privilege elevation ensures contractors only receive the minimum necessary permissions for a limited duration, reducing the attack surface and preventing standing privileges. This aligns with the principle of least privilege and zero-trust architectures, often implemented via tools like Azure AD PIM or AWS IAM Access Analyzer with time-bound policies.

Exam trap

The trap here is that candidates often confuse 'full network-level VPN access' (Option D) as secure because it uses encryption, but the exam focuses on the principle of least privilege and the need to restrict access to only the required applications, not the entire network.

938
Multi-Selecthard

A company is implementing a hardware security module (HSM) to protect cryptographic keys. The security architect must ensure the solution meets FIPS 140-2 Level 3 requirements. Which TWO of the following features are required for Level 3?

Select 2 answers
A.Role-based authentication only
B.Tamper-evident coatings and seals
C.Identity-based authentication for operators
D.Ability to export keys in plaintext
E.Tamper resistance with automatic zeroization
AnswersB, C

Level 3 requires tamper evidence.

Why this answer

FIPS 140-2 Level 3 requires tamper-evident coatings and seals (Option B) to provide physical evidence of tampering attempts. Additionally, identity-based authentication for operators (Option C) is mandated at Level 3, moving beyond simple role-based authentication to ensure each operator is uniquely identified and authenticated before accessing the HSM.

Exam trap

The trap here is that candidates confuse Level 3's tamper-evident requirements with Level 4's tamper-resistant automatic zeroization, leading them to select Option E instead of recognizing that Level 3 only requires tamper-evident coatings and seals.

939
MCQhard

A multinational organization is adopting a zero trust architecture and needs to align its network segmentation with regulatory requirements. The compliance team has identified that certain data must be isolated to meet PCI DSS scope reduction. Which of the following design approaches BEST supports both zero trust and PCI DSS compliance?

A.Deploying VLANs to separate cardholder data from other traffic
B.Implementing microsegmentation with software-defined networking
C.Using network access control (NAC) to enforce endpoint compliance
D.Placing all systems that process cardholder data in a DMZ
AnswerB

Microsegmentation enables fine-grained, dynamic isolation and aligns with zero trust.

Why this answer

Microsegmentation with software-defined networking (SDN) enables granular, identity-aware isolation of workloads at the virtual network layer, which directly supports zero trust's 'never trust, always verify' principle by restricting lateral movement. For PCI DSS scope reduction, microsegmentation allows the organization to create a logical, auditable boundary around cardholder data environment (CDE) assets without relying on physical network topology, thereby reducing the scope of PCI DSS compliance assessments. This approach is superior because it provides dynamic, policy-driven segmentation that can adapt to regulatory changes while maintaining strict least-privilege access.

Exam trap

CompTIA often tests the misconception that VLANs are sufficient for security segmentation, but the trap here is that VLANs lack the identity-aware, dynamic policy enforcement and east-west traffic control required by zero trust, and they do not provide the auditable, scope-reducing isolation that PCI DSS demands.

How to eliminate wrong answers

Option A is wrong because VLANs operate at Layer 2 and provide only coarse, static segmentation that can be bypassed via VLAN hopping attacks (e.g., double tagging per IEEE 802.1Q) and do not enforce identity-based access controls required by zero trust. Option C is wrong because NAC (e.g., 802.1X) focuses on pre-admission endpoint compliance and posture assessment, not on isolating workloads or reducing PCI DSS scope; it does not provide the granular east-west traffic control needed for zero trust segmentation. Option D is wrong because placing all CDE systems in a DMZ violates the principle of least privilege by exposing them to untrusted networks, increases attack surface, and does not achieve scope reduction—PCI DSS requires isolation of CDE from untrusted networks, not exposure.

940
MCQhard

An organization is implementing a secure software development lifecycle. Which of the following practices BEST ensures that security requirements are addressed early in the development process?

A.Security training for developers
B.Code analysis after development
C.Threat modeling during design phase
D.Penetration testing before release
AnswerC

Threat modeling identifies threats early, allowing mitigation in design.

Why this answer

Threat modeling during the design phase is the best practice for addressing security requirements early because it proactively identifies potential threats, attack vectors, and vulnerabilities in the system architecture before any code is written. By analyzing data flow, trust boundaries, and threat agents (e.g., using STRIDE or PASTA methodologies), security controls can be integrated into the design, reducing costly rework later. This aligns with the 'shift left' principle in secure SDLC, ensuring security is not an afterthought.

Exam trap

CompTIA CASP+ often tests the distinction between proactive security activities (like threat modeling) and reactive or verification activities (like code analysis or penetration testing), trapping candidates who confuse 'early' with 'any security practice' rather than recognizing that only design-phase activities can truly address requirements before development begins.

How to eliminate wrong answers

Option A is wrong because security training for developers, while important for awareness, does not directly ensure that security requirements are addressed early in the development process; it is a general education activity that may influence behavior but lacks the structured, design-phase analysis needed. Option B is wrong because code analysis after development (e.g., static or dynamic analysis) occurs too late to influence design decisions; it can find implementation flaws but cannot fix architectural security gaps that stem from early design choices. Option D is wrong because penetration testing before release is a validation activity that occurs after the system is built; it identifies exploitable vulnerabilities but does not ensure security requirements are incorporated during the design phase, leading to potentially costly fixes.

941
MCQmedium

Refer to the exhibit. A security analyst notices that users from the internet can reach the web server at 10.0.1.100 on port 443, but they cannot reach it on port 8443. What is the most likely cause?

A.The ACL only permits traffic from specific source IPs
B.The firewall rule order is incorrect
C.The web server is not listening on port 8443
D.The firewall is blocking all traffic on port 8443
AnswerC

If the server is not configured for port 8443, it will not respond.

Why this answer

The firewall ACL in the exhibit permits traffic on both port 443 and 8443, so the firewall is not blocking port 8443. Therefore, the most likely cause is that the web server is not listening on port 8443. Option A is incorrect because the ACL permits any source.

Option B is incorrect because the ACL order is fine. Option D is incorrect because the ACL permits port 8443.

942
MCQmedium

A security architect is implementing an API gateway to protect microservices. Which security capability is uniquely provided by an API gateway compared to a traditional web application firewall (WAF)?

A.TLS termination
B.SQL injection prevention
C.Cross-site scripting (XSS) filtering
D.Rate limiting per API consumer
AnswerD

Correct – API gateways can throttle requests per API key or user.

Why this answer

An API gateway can enforce rate limiting and authentication (e.g., OAuth) at the API level, while a WAF typically focuses on HTTP-layer attacks like SQLi.

943
MCQmedium

An application uses a relational database and constructs SQL queries by concatenating user input. Which secure coding practice should be implemented to mitigate SQL injection?

A.Use stored procedures exclusively
B.Escape all user input with a database-specific escaping function
C.Implement parameterized queries / prepared statements
D.Use an ORM (Object-Relational Mapping) framework
AnswerC

Why this answer

Parameterized queries (prepared statements) separate SQL logic from user data by using placeholders (e.g., `?` in MySQLi or `:param` in PDO). The database driver automatically escapes the input values, ensuring they are treated as data, not executable code. This directly prevents SQL injection because the query structure is fixed before user input is bound.

Exam trap

The CAS-004 exam often tests the misconception that stored procedures or ORMs are inherently safe, but the trap is that both can still be vulnerable if they allow dynamic SQL construction or raw query execution without parameterization.

Why the other options are wrong

A

Stored procedures can still be vulnerable if dynamic SQL is used within them.

B

Escaping is error-prone and not as reliable as parameterized queries.

D

ORMs can reduce risk but may still generate dynamic SQL if not used carefully.

944
Multi-Selecteasy

An analyst wants to automate incident response tasks in a SOC environment. Which THREE scripting languages are commonly used for automation? (Choose three.)

Select 3 answers
A.Python
B.PowerShell
C.Java
D.COBOL
E.Bash
AnswersA, B, E

Python is popular for its rich libraries and cross-platform support.

Why this answer

Python is correct because it is a versatile, high-level scripting language widely used in SOC automation for tasks such as parsing logs, interacting with REST APIs, and orchestrating incident response workflows. Its extensive libraries (e.g., requests, pandas, and boto3 for AWS) and cross-platform support make it ideal for automating repetitive security operations tasks.

Exam trap

The CAS-004 exam often tests the distinction between compiled languages (like Java) and interpreted scripting languages, leading candidates to mistakenly select Java because of its popularity, ignoring that it is not a scripting language used for automation in SOC environments.

945
Multi-Selectmedium

A security architect is designing a secure OTA update mechanism for IoT devices. Which TWO features are essential to ensure the integrity and authenticity of firmware updates?

Select 2 answers
A.Firmware encryption with AES-256-CTR
B.Secure boot chain that verifies the signature of the update before installation
C.Use of a hardware security module (HSM) on the device for key storage
D.Compression of the firmware image to reduce transfer size
E.Digital signature using ECDSA P-384
AnswersB, E

Secure boot ensures that only signed updates are installed.

Why this answer

Digital signatures ensure authenticity and integrity; a secure boot chain verifies the signature before executing the update, preventing unauthorized firmware.

946
MCQhard

Refer to the exhibit. A web server is unable to connect to a local database socket. Which of the following actions would MOST likely resolve this issue?

A.Disable SELinux entirely
B.Restart the httpd service
C.Change the SELinux enforcing mode to permissive
D.Add an SELinux policy module to allow httpd_t to connectto unconfined_t
AnswerD

This creates a targeted policy rule to allow the specific connection while maintaining enforcement.

Why this answer

The web server (httpd_t) is denied access to the local database socket because SELinux enforces mandatory access controls. Adding an SELinux policy module that allows httpd_t to connect to unconfined_t (the domain of the database socket) grants the necessary permission without disabling security. This is the targeted fix that preserves SELinux protection while resolving the connectivity issue.

Exam trap

The CASP+ exam often tests the misconception that disabling SELinux or setting it to permissive is the only way to resolve access issues, when in fact a targeted policy module is the correct and secure solution.

How to eliminate wrong answers

Option A is wrong because disabling SELinux entirely removes all mandatory access controls, which is an overly broad and insecure solution that violates the principle of least privilege. Option B is wrong because restarting the httpd service does not change SELinux policy; it only reloads the web server configuration and has no effect on SELinux denials. Option C is wrong because changing SELinux to permissive mode logs but does not enforce denials, which temporarily bypasses security but does not address the root cause and leaves the system vulnerable.

947
MCQmedium

During an incident response engagement, the security team identifies that a compromised host has been communicating with multiple external IP addresses using encrypted channels. The team needs to determine which processes initiated the connections. Which type of evidence collection should be performed first to preserve the most volatile data?

A.Export the Windows event logs related to network activity
B.Execute a network scan from the compromised host to identify active connections
C.Capture a full disk image using FTK Imager
D.Perform a memory capture using a tool like DumpIt or winpmem
AnswerD

Memory capture preserves the most volatile data, including running processes and network connections, which is critical for identifying malicious processes.

Why this answer

In digital forensics, the order of volatility dictates that volatile data (e.g., running processes, network connections) should be collected first because it is lost when the system is powered down. Memory capture preserves this data, including process information and active network connections.

948
MCQmedium

During a secure SDLC, a development team is reviewing code for security flaws early in the development process. Which type of testing is MOST appropriate for identifying vulnerabilities in source code before it is compiled?

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

SAST analyzes source code before compilation.

Why this answer

SAST (Static Application Security Testing) analyzes source code at rest to find vulnerabilities like injection flaws, without executing the code.

949
MCQmedium

A security engineer is implementing a solution to securely store and manage cryptographic keys for a fleet of IoT devices. The devices have limited processing power and cannot perform asymmetric operations. Which of the following is the BEST approach?

A.Use a cloud-based Hardware Security Module (HSM) to generate and store keys, and provision them to devices during manufacturing.
B.Install a Trusted Platform Module (TPM) in each device to store keys on the device.
C.Use a cloud KMS to generate and wrap keys, then store the wrapped key in the device.
D.Store keys in obfuscated form in the device firmware and use a custom algorithm for encryption.
AnswerA

A cloud HSM provides secure key generation, storage, and lifecycle management; provisioning keys during manufacturing ensures they are not exposed.

Why this answer

IoT devices with limited processing power cannot efficiently perform asymmetric operations, so pre-provisioning keys from a cloud-based HSM during manufacturing ensures secure key generation and storage without burdening the device. The HSM provides tamper-resistant key generation and lifecycle management, and the keys are injected into the device's secure storage (e.g., eFuse or secure element) before deployment, eliminating the need for on-device asymmetric cryptography.

Exam trap

CompTIA often tests the misconception that TPMs are always suitable for low-power devices, but the trap here is that TPMs require the device to perform asymmetric operations (e.g., RSA key generation) which IoT devices with limited processing power cannot handle, making pre-provisioning from an HSM the only viable option.

How to eliminate wrong answers

Option B is wrong because installing a TPM in each device requires the device to perform asymmetric operations (e.g., RSA or ECC key generation and signing) which the IoT devices cannot handle due to limited processing power. Option C is wrong because storing a wrapped key in the device still requires the device to perform unwrapping (decryption) operations, which typically involve asymmetric or symmetric cryptographic operations that exceed the device's capabilities, and the key management complexity is not reduced. Option D is wrong because storing keys in obfuscated form in firmware and using a custom algorithm violates cryptographic best practices (e.g., relying on security through obscurity) and is easily reverse-engineered, providing no real security against determined attackers.

950
MCQhard

A security engineer is configuring a SIEM correlation rule to detect a potential data exfiltration attempt. The rule should trigger when a single internal host sends more than 10 MB of data to an external IP address that has never been communicated with before, within a 5-minute window. Additionally, the external IP should not be on any whitelist. Which correlation logic best implements this detection?

A.Alert when a host sends >10 MB to an external IP that is not in the whitelist and not seen in the last 24 hours, aggregated over 5 minutes.
B.Alert when a host sends >10 MB to an external IP not in the whitelist and the destination port is 443.
C.Alert when any host sends >10 MB to an external IP not in the whitelist within 5 minutes.
D.Alert when a host sends >10 MB to any external IP aggregated over 5 minutes, then filter out whitelisted IPs.
AnswerA

Correctly aggregates volume and checks for new destination and whitelist.

Why this answer

Ly implements the detection rule. It aggregates data transfer per host over 5 minutes, checks that the volume exceeds 10 MB, verifies the external IP is not on any whitelist, and ensures the IP has not been seen in the last 24 hours (i.e., it is a new destination). This matches all the requirements: a single internal host, >10 MB, to an external IP never communicated with before, within 5 minutes, and not whitelisted.

Option B adds an unnecessary port 443 condition. Option C omits the requirement that the external IP must be new (unseen before). Option D aggregates over all external IPs without checking newness, which could alert on previously contacted IPs.

951
MCQhard

During a security review, a developer discovers that a containerized application runs with root privileges. Which of the following is the most secure approach to mitigate this risk while maintaining functionality?

A.Set the container to run as a non-root user and drop all unnecessary capabilities
B.Disable root login inside the container by modifying /etc/passwd
C.Use a read-only root filesystem for the container
D.Enable SELinux or AppArmor on the host
AnswerA

Why this answer

Running a container as a non-root user with dropped capabilities is the most secure approach because it follows the principle of least privilege. By default, containers run as root, which grants unnecessary kernel capabilities that could be exploited for privilege escalation. Setting a non-root user and using `--cap-drop=ALL` with selective `--cap-add` ensures the application retains only required permissions, reducing the attack surface without breaking functionality.

Exam trap

The CAS-004 exam often tests the misconception that disabling root login or using filesystem restrictions (read-only) is sufficient, when the real risk is the container process running as UID 0 with full capabilities, which requires explicit user context and capability dropping to mitigate.

Why the other options are wrong

B

Disabling root login does not prevent the container process from running as root; the process still has root privileges.

C

A read-only filesystem limits writes but does not reduce privileges; the container still runs as root.

D

These are mandatory access control mechanisms that can confine a process, but they do not directly address the root privilege issue; combining with non-root user is better.

952
Multi-Selecthard

An organization is deploying a new cloud-based application that processes personally identifiable information (PII). The security team must ensure data at rest is encrypted. Which THREE of the following controls should be implemented to protect the data? (Select THREE.)

Select 3 answers
A.Use tokenization for all PII fields in the database.
B.Implement a key management system (KMS) with automatic key rotation.
C.Enable transparent data encryption (TDE) on the database.
D.Use AES-256 encryption for all stored data.
E.Configure TLS 1.3 for all data connections.
AnswersB, C, D

Proper key management and rotation are critical to maintaining encryption security.

Why this answer

A key management system (KMS) with automatic key rotation ensures that encryption keys are securely stored, rotated, and managed, which is essential for protecting data at rest. Without proper key management, encryption can be rendered ineffective if keys are compromised or stale. This control directly supports the confidentiality of PII stored in the cloud.

Exam trap

The CAS-004 exam often tests the distinction between encryption for data at rest (e.g., TDE, AES-256, KMS) and encryption for data in transit (e.g., TLS), so candidates mistakenly select TLS as a data-at-rest control.

953
MCQmedium

A company is designing a new data center with high availability requirements. The network team proposes using virtualized network functions (VNFs) on commodity hardware to reduce costs. Which security consideration is MOST important when implementing this design?

A.Isolate VNFs to prevent lateral movement if one VNF is compromised
B.Ensure VNFs are deployed across multiple physical hosts for redundancy
C.Encrypt all traffic between VNFs to prevent eavesdropping
D.Implement quality of service (QoS) to guarantee bandwidth for critical VNFs
AnswerA

Isolation is critical because VNFs share hypervisor; a compromise could spread.

Why this answer

Isolating VNFs is the most important security consideration because VNFs share the same hypervisor and commodity hardware, so a compromise in one VNF could allow an attacker to move laterally to other VNFs or the underlying host. Without proper isolation (e.g., using VLANs, VXLANs, or micro-segmentation), the entire multi-tenant environment is at risk, undermining the high-availability design.

Exam trap

The trap here is that candidates confuse operational requirements (redundancy, QoS, encryption) with security controls, overlooking that isolation is the foundational security measure in a shared virtualized environment.

How to eliminate wrong answers

Option B is wrong because deploying VNFs across multiple physical hosts for redundancy is a high-availability design requirement, not a security consideration; it does not address the risk of lateral movement or compromise. Option C is wrong because encrypting traffic between VNFs (e.g., with IPsec or TLS) protects data in transit but does not prevent a compromised VNF from attacking other VNFs on the same host; isolation is a prerequisite for security. Option D is wrong because QoS guarantees bandwidth for critical VNFs, which is a performance and availability concern, not a security control; it does not mitigate the risk of a VNF being compromised and used to pivot within the network.

954
MCQmedium

A security analyst is writing a script to scan container images for known vulnerabilities before deployment. Which of the following best practices should the analyst implement to ensure the script runs securely?

A.Hardcode API keys into the script for simplicity
B.Use parameterized queries or input sanitization for any user-supplied data
C.Run the script with root privileges to ensure it has access to all images
D.Store credentials in a world-readable configuration file
AnswerB

Why this answer

Input sanitization and parameterized queries prevent injection attacks when the script processes user-supplied data, such as image names or tags. In the context of container scanning, unsanitized input could lead to command injection or SQL injection if the script queries a vulnerability database. This aligns with secure coding practices for automation scripts, ensuring that the script does not inadvertently execute malicious commands or expose sensitive data.

Exam trap

The CAS-004 exam often tests the principle of least privilege and secure credential handling in automation contexts, and the trap here is that candidates may choose root privileges (Option C) thinking it ensures full access to all images, overlooking the security risk of excessive permissions.

Why the other options are wrong

A

Hardcoding credentials is a major security risk; they can be exposed in version control.

C

Running with least privilege is a security best practice; root access increases the attack surface.

D

Credentials should be stored securely (e.g., vault, environment variables), not world-readable.

955
MCQhard

During a threat hunting exercise, a hunter uses the MITRE ATT&CK framework to identify a series of behaviors: an attacker used PowerShell to download a payload, then created a scheduled task for persistence, and finally performed credential dumping via LSASS. Which ATT&CK tactic is associated with the credential dumping technique?

A.Defense Evasion
B.Credential Access
C.Execution
D.Persistence
AnswerB

Credential Access is the tactic for stealing credentials, such as dumping LSASS.

Why this answer

Credential dumping, specifically from LSASS, is a technique under the Credential Access tactic in the MITRE ATT&CK framework. The tactic describes the adversary's goal of stealing credentials.

956
MCQeasy

A security architect is evaluating a new identity management solution. The requirement is to allow users to authenticate using their existing social media accounts while maintaining corporate control over access policies. Which architecture best meets this requirement?

A.Privileged access management (PAM) solution
B.Single sign-on (SSO) using a corporate LDAP directory
C.Public Key Infrastructure (PKI) with digital signatures
D.Federated identity management using Security Assertion Markup Language (SAML)
AnswerD

Federation allows external IdPs like social media, while the enterprise controls policies.

Why this answer

Federated identity management using SAML enables users to authenticate via external identity providers (e.g., social media platforms) while the corporate system retains control over access policies through the exchange of SAML assertions. This architecture decouples authentication from authorization, allowing the corporate service provider to enforce its own rules based on trusted identity claims.

Exam trap

The CAS-004 exam often tests the distinction between authentication and authorization, and the trap here is that candidates may confuse SSO with LDAP (Option B) as sufficient for external identity federation, failing to recognize that LDAP requires direct directory membership and does not support trust delegation to external IdPs.

How to eliminate wrong answers

Option A is wrong because Privileged Access Management (PAM) is designed to manage and monitor privileged accounts (e.g., admin credentials), not to authenticate users via social media or federate identities. Option B is wrong because Single Sign-On using a corporate LDAP directory requires users to be provisioned in the corporate directory, which does not support authentication via external social media accounts. Option C is wrong because Public Key Infrastructure with digital signatures provides non-repudiation and encryption but does not inherently enable federation or delegation of authentication to third-party identity providers.

957
MCQmedium

A security analyst is reviewing TLS 1.3 configuration for a web server. The analyst wants to ensure that the configuration provides forward secrecy and prevents the reuse of session keys. Which of the following is a characteristic of TLS 1.3 that supports these goals?

A.0-RTT session resumption
B.Support for static RSA key exchange
C.Use of ephemeral Diffie-Hellman key exchange
D.Removal of CBC mode cipher suites
AnswerC

Ephemeral Diffie-Hellman ensures that session keys are not derived from long-term keys, providing forward secrecy.

Why this answer

TLS 1.3 mandates ephemeral Diffie-Hellman key exchange (ECDHE or DHE), which provides forward secrecy by generating unique session keys for each session.

958
MCQeasy

An organization needs to ensure consistent configuration across multiple Linux servers. They want to automate this process with a solution that requires minimal agent installation and uses push-based communication. Which approach is most appropriate?

A.Use PowerShell Desired State Configuration (DSC) with Linux extensions.
B.Use Ansible playbooks to define and enforce server configurations.
C.Run a Docker container on each server with a configuration management tool inside.
D.Deploy Puppet with a master server and agents on each system.
AnswerB

Ansible is agentless, uses SSH for push, and is widely used for configuration management.

Why this answer

Ansible is the most appropriate choice because it is agentless (no agent installation required) and uses push-based communication over SSH to enforce configurations. It uses YAML-based playbooks to define desired states, making it ideal for automating consistent configuration across multiple Linux servers with minimal overhead.

Exam trap

The trap here is that candidates often confuse agent-based tools like Puppet or DSC with agentless ones, or assume that containerization inherently reduces agent footprint, when in fact it introduces its own runtime dependencies.

How to eliminate wrong answers

Option A is wrong because PowerShell DSC requires the Open Management Infrastructure (OMI) agent on Linux, which contradicts the 'minimal agent installation' requirement. Option C is wrong because running a Docker container with a configuration management tool inside still requires Docker installation and management on each server, adding complexity rather than minimizing agent footprint. Option D is wrong because Puppet typically uses a pull-based model (agents poll the master) and requires agent software on each node, which violates both the push-based and minimal agent installation criteria.

959
MCQhard

A company is implementing single sign-on using SAML 2.0. A security architect is reviewing the authentication flow and notices that the identity provider (IdP) does not digitally sign the SAML assertions. Which of the following is the most significant security risk?

A.The assertion could be modified in transit
B.The assertion could be intercepted and read
C.The IdP could be spoofed
D.The assertion could be replayed
AnswerA

Without a signature, the service provider cannot verify that the assertion was not tampered with, allowing attribute or identity changes.

Why this answer

Without signing, an attacker can modify the assertion in transit, potentially impersonating a user or altering attributes, leading to unauthorized access.

960
Multi-Selecthard

An incident responder is analyzing a compromised server. Which THREE indicators are MOST likely to confirm a successful attack?

Select 3 answers
A.Corrupted system files
B.Unusual outbound network connections
C.Multiple failed login attempts
D.High CPU usage due to legitimate processes
E.New unauthorized administrative accounts
AnswersA, B, E

Corrupted files can result from malware or unauthorized modification.

Why this answer

Corrupted system files (A) are a strong indicator of a successful attack because many malware variants, such as ransomware or rootkits, intentionally modify or encrypt critical system files (e.g., DLLs, executables) to maintain persistence or cause damage. The incident responder would detect this via file integrity monitoring (FIM) tools like Tripwire or by comparing file hashes against known-good baselines, revealing unauthorized changes that confirm compromise.

Exam trap

The CASP+ exam often tests the distinction between indicators of an ongoing attack (like failed logins) and indicators of a successful compromise (like corrupted files or new accounts), tricking candidates into selecting multiple failed login attempts as a confirmation of success.

961
Multi-Selectmedium

A penetration tester is conducting a test against a web application. The client has defined rules of engagement that prohibit any denial of service attacks. The tester discovers an endpoint that is vulnerable to command injection. Which THREE of the following actions should the tester take to validate the vulnerability while staying within scope? (Choose THREE.)

Select 3 answers
A.Use the echo command to write a file on the server
B.Run a whoami command to confirm the user context
C.Delete a random system file to observe impact
D.Flood the endpoint with multiple requests to test resilience
E.Execute a ping command to a controlled server to verify code execution
AnswersA, B, E

Writing a harmless file can prove execution without damage.

Why this answer

To validate command injection without causing damage, the tester should use non-destructive commands like ping, echo, and whoami. Deleting files or performing DoS would violate rules of engagement.

962
Multi-Selecthard

Which THREE of the following are effective techniques for detecting advanced persistent threats (APTs) within a network? (Select exactly 3.)

Select 3 answers
A.Using signature-based intrusion detection systems (IDS) to match known attack patterns.
B.Conducting behavioral analysis of endpoint and network activity to detect unusual patterns.
C.Integrating threat intelligence feeds to correlate indicators of compromise (IOCs) with internal logs.
D.Implementing anomaly-based network traffic analysis to identify deviations from baseline behavior.
E.Deploying honeypots to attract and analyze attacker behavior.
AnswersB, C, D

Behavioral analysis can uncover APT activities such as lateral movement and data exfiltration.

Why this answer

Behavioral analysis (option B) is effective against APTs because it establishes a baseline of normal activity and flags deviations, such as unusual lateral movement or data exfiltration patterns, which APTs often exhibit. Unlike signature-based methods, behavioral analysis can detect novel or zero-day attack techniques that do not match known signatures, making it a critical component of an advanced threat detection strategy.

Exam trap

The CAS-004 exam often tests the distinction between detection techniques that rely on known indicators (signature-based) versus those that detect unknown threats (behavioral/anomaly-based), and candidates may mistakenly think signature-based IDS is sufficient for APTs because they focus on the 'advanced' aspect rather than the 'persistent' and 'unknown' nature of the threat.

963
Multi-Selecthard

An incident response team is handling a ransomware incident. The team has successfully contained the threat and is now in the eradication phase. Which THREE actions are appropriate for the eradication phase? (Select THREE.)

Select 3 answers
A.Restore systems from clean backups
B.Apply security patches to the vulnerability that allowed initial access
C.Revoke and reset all compromised user and service accounts
D.Delete all infected files and registry keys associated with the ransomware
E.Conduct a lessons learned meeting
AnswersB, C, D

Patching prevents re-infection.

Why this answer

Eradication involves removing the threat completely: deleting malware, revoking compromised credentials, and patching vulnerabilities.

964
MCQmedium

A security architect is reviewing the network segmentation of a healthcare organization that must comply with HIPAA. The current flat network allows all devices to communicate. Which segmentation approach provides the best balance of security and manageability?

A.Create a physical air gap between all systems
B.Assign each device its own VLAN with no inter-VLAN routing
C.Segment using VLANs and ACLs to limit traffic to necessary flows
D.Place all critical systems in a single DMZ subnet
AnswerC

VLANs with ACLs provide logical isolation, reducing attack surface while maintaining manageability.

Why this answer

VLANs logically segment the flat network into separate broadcast domains, and ACLs applied at the Layer 3 boundary (e.g., on the switch virtual interface or router) enforce least-privilege access by permitting only necessary traffic flows between segments. This approach meets HIPAA's technical safeguard requirements (45 CFR § 164.312(a)(1)) for access control and integrity without the operational overhead of physical separation or the security risk of a single DMZ.

Exam trap

The trap here is that candidates confuse 'segmentation' with 'isolation' and choose Option B (every device its own VLAN) thinking it maximizes security, but they overlook the manageability nightmare and the fact that HIPAA requires authorized access between systems for treatment, payment, and operations (TPO).

How to eliminate wrong answers

Option A is wrong because a physical air gap between all systems would prevent any electronic communication, making clinical workflows (e.g., EHR access, lab results transmission) impossible and violating HIPAA's requirement for timely access to patient data. Option B is wrong because assigning each device its own VLAN with no inter-VLAN routing creates an unmanageable broadcast domain explosion (4094 VLAN limit per 802.1Q) and prevents any necessary communication between devices (e.g., a workstation needing to reach a printer or database server). Option D is wrong because placing all critical systems in a single DMZ subnet collapses the security zones into one, meaning a compromise of any system (e.g., a web server) would expose all other critical systems (e.g., EHR database) to direct attack, violating the principle of defense in depth.

965
MCQhard

A company wants to implement continuous compliance monitoring. Which of the following approaches BEST supports this goal?

A.Manual review of compliance reports quarterly
B.Deploying a Security Information and Event Management (SIEM) system
C.Implementing automated compliance auditing tools
D.Annual external audits
AnswerC

Automated tools can provide ongoing monitoring and immediate feedback.

Why this answer

Continuous compliance monitoring requires automated, real-time checks against policies and regulations. Automated auditing tools can continuously assess controls and generate alerts.

966
Multi-Selecthard

A compliance officer is preparing for a GDPR audit. Which THREE of the following are key data subject rights under GDPR that the organization must be able to demonstrate?

Select 3 answers
A.Right to object to processing
B.Right to unlimited data storage
C.Right to erasure (right to be forgotten)
D.Right to data monetization
E.Right to data portability
AnswersA, C, E

Article 21 allows data subjects to object to processing based on legitimate interests.

Why this answer

GDPR grants data subjects several rights, including the right to erasure (right to be forgotten), right to data portability, and right to object to processing. The right to rectification is also a right but is not listed as an option. The right to data monetization and right to unlimited storage are not GDPR rights.

967
MCQhard

A security architect is designing a system that must comply with FedRAMP Moderate controls. The system will use a cloud service provider (CSP) that is already FedRAMP Authorized. What is the primary benefit of using this CSP?

A.The agency no longer needs to conduct any risk assessments
B.The CSP guarantees 100% security
C.The system automatically complies with all international regulations
D.The CSP's authorization can be reused, reducing the agency's assessment burden
AnswerD

Leverages existing authorization

Why this answer

The primary benefit of using a FedRAMP Authorized CSP is that the CSP has already undergone a rigorous third-party assessment and continuous monitoring process. This allows the agency to reuse the existing authorization (via the 'JAB' or agency Provisional Authorization), significantly reducing the time, cost, and effort required for the agency's own assessment and authorization (ATO) process. It does not eliminate the agency's responsibility for risk management or compliance with FedRAMP Moderate controls, but it leverages the CSP's proven security posture.

Exam trap

The CAS-004 exam often tests the misconception that FedRAMP authorization absolves the agency of all compliance work, when in fact the agency must still perform a system-specific risk assessment and maintain its own ATO for the overall system.

How to eliminate wrong answers

Option A is wrong because the agency is still required to conduct its own risk assessments, including a system-specific risk assessment for the overall system and the CSP's inherited controls; FedRAMP authorization does not eliminate the agency's risk management responsibilities. Option B is wrong because no CSP or system can guarantee 100% security; FedRAMP authorization indicates a baseline of security controls have been implemented and assessed, but residual risk always remains. Option C is wrong because FedRAMP is a U.S. federal program and does not automatically confer compliance with international regulations such as GDPR, ISO 27001, or the EU Cloud Code of Conduct; separate assessments are needed for international frameworks.

968
Multi-Selecthard

Which THREE of the following are essential components of a secure software development lifecycle (SSDLC)?

Select 3 answers
A.Continuous deployment
B.Static application security testing (SAST)
C.Code signing
D.Threat modeling
E.Penetration testing
AnswersB, D, E

SAST analyzes source code for vulnerabilities during the development phase.

Why this answer

Static application security testing (SAST) is a white-box testing method that analyzes source code, bytecode, or binary code for security vulnerabilities without executing the program. It is an essential component of a secure software development lifecycle (SSDLC) because it enables early detection of flaws such as SQL injection, buffer overflows, and cross-site scripting during the coding and build phases, reducing remediation cost and risk.

Exam trap

CompTIA often tests the distinction between security activities that are integrated into the development process (like SAST, threat modeling, and penetration testing) versus operational or post-deployment practices (like continuous deployment and code signing), leading candidates to mistakenly include the latter as SSDLC essentials.

Page 12

Page 13 of 13