Let’s Get Certified
Module 05 / 13 · Security

Trace the caller’s effective permissions

Distinguish sign-in, temporary credentials, role trust and authorization for each resource.

Trace the caller’s effective permissions

Follow an application request through the caller, action, resource and any conditions. A Cognito user pool authenticates users and issues tokens. An identity pool can exchange recognized identities for temporary AWS credentials. An SDK can sign service requests with credentials from its default provider chain. Use a workload role for a function or task and scope its permissions to what it needs.

For cross-account role assumption, inspect the target trust policy and the caller’s permission to assume the role. Then inspect the role’s permissions for its eventual service call. Policy boundaries and organization controls may further limit a grant. An applicable explicit deny wins. An authorization failure gives no assurance that network access has also been configured.

Worked case

A task can assume its reporting role but cannot read the specified report object. Where should the investigation move?

Check your reasoning

Assumption already succeeded. Inspect the assumed role’s permissions for the object action and ARN, the bucket policy, and any relevant explicit deny. A role trust change alone cannot grant object access.

Second worked case

A developer wants users to sign service requests with their application passwords. How should the credentials flow instead?

Check your reasoning

Authenticate the user through the chosen identity provider. Where the client requires AWS access, exchange identity for limited temporary credentials. The AWS SDK uses those credentials to sign authorized service requests.

AWS SDK credential providers · Official DVA-C03 objectives for this domain

Related lesson in AWS Certified Solutions Architect – Associate. Grant access across accounts.

Delegating one download

Generate an S3 presigned GET URL with temporary role credentials for one key. Its usable lifetime also depends on the underlying credentials and the signer’s permissions. For protected content through a CloudFront distribution, compare signed URLs with signed cookies when one session needs several objects. Use synthetic objects to test expiry and scope.

Practice with the recording

A developer can upload an object with a local profile, but the deployed Lambda function cannot. Which identity matters for the failing call?

Check your reasoning

Inspect the execution role and the failing request’s bucket, prefix and encryption key. The developer’s local session only proves their own access. Keep the application on temporary role credentials and test a write under the runtime role.

Cert Espresso · DVA-C03 full course · 1:24:26

Practice the individual exam skills
  • 2.1.1–2.1.3 Trace a federated sign-in through its identity token to temporary programmatic credentials where the application needs AWS access. Check MFA and role conditions at the trust boundary. Run the SDK call under the intended role.
  • 2.1.4–2.1.7 Follow a temporary role from assumption to a signed S3 request. Inspect its identity policy, bucket policy and credential expiry. Demonstrate which single object and operation a presigned URL delegates to a recipient.
Knowledge check

Trace the caller’s effective permissions quiz

Answer 3 questions. Check each answer for an explanation.