AI Security Practice Test

Domain 4: Secure AI Architecture, Engineering, and Identity and Access Management (IAM)

18% of the ISC2 AI Security pilot exam, about 29 of 160 items. 7 tasks, 65 questions in the practice bank.

Practice this domain now: 7 free questions here, 65 in the full bank.

Start Domain 4 questions

4.1Apply AI Architecture and Secure Design Principles

Outline topics, 12 questions in the bank:

  • AI-specific security strategies (e.g., Zero Trust (ZT), Defense-in-Depth (DiD), Privacy-by-Design, Secure Defaults)
  • AI threat modeling across architectural components (e.g., Retrieval Augmented Generation (RAG), vector databases, inference)
  • Architectural trade-offs (e.g., latency vs. explainability vs. cost)
  • Build vs. buy evaluations (e.g., hosted vs. self-managed)
  • Secure integration for tools, Application Programming Interfaces (API), and plugins (e.g., Model Context Protocol (MCP), Agent-to-Agent (A2A))
NIST diagram of retrieval-augmented generation: system, user and assistant messages plus documents retrieved from a vector database are all assembled into the LLM input
How retrieval-augmented generation builds the model's context: retrieved documents enter the same input as the system prompt and the user's messages, which is why indirect prompt injection works. Source: NIST AI 100-2e2025, Figure 6.

What do Zero Trust, defense in depth, privacy by design and secure defaults each mean for an AI system?

StrategyApplied to AI
Zero Trust (SP 800-207)Network location grants nothing: access to the model registry, vector store or inference API is decided per session on identity, device posture and context, with least privilege.
Defense in depthThe system prompt is one layer at most. Refund caps and data scoping are enforced in the API the agent calls; OWASP Excessive Agency calls this complete mediation: authorization in logic, not left to the LLM.
Privacy by designSend the vendor only what the task needs: redact or pseudonymise identifiers before claim text leaves the organisation.
Secure defaultsShip narrow sharing, connectors off until an admin enables them and bounded retention; widening is a deliberate choice (SP 800-218A keeps the secure-by-default practice).

Where does a RAG threat model find the biggest risks?

At the trust boundaries of the index and in the identities of each tier. Whatever an outsider can put into the corpus can become instructions or misleading context: OWASP's 2026 Vector and Embedding Weaknesses entry recommends stripping zero-width characters, white-on-white text and homoglyphs before embedding, tracking provenance per embedding and segregating mixed-trust content into separate indexes. Stored embeddings can be inverted to recover source text, so the vector store and its backups get the classification of the source documents. Scope identities per component: an internet-facing inference service that can also read training data and write to the registry turns one compromise into three.

How should exam questions on architectural trade-offs be resolved?

From the actual scope of each requirement. The AI RMF notes that trustworthiness characteristics involve trade-offs, such as accuracy versus interpretability, resolved in context. If a 40 ms fraud model must explain only declined transactions, keep the fast model inline and compute explanations asynchronously for declines. Build versus buy works the same way: list the hard constraints (accredited environment, no vendor access to prompts, control of model changes) first; if only self-hosting an open-weight model satisfies them, accept the duties that come with it (patching, weight protection, monitoring).

What do MCP and A2A require for secure tool and agent integration?

  • MCP tools: the MCP specification says tools represent arbitrary code execution, tool descriptions and annotations are untrusted unless from a trusted server, and users must consent to operations. Pin approved tool definitions and re-review any change (a "rug pull").
  • MCP tokens: servers must validate that tokens were issued for them as audience and must not accept or transit any other tokens (authorization spec). Token passthrough to a downstream API is forbidden; the server obtains its own token.
  • A2A credentials: agents must receive in-task credentials out of band unless an in-band mechanism was negotiated, because in-band exchange exposes credentials to every agent in a chain (A2A specification). Agent Cards may be signed with JWS so clients can verify the provider.

Where candidates slip

  • Treating a system-prompt rule ("never refund more than $200") as a control: enforce limits in the downstream API.
  • Letting an MCP server reuse the caller's token against a downstream API: that is token passthrough, which the spec forbids.
  • Calling a vector store "only embeddings" and protecting it below the source data: inversion recovers text.
  • Swapping to a slower interpretable model for every transaction when the explanation requirement covers only a subset.

4.2Architect Secure AI Infrastructure and Platforms

Outline topics, 10 questions in the bank:

  • Hardening of cloud, on-premises, and hybrid AI deployments
  • Isolation and sandboxing for AI training and inference workloads
  • Availability controls against resource exhaustion (e.g., rate limiting, compute throttling)
  • Isolated accelerator capacity
  • Physical and environmental security (e.g., data center power, cooling, rack security, fire suppression)

What does hardening an AI serving stack look like in practice?

Restore safe defaults, cut exposure, then authenticate. Many AI tools assume a trusted network: Ollama binds to 127.0.0.1:11434 by default, so an instance rebound to 0.0.0.0 on a cloud VM is an open, unauthenticated model API; the fix is the loopback binding plus an authenticating proxy on a private network. Ray's security page says Ray faithfully executes whatever code it is given, that its components belong in a controlled, isolated network, and that TLS is not a replacement for network isolation. For weights, shrink the attack surface first: RAND's model-weights study (38 attack vectors, five security levels) recommends centralizing copies in a few access-controlled, monitored systems and reducing who can reach them.

Which isolation boundary is strong enough for which workload?

NeedBoundary that holdsNot a boundary
Teams with different trust levels on RaySeparate, isolated Ray clusters: Ray "doesn't attempt to enforce isolation" between jobs in one clusterSeparate jobs or namespaces in a shared cluster
Running AI-generated codeEphemeral sandbox with a user-space kernel such as gVisor or a microVM, no credentials, no egress, resource limitsAn ordinary container with the service's credentials
Several tenants on one GPUMulti-Instance GPU, which provides memory and fault isolation at the hardware layer (NVIDIA)Time-slicing, which shares a GPU without memory or fault isolation

For "isolated accelerator capacity" questions, the answer is dedicated or hardware-partitioned GPUs for sensitive or multi-tenant inference, not a utilisation feature.

How do you stop resource exhaustion on AI endpoints?

Tie limits to identities and to consumption. Per-IP request limits fail when attackers rotate addresses; OWASP Unbounded Consumption recommends quotas per source entity measured in tokens and estimated cost, input size validation and non-overridable spending caps that halt inference. On a shared Kubernetes GPU cluster, resource quotas on nvidia.com/gpu per training namespace plus pod priority and preemption for inference keep ad-hoc fine-tuning from starving production; restrict who may assign high priority.

Why are physical controls different for AI data halls?

Density changes the failure modes. Risk Logic's engineering review of high-density sites covers localized coolant releases from direct-to-chip liquid cooling, lithium-ion UPS thermal runaway and common-mode control failures (a shared PLC or control power supply can defeat physically separate N+1 cooling loops). Design for the credible single failure: leak detection that isolates the failed loop with redundant CDU capacity for the rest. After a retrofit with containment and higher fan speeds, functionally test air-sampling smoke detection as installed. In shared colocation, add rack-level controls (locked cabinets, attributed access, cameras) and encrypt drives with keys held off the server so stolen media are useless.

Where candidates slip

  • Adding TLS to an exposed Ray or Ollama endpoint and calling it fixed: TLS is not network isolation or authentication.
  • Choosing GPU time-slicing for tenant separation: only MIG (or dedicated GPUs) gives memory and fault isolation.
  • Answering per-IP rate limits for denial of wallet: bind quotas and spending caps to accountable accounts.
  • Accepting a fire or cooling design "as drawn" after a high-density retrofit without functional testing.

4.3Secure Data and Model Deployment Pipelines (e.g., MLOps/LLMOps)

Outline topics, 9 questions in the bank:

  • Secure CI/CD and model deployment pipelines (e.g., packaging, containerization)
  • Integrity and confidentiality controls for data ingestion and transformation
  • Lineage tracking for fine-tuning
  • Validation checkpoints and pipeline gating patterns
  • Data unlearning capabilities for trained artifacts

Which pipeline controls remove whole attack classes rather than catching instances?

  • Weights-only formats. PyTorch's default .pt files use pickle, and loading pickle can execute arbitrary code (Hugging Face). Require safetensors and fail the build on pickle artifacts; SP 800-218A suggests secure model serialization for this reason.
  • Digests and signatures. Image tags can be moved; digests are immutable (Kubernetes). Reference containers by digest and admit only images signed by the release pipeline's identity, for example with Sigstore's policy-controller.
  • Separation of build and release. If data scientists can push straight into the production registry, remove that write path; promotion happens only through a pipeline that runs the required tests and records an independent approval.

How do you protect data as it is ingested and transformed?

Strip what later stages do not need, as early as possible: mask or tokenize identifiers inside the transformation job so the staging bucket and external labellers never hold them. For integrity, the joint AI Data Security guidance asks for a cryptographically signed, append-only provenance ledger in which each revision is signed by whoever made it and augmented data is stored as a new entry with documented changes. Put a quarantine checkpoint between ingestion and training: provenance, anomaly and source-diversity checks before admission. A burst of "helpful" ratings from new accounts should be stopped at the gate, because poisoned data is far cheaper to reject than to unlearn.

What must fine-tuning lineage record?

Everything needed to reproduce and audit the artifact: base model revision and digest, dataset versions, code commit and hyperparameters. A LoRA adapter is meaningless without the exact base weights it modifies, so pulling the base model by repository name without pinning breaks traceability. SP 800-218A asks you to track the provenance of models and their derivatives and to track models trained on sensitive data such as PHI, deciding whether access should be limited to people already authorized for that data. Lineage is what lets the dataset's access policy follow it into the model.

What should a validation gate check before promotion?

The metrics that matter for safety, not one aggregate score. An overall quality score can rise while refusal behaviour or accuracy for one user segment falls. Gate on security and safety test suites, per-segment thresholds and a no-regression rule against production, with human approval above defined risk thresholds.

Exact or approximate unlearning?

NIST AI 100-2 E2025 describes exact unlearning as retraining from scratch or from a checkpoint and approximate unlearning as updating parameters to remove the records' influence; exact methods give stronger privacy at higher compute cost. When a contract or regulator demands the strongest assurance, retrain from the pre-inclusion checkpoint and record the exclusion in lineage. When erasure requests arrive in volume, design for them before training: SISA training (sharded, isolated, sliced, aggregated) confines each record to one shard, so an erasure retrains one shard instead of the whole model.

Where candidates slip

  • Adding a pickle scanner when the question asks for the BEST pipeline fix: banning pickle formats removes the vector.
  • Pinning container images by tag such as stable and believing the artifact is fixed.
  • Choosing approximate unlearning when the stem demands the strongest, defensible removal guarantee.
  • Promoting on an aggregate benchmark gain while a safety or subgroup metric regressed.

4.4Design and Implement AI Guardrails and Controls

Outline topics, 8 questions in the bank:

  • AI input/output handling (e.g., prompt sanitization, content filtering, context boundary validation)
  • Architectural guardrails for autonomous AI behavior (e.g., harness, orchestration)
  • Functional, performance, and load testing
  • Stress testing and exception handling validation

Which input controls actually reduce prompt injection, and what are their limits?

ControlWhat it doesLimit
CanonicalisationStrip tag-block (U+E0000 to U+E007F), variation-selector and zero-width characters at every ingest and render boundaryDoes nothing against visible-text payloads
Spotlighting / provenance-labelled channelsDelimit, datamark or encode untrusted content so the model can tell data from instructions (Hines et al.)Works in non-adaptive tests; attackers who know the marking can mimic it
Context boundary validationAuthorise what enters the context window: tenant scoping inside the vector query, derived server-side from the sessionNone for the authorisation itself; it does not stop injected text the user is allowed to see

OWASP's 2026 Prompt Injection entry says to apply controls as defense in depth because no single control is sufficient: some reduce injection success, others bound the blast radius once it succeeds, and only the second kind survive adaptive attackers.

Where should output handling sit?

At every sink that can act on model output. A Markdown renderer that auto-loads images will send retrieved data to an attacker's URL in the query string with no script involved; disable auto-rendering of images and link previews or fetch only from allow-listed origins through a proxy (Improper Output Handling). The same logic applies to shells, SQL and terminals: treat output as untrusted input to the next system.

What is an architectural guardrail for an autonomous agent?

Deterministic enforcement outside the model, in the harness or orchestration layer. The OWASP Agentic Top 10 describes a policy enforcement point ("intent gate") that treats planner output as untrusted and validates intent and arguments before any tool runs. A second LLM acting as judge is probabilistic and can be manipulated by the same injected content. Capability design matters as much: OWASP adopts the Rule of Two, so an agent that combines untrusted input, sensitive data and outbound communication or state change needs per-action human approval, or one of the three legs removed.

How should AI systems be load, stress and exception tested?

  • Load: replay realistic prompt and answer lengths at expected concurrency through the full path (input guardrail, retrieval, model, output filter), tracking latency percentiles and tokens; request counts alone mislead because capacity and cost follow tokens.
  • Exceptions: when the output safety service times out, the handler must fail closed with a safe fallback message and log the event (NIST SP 800-53 SC-24, fail in known state). A medication chatbot that returns unscreened answers on timeout has failed open.
  • Adversarial: OWASP rejects static-benchmark claims: it cites research where static attack success was near zero but adaptive attacks exceeded 90% against most of 12 recent defenses. Red-team with testers who know the defence, against the deployed agent.

Where candidates slip

  • Accepting a vendor's low attack-success rate on a static benchmark as proof a filter is a primary control.
  • Letting a guardrail failure (timeout, error) pass output through unscreened: fail closed where safety is at stake.
  • Asking the model to enforce tenant or permission filters described in the prompt instead of scoping the retrieval query.
  • Picking an LLM-as-judge over a deterministic policy check when the rule must always hold.

4.5Implement AI Identification and Authentication Strategies

Outline topics, 8 questions in the bank:

  • Classification of human vs. non-human identities (e.g., workloads, agents, services, tools)
  • Identity architectures for non-repudiation and verified accountability
  • Machine-to-Machine (M2M) authentication protocols and API tokens
  • Federated identities, Multi-Factor Authentication (MFA), and Single Sign-On (SSO)
  • Secrets and key management for AI platforms

Human or non-human identity: how should agents be classified?

As non-human identities in their own right, each with an accountable human owner. Workloads, services, tools and agents all authenticate and act, but an agent that runs on a developer's personal token is attributed to that person and keeps working after they leave. The OWASP Agentic Top 10 (Identity and Privilege Abuse) calls this the attribution gap: without a distinct, governed identity, true least privilege cannot be enforced. Register every agent as its own identity with short-lived credentials and a named sponsor; the OWASP Non-Human Identities Top 10 lists improper offboarding as its first risk for the same reason.

How do you prove both who asked and which agent acted?

Use delegation, not impersonation. RFC 8693 (OAuth 2.0 Token Exchange) separates the two: under impersonation the actor is indistinguishable from the subject; under delegation the token names the user as subject and the agent in the act (actor) claim, and a may_act claim lets the authorization server check that this agent may act for that user. For non-repudiation of high-value actions such as trade instructions, give each agent its own signing key held in an HSM-backed KMS and let the orchestrator sign for the authenticated agent: OWASP ASI10 says keys must never be directly available to agents.

Which machine-to-machine credential resists theft and replay?

OptionPropertyWhen it is the answer
Bearer access tokenAnyone holding a copy can use itRarely the BEST answer once theft is in the stem
mTLS certificate-bound token (RFC 8705)Usable only by the holder of the matching private keyA token copy has leaked into logs and must be useless
SPIFFE X.509-SVIDShort-lived, auto-rotated workload certificate for mutual TLSService-to-service with end-to-end TLS; SPIFFE advises X.509-SVIDs whenever possible because tokens can be replayed
JWT-SVIDSigned bearer tokenAn L7 proxy or load balancer breaks end-to-end mTLS
OIDC workload federationCI job exchanges a signed identity token for a short-lived cloud tokenRemoving stored cloud keys from pipelines (GitHub Actions OIDC)

Where do federation, SSO and MFA fit for AI services?

Bring every AI SaaS into the enterprise identity lifecycle: federate sign-in through the corporate IdP (SP 800-63C) so its MFA and conditional access apply, and use SCIM (RFC 7644) so disabling a leaver removes access automatically. For administrators of ML platforms, require phishing-resistant authenticators: SP 800-63B-4 says OTP and out-of-band authenticators are not phishing-resistant because their output is not bound to the session, while WebAuthn binds the response to the legitimate domain. Secrets that must remain belong in a secrets manager with rotation; the preferred move is to replace them with federated, short-lived credentials.

Where candidates slip

  • Fixing shared agent credentials by "rotating the developer's token more often": the agent still has no identity of its own.
  • Choosing impersonation (or a shared service account) when the requirement is to record both the user and the acting agent.
  • Picking JWT-SVIDs or bearer tokens when end-to-end mTLS is available and replay is the concern.
  • Treating SMS or push-approval MFA as phishing-resistant against a real-time relay.

4.6Design and Enforce AI Authorization and Access Controls

Outline topics, 10 questions in the bank:

  • Principle of Least Privilege (PoLP) and Separation of Duties (SoD) across AI models and agentic workflows
  • Authorization methodologies and Just-in-Time (JIT) access (e.g., RBAC, ABAC, PBAC)
  • Execution boundaries and API scope limitations
  • Prevention of excessive agency, over-delegation, and lateral movement by autonomous Agents

What does least privilege look like for an agent and its tools?

Remove capabilities before restricting their use. OWASP's 2026 Excessive Agency entry names three root causes: excessive functionality, excessive permissions and excessive autonomy. A mail summariser needs a read-only connector with a read-only scope, so send, delete and forward simply do not exist for an injected email to trigger. A document assistant should call the repository with the signed-in user's delegated, minimally scoped credentials rather than one generic high-privileged identity, so the repository's own permissions decide what each user sees. OWASP lists logging and rate limiting as measures that limit damage but do not prevent excessive agency.

RBAC, ABAC, PBAC or JIT: which fits the scenario?

ModelChoose it when
RBACAccess follows stable job functions; breaks down into role explosion when rules depend on relationships
ABAC (SP 800-162)Decisions depend on attributes of subject, object, operation and environment: care-team assignment, facility, shift, purpose. Evaluate per request.
PBACThose rules are centralised in a policy engine (PDP) that every enforcement point consults, which is how per-action agent checks are usually built
JIT accessEngineers or agents need elevated rights occasionally: time-bound elevation on request with approval, automatic expiry and logging, in place of standing admin rights (SP 800-53 AC-2(6), AC-6(9))

How do delegation chains go wrong between agents?

The OWASP Agentic Top 10 (ASI03) names the patterns:

  • Un-scoped privilege inheritance: an orchestrator passes its full token to a narrow sub-agent. Fix: per-task, short-lived tokens down-scoped through token exchange.
  • Cross-agent trust exploitation (confused deputy): a payments agent acts on a request from an email-triage agent because it came from inside. Fix: re-verify each privileged step with a central policy engine against the originating human's intent.
  • Time-of-check to time-of-use: approval limits checked at the start of a workflow, then a long-lived token carries on after the requester's limit is cut. Fix: per-action authorization at the moment of execution.

How are separation of duties and execution boundaries applied to agents?

An agent is a principal, so SoD (SP 800-53 AC-5) applies: an AP agent that extracts invoices, creates payments and marks them approved must be split so that approval sits with a different identity the entry agent cannot steer. Scale human oversight to consequence: OWASP's example lets a chatbot auto-process a refund as store credit (recoverable) while an external payout goes to human approval. Execution boundaries must hold whatever instruction gets through: run tools in a sandbox whose egress, including DNS, is denied except to an allow-list, since "safe" tools such as nslookup can exfiltrate data.

Where candidates slip

  • Answering "add logging and alerts" to excessive agency: OWASP says monitoring limits damage but does not prevent it.
  • Trusting a request because it came from another internal agent: that is the confused-deputy pattern.
  • Checking authorization only at workflow start and letting a long-lived token carry the rest (TOCTOU).
  • Using RBAC for rules that depend on patient relationship, shift or purpose: that is an ABAC/PBAC decision.

4.7Manage Identity Lifecycle and Auditing

Outline topics, 8 questions in the bank:

  • AI identity inventories (e.g., human, non-human)
  • Provisioning and deprovisioning transitions
  • Periodic access reviews and Identity Security Posture Management (ISPM)
  • Audit of AI resource utilization (e.g., token accounting, rate limits, session time-outs)

What belongs in an AI identity inventory?

Every identity that can act, human and non-human, on every platform, with owner, purpose and privileges. The corporate directory is not the inventory: agents often authenticate with API keys, OAuth clients, cloud roles and personal tokens that live in SaaS tools and cloud accounts, not in the directory. An inventory comes FIRST because identities you have not found cannot be reviewed, scoped or deprovisioned. For each entry record the accountable human sponsor, what the identity is for, where its credentials live and what it can reach. The OWASP Non-Human Identities Top 10 recommends unique NHIs per application or service; one organisation-wide LLM key shared by 14 apps makes both breach response and cost attribution impossible.

What does deprovisioning an agent actually involve?

Revoking its credentials and grants, not deleting its code. Deleting the container and the wiki entry leaves the OAuth client, refresh tokens, API keys and role assignments usable. OWASP's NHI list puts improper offboarding first: NHIs stay active after the service goes offline or the owner leaves ("orphaned"). The transition checklist is: revoke secrets and tokens at the issuer, remove grants and consents, disable the account (SP 800-53 AC-2(3) covers disabling accounts that have expired, are inactive or are no longer associated with a user or individual), reassign or retire owned resources, and record the change in the inventory. Ownership transfers count too: when a sponsor leaves, the agent needs a new sponsor or decommissioning.

How should access reviews and ISPM findings be handled?

By blast radius. An identity security posture management tool will surface many findings at once: unused admin roles on agents, stale keys, ownerless service accounts, humans signing in as service accounts. Start with unused privileged access on identities that reach sensitive data (AC-6(7) asks for privileges to be reviewed and unneeded ones removed), and recertify or retire identities without a valid owner. When reviewers find analysts using a pipeline's service account interactively, give the analysts properly scoped human identities and block interactive sign-in for the service account: human use of NHI makes human actions indistinguishable from automation.

What should resource-utilization auditing capture, and what should enforce it?

  • Token accounting per identity: route calls through a gateway that records tokens and cost per application and agent key, so quotas per API key, user and team (OWASP Unbounded Consumption) are enforceable.
  • Hard limits for agents: OWASP's agentic circuit breakers are step, recursion depth, time and per-run cost ceilings, and spending caps that halt inference rather than alert.
  • Session time-outs: idle and absolute time-outs that revoke tokens and require re-authentication before an AI assistant can act with a user's authority again (SP 800-53 AC-12).

Where candidates slip

  • Starting with access reviews or ISPM tuning before an inventory exists: you cannot review identities you have not found.
  • Treating a deleted container or removed registry entry as deprovisioning while tokens and grants remain valid.
  • Fixing a runaway agent with a budget alert email: alerts wait for a human; circuit breakers and hard caps stop the run.
  • Letting humans share a service account "because the pipeline already has the access": it destroys accountability.

Free Domain 4 questions

From the practice bank, with answers. In the practice test you get them one at a time with your score.

Question 1, Domain 4, task 4.1 Apply AI Architecture and Secure Design Principles

A pharmaceutical company keeps its proprietary fine-tuned model weights in an internal model registry. Any device on the corporate network or VPN can reach the registry, and data scientists authenticate with long-lived personal access tokens. A review finds that several contractors connect over the VPN from unmanaged personal laptops, and one token was found in a public code repository last month. The architect must redesign registry access using Zero Trust principles. Which change BEST reflects those principles?

  1. Place the registry on a dedicated VLAN that is reachable only from the data science subnet and the corporate VPN address pool
  2. Encrypt the stored weights with a customer-managed key and shorten the lifetime of personal access tokens to 30 days
  3. Evaluate each registry session against user identity, device posture and context, granting only the access the task needs
  4. Require contractors to sign an updated acceptable-use agreement and complete annual training on handling model artifacts
Show answer and explanation

Answer: C. NIST SP 800-207 states that network location alone does not imply trust, that access to each resource is granted per session with least privilege, and that access is decided by dynamic policy that includes the observable state of the requesting asset. Evaluating identity and device posture on every session means neither an unmanaged laptop on the VPN nor a leaked token is enough on its own to reach the weights.

Why the other options are not the best answer:

  • A. Segmenting by subnet and VPN pool still grants trust based on network location, which SP 800-207 rejects, and the unmanaged laptops are already on the VPN.
  • B. Encryption at rest and shorter token lifetimes are useful hardening, but a valid token presented from an unmanaged device would still be accepted without any posture or context check.
  • D. Agreements and training do not change how access decisions are made and would not stop a leaked token from being used.

Exam thinking: Zero Trust removes implicit trust from network location; each session is evaluated on identity, asset state and context.

Source: NIST SP 800-207, Zero Trust Architecture

Question 2, Domain 4, task 4.2 Architect Secure AI Infrastructure and Platforms

A bank retrofitted part of its data center for GPU inference servers, adding hot-aisle containment, higher fan speeds and new overhead busways. Facilities updated the drawings to relocate the air-sampling smoke detection points and confirmed that the revised design is code-compliant on paper. The CISO, who is accountable for the availability of the AI services hosted there, asks what assurance is still missing. Which action BEST provides it?

  1. Obtain listing certificates for the detectors, sampling pipework and releasing panel from the installation vendor
  2. Replace the pre-action sprinklers with a clean-agent system so that the GPU servers are never exposed to water
  3. Run a tabletop exercise in which operations staff walk through a data-hall fire
  4. Functionally test the air-sampling detection as now installed, verifying transport time and alarms
Show answer and explanation

Answer: D. Higher fan speeds and new containment can pull smoke away from sampling points, so a design that complies on paper may not detect a fire as installed. Loss-prevention guidance for high-density retrofits recommends functionally testing air-sampling detection with the current airflow and containment in service, verifying sampling coverage, transport time, alarm thresholds and alarm transmission.

Why the other options are not the best answer:

  • A. Listings show the components are approved, not that the installed arrangement detects smoke under the new airflow.
  • B. Changing the suppression agent is a major design decision that does not answer whether a fire is detected in time.
  • C. A tabletop tests people and procedures, not whether the detection system works in the altered hall.

Exam thinking: Verify controls as installed and operated, not as drawn.

Source: Risk Logic, High-Density Data Center Risk: Liquid Cooling, Li-ion UPS & On-Site Power

Question 3, Domain 4, task 4.3 Secure Data and Model Deployment Pipelines (e.g., MLOps/LLMOps)

A European fitness-tracking company trains a deep-learning recommendation model on member activity data and expects thousands of erasure requests each month. A full retraining run takes nine days of GPU time, so the team batches erasures into a quarterly retrain, leaving departed members' data in the model for up to three months. Which design change BEST improves the company's ability to remove a member's influence promptly?

  1. Train with differential privacy so that the model never needs to have any member's data removed afterwards
  2. Train isolated models on separate data shards and aggregate them, so erasure retrains one shard
  3. Filter recommendations so they never use activity from members who have left
  4. Fine-tune the deployed model for one epoch on the remaining data after each monthly batch of erasure requests
Show answer and explanation

Answer: B. SISA training (sharded, isolated, sliced, aggregated) limits each data point's influence to one constituent model, so removing a record means retraining only that shard, which cuts the cost of each erasure. NIST AI 100-2 distinguishes exact unlearning, which retrains from scratch or from a checkpoint, from approximate methods and notes that exact methods offer stronger guarantees at more computational cost; sharding makes the stronger option affordable.

Why the other options are not the best answer:

  • A. Differential privacy limits what the model memorizes about any individual but does not remove that member's contribution from the trained model.
  • C. Output filtering hides symptoms while the member's data still shapes the weights.
  • D. Further fine-tuning on retained data does not reliably remove the influence of erased records and provides no clear guarantee.

Exam thinking: Design for deletion before training: the architecture decides how cheaply you can unlearn.

Source: Bourtoule et al., Machine Unlearning (SISA training), arXiv:1912.03817; NIST AI 100-2 E2025, Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations

Question 4, Domain 4, task 4.4 Design and Implement AI Guardrails and Controls

A health insurer will launch an LLM benefits assistant before open enrolment, when traffic is expected to rise tenfold. The request path is: input guardrail, retrieval, a vendor-hosted model with a tokens-per-minute quota, then an output filter. The QA team's load test sends 5,000 identical 20-word questions per minute straight to the model endpoint and reports good latency. What is the MOST important change to make the load test predictive?

  1. Replace the load test with a larger functional test set of golden questions scored for answer accuracy
  2. Keep the test but raise the request rate until the model endpoint errors, then provision 20% extra headroom
  3. Rerun the same test against a smaller self-hosted open-weight model to remove dependence on the vendor quota
  4. Replay realistic prompt and answer lengths at expected concurrency through the full path, tracking tokens
Show answer and explanation

Answer: D. LLM capacity and cost are driven by tokens, not request counts: OWASP's 2026 Unbounded Consumption guidance says controls must move beyond requests per second to tokens per minute. A predictive load test therefore replays a realistic distribution of prompt and output lengths at expected concurrency through every component (guardrails and retrieval add latency and can be the bottleneck), measuring latency percentiles and quota consumption, consistent with the AI RMF expectation that the deployed system is shown to be valid and reliable under its deployment conditions.

Why the other options are not the best answer:

  • A. Accuracy testing is functional testing; it says nothing about behaviour under ten times the normal load.
  • B. Pushing the same unrealistic short request harder is a stress test of the wrong workload and still bypasses guardrails and retrieval.
  • C. Testing a different model removes the very quota constraint that production will face, so the results do not describe the launch system.

Exam thinking: Test the system you will run, with the workload it will see.

Source: OWASP Top 10 for LLM Applications 2026: Unbounded Consumption; NIST AI 100-1, Artificial Intelligence Risk Management Framework (AI RMF 1.0)

Question 5, Domain 4, task 4.5 Implement AI Identification and Authentication Strategies

An investment firm requires every trade instruction produced by its portfolio-rebalancing agents to carry a digital signature, so that compliance can later prove which agent produced which instruction. The first design stores each agent's private signing key in an environment variable inside the agent's own container, where the agent's code and tools can read it. Which change BEST protects non-repudiation?

  1. Hold each agent's key in an HSM-backed KMS and have the orchestrator sign for the authenticated agent
  2. Encrypt each private key with a passphrase stored as a second environment variable in the same container
  3. Use one shared signing key for all agents so there is only a single secret to protect, rotate and monitor
  4. Have each agent log a hash of every instruction, which proves origin without needing any private key
Show answer and explanation

Answer: A. Non-repudiation needs a key unique to each agent that the agent itself cannot leak. OWASP's Agentic Top 10 (Rogue Agents) states that signing assumes hardened key management such as HSM or KMS-backed keys, that keys must never be directly available to agents, and that orchestrators should mediate signing so a compromised agent cannot simply exfiltrate its key. NIST SP 800-53 AU-10 frames the goal as irrefutable evidence that an individual or process performed an action.

Why the other options are not the best answer:

  • B. A passphrase stored beside the encrypted key gives an attacker who can read the container both halves.
  • C. A shared key means a signature no longer proves which agent acted, defeating the purpose of signing.
  • D. A hash shows integrity of the content, but anyone can compute it, so it proves nothing about who produced the instruction.

Exam thinking: Keep signing keys out of reach of the agents whose actions they attest.

Source: OWASP Top 10 for Agentic Applications 2026: ASI10 Rogue Agents; NIST SP 800-53 Rev. 5, Security and Privacy Controls (AU-10 Non-repudiation)

Question 6, Domain 4, task 4.6 Design and Enforce AI Authorization and Access Controls

At a manufacturing group, an email-triage agent classifies inbound supplier mail and passes action requests to a payments agent that can schedule supplier payments. An attacker sends an email that appears to come from the CFO. The triage agent forwards the request, and the payments agent schedules a transfer because the request arrived from an internal agent. Which control BEST addresses the weakness shown by the payments agent?

  1. Re-authorise each payment via a central policy engine that checks the originating human's intent
  2. Move the payments agent onto a separate network segment that only the triage agent is permitted to reach
  3. Protect messages between the two agents with mutual TLS so the triage agent's requests cannot be altered
  4. Retrain the triage agent's classifier on CEO and CFO impersonation emails to improve its detection rate
Show answer and explanation

Answer: A. This is cross-agent trust exploitation, a confused deputy: a high-privilege agent acted on a valid-looking internal request without re-checking the original user's intent. OWASP's Agentic Top 10 recommends per-action authorization in which each privileged step is re-verified by a centralised policy engine, and preventing privilege inheritance across agents unless the original intent is re-validated.

Why the other options are not the best answer:

  • B. Segmentation still allows the triage agent to reach the payments agent, and that is exactly the path the attack used.
  • C. Mutual TLS proves the message came unaltered from the triage agent, but the problem is that an authentic internal message was trusted blindly.
  • D. Better upstream detection helps, but the payments agent would still execute any request that slips past the classifier.

Exam thinking: Internal origin is not authorization; re-verify intent at the privileged step.

Source: OWASP Top 10 for Agentic Applications 2026: ASI03 Identity and Privilege Abuse

Question 7, Domain 4, task 4.7 Manage Identity Lifecycle and Auditing

A media group's monthly bill from its LLM provider has tripled. All 14 internal applications and agents call the provider using one organisation-wide API key, so finance cannot tell which workload drove the increase and security cannot tell whether the key has been misused. Which change BEST enables auditing of AI resource use from now on?

  1. A separate key or identity per application and agent, via a gateway that records tokens per identity
  2. A monthly spending alert at 80% of last month's bill so that finance is notified earlier next time
  3. Rotation of the shared key, with the new key given only to application teams that ask for it
  4. A shared spreadsheet in which each application team reports its estimated monthly token usage
Show answer and explanation

Answer: A. Token accounting needs attribution, and a shared credential makes attribution impossible. The OWASP NHI Top 10 notes that reusing one NHI across applications complicates breach mitigation and audits and recommends unique NHIs per application or service. OWASP's 2026 Unbounded Consumption entry recommends token-aware quotas and caps per API key, user and team, which a gateway recording usage per identity makes enforceable.

Why the other options are not the best answer:

  • B. An earlier alert still gives no breakdown of which workload consumed the tokens.
  • C. Rotation resets exposure, but the key remains shared among the requesting teams, so attribution is still impossible.
  • D. Self-reported estimates are not audit evidence and would not reveal misuse of the key.

Exam thinking: No attribution without distinct identities: one workload, one credential.

Source: OWASP Non-Human Identities Top 10 2025: NHI9 NHI Reuse; OWASP Top 10 for LLM Applications 2026: Unbounded Consumption

The full bank has 58 more Domain 4 questions, drillable 20 at a time.

Drill Domain 4