AWS Certified Cloud Practitioner (CLF-C02) / Security and Compliance

Identities, policies and least privilege

Lesson 10 of 42. Open to read. No account needed.

An analyst must read approved monthly reports. They do not need to replace the reports, delete them or administer the storage service. Giving the analyst every available permission may make an access error disappear, but it also allows actions the job never required.

Least privilege means granting the actions and resources needed for the task, with appropriate conditions, rather than starting from unrestricted access. To apply it, separate two questions: who is making the request, and what may that identity do?

Sign-In Is Not Permission

Authentication establishes an identity using credentials or a trusted sign-in system. Authorization decides whether a particular request is allowed. A successful sign-in does not mean every subsequent request succeeds.

An authenticated person uses an allowed role session. That session requests a report. AWS evaluates applicable policies before allowing access or denying the request. The policy check is a permission decision, not a network hop.

One role-based access example. Not every AWS request requires a person to assume a role manually, and this is not a network topology.

The first boundary is obtaining the role session; the role's trust rules govern who may assume it. The second is the session's request to the resource. Its permissions and any other applicable policies determine whether that request is allowed. Being trusted to assume a role does not automatically grant access to all resources.

Users, Groups and Roles

An IAM user is an identity within an AWS account that can have long-term credentials. An IAM group collects IAM users so permissions can be managed for them together. A group is not a separate login and does not issue its own session credentials. Do not share one user's password as a substitute for a group.

An IAM role has permissions but is not permanently tied to one person. An allowed caller can assume it and receive temporary session credentials. Applications and AWS services can use roles too. This avoids treating permanent user access keys as the default way for every workload to obtain access.

When the analyst changes jobs, update their assigned access rather than widening everyone else's permissions. Identity lifecycle and permission scope need to follow actual work, not merely the date an account was created.

Policies Describe Requests, Not Job Titles

A policy expresses permissions for actions on resources, sometimes with conditions. Identity-based policies attach to identities; resource-based policies attach to supported resources. An IAM role trust policy is a resource-based policy governing who can assume the role.

For identity-based permissions, AWS managed policies are reusable policies maintained by AWS. Customer managed policies are reusable policies your organization maintains. Inline policies belong directly to one identity. "Custom" does not mean a separate permission language: a customer can author either a customer managed or an inline policy. Reusability is different from whether a policy is suitably restricted for this analyst.

Read a Small Permission Example

Amazon S3 stores data as objects in buckets. Suppose the analyst knows the exact object names under a fictional bucket's approved/ prefix. The following identity-policy excerpt permits retrieval there and explicitly denies deletion. It is an original reading exercise, not a deployable access setup: the bucket, role trust and every other applicable control are outside the excerpt.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::vecta-learning-reports/approved/*"
    },
    {
      "Effect": "Deny",
      "Action": "s3:DeleteObject",
      "Resource": "arn:aws:s3:::vecta-learning-reports/approved/*"
    }
  ]
}

Effect says allow or deny; Action names the operation; Resource limits which objects the statement concerns. An ARN is an AWS resource identifier. Here * matches object names within the stated prefix, not every bucket. The version string identifies the policy language, not a credential expiry date.

For this exercise, assume these are the only relevant permissions and no other control blocks an allowed read. Reading a known object in that prefix is allowed. Writing it has no allow and is implicitly denied. Deleting it matches an explicit deny. Listing a bucket is a different action, so this excerpt does not promise that browsing the S3 console will work.

In actual evaluation, AWS combines the applicable policy types. An applicable explicit deny overrides an allow. Do not infer full access from one matching allow while ignoring other policies, account restrictions or service conditions. The role itself also does not create a network connection to a private resource.

Check Your Understanding

Under the example's assumptions, can the analyst retrieve, overwrite and delete an approved report? If another applicable identity policy allows deletion of that same object while the deny remains, does deletion become permitted?

Answer and Reasoning

Retrieval is allowed by s3:GetObject. Overwrite requires a writing action that has not been allowed, so the example denies it implicitly. Deletion is explicitly denied by s3:DeleteObject. An additional allow does not override that applicable deny. Read-only access fits the stated job; administrator access would introduce unneeded actions rather than solve the original requirement precisely.

References

Sources checked on 24 September 2026. Read the excerpt conceptually; no AWS resource or permission change is needed.

Study this course with an account

Course access adds revision notes, the Exam Cheat Sheet, saved progress, bookmarks and your own notes.

INR 199 plus 18% GST. 90 days of online access. No auto-renewal.

See course access

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy