AI security architecture and design
AAISM · Lesson 11 of 16 · 1:21:13
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the ISACA AAISM exam (Advanced in AI Security Management). In this lesson: the layers of an AI system, retrieval augmented generation and its access rights, a central AI gateway with zero trust, isolation and defense in depth, and AI in the enterprise architecture. Includes three original practice questions, with Ridgeline Pharma, a fictional drug company, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Six teams, six designs
At Ridgeline, six teams have built six AI apps, each with its own keys, its own logs, and its own filters, or none at all. Each design made sense on its own, but together they are hard to secure. This lesson opens domain three, AI technologies and controls, with the architecture: the layers of an AI system, retrieval, the AI gateway, zero trust and segmentation, and the place of AI in the enterprise architecture.
The layers of an AI system
An AI system has several layers, and each one has its own threats and controls. The data layer holds training data, documents, and embeddings. The model layer holds the model and its weights, whether it is built, tuned, or rented. The application layer holds the prompts, the orchestration, the tools, and the agents. And the infrastructure layer runs it all, while users and other systems connect from outside.
Retrieval augmented generation
Many assistants at Ridgeline use retrieval augmented generation, or RAG. Approved documents are split, turned into embeddings, and stored in a vector database. When a user asks a question, the system retrieves the most relevant passages, and gives them to the model with the question. Security depends on this flow: only approved sources go in, and retrieval applies the rights of the user who asks. And retrieved content is treated as untrusted, because it can carry hidden instructions.
The AI gateway and zero trust
An AI gateway is a central point between applications and models. It authenticates every call, and logs prompts and responses in one place. It applies input and output filters, quotas, and cost limits, and it routes requests only to approved models. Zero trust applies to AI as well: every request is verified, every component gets the least privilege it needs, and the design assumes that a breach can happen. And nothing is trusted because of where it comes from, not even the output of a model, or the request of an agent.
Isolation and defense in depth
Isolation limits the damage when one part fails. Training environments are kept apart from production, and model weights sit in a restricted zone, with tight access. AI workloads run in their own network segment, and outbound traffic is limited to what they need. Defense in depth adds several layers of controls, so that one failure does not open everything. And security by design puts these requirements into the first design of each system, not after its launch.
AI in the enterprise architecture
AI security architecture fits into the enterprise architecture, rather than beside it. Reference architectures describe approved patterns, like a RAG assistant, a chatbot, or an agent, with the controls that each one needs. An architecture review checks every new AI design against these patterns, before it is built. Shared components, like the gateway, identity, and logging, replace solutions that each team builds alone. And frameworks help: Google's Secure AI Framework, SAIF, groups similar ideas into six elements, like strong security foundations, and controls that are consistent across platforms.
Recap
Let's recap. An AI system has data, model, application, and infrastructure layers, each with its own threats and controls. In a RAG design, only approved sources go in, retrieval applies the rights of the user, and retrieved content is untrusted. An AI gateway centralizes authentication, logging, filters, quotas, and approved models, and zero trust verifies every request. Isolation, segmentation, defense in depth, and security by design limit the damage of a failure. And AI fits into the enterprise architecture, through reference architectures, architecture reviews, and shared components.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Ridgeline’s RAG assistant gives a lab technician passages from salary reviews, which the technician has no right to see. Where does the fix belong?
- In the prompt, telling the model to refuse
- In the encryption of the vector database
- In training staff to avoid HR questions
- In retrieval, with the rights of the user
Show the answer
In retrieval, with the rights of the user
Retrieval must apply the rights of the user who asks, so that the model never receives documents that the user cannot open. “In the prompt, telling the model to refuse” would rely on the model to refuse, which a clever prompt can get around. “In the encryption of the vector database” would protect stored data from theft, not from the assistant's own users. And “In training staff to avoid HR questions” would ask people to avoid a flaw, instead of removing it.
Ridgeline wants the same logging, filtering, and cost limits for every team’s AI apps, which call several model providers. Which design fits best?
- A central AI gateway for every model call
- Separate filters written by each team
- One single model provider for every use
- A monthly review of every team’s logs
Show the answer
A central AI gateway for every model call
An AI gateway gives one place to authenticate, log, filter, and limit every model call, whatever the provider. “Separate filters written by each team” would repeat the same work six times, with six different results. “One single model provider for every use” would cut the choice of models, and still leave the controls to each team. And “A monthly review of every team’s logs” would find problems after the fact, without applying any control.
A new team designs an agent platform from scratch, with its own identity system and logs, without looking at Ridgeline’s existing patterns. What should the security manager require?
- Nothing, since every team designs freely
- A larger budget for the platform team
- A review against the reference architectures
- A delay of the project for a whole year
Show the answer
A review against the reference architectures
An architecture review checks the design against the reference architectures, and reuses shared components like identity and logging. “Nothing, since every team designs freely” would let a seventh isolated design go ahead. “A larger budget for the platform team” would add money, without fixing the design. And “A delay of the project for a whole year” would delay a useful project, when a review can fix it now.