Interview Prep/AWS/IAM, Organizations and Multi-Account

A developer needs read-only access to one S3 bucket from their laptop. How do you grant it without creating long-lived access keys?

BeginnerScenarioIAM, Organizations and Multi-Account
Answer

Situation read → Human access to AWS should be federated and short-lived; an IAM user with static keys is the thing auditors flag first.

What I'd do →

  1. Put the person in IAM Identity Center (SSO) and create a permission set with a scoped policy for that bucket
  2. Assign the permission set to the user or group for the target account
  3. Developer runs aws configure sso then aws sso login --profile dev
  4. Verify with aws s3 ls s3://app-reports --profile dev and aws sts get-caller-identity

Why → SSO credentials expire in hours, access is revoked centrally when the person leaves, and CloudTrail shows the SSO role session name.

Interview tip → Say "no IAM users for humans" early; it signals you know the modern baseline.

aws All AWS questions Roadmap: AWS core services

More on IAM, Organizations and Multi-Account