Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Free Exam Questions

CAP Exam Questions & Answers

Certified AppSec Practitioner Exam  •  The SecOps Group

60 Questions Updated Sep 2026 99% Pass Rate
Get Full Access

100% money-back guarantee

Sample CAP Questions

Practice with real exam-style questions, each with the verified correct answer and explanation.

Q1 MultipleChoice

Which of the following is NOT a Server-Side attack?

Correct Answer: B
Explanation:

Server-side attacks target vulnerabilities on the server, often involving code execution, data manipulation, or unauthorized access to server resources. Let's evaluate each option:

Option A ('OS Code Injection'): This is a server-side attack where an attacker injects operating system commands (e.g., via system() calls in PHP) to execute arbitrary code on the server, such as rm -rf /.

Option B ('Cross-Site Request Forgery'): CSRF is a client-side attack where an attacker tricks a user's browser into making an unintended request to a server where the user is authenticated (e.g., submitting a form to transfer funds). The attack exploits the client's trust in the user's session, not a server-side vulnerability. Thus, it is not a server-side attack.

Option C ('SQL Injection'): This is a server-side attack where an attacker injects malicious SQL code into a query (e.g., ' OR '1'='1) to manipulate the database, potentially extracting data or modifying records.

Option D ('Directory Traversal Attack'): This is a server-side attack where an attacker manipulates file paths (e.g., ../../etc/passwd) to access unauthorized files on the server outside the intended directory.

The correct answer is B, aligning with the CAP syllabus under 'Client-Side vs. Server-Side Attacks' and 'CSRF Prevention.'

Q2 MultipleChoice

What is the full form of SAML?

Correct Answer: A
Explanation:

SAML (Security Assertion Markup Language) is an open standard for exchanging authentication and authorization data between parties, particularly in the context of single sign-on (SSO). It is based on XML and is widely used to enable secure web-based authentication and authorization across different domains. The correct full form is Security Assertion Markup Language, where 'Assertion' refers to statements about a subject (e.g., identity, attributes), 'Markup' indicates the XML-based structure, and 'Language' denotes the defined syntax.

Option A ('Security Assertion Markup Language'): This is the correct and official full form of SAML as defined by OASIS (Organization for the Advancement of Structured Information Standards).

Option B ('Security Authorization Markup Language'): Incorrect, as 'Authorization' is not part of the acronym; SAML focuses on both authentication and authorization assertions.

Option C ('Security Assertion Management Language'): Incorrect, as 'Management' is not part of the acronym; SAML is about markup, not management.

Option D ('Secure Authentication Markup Language'): Incorrect, as 'Secure' is not part of the acronym, and SAML covers more than just authentication.

The correct answer is A, aligning with the CAP syllabus under 'Authentication and Authorization' and 'Single Sign-On (SSO) Standards.'

Q3 MultipleChoice

Which of the following SSL/TLS protocols are considered to be insecure?

Correct Answer: C
Explanation:

SSL (Secure Sockets Layer) and TLS (Transport Layer Security) are cryptographic protocols used to secure communication over a network. The security of these protocols has evolved over time, with older versions being deprecated due to identified vulnerabilities. SSLv2 and SSLv3 are considered insecure because they are vulnerable to attacks such as POODLE (Padding Oracle On Downgraded Legacy Encryption), which exploits weaknesses in their padding schemes. Similarly, TLSv1.0 and TLSv1.1 are also deemed insecure due to vulnerabilities like BEAST (Browser Exploit Against SSL/TLS) and weak cipher support, and they have been deprecated by modern standards (e.g., PCI DSS). TLSv1.2 and TLSv1.3 are considered secure when properly configured with strong ciphers.

Option A correctly identifies SSLv2 and SSLv3 as insecure, but it omits TLSv1.0 and TLSv1.1. Option B correctly identifies TLSv1.0 and TLSv1.1 as insecure but omits SSLv2 and SSLv3. Option C ('Both A and B') encompasses all insecure protocols (SSLv2, SSLv3, TLSv1.0, and TLSv1.1), making it the most comprehensive and correct answer. Option D is incorrect because it includes TLSv1.2 and TLSv1.3, which are secure when used with modern configurations. This aligns with the CAP syllabus focus on secure communication protocols and vulnerability management.

Q4 MultipleChoice

In the screenshot below, an attacker is attempting to exploit which vulnerability?

POST /dashboard HTTP/1.1

Host: example.com

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) rv:107.0) Gecko/20100101 Firefox/107.0

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8

Accept-Language: en-GB,en;q=0.5

Accept-Encoding: gzip, deflate

Upgrade-Insecure-Requests: 1

Sec-Fetch-Dest: document

Sec-Fetch-Mode: navigate

Sec-Fetch-Site: none

Sec-Fetch-User: ?1

Cookie: JSESSIONID=7576572ce164646de967c759643d53031

Te: trailers

Connection: keep-alive

Content-Type: application/x-www-form-urlencoded

Content-Length: 81

xml_foo=]>&example;

]>&example;

&example;

Project Meeting

changed example

Correct Answer: D
Explanation:

The request is a POST to /dashboard with a payload containing XML data, specifically an xml_foo parameter with a <!DOCTYPE> declaration and an XML entity (<!ENTITY example SYSTEM 'file:///etc/passwd'>). Let's analyze the vulnerability:

The payload defines an XML External Entity (XXE) with <!ENTITY example SYSTEM 'file:///etc/passwd'>, which instructs the XML parser to fetch the contents of /etc/passwd (a sensitive system file) and include it in the &example; reference. The XML then includes <foo>&example;</foo>, which would expand to the contents of /etc/passwd if the parser processes the entity.

This is a classic XML External Entity (XXE) Attack, where an attacker exploits an XML parser's ability to process external entities to access unauthorized resources (e.g., local files, internal network services) or cause denial-of-service. If the application's XML parser is misconfigured to allow external entity resolution, this attack can disclose sensitive data like /etc/passwd.

Option A ('Path Traversal Attack'): Incorrect. Path Traversal involves manipulating file paths (e.g., ../../etc/passwd) to access unauthorized files. While the attack aims to access /etc/passwd, it does so via XML entity resolution, not path traversal.

Option B ('Server Side Template Injection'): Incorrect. SSTI (Server-Side Template Injection) involves injecting template expressions (e.g., {{7*7}}) into a server-side template engine. The payload here is XML, not a template expression, and targets XML parsing, not a template engine.

Option C ('XML Bomb Attack'): Incorrect. An XML Bomb (or Billion Laughs attack) involves recursive entity expansion to cause denial-of-service (e.g., <!ENTITY a '&b;&b;'> <!ENTITY b 'lol'>), leading to exponential growth in memory usage. This payload defines a single external entity to fetch a file, not a recursive expansion, so it's not an XML Bomb.

Option D ('XML External Entity Attack'): Correct, as the payload exploits XXE by defining an external entity to access /etc/passwd.

The correct answer is D, aligning with the CAP syllabus under 'XML External Entity (XXE) Attacks' and 'OWASP Top 10 (A04:2021 - Insecure Design).'

Q5 MultipleChoice

Based on the below HTTP request, which of the following statements is correct?

POST /changepassword HTTP/2

Host: example.com

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0

Sec-Fetch-Dest: document

Sec-Fetch-Mode: navigate

Sec-Fetch-Site: same-origin

Cookie: JSESSIONID=38RB5ECV10785B53AF29816E92E2E50

Content-Length: 95

new_password=usher!@22&confirm_password=usher!@22

Correct Answer: C
Explanation:

The HTTP request is a POST to /changepassword with a session cookie (JSESSIONID) and parameters new_password and confirm_password. Let's evaluate each option:

Option A ('The change password feature does not validate the user'): The request includes a JSESSIONID cookie, which typically indicates that the user is authenticated via a session. There's no evidence that user validation is absent, so this is not correct.

Option B ('The change password feature uses basic authorization'): Basic authorization would involve an Authorization: Basic header with a Base64-encoded username and password, which is not present here. The authentication appears to be session-based (via cookie), not basic auth, so this is incorrect.

Option C ('The change password feature is vulnerable to Cross-Site Request Forgery attack'): Cross-Site Request Forgery (CSRF) occurs when a malicious site tricks a user's browser into making an unintended request to another site where the user is authenticated. This request lacks a CSRF token (e.g., a unique, unpredictable token in the request body or header) to verify the request's legitimacy. The Sec-Fetch-Site: same-origin header indicates the request is currently from the same origin, but this is a browser feature, not a server-side CSRF protection. Without a CSRF token, the endpoint is vulnerable to CSRF, as an attacker could craft a malicious form on another site to submit this request on behalf of the user. This is the correct answer.

Option D ('All of the above'): Since A and B are incorrect, D cannot be correct.

The correct answer is C, aligning with the CAP syllabus under 'Cross-Site Request Forgery (CSRF)' and 'OWASP Top 10 (A08:2021 - Software and Data Integrity Failures).'

Get access to all 60 verified questions with detailed answers.

Unlock All CAP Questions

Frequently Asked Questions

The CAP exam is a certification offered by The SecOps Group that validates expertise in application security practices and principles. It is designed for security professionals who want to demonstrate their knowledge of secure coding, vulnerability assessment, and application security best practices.

While specific prerequisites may vary, candidates typically need practical experience in application security or related IT security roles. The SecOps Group recommends having foundational knowledge of software development and security concepts before attempting the exam.

CAP certifications are typically valid for a set period, usually 2-3 years, after which professionals must renew through continuing education or recertification exams. The exact validity period should be confirmed directly with The SecOps Group.

The exam covers key application security domains including secure coding practices, threat modeling, vulnerability identification, security testing, and remediation strategies. It may also include content on secure software development lifecycle (SDLC) and common application vulnerabilities like the OWASP Top 10.

The SecOps Group typically offers study materials, practice tests, and training courses to help candidates prepare for the CAP exam. Many professionals also benefit from hands-on experience in application security roles and review of industry standards and best practices documentation.
Exam Details
  • Exam CodeCAP
  • VendorThe SecOps Group
  • Total Questions60
  • LanguageEnglish
  • Last UpdatedSep 3, 2026
4.9/5

Pass CAP First Time

Get all 60 exam questions with verified answers and 90-day free updates.

Buy Now & Pass
  • PDF + Practice Test Bundle
  • 90-Day Free Updates
  • 100% Money-Back Guarantee
  • Instant Download
  • 24/7 Customer Support
99% Pass Rate Trusted by 50,000+ IT professionals