Skip to content
THE EXAMTOPICS EDITORIAL Explore practice exams

AMAZON

Amazon AWS AIP-C01: Security and Governance

Imagine a customer-service agent that can read approved knowledge documents and prepare updates to a customer case. During a review, the team discovers its service role can access every S3…

Imagine a customer-service agent that can read approved knowledge documents and prepare updates to a customer case. During a review, the team discovers its service role can access every S3 policy folder and write directly to the production case database. That is a governance failure even if the assistant usually behaves correctly. For Amazon AWS AIP-C01, secure production design must identify the calling principal, authorized resource, source classification and approval boundary for every step.

The most useful study approach is to treat the GenAI stack as part of the same cloud estate as any other production system. Identity, encryption, network isolation, logging, change control, data classification, and incident response still apply. The difference is that the model can transform unstructured input into actions and outputs in ways that are harder to predict, so the controls around authority and traceability need to be especially explicit.

Least privilege should extend from the user to every tool

IAM design starts with the authenticated user or service and continues through the model layer to retrieval stores and tool backends. Do not give a shared agent role broad permissions merely because different users may request different actions. Where possible, preserve user context or map users to scoped execution roles so the agent cannot access data or perform operations beyond the requester’s authority.

Begin with the actual execution identities rather than a general promise of “least privilege.” A model-invocation role may need permission to call a specific Bedrock endpoint, a retriever may need read-only access to selected data, and a business tool should execute under a principal restricted to one permitted action. If the same broad role can invoke models, read all source documents and modify customer records, a prompt-injection failure can cross several boundaries at once. Separate those capabilities, review resource and key policies and log each consequential decision.

Separate data permissions from model permissions

Permission to invoke a model is not permission to retrieve every enterprise document. A RAG architecture should enforce access at the source, index, or query layer so unauthorized content never becomes model context. If the application relies on metadata filtering, that metadata must be trustworthy and difficult for users to override. Avoid designs that retrieve broadly and attempt to redact unauthorized passages only after they have entered the prompt.

Data lineage must survive conversion into embeddings and indexes. A document may be marked confidential in S3, but a derived vector record or a cached chunk can still expose the same content through semantic search if metadata and access filters are dropped. Carry source ownership, classification, effective date and retention requirements into the derived assets. Then test whether a user who lacks permission to open the original document can retrieve its content by asking an indirect question. The correct result is an enforced denial or absence of unauthorized evidence.

Use network isolation where the risk requires it. VPC endpoints, PrivateLink-style connectivity, private subnets, restrictive security groups, and controlled egress can reduce exposure for sensitive GenAI workloads. The architecture should identify which flows actually need internet access and which can remain inside private AWS networks. A retrieval connector that talks only to internal data sources may deserve a tighter boundary than a public consumer application.

Network isolation is not a substitute for identity. Private traffic can still be malicious or over-privileged. Combine network controls with IAM, resource policies, authentication, and application-level authorization. A scenario that asks for the “most secure” design usually rewards layered controls that address different attack paths rather than one perimeter device.

Protect keys, secrets, and sensitive configuration differently. Encryption keys, API credentials, database passwords, and model configuration are distinct assets. Use KMS for cryptographic key management and Secrets Manager for secret values and rotation. In a tool-calling system, encryption-key access and downstream API credentials must both be limited to the permitted workload identity.

Keep secrets out of prompts, tool descriptions, model memory, and logs. If a tool needs a credential, the execution environment should retrieve it after authorization rather than asking the model to carry or reproduce it. Rotate secrets independently of prompt and model changes so credential lifecycle does not become entangled with AI behavior.

Logging should preserve evidence without creating a new data leak

CloudTrail, CloudWatch Logs, application traces, model invocation metadata, and tool logs can provide valuable evidence. Decide what must be recorded to reconstruct an event: caller identity, prompt version, model identifier, retrieved source IDs, tool selection, authorization result, configuration version, and final action. That information supports troubleshooting, compliance, and incident response.

Raw prompts can contain sensitive or regulated information, so “log everything” is not a safe default. Redact, hash, tokenize, or omit sensitive fields according to policy. Apply retention controls and access restrictions to the observability stack itself. An audit trail that leaks customer data creates a second security problem while trying to document the first. Those choices are explored further in production GenAI security scenarios involving identities, tools and data exposure.

Govern prompt, model, and retrieval changes like production releases

Model behavior can change when the model version changes, a system prompt is edited, a tool schema is widened, or a retrieval source is added. Those are production changes even if no traditional code file changed. Establish review, testing, approval, and rollback for all of them. Record who made the change and why so a future incident can be tied to a specific configuration state.

Governance must include changes that do not look like application deployments. A new Knowledge Base sync, prompt revision, guardrail policy or tool permission can change observable model behavior. Define an approved environment path, version each configuration and attach evidence from evaluation and access-control tests to its release. If a rollout causes new document leakage or an unauthorized action path, rollback should restore the relevant data and policy components as well as the application image. Console changes without traceable review undermine that recovery process.

Data lineage and source attribution support compliance

A GenAI system should know where important evidence came from. AWS Glue Data Catalog, metadata tags, source identifiers, and retrieval traces can help establish lineage. When a generated answer is challenged, the team should be able to identify the underlying source and determine whether the source was current and authorized at the time of the response.

Lineage also supports deletion and retention obligations. If a source must be removed, teams need to know which indexes, caches, evaluation sets, and derived artifacts may contain it. Governance that covers only the original S3 object but ignores embeddings and test datasets is incomplete.

Translate compliance requirements into technical controls

Regulations and internal policies are too broad to implement directly. Convert them into concrete requirements such as encryption, geographic restrictions, access review, logging, retention, human approval, data minimization, or evidence preservation. Then map each requirement to an AWS control and an owner. This makes architecture reviews more defensible than simply stating that the system is “compliant.”

A risk register is useful conceptually because it forces teams to connect threats, likelihood, impact, owners, and mitigations. For GenAI, risks might include prompt injection, sensitive-data leakage, unauthorized tool use, biased outcomes, unreliable grounding, model unavailability, or uncontrolled cost. Governance becomes clearer when those risks have measurable controls and response plans.

Use organizational guardrails to keep teams consistent. Large organizations often have many GenAI projects. Shared policies can define approved models, data classes, network patterns, logging requirements, evaluation minimums, and tool-permission standards. Service Catalog, organization-level policy, reusable infrastructure modules, and standardized CI/CD components can reduce the chance that every team invents a different security baseline.

Consistency should not become unnecessary centralization. Product teams still need room to choose retrieval strategies, prompts, models, and user experiences that fit their workload. The governance layer should define the non-negotiable boundaries and evidence requirements while allowing local engineering decisions inside those boundaries.

Incident response needs AI-specific evidence

When a GenAI incident occurs, responders may need to answer questions that do not appear in conventional web applications: Which prompt version was active? What sources were retrieved? Was a jailbreak or injection detected? Which tool did the model select? What was the tool input? Which model and inference settings were used? Did a guardrail intervene? Was the response cached? Without those signals, the root cause can remain ambiguous.

The CIA triad offers a useful baseline for classifying the business impact. Confidentiality incidents expose prompts or data, integrity incidents alter outputs or actions, and availability incidents prevent the system from serving users. GenAI adds model-specific mechanisms, but the incident still affects core security properties that the business understands.

Governance is successful when it improves engineering decisions

Good governance is not a pile of documents created after launch. It gives engineers clear design constraints, reusable controls, testing requirements, and escalation paths before risky choices are made. It also gives auditors and security teams reliable evidence without requiring developers to reconstruct history manually.

For AIP-C01 scenarios, prefer controls that address the actual risk while preserving operability. Encrypt sensitive data, restrict authority, isolate high-risk paths, record the evidence needed for review, version behavior-changing artifacts, and test policy enforcement continuously. That is the practical meaning of security and governance in a production generative AI system.

Multi-account architecture can reduce blast radius. For larger organizations, separate development, evaluation, and production workloads across accounts or clearly isolated environments. Central security services can collect logs and enforce baseline controls while application teams retain scoped permissions inside their workload accounts. This limits the effect of an accidental policy change and makes production data less likely to leak into experimentation.

Cross-account access should be intentional and auditable. Retrieval connectors, model invocation roles, artifact stores, and deployment pipelines need explicit trust relationships rather than broad shared credentials. The same boundary helps compliance teams identify where regulated data can flow.

Continue exploring the technologies and certification concepts that matter most to you.