Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
AWS · SCS-C03

Authorization design

SCS-C03 · Lesson 15 of 22 · 2:10:49

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the SCS-C03 exam (AWS Certified Security – Specialty). In this lesson: Amazon Verified Permissions and Cedar policies for your applications, trust policies and IAM Roles Anywhere, cross-account access with resource-based policies and source conditions against the confused deputy problem, and ABAC with tags, RBAC, and IAM paths. Includes three original practice questions.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Who can do what

Authentication proves who someone is, and authorization decides what they can do. At AnyCompany Health, the clinician app must decide which patient charts a doctor can open, a backup server in the data center must reach S3, and a partner laboratory must reach lab results from its own account. This lesson shows how to design those decisions, from application permissions to tags.

Application authorization with Verified Permissions

Amazon Verified Permissions handles authorization inside the applications that you build. You write permissions as policies in the Cedar language, keep them in a policy store, and the application asks Verified Permissions whether a request is allowed, and gets back allow or deny. That keeps authorization out of the application code, so you can change who can do what without a new release. Verified Permissions does not sign anyone in: it expects a principal that is already authenticated, for example by a Cognito user pool, whose users and groups a policy store can use directly.

Roles, trust policies, and Roles Anywhere

For access to AWS itself, an IAM role has two kinds of policies: a trust policy, which says who can assume the role, and permissions policies, which say what the role can do. The trust policy is a resource-based policy that every role must have, and its principal cannot contain a wildcard inside an ARN. Servers outside AWS, such as the backup server in the data center, can get temporary credentials through IAM Roles Anywhere, with X.509 certificates from your certificate authority, registered as a trust anchor. The role then trusts the Roles Anywhere service, with a condition on the source ARN, set to the ARN of the trust anchor. And in a Roles Anywhere profile, you list the roles that a workload can assume, and one session policy that limits every session.

Cross-account access

A partner laboratory has its own AWS account, and must reach results in a bucket of AnyCompany Health. There are two ways to share. With a resource-based policy on the bucket, the principals of the partner keep their own permissions, and access works only when both accounts allow it: the bucket policy in your account, and an identity-based policy in theirs. With a role in your account, the partner assumes the role, and gives up its own permissions for the session, so the trust policy must name the account of the partner, and can require an external ID. And when a service principal, such as CloudTrail writing logs to a bucket, accesses your resources, conditions on the source ARN and the source account in the resource policy make sure that it acts only for your own resources, which prevents the confused deputy problem.

RBAC, ABAC, and IAM paths

Role-based access control, or RBAC, gives each job function its own policies, such as one for nurses and one for billing staff. It is simple to audit, but each new project or resource means more policies, or edits to the ones you have. Attribute-based access control, or ABAC, grants access when tags match: a policy can allow access to a resource only when its team tag equals the team tag of the principal, so new resources with the right tag are covered without any policy change. The tags of the principal can come from the identity provider as session tags, through SAML or OpenID Connect, so a user who moves to another team gets new access as soon as the identity provider changes that value. And IAM paths organize users and roles like folders, so a policy can name every role under one path, but a path grants nothing by itself, and a user on the same path as a group is not a member of that group.

Recap

Let's recap. Verified Permissions evaluates Cedar policies for the applications that you build, after authentication. Trust policies say who can assume a role, and IAM Roles Anywhere gives servers outside AWS temporary credentials from X.509 certificates. Across accounts, a resource-based policy and the policy of the caller must both allow the request, and source conditions prevent the confused deputy problem. And ABAC matches tags so that new resources need no policy change, while RBAC and IAM paths organize permissions by job function and by structure.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. A backup server in the data center must write to an S3 bucket, and the security team wants no long-term access keys on the server. The company already runs its own certificate authority. What should the team set up?

    • An IAM user whose access keys rotate every 90 days
    • An IAM Identity Center permission set for the server
    • IAM Roles Anywhere with the CA as a trust anchor
    • A bucket policy that allows the server's IP address
    Show the answer

    IAM Roles Anywhere with the CA as a trust anchor

    Roles Anywhere exchanges a certificate from the trusted authority for the temporary credentials of a role. “An IAM user whose access keys rotate every 90 days” would still leave long-term keys on the server, even if they rotate. “An IAM Identity Center permission set for the server” is for people who sign in, not for a server. And “A bucket policy that allows the server's IP address” would accept unsigned requests from that address, with no identity behind them.

  2. A user in the partner account has an identity-based policy that allows access to the lab results bucket of AnyCompany Health. The bucket has no bucket policy, and every request is denied. What should the team change?

    • Add a bucket policy that allows the partner principal
    • Add a second Allow to the user's IAM group
    • Turn off Block Public Access on the bucket
    • Add an SCP in the partner organization that allows S3
    Show the answer

    Add a bucket policy that allows the partner principal

    Across accounts, both sides must allow the request, so the bucket owner must allow the principal of the partner in the bucket policy. “Add a second Allow to the user's IAM group” adds another allow on the same side, and the bucket side still says nothing. “Turn off Block Public Access on the bucket” is about public access, and this request comes from a named account. And “Add an SCP in the partner organization that allows S3” would not help, because an SCP never grants permissions.

  3. AnyCompany Health creates new S3 buckets every month for its clinical teams, and each bucket gets a team tag. Every engineer must reach only the buckets of their own team, with no policy change when a bucket is added. What should the team design?

    • One IAM role for each new bucket
    • A new statement in each job policy per bucket
    • An IAM path per team that holds the team's buckets
    • Conditions that match team tags
    Show the answer

    Conditions that match team tags

    With ABAC, one policy compares the team tag of the principal with the team tag of the bucket, so new buckets are covered as soon as they are tagged. “One IAM role for each new bucket” would mean a new role every month. “A new statement in each job policy per bucket” is RBAC, with a policy change for every bucket. And “An IAM path per team that holds the team's buckets” cannot work, because IAM paths organize IAM users and roles, not buckets.