Certified Security Professional in Artificial Intelligence Exam Prep
Free practice questions

Free CSPAI Practice Questions

10 exam-style questions with answers and explanations, straight from our 1,051-question bank. Tap an answer to check yourself. When you're ready, take the scored version in the free practice test.

Start the free practice test → ★★★★★4.9/5 from 2,400+ candidates · No signup

The CSPAI exam has 50 questions and runs 1 hour.

These 10 free CSPAI questions are organized by exam domain, so you can see how each part of the Certified Security Professional in Artificial Intelligence blueprint is tested. Reveal the answer and explanation under each question.

Domain 1: Evolution and Concepts of AI 10% of exam

Question 1

During pretraining, an LLM learns by predicting the next token in a sequence drawn from a large web corpus that was never manually annotated. Which learning paradigm does this BEST describe?

Show answer & explanation

Correct answer: B - Self-supervised learning, because the labels come from the data itself

Question 2

A CISO argues that replacing a hosted API model with a self-hosted open-weight model will straightforwardly improve the organisation's security posture. Which statement is the MOST accurate response?

Show answer & explanation

Correct answer: D - Incorrect, because it removes third-party egress but shifts model and infrastructure risk in-house

Domain 2: Concept behind Developing GenAI & Training of LLM Models 29% of exam

Question 3

Why must a transformer add positional encoding to its input embeddings?

Show answer & explanation

Correct answer: A - Self-attention is order-agnostic and would otherwise treat the input as an unordered set

Question 4

In scaled dot-product attention, the product of the query and key matrices is divided by the square root of the key dimension. What is the PRIMARY purpose of this scaling?

Show answer & explanation

Correct answer: C - To keep the softmax out of saturation, where gradients vanish

Question 5

A decoder-only model must not condition its prediction for position t on any token after position t. Which mechanism enforces this constraint?

Show answer & explanation

Correct answer: A - Causal masking of the attention scores

Question 6

In the standard LLM development pipeline, which phase immediately follows pretraining?

Show answer & explanation

Correct answer: D - Supervised fine-tuning on instruction-response pairs

Question 7

A team fine-tunes a safety-aligned commercial model on a benign, proprietary dataset of customer-support transcripts. No adversarial or harmful content is present in the dataset. What is the MOST significant security concern?

Show answer & explanation

Correct answer: A - The fine-tuning process may degrade the model's existing safety alignment

Question 8

Which statement correctly describes how LoRA adapts a pretrained model to a new domain?

Show answer & explanation

Correct answer: C - It freezes the base weights and trains small low-rank adapter matrices alongside them

Domain 3: LLM Usage within Applications 10% of exam

Question 9

An internal RAG assistant indexes a corporate wiki. An attacker with wiki edit rights embeds hidden white-on-white text instructing the assistant to append confidential figures to every summary. The assistant later retrieves that page and complies. How is this attack BEST classified?

Show answer & explanation

Correct answer: C - Indirect prompt injection, delivered through retrieved content at inference time

Question 10

A multi-tenant RAG platform must guarantee that Tenant A can never receive content sourced from Tenant B's documents. Where should this authorisation be enforced?

Show answer & explanation

Correct answer: B - At retrieval time, so that only documents the tenant is entitled to ever enter the context

The rest of the CSPAI blueprint

The CSPAI exam also covers these domains. Drill them in the full free practice test:

That's 10 of 1,051

The full bank has 1,041 more CSPAI questions with explanations.

Continue in the free practice test →

View plans