CertSanctuary

CLF-C02 · SAA-C03 · AIF-C01

AWS shared responsibility model explained

Security of the cloud versus security in the cloud: what AWS handles, what you handle, and how the split changes for EC2, RDS, Lambda and S3.

The one-line version

AWS is responsible for security of the cloud. You are responsible for security in the cloud.

"Of the cloud" means the facilities, hardware, networking and software that run AWS services. "In the cloud" means everything you put on top: your data, your configurations, your users and permissions, and any operating systems or code you run.

What AWS is responsible for

AWS protects the global infrastructure that every service runs on. You cannot touch any of this, so you cannot be responsible for it.

What you are responsible for

Your share depends on the service, but some items are always yours.

How the split moves between services

The line shifts depending on how managed the service is. Three examples show the pattern.

Amazon EC2 is infrastructure as a service. AWS runs the host and hypervisor. You patch the guest operating system, install and update software, configure the firewall with security groups, and manage the keys used to log in.

Amazon RDS is a managed database. AWS patches the operating system and database engine and runs automated backups. You still choose who can connect, set the security groups, decide whether to encrypt the database, and manage database users.

AWS Lambda goes further. AWS manages the servers, OS and runtime. You are responsible for your function code, its dependencies, the IAM role it runs with, and the data it handles.

Shared controls

Some controls apply to both sides, each in its own layer. AWS calls these shared controls:

Applying it to AI workloads

The same model applies to generative AI. With Amazon Bedrock, AWS runs the model hosting infrastructure. You decide which IAM principals can call which models, what data goes into prompts and knowledge bases, how outputs are filtered, and whether logging is turned on. A model that leaks customer data because the prompt included it is a customer-side problem, not an AWS one.

How the exam asks about it

Questions usually name a task and ask whose job it is. A few patterns cover most of them. Physical anything is AWS. Patching the guest OS on EC2 is the customer. Patching the database engine on RDS is AWS. Encrypting data, configuring security groups and managing IAM are the customer, on every service.

Watch for wording traps. "AWS encrypts S3 data by default" is true for new objects, but deciding on key management and access remains your responsibility. If the question asks who is responsible for protecting the data, the answer is the customer.

Practice questions

  1. An administrator creates a new IAM user and does not attach any policies or add the user to any groups. What can the user do?

    1. Any action in the Region where it was created
    2. Everything the root user can do
    3. Read-only actions on all AWS services
    4. Nothing, because new IAM users have no permissions
    Answer

    D. IAM denies everything by default, so a new user has no permissions until a policy grants them. There is no automatic read-only or Region-wide access.

    CLF-C02 question 3

  2. An IAM user has one policy that allows all Amazon S3 actions and another policy that explicitly denies s3:DeleteObject. What happens when the user tries to delete an object?

    1. The request is allowed because an allow exists
    2. The request is denied because explicit denies win
    3. The request is allowed only if MFA is used
    4. The policy attached most recently takes effect
    Answer

    B. In IAM policy evaluation, an explicit deny always overrides any allow, so the delete fails while other allowed S3 actions still work. The order in which policies were attached has no effect on the outcome.

    CLF-C02 question 72

  3. A company wants to add MFA to its IAM users. Which of these can be used as an MFA device for AWS sign-in? (Choose two.)

    1. A virtual authenticator app on a phone
    2. A FIDO security key or passkey
    3. An Amazon S3 bucket policy
    4. An Amazon EC2 key pair
    5. A security group rule
    Answer

    A, B. AWS supports virtual authenticator apps, FIDO security keys and passkeys, and hardware TOTP tokens as MFA devices. EC2 key pairs are for connecting to instances, and security group rules and bucket policies control access but are not authentication factors.

    CLF-C02 question 94

  4. What does the phrase "security in the cloud" refer to in the AWS shared responsibility model?

    1. AWS's duty to secure its data centers
    2. AWS's duty to secure its global network
    3. AWS's duty to patch managed service hosts
    4. The customer's duty to secure what it puts in AWS
    Answer

    D. Security in the cloud is the customer's side: its data, IAM settings, network configuration and, for IaaS, the operating system. The other choices describe security of the cloud, which is AWS's side.

    CLF-C02 question 105

Practice CLF-C02 Practice SAA-C03 Practice AIF-C01 All topics