EC-Council Certified Application Security Engineer (CASE) Exam-style mock test
EC-Council Certified Application Security Engineer (CASE) Practice Exams|Practice test
Full explanations
Exam format
Pass line 70%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Secure SDLC & Requirements
A B2B SaaS provider is retrofitting security into its existing Agile delivery pipeline and wants to know the core principle that defines a Secure SDLC versus a traditional one. Which statement best captures that principle?
・Security is deferred to a dedicated penetration test executed immediately before each production release of the platform
Incorrect. A single pre-release penetration test is late-stage bolt-on security and leaves earlier-phase flaws undiscovered until they are expensive to fix.
✓Security activities are embedded into every phase of development rather than bolted on at the end of the project
Correct. A Secure SDLC integrates security into requirements, design, coding, testing, and maintenance so defects are caught and prevented throughout, not just at the end.
・Security is handled entirely by an external audit firm that reviews the finished product before the contract renews
Incorrect. Outsourcing review to an audit firm at the end repeats the bolt-on anti-pattern and does not build security into each development phase.
・Security relies on a web application firewall deployed in front of the tenant application to filter malicious traffic
Incorrect. A WAF is a runtime compensating control, not a lifecycle practice, and does not address design or coding defects within the software itself.
Explanation
The defining characteristic of a Secure SDLC is that security is woven into all phases of development, enabling early detection and prevention rather than reactive, end-of-cycle fixes.
Example2 · Secure Design & Threat Modeling
A B2B SaaS company is threat modeling its new multi-tenant billing API. The security architect wants a methodology that classifies each identified threat into categories such as spoofing, tampering, and elevation of privilege. Which threat modeling approach should the team adopt for this classification goal?
・PASTA, a risk-centric process that simulates attacker behavior across seven progressive analysis stages
Incorrect. PASTA is a seven-stage risk-centric methodology focused on attacker simulation and business impact, not on sorting threats into spoofing or tampering categories.
✓STRIDE, which maps each threat to one of six well-defined security property violation categories
Correct. STRIDE categorizes threats into six classes (Spoofing, Tampering, Repudiation, Information disclosure, Denial of service, Elevation of privilege), which matches the classification goal described.
・DREAD, a scoring model that ranks each discovered threat by estimated business and technical impact
Incorrect. DREAD is a prioritization and scoring model that rates severity; it does not classify threats into categories like spoofing or elevation of privilege.
・Attack trees that enumerate hierarchical paths an adversary could follow to reach a goal
Incorrect. Attack trees model adversary paths toward a goal hierarchically but do not provide the fixed category taxonomy the team wants.
Explanation
STRIDE is the categorization methodology that maps threats to six security-property violations, directly satisfying the team's need to classify threats into spoofing, tampering, and elevation of privilege.
Example3 · Secure Coding: Input, Auth & Crypto
At a B2B SaaS invoicing company, a developer accepts a country code field used to build a downstream currency lookup. Several bypasses have slipped past ad-hoc checks. Which input validation approach gives the strongest defense for this field?
・Blacklist known malicious strings and reject any request that contains one of those blocked substrings
Incorrect. Blacklisting is inherently incomplete because attackers can craft inputs the deny-list never anticipated, so it leaks over time.
✓Whitelist against an allowed set of valid ISO country codes and reject anything outside that defined set
Correct. Whitelisting the field against a known, finite set of valid values rejects everything unexpected and is the strongest validation for a constrained field.
・Encode the field value for HTML output after it has already been stored in the application database
Incorrect. Output encoding is a context-specific defense applied at rendering time; it does not validate that the stored input was ever legitimate.
・Trim surrounding whitespace, lowercase the value, and trust the client-side dropdown already restricted it
Incorrect. Client-side restrictions are trivially bypassed with a crafted request, so trusting the dropdown provides no real server-side assurance.
Explanation
For a field with a known finite domain, positive (whitelist) validation against the allowed set is the most robust approach, rejecting all unexpected input by default.
Example4 · Security Testing
A healthcare services firm is building a patient scheduling API and wants to catch insecure coding patterns, such as hardcoded database credentials, before the build is ever deployed to a running environment. Which testing approach is best suited to meet this specific requirement?
・Dynamic application security testing performed against the deployed staging endpoint with crafted HTTP payloads
Incorrect. Dynamic testing requires a running, deployed application and cannot inspect source code for hardcoded credentials prior to deployment.
・Interactive application security testing using instrumented runtime agents during functional test execution
Incorrect. Interactive testing relies on runtime instrumentation while the application executes, so it cannot operate before the build is deployed.
✓Static application security testing performed directly on the source code before compilation
Correct. Static analysis inspects raw source code without execution, making it ideal for detecting hardcoded credentials early in development.
・Penetration testing conducted by an external red team against the production scheduling service
Incorrect. Penetration testing targets a live production environment and happens far later than the pre-deployment source review required here.
Explanation
SAST analyzes source code without running the application, so it is the correct choice for catching issues like hardcoded credentials before deployment.
Example5 · Secure Deployment, Error Handling & Monitoring
A healthcare services firm is deploying its patient-portal application onto a hardened application server. The release engineer notices the default sample applications, administrative consoles, and verbose banners are still enabled on the server. Which deployment action should be taken first to reduce the attack surface?
✓Remove the bundled sample applications, disable or restrict the admin console, and suppress version banners before go-live
Correct. Hardening removes unused sample apps, locks down the admin console, and hides version banners, directly shrinking the exploitable attack surface before deployment.
・Leave the sample applications installed but move them to a separate virtual host accessed over a non-standard port number
Incorrect. Relocating samples to another port still leaves vulnerable demo code deployed and reachable, so the risk remains.
・Keep the default configuration intact and rely on the network firewall to block external requests to those endpoints
Incorrect. A firewall is a useful control but does not eliminate the unneeded components, which remain exploitable from permitted paths or internal access.
・Rename the admin console directory to an obscure path so attackers cannot easily guess its location
Incorrect. Renaming the console is security by obscurity and is trivially defeated by scanning, so it is not a reliable hardening step.
Explanation
Secure deployment begins with hardening: removing default/sample applications, restricting management interfaces, and suppressing version information to minimize the attack surface.
Example6 · Secure SDLC & Requirements
A healthcare services firm is building a new patient scheduling web application and wants to embed security into its SDLC. During which phase should the team FIRST define abuse cases and security acceptance criteria so that downstream design and testing can be verified against them?
✓During the requirements phase, alongside the functional and business needs gathered from clinical stakeholders
Correct. Abuse cases and security acceptance criteria belong in requirements so design, coding, and testing phases all have a verifiable baseline to build and check against.
・During the deployment phase, once the hardened production servers and monitoring agents are fully provisioned
Incorrect. Deployment hardening is valuable but happens far too late to shape the security requirements that must guide earlier design and coding decisions.
・During the coding phase, as developers begin implementing the scheduling and patient-lookup modules in parallel
Incorrect. Defining security criteria only once coding starts means design choices were already made without those criteria driving them, causing costly rework.
・During the maintenance phase, after the application has processed live appointments and real patient records
Incorrect. Waiting until maintenance means the application has already handled real patient data without the security criteria ever shaping its construction.
Explanation
Security requirements, abuse cases, and acceptance criteria are established in the requirements phase so every later phase can be measured against a defined security baseline.
Example7 · Secure SDLC & Requirements
NovaMart, a retail chain, is restructuring its e-commerce development process to adopt a Secure SDLC. The security lead wants threat modeling performed before any code is written so design flaws are caught early. In which SDLC phase should NovaMart schedule its threat modeling activity?
・During the deployment phase, right before the application is released into the live retail production environment
Incorrect. Deployment is far too late; threat modeling at release leaves no time to fix the architectural flaws it would reveal before launch.
✓During the design phase, so architectural and data-flow risks are identified prior to implementation
Correct. Threat modeling belongs in the design phase, where data flows and architecture can be analyzed and flaws corrected before any code exists.
・During the testing phase, alongside the dynamic scans and penetration tests run by the QA team
Incorrect. Testing validates an implemented system; by then design-level threats are already baked in and costly to remediate properly.
・During the coding phase, as developers write and commit each individual module to the repository
Incorrect. Coding is already past the point where threat modeling adds the most value, since the architecture has been committed to by then.
Explanation
Threat modeling is a design-phase activity in the Secure SDLC because it evaluates architecture and data flows before implementation, making early remediation cheap and effective.
Example8 · Secure SDLC & Requirements
During requirements gathering for NovaMart's new loyalty-points portal, analysts list several statements. The security lead needs to flag which one is a security requirement rather than a functional requirement. Which statement is a security requirement?
・The portal shall display the customer's current loyalty-points balance on the account dashboard page
Incorrect. Displaying a balance is a functional feature describing what the system does for the user, not a protective control.
・The portal shall allow customers to redeem points for discount coupons during checkout at any store
Incorrect. Redeeming points for coupons is business functionality defining a user capability, not a security constraint.
✓The portal shall enforce account lockout after five consecutive failed authentication attempts by a user
Correct. Account lockout after repeated failed logins is a security requirement that protects against brute-force authentication attacks.
・The portal shall let customers transfer earned loyalty points to another registered family member account
Incorrect. Transferring points between accounts is a functional capability of the loyalty feature, not a security protection.
Explanation
Security requirements describe protective controls and constraints (such as lockout against brute force), whereas functional requirements describe features and capabilities the system provides.
Example9 · Secure SDLC & Requirements
NovaMart's analysts are documenting use cases for a gift-card purchase flow. The security lead asks them to also write abuse cases to drive out security requirements. Which artifact correctly represents an abuse case for this flow?
・A customer successfully buys a gift card and receives a redemption code by email after payment
Incorrect. This describes the normal intended behavior of a legitimate user and is a standard use case, not an abuse case.
✓An attacker scripts rapid gift-card code guesses to drain balances from cards they do not own
Correct. An abuse case models how an adversary misuses the system, here automated code-guessing to steal balances, driving security requirements.
・A customer views their saved gift cards and the remaining balance on each of them in the account
Incorrect. Viewing saved cards and balances is ordinary legitimate functionality rather than malicious misuse of the system.
・A customer selects a gift-card amount, enters payment details, and completes the purchase at checkout
Incorrect. Completing a normal purchase at checkout is the primary success scenario, which is a use case and not an abuse case.
Explanation
Abuse cases describe how a malicious actor attempts to subvert or misuse a feature; they complement use cases and surface security requirements like rate limiting and code-space hardening.
Example10 · Secure SDLC & Requirements
A financial services company is launching a new online loan-origination platform and wants to embed security into its SDLC from the start. The security architect must decide which activity belongs in the requirements phase so that security is addressed before any code is written. Which activity is the correct fit for that phase?
・Scanning the compiled loan-origination binaries with a dynamic analysis tool in the staging environment
Incorrect. Dynamic scanning of compiled binaries requires running code and therefore belongs to the testing phase, not requirements.
✓Identifying and documenting the security and compliance requirements the loan platform must satisfy
Correct. Capturing security and compliance requirements happens in the requirements phase, before design or coding begins.
・Running a full penetration test against the production loan-origination endpoints before customer launch
Incorrect. Penetration testing against production endpoints is a late-stage verification activity, well after requirements are gathered.
・Configuring the web application firewall rules that will protect the deployed loan-origination service
Incorrect. Configuring WAF rules is a deployment and operations activity, not part of defining requirements.
Explanation
Security requirements must be elicited and documented during the requirements phase so that design and implementation can satisfy them; testing and deployment activities occur later in the lifecycle.
Example11 · Secure SDLC & Requirements
The engineering leadership at a payments processor is comparing secure development approaches and asks why the Microsoft Security Development Lifecycle (SDL) is described as a prescriptive process. Which statement best captures the defining characteristic of the SDL approach?
・It replaces all functional testing with threat modeling exercises conducted only during the design phase
Incorrect. The SDL adds security activities alongside functional testing rather than replacing it, and threat modeling spans more than design alone.
✓It defines specific mandatory security practices and gates mapped to each development phase
Correct. The SDL prescribes specific security practices and verification gates tied to each phase of development.
・It is a maturity model used solely to benchmark an organization's security posture against peers
Incorrect. That description fits a maturity model such as SAMM, not the prescriptive SDL process.
・It focuses exclusively on post-release incident response once the payment application is live
Incorrect. The SDL spans the entire lifecycle, not only post-release incident response.
Explanation
Microsoft's SDL is prescriptive because it mandates concrete security practices and phase gates across the lifecycle, distinguishing it from benchmarking maturity models.
Example12 · Secure SDLC & Requirements
A manufacturing distributor is rebuilding its order-fulfillment portal and wants security embedded from the very start rather than bolted on at the end. Which practice best characterizes a secure SDLC approach across the development lifecycle?
・Scheduling a single penetration test against the finished portal right before the production go-live date arrives
Incorrect. A single late-stage penetration test leaves vulnerabilities embedded cheaply fixable only after costly rework.
✓Embedding tailored security activities such as threat modeling, secure coding, and testing into every development phase
Correct. A secure SDLC distributes phase-appropriate security activities across requirements, design, coding, testing, and maintenance.
・Delegating all portal security concerns to the network firewall and intrusion-detection team after deployment completes
Incorrect. Perimeter controls cannot remediate insecure application logic or code-level flaws in the fulfillment portal itself.
・Requiring developers to attend a one-time annual awareness session covering common web application vulnerabilities
Incorrect. Annual awareness training is useful but is not a substitute for integrated, phase-by-phase secure development activity.
Explanation
The defining feature of a secure SDLC is that security is woven into every phase, not isolated as a one-time or perimeter-only control.
Example13 · Secure SDLC & Requirements
During requirements gathering for the distributor's new supplier-portal, a stakeholder states, 'Only verified purchasing agents may approve bulk orders over a set value.' As the application security engineer, how should you capture this to make it actionable for design and testing?
・Record it loosely as a general expectation that the system should be secure enough to prevent unauthorized order approvals
Incorrect. A vague 'secure enough' statement cannot be designed against or verified during testing and invites ambiguity.
✓Translate it into a testable security requirement defining role-based approval authority and verifiable value thresholds
Correct. Converting the need into a specific, testable requirement with roles and thresholds makes it designable and verifiable.
・Defer it until the penetration-testing phase so testers can decide the appropriate approval rules on their own later
Incorrect. Deferring authorization rules to testers abandons requirements ownership and risks inconsistent, untraceable controls.
・Note it as a nice-to-have feature for a future release since order approval is primarily a business concern
Incorrect. Access control over high-value approvals is a core security requirement, not an optional future enhancement to shelve.
Explanation
Security requirements must be expressed as concrete, testable statements early so they can be traced into design and verification.
Example14 · Secure SDLC & Requirements
A telecom operator is launching a new self-service billing portal and wants security embedded across the full delivery lifecycle rather than bolted on at the end. Which sequence of security activities correctly maps to the secure SDLC phases from earliest to latest?
✓Security requirements, threat modeling, secure coding, security testing, secure deployment configuration
Correct. Security requirements are defined first, threat modeling follows design, secure coding applies during build, security testing validates the code, and secure deployment configuration finishes the chain.
・Threat modeling, security requirements, security testing, secure coding, then secure deployment of the hardened portal
Incorrect. Threat modeling depends on design and requirements, so it cannot precede requirements, and testing cannot precede the coding it validates.
・Secure coding, security requirements gathering, threat modeling, deployment hardening, and finally dynamic security testing
Incorrect. Secure coding cannot come before requirements and threat modeling define what must be built and defended against.
・Security testing, secure coding practices, security requirements, threat modeling, deployment
Incorrect. Security testing cannot be the first activity because there is nothing yet built or specified to test against.
Explanation
A secure SDLC front-loads requirements and design-phase threat modeling, then applies secure coding, verification testing, and hardened deployment in order.
Example15 · Secure SDLC & Requirements
During requirements gathering for a telecom operator's customer account API, the product owner lists only features such as viewing usage and paying invoices. As the application security engineer, what is the most appropriate way to capture the security dimension of these requirements?
・Record the functional stories now and schedule a separate penetration test before the API goes live to the public
Incorrect. A late penetration test finds defects but does not define the security the application was supposed to meet.
✓Derive explicit security requirements such as authentication strength, authorization rules, and data protection for each function
Correct. Security requirements must be elicited and documented per function so authentication, authorization, and data protection are specified before design.
・Defer all security decisions until the coding phase so developers can choose the controls that best fit their frameworks
Incorrect. Deferring security to coding leaves controls undefined and inconsistent, defeating the purpose of a requirements phase.
・Assume the API gateway and platform defaults already enforce all necessary security for customer account data
Incorrect. Relying on unverified platform defaults leaves account data protection unspecified and unaccountable.
Explanation
Security requirements should be derived and documented alongside functional requirements so each feature has explicit authentication, authorization, and data-protection expectations.
▶ Try 10 free questions (graded)