The shared responsibility model
This is the single most tested idea on CLF-C02. AWS is responsible for security OF the cloud - the physical facilities, hardware, network infrastructure, and the virtualisation layer. You (the customer) are responsible for security IN the cloud - your data, IAM configuration, operating system patches (on EC2), firewall rules (security groups), and encryption choices.
The split shifts depending on the service type. With EC2 (infrastructure as a service) you manage the guest OS, patching and network configuration. With managed services like RDS, AWS handles OS patching and infrastructure, but you still manage access control and data. With serverless or fully managed services like S3 or Lambda, AWS takes on even more, but you are always responsible for data classification, IAM permissions and client-side encryption if used.
IAM basics
- IAM (Identity and Access Management) is a global service, free to use, and controls who can do what in your AWS account.
- The root user is created automatically and has full access - AWS best practice is to lock it away, enable MFA, and never use it for daily tasks.
- Use IAM users, groups and roles for everyday access instead of root.
- IAM roles provide temporary credentials and are the recommended way to grant permissions to AWS services (like an EC2 instance) or federated users - never hard-code long-term access keys into an application.
- Policies are JSON documents attached to users, groups or roles that define permissions (Allow/Deny on specific actions and resources).
- By default, all IAM permissions are implicitly denied until explicitly allowed - and an explicit Deny always overrides an explicit Allow.
- Follow the principle of least privilege - grant only the permissions needed to do the job, nothing more.
MFA and credentials
- Multi-Factor Authentication (MFA) adds a second layer of login security (a code from a virtual/hardware device) and should be enabled on the root user and privileged IAM users.
- Access keys (access key ID + secret access key) are used for programmatic access via CLI/SDK and should be rotated regularly.
Common exam traps
- AWS is never responsible for customer data security in the cloud, even on fully managed services.
- IAM roles are preferred over embedding access keys in code or on EC2 instances.
- IAM is not used to manage OS-level user accounts - that is a customer responsibility.
- Compliance in the cloud (e.g. meeting PCI DSS) is a shared effort - AWS gives you a compliant infrastructure, but you must configure your environment correctly.
- AWS Organizations and Service Control Policies (SCPs) set permission guardrails across multiple accounts, but do not grant permissions themselves.
What does the shared responsibility model split into two halves?
Security OF the cloud (AWS) and security IN the cloud (customer).
tap to reveal
Who is responsible for patching the guest OS on an EC2 instance?
The customer - AWS only manages the underlying infrastructure and hypervisor.
tap to reveal
Is IAM a free service?
Yes, IAM is free to use and is a global (not regional) AWS service.
tap to reveal
What should you do with the AWS root user after account creation?
Enable MFA, secure the credentials, and avoid using it for everyday tasks - use IAM users/roles instead.
tap to reveal
What is the AWS-recommended way to give an EC2 instance access to other AWS services?
Attach an IAM role, which provides temporary credentials, rather than storing long-term access keys on the instance.
tap to reveal
In IAM policy evaluation, what wins if there is both an Allow and a Deny?
The explicit Deny always overrides the Allow.
tap to reveal
What is the default IAM permission state before any policy is attached?
Implicit deny - nothing is allowed until explicitly granted.
tap to reveal
What does the principle of least privilege mean?
Grant only the minimum permissions a user or role needs to perform their task, nothing more.
tap to reveal
What format are IAM policies written in?
JSON documents specifying Allow/Deny statements on actions and resources.
tap to reveal
What are IAM access keys used for?
Programmatic access to AWS via the CLI or SDKs (an access key ID and secret access key pair).
tap to reveal
Who is responsible for data encryption choices and data classification, regardless of service type?
The customer is always responsible for their data, even on fully managed AWS services.
tap to reveal
Do AWS Organizations SCPs grant permissions to users?
No - SCPs only set maximum permission guardrails across accounts; they never grant permissions themselves.
tap to reveal
For a fully managed service like RDS, who patches the underlying OS?
AWS handles OS and infrastructure patching, but the customer still manages access control and data.
tap to reveal
What extra login security should be enabled on privileged IAM users and root?
Multi-Factor Authentication (MFA).
tap to reveal