Let’s Get Certified
Module 07 / 22 · Security, Compliance, and Governance

Carry the right identity across every boundary

Distinguish workforce federation, customer tokens, pod identities, external workloads and resource-side permissions.

Task 2.1 · Carry the right identity across every boundary

Three principals read one report

An employee uses corporate SSO, an EKS service renders the report, and a partner has an on-premises certificate. Each needs a different prefix and revocation path. A bucket policy previously granted the partner’s entire account access.

Compare your design with the worked answer

Federate the employee and map directory groups to scoped permission sets. Bind the renderer to its own workload identity. Exchange the trusted partner certificate for a narrowly scoped temporary role. Correct the bucket grant and review external-access findings. Test permitted and neighboring prefixes for all three paths, including any KMS decrypt check.

On departure, stop new workforce sessions and evaluate issued session lifetime or revocation. On certificate compromise, revoke trust or the certificate as appropriate and account for already-issued temporary sessions.

2.1.1 · Separate sign-in from identity lifecycle

A workforce identity provider can federate to IAM Identity Center with SAML and provision users and groups with SCIM. Map groups to permission sets and accounts. OIDC serves supported token-based integrations. Test departures as well as new hires, and account for the lifetime of existing sessions.

2.1.2 · Distinguish users, applications and pods

Cognito user pools issue application tokens. Identity pools can vend scoped temporary AWS credentials when clients need direct AWS access. Validate token issuer, audience and scopes at the API. Give individual Kubernetes service accounts workload roles through EKS Pod Identity or another supported mechanism. Keep node credentials separate from tenant identity.

2.1.3 · Delegate a bounded temporary session

Cross-account role assumption requires trust on the target role and authorization for the caller. An external ID can distinguish customers of a third-party deputy. Bound the role’s permissions, session lifetime and session tags. Session policies restrict existing grants; an external ID alone never grants the resource operation.

2.1.4 · Test the identity, network and resource perimeter

Define expected organizations, VPC endpoints and data resources. Use identity and resource policies with supported condition keys, endpoint policies to constrain the endpoint route, and Access Analyzer to review unintended external access. Exempt legitimate service-to-service paths deliberately. An endpoint policy alone cannot govern access through a different path.

2.1.5 · Issue temporary credentials outside AWS

IAM Roles Anywhere lets supported workloads present trusted X.509 certificates and obtain temporary role credentials. Define a trust anchor, role/profile and certificate lifecycle, including revocation. For a cloud provider with a supported OIDC identity, establish explicit audience and subject trust. Avoid long-lived keys in machine images.

Apply the video example

The Cognito identity-pool passage illustrates obtaining temporary AWS credentials. Compare that application flow with employee account assignment and certificate-based workload authentication; all three still need resource authorization.

freeCodeCamp · 68:15:24 in Cognito

Official SAP-C03 task 2.1 · AgentCore Identity

Return to the objective map

Knowledge check

Carry the right identity across every boundary quiz

Answer 5 questions. Check each answer for an explanation.