Lesson 2 of 2 Securing AI Systems and Data

The Shared Responsibility Model for AI Workloads

Using managed AI services shifts some security and compliance responsibilities to AWS, but not all. This lesson explains how the AWS shared responsibility model applies to AI and how responsibilities change with the type of AI solution.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain how the AWS shared responsibility model applies to AI workloads.
  • Describe how customer responsibilities change across the Generative AI Security Scoping Matrix.
  • Compare customer responsibilities across Amazon Quick, Amazon Bedrock and Amazon SageMaker AI.

The shared responsibility model

Under the AWS shared responsibility model, AWS is responsible for security of the cloud: the physical data centres, hardware, networking and the software that runs managed services. The customer is responsible for security in the cloud: its data, identities and access permissions, how it configures services and how it uses them. The division shifts depending on the service: the more managed the service, the more AWS handles.

Applying the model to AI

For AI workloads, the model clarifies who does what. The following comparison summarises the division for a generative AI application built on Amazon Bedrock.

AWS
InfrastructureSecures the data centres, hardware and network that run the service
Managed AI serviceOperates and secures Amazon Bedrock, including model hosting and isolation of customer data from model providers
DataProvides encryption and data protection capabilities
AccessProvides identity and access management capabilities
Use and outputsNone
Customer
InfrastructureNone
Managed AI serviceChooses and configures features, such as guardrails and logging
DataClassifies data, decides what data the application uses and controls retention
AccessGrants least-privilege access to users, applications and agents
Use and outputsResponsible AI, human oversight, compliance with laws and how outputs are used

Amazon Bedrock is designed so that customer prompts and outputs are not used to train the base models and are not shared with model providers, which is part of AWS's side of the model. Whether the application treats customers fairly, protects their data appropriately and complies with regulation remains the customer's responsibility.

Responsibilities across AWS AI services

The division of responsibility also differs between the AWS AI services, because each is managed to a different degree. The following table summarises the customer's main responsibilities for each service in scope.

ServiceAWS managesCustomer manages
Amazon QuickThe application, its infrastructure and the underlying modelsUsers and their access, connected data sources and their permissions, and how outputs are used
Amazon BedrockThe service, model hosting and infrastructureApplication design, data connected to knowledge bases, guardrail configuration, access and use of outputs
Amazon SageMaker AIThe managed ML platform and infrastructureTraining data, model design and evaluation, deployment configuration, access, monitoring and retraining

AWS also provides evidence for its side of the model, such as independent audit reports and certifications, including ISO/IEC 42001 for a number of its AI services. Customers use this evidence in their own due diligence, but it does not cover the controls that are the customer's responsibility.

Sort into groups

AWS or the customer?

Exam skills 3.2.3

Apply the shared responsibility model across the AWS AI services in scope.

Log in to try this activity Interactive activities are free with an account.

How responsibility changes with the type of solution

AWS's Generative AI Security Scoping Matrix describes five scopes of generative AI use, and the customer's responsibilities grow as it moves from using ready-made applications to building its own models. The following table summarises them.

ScopeDescriptionCustomer responsibility
1. Consumer applicationUsing a public generative AI serviceMainly what data employees enter and how outputs are used; governed by the provider's terms
2. Enterprise applicationUsing a business AI application, such as Amazon QuickAlso configuration, access and data connected to the application
3. Pre-trained modelsBuilding an application on models such as those in Amazon BedrockAlso application design, guardrails, prompts and integration
4. Fine-tuned modelsCustomising a model with own dataAlso the training data and the customised model
5. Self-trained modelsTraining a model from scratchThe full model lifecycle, including data and training

The following diagram shows how the customer's responsibilities accumulate across the five scopes in the table above.

How the customer's security responsibilities grow across the five scopes of the Generative AI Security Scoping Matrix. Using a consumer application leaves mainly the data entered and how outputs are used. An enterprise application adds configuration, access and connected data; building on pre-trained models adds application design, guardrails and prompts; fine-tuning adds the training data and the customised model; and self-training adds the model itself.
The more of the solution an organisation builds itself, the more of its security it owns.
Put in order

The scoping matrix

Exam skills 3.2.3

Put the five generative AI scopes in order, from the least to the most customer responsibility.

Log in to try this activity Interactive activities are free with an account.
Worked example

Who is responsible?

A company builds a customer service application on Amazon Bedrock. After launch, a customer complains that the assistant revealed another customer's order details. The company's manager says this is AWS's responsibility because AWS runs the service. Is that correct?

No. This is scope 3 (an application on pre-trained models). AWS is responsible for securing the infrastructure and the managed service, but the company is responsible for its application design, data and access controls: which data the assistant can retrieve, how it checks the identity and permissions of the requester, and whether sensitive information filters are applied. The incident is within the customer's side of the shared responsibility model.

Worked example

Responsibility for a fine-tuned model

A healthcare company fine-tunes a foundation model in Amazon Bedrock on 50,000 anonymised patient letters so that it can draft letters in the company's style. An audit later finds that some letters were not properly anonymised, and the fine-tuned model occasionally reproduces real patient details. Who is responsible?

This is scope 4 (a fine-tuned model). AWS secures the service and keeps the company's data and customised model private to the company, but the training data and the customised model are the company's responsibility. The company should stop using the model, assess the exposure with its privacy team, correct its anonymisation process, retrain on properly prepared data and test the new model for memorised personal details before use. Choosing a more customised scope increases the responsibilities the organisation carries.

Check yourself

When using Amazon Bedrock, who is responsible for deciding which users can access the application?

Show answer

The customer. AWS provides identity and access capabilities, but granting least-privilege access is the customer's responsibility.

Exam Tips

Remember for the exam

  • AWS secures the cloud; the customer secures what it puts in the cloud and how it uses it.
  • For Amazon Bedrock, AWS secures the service; the customer owns data, access, configuration and use of outputs.
  • Customer responsibility grows from consumer apps to enterprise apps to building, fine-tuning and training models.
  • Responsible AI and regulatory compliance remain the customer's responsibility.
  • The more managed the service, the more AWS handles: Quick, then Bedrock, then SageMaker AI.
  • AWS certifications support due diligence but do not cover the customer's own controls.