CAISP Domain 1: AI Systems and Attack Surface
30 free practice questions for AI Systems and Attack Surface in the Certified AI Security Professional exam. Try each question first, then open "Show answer" for the correct option and explanation.
AI Systems and Attack Surface practice questions
-
Question 1. In a retrieval-augmented generation (RAG) system, what does the retrieval step do?
Show answer
Answer: D. Fetches relevant documents to add to the model's prompt
RAG retrieves relevant content (often from a vector database) and inserts it into the prompt so the model can ground its answer, without changing the model's weights.
-
Question 2. Why does a RAG pipeline expand an LLM application's attack surface?
Show answer
Answer: C. Retrieved content enters the prompt and can carry injected instructions
Anything retrieved becomes model input. Poisoned or attacker-controlled documents can inject instructions or misinformation (indirect prompt injection).
-
Question 3. What is an embedding in the context of LLM applications?
Show answer
Answer: D. A numeric vector representing the meaning of text
Embeddings map text (or other data) to vectors so that semantically similar items are close together, enabling similarity search in vector databases.
-
Question 4. What makes LLM agents that can call tools and APIs riskier than a chat-only model?
Show answer
Answer: C. Model output can trigger real actions in other systems
When outputs drive tool calls (sending email, running code, changing records), a manipulated model can cause real-world impact, so permissions and approvals matter.
-
Question 5. Why can't an LLM reliably separate trusted instructions from untrusted data in its prompt?
Show answer
Answer: D. Instructions and data share one natural-language input channel
Unlike SQL with parameterized queries, LLMs have no hard boundary between instructions and data. This is the root cause of prompt injection.
-
Question 6. What is a system prompt?
Show answer
Answer: D. Developer-provided instructions that set the model's behavior
System prompts define role, rules, and context. They should not be treated as a security boundary or a place to store secrets.
-
Question 7. Which statement about LLM output is MOST accurate from a security perspective?
Show answer
Answer: C. It should be treated as untrusted input by downstream systems
Model output can be influenced by attackers, so it must be validated, encoded, or sandboxed before being rendered, executed, or passed to other systems.
-
Question 8. What is the main security concern with fine-tuning a model on internal company documents?
Show answer
Answer: C. The model may memorize and later reveal sensitive training data
Models can memorize and regurgitate training data. Sensitive data should be minimized, filtered, or de-identified before training, and outputs monitored.
-
Question 9. In a multi-tenant RAG application, what is the MOST important control for the vector database?
Show answer
Answer: A. Enforcing per-user or per-tenant access filters on retrieval
Retrieval must respect the requesting user's permissions. Otherwise the model may surface documents the user isn't authorized to see. The model itself can't enforce access control.
-
Question 10. An attacker sends extremely long or complex prompts to drive up an AI service's compute costs and slow it for others. What is this called?
Show answer
Answer: C. Model denial of service or unbounded consumption
Resource-exhausting inputs cause denial of service and "denial of wallet". Mitigations include input limits, rate limiting, quotas, and timeouts.
-
Question 11. What is a model's context window?
Show answer
Answer: B. The maximum amount of text (tokens) it can consider at once
Everything the model uses to generate a response, including system prompt, history, and retrieved data, must fit in the context window.
-
Question 12. What does the temperature setting control in an LLM?
Show answer
Answer: A. The randomness of token selection in generated output
Lower temperature makes output more deterministic. Higher temperature increases variety and unpredictability.
-
Question 13. What is the key difference between fine-tuning and RAG?
Show answer
Answer: B. Fine-tuning changes model weights; RAG adds data to the prompt at runtime
This affects security: fine-tuned data can be memorized in weights, while RAG data depends on retrieval access controls.
-
Question 14. What is the Model Context Protocol (MCP) primarily used for?
Show answer
Answer: A. Connecting LLM applications to external tools and data sources
MCP standardizes how assistants discover and call tools. Each connected server expands the attack surface and needs trust and permission controls.
-
Question 15. An agent connects to a third-party MCP server whose tool descriptions contain hidden instructions. What is this risk called?
Show answer
Answer: D. Tool poisoning through malicious tool metadata
Tool descriptions enter the model's context, so malicious metadata can steer the agent. Vet and pin trusted tool servers.
-
Question 16. What is function calling in LLM applications?
Show answer
Answer: D. The model outputs structured requests that the app executes as tool calls
The application, not the model, executes functions. It must validate parameters and enforce authorization.
-
Question 17. What is the security purpose of an LLM gateway placed between applications and model providers?
Show answer
Answer: D. Centralize authentication, logging, rate limits, and policy checks
Gateways provide a single control point for monitoring, quotas, data protection, and provider access keys.
-
Question 18. What is the difference between open-weight and closed (API-only) models from a security perspective?
Show answer
Answer: A. Open weights can be inspected and self-hosted but also studied by attackers
Open weights give control and transparency. They also enable white-box attacks and require self-managed security.
-
Question 19. In a multi-agent system, why should each agent have its own scoped permissions?
Show answer
Answer: B. A compromised agent then can't abuse other agents' capabilities
Least privilege per agent limits the blast radius when one agent is manipulated.
-
Question 20. What is a 'confused deputy' problem in an LLM agent context?
Show answer
Answer: D. A privileged agent is tricked into acting on an attacker's behalf
Agents with more privileges than users can be manipulated into performing actions the attacker couldn't do directly.
-
Question 21. Why is an internally exposed model inference endpoint without authentication a risk?
Show answer
Answer: C. Anyone on the network could query, abuse, or extract it
Inference endpoints need authentication, authorization, and rate limiting like any other API.
-
Question 22. What is a model registry used for in MLOps?
Show answer
Answer: A. Storing, versioning, and controlling access to approved models
Registries provide lineage and approval workflows, so they are a key integrity control point.
-
Question 23. Why can an LLM hallucinate plausible but false information?
Show answer
Answer: B. It generates statistically likely text rather than verifying facts
LLMs predict tokens. Grounding, verification, and user awareness reduce reliance on unverified output.
-
Question 24. Which component of an AI system is the MOST valuable target for an attacker seeking intellectual property?
Show answer
Answer: A. Trained model weights
Weights embody the investment in data and training. Their theft enables copying, misuse, or white-box attacks.
-
Question 25. What is transfer learning?
Show answer
Answer: A. Reusing a model trained on one task as a starting point for another
Fine-tuning pretrained models is common. It also means base-model weaknesses or backdoors can be inherited.
-
Question 26. Which is an example of an AI system's inference-time attack surface?
Show answer
Answer: D. User prompts and inputs sent to the deployed model
Inference-time attacks (injection, evasion, extraction) target the deployed model through its inputs and outputs.
-
Question 27. Which is an example of an AI system's training-time attack surface?
Show answer
Answer: D. The datasets and pipelines used to train or fine-tune it
Training-time attacks such as poisoning and backdoors corrupt data or training processes.
-
Question 28. Why is logging full prompts and responses for an LLM application a double-edged control?
Show answer
Answer: B. Logs aid investigations but may capture sensitive data
Logs are essential for detecting abuse, but they must be protected, minimized, or redacted to avoid creating a new data exposure.
-
Question 29. What is the purpose of structured output (e.g., a JSON schema) in LLM applications?
Show answer
Answer: A. Constrain responses to a format that code can validate
Schema-constrained output makes validation easier and reduces the risk of unexpected content reaching other systems.
-
Question 30. What is an embedding inversion attack?
Show answer
Answer: C. Reconstructing original text from its vector embedding
Embeddings can leak information about the source text, so vector stores containing sensitive data need protection.
CAISP is a certification offered by Practical DevSecOps. These questions are original study material, not questions from the real exam.