Let’s Get Certified
Module 08 / 20 · Security and compliance

Grant the right identity temporary access

Protect root access, federate employees and grant a workload short-lived permissions scoped to its data.

A role for a nightly import

A scheduled process on EC2 needs to read one bucket. Someone proposes keeping an administrator access key and a database password in the startup script. Replace both credentials.

Federating the workforce

Centralize workforce access to applications and AWS accounts, often using an existing identity provider. Permission sets map identities to authorized account roles, and joiner and leaver processes stay manageable.

Issuing temporary credentials

A role supplies temporary credentials to an authorized principal. Workloads on EC2 can use an instance role. Cross-account access also needs a trust relationship and permission to assume the role.

Protecting the account owner

Reserve the account root identity for tasks that specifically require it. Protect its sign-in and recovery channels, avoid root access keys and use delegated roles for daily work. IAM groups and policies can organize permissions without sharing credentials.

Handling application secrets

Secrets Manager stores sensitive material such as database credentials and supports rotation. Systems Manager Parameter Store can hold configuration and encrypted parameters. Restrict permission to retrieve any secret.

Reducing excessive permissions

Start from the actions, resources and conditions the job requires. A managed or custom IAM policy can grant this scope. Review unused access and remove it when job duties change.

Work through the decision

Compare your reasoning

Attach a workload role with only the required bucket operations. Use a secret store such as Secrets Manager, or an appropriate encrypted Systems Manager parameter, for the database credential. Allow retrieval only by the intended role. Review the CloudTrail identity when testing.

Change one constraint

Separate the duties of an employee, an application and the account owner.

Check your answer

Federate employees and assign permissions by group. Give applications short-lived role credentials. Protect recovery channels and root access with MFA and reserve root for tasks that require it. A managed or custom IAM policy should still grant only the needed actions.

Revisit the demonstration

Policy and directory examples distinguish a trust decision from a permissions decision. Identify who can assume a role and what the resulting session can do. Identity · 8:01:00.

Sources and further practice

AWS exam guide for this objective · AWS documentation for this case

Compare the decision in the other cloud. Verify identity and limit the blast radius (AZ-900).

Knowledge check

Grant the right identity temporary access quiz

Answer 5 questions. Check each answer for an explanation.