Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Exam preparation

The SecOps Group CAP Exam Guide for the Certified Application Security Practitioner

CAP is the The SecOps Group Certified AppSec Practitioner Exam, part of the Certified Application Security Practitioner certification. The official outline has 21 exam topics. 15 free practice questions with explanations are online, and each exam topic below links to the ones written for it.

CAP Exam Details

Exam Code
CAP
Free Practice Questions
15
Full Question Set
60
Exam Topics
21
Last Updated
December 2, 2026
Exam Name
Certified AppSec Practitioner Exam
Question Types
Multiple Choice Questions (MCQs)
Certification
Certified Application Security Practitioner
Difficulty Level
Entry Level
Technologies
Handling XML external entity (XXE) attacksInsecure Direct Object Reference (IDOR)
Job Roles
SecOps Application security engineersApplication DevelopersSOC analysts

CAP Exam Topics and Weights

Input Validation Mechanisms

What this topic covers

Choose finite allowlists that reflect valid business data, rather than trying to block every dangerous character. Apply validation to the actual value the application will use.

Why is an allowlist better than a blacklist for input validation?

An allowlist accepts only values you have defined as valid, so anything unexpected is rejected. A blacklist tries to list dangerous characters, and attackers find encodings or characters you forgot. For a field like country code or order status, a finite list of the real business values is the safest choice.

1 free CAP practice question on Input Validation Mechanisms

Cross-Site Scripting

What this topic covers

Protect displayed notes and other user content with HTML output encoding suited to the output context. This keeps text from being treated as markup or script by a browser.

If user notes display as plain text, what does output encoding still prevent?

Encoding stops the notes from being read as markup or script. HTML output encoding turns characters like angle brackets and quotes into entities, so the browser displays them instead of running them. Encoding must match the context, such as HTML body, attribute or JavaScript.

1 free CAP practice question on Cross-Site Scripting

SQL Injection

What this topic covers

Recognize when untrusted input can alter a database query and use parameterized queries to keep data separate from SQL commands. Avoid building queries by joining user input into SQL text.

XML External Entity Attack

What this topic covers

Configure XML parsers to prevent external resource resolution by disabling external general entities and external DTD loading. This blocks malicious XML from retrieving outside content.

Which XML parser settings stop external entity resolution?

Disable external general entities and disable loading of external DTDs in the XML parser. With external general entities off, an entity declaration cannot make the parser fetch a local file or remote URL. Turning off external DTD loading blocks retrieval of an external DTD file.

1 free CAP practice question on XML External Entity attack

Cross-Site Request Forgery

What this topic covers

Recognize requests that can trigger actions through a victim’s authenticated browser. Protect state changes by checking request intent and relying on secure cookie settings.

Encoding, Encryption and Hashing

What this topic covers

Distinguish reversible encryption from one-way hashing and use encoding only to represent data. Select the right method for the security goal, such as protecting stored passwords with a password hash.

Understanding of OWASP Top 10 Vulnerabilities

What this topic covers

Identify common web application risks, including injection, access control failures, and security misconfiguration. Recognize how these weaknesses can expose data or let attackers perform unauthorized actions.

Security Best Practices and Hardening Mechanisms

Security Best Practices and Hardening Mechanisms

What this topic covers

Apply browser security controls such as the Same Origin Policy and security headers. Configure credentialed CORS with a specific allowed origin rather than a wildcard.

Can a CORS response allow credentials with a wildcard origin?

No, browsers reject a credentialed response that uses a wildcard allowed origin. When cookies or authorization headers are allowed, the server must echo one specific trusted origin in Access-Control-Allow-Origin. A wildcard is only appropriate for public resources that need no credentials.

1 free CAP practice question on Security Best Practices and Hardening Mechanisms

TLS Security

What this topic covers

Check that TLS certificates are configured with the chain clients need to reach a trusted root. Understand how symmetric and asymmetric ciphers support secure connections.

Why can a certificate work in a browser but fail in an API client?

Often the server sends only the leaf certificate and omits the intermediate certificates. Browsers may fetch missing intermediates, but many API clients cannot build a path to a trusted root. Configure the server to send the leaf certificate plus its intermediates so clients can build that path.

1 free CAP practice question on TLS security

Server-Side Request Forgery

What this topic covers

Recognize when an attacker can make a server send requests to unintended destinations. Restrict destinations and validate URLs to protect internal services and resources.

Insecure File Uploads

What this topic covers

Restrict uploads by validating permitted file types and content, and store files so they cannot be executed as code. Prevent uploaded paths or names from exposing protected locations.

Code Injection Vulnerabilities

What this topic covers

Prevent user input from being interpreted as commands by avoiding shell construction. Invoke a fixed executable with separate arguments and allowlist permitted report selections.

What makes separate arguments safer than a concatenated shell command?

Calling a fixed executable with separate argument values skips shell parsing, so metacharacters like semicolons stay plain data. Pair this with an allowlist of permitted report names so users pick only from known options. Concatenating input into a command string lets the shell run extra commands.

1 free CAP practice question on Code Injection Vulnerabilities

Business Logic Flaws

What this topic covers

Find errors in application rules, including races that let concurrent actions break a business invariant. Enforce critical checks and updates safely so the intended outcome cannot be bypassed.

1 free CAP practice question on Business Logic Flaws

Directory Traversal Vulnerabilities

What this topic covers

Resolve and canonicalize requested file paths, then verify each remains inside the approved root. This blocks alternate traversal forms while allowing legitimate nested folders.

What does canonicalizing a path accomplish before serving a file?

Canonicalizing resolves encoded sequences, dot segments and symbolic forms into one absolute path. Then check that this resolved path still starts with the approved root directory. This blocks alternate traversal forms while still allowing legitimate nested folders under that root.

1 free CAP practice question on Directory Traversal Vulnerabilities

Security Misconfigurations

What this topic covers

Spot unsafe application and server settings that expose functionality or data. Harden configurations by restricting access and enabling appropriate security controls.

Information Disclosure

What this topic covers

Identify responses that reveal sensitive data, internal paths, or implementation details. Limit exposed information and ensure errors and endpoints disclose only what callers are authorized to see.

Vulnerable and Outdated Components

What this topic covers

Find dependencies with known vulnerabilities using composition analysis and update to a compatible fixed release. Check the lockfile and verify the vulnerable code path is addressed without breaking the application.

When a library has a known flaw and a fixed release exists, what is the first fix?

Update the dependency to the fixed compatible release and regenerate the lockfile. Then run tests to confirm the application still works and the vulnerable code path is no longer exposed. Patching code around the library is a weaker fix than updating it.

1 free CAP practice question on Vulnerable and Outdated Components

Related Exams

Continue to Free CAP Exam Questions