D2: Programmatic Access, STS & Assuming Roles
AWS Associate AWS Certified Developer – Associate exam practice questions · 11 flashcards
Question
How to configure CLI access?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 Programmatic Access, STS & Assuming Roles practice questions and answers
- How to configure CLI access?aws configure (access keys), aws configure sso (IAM Identity Center), or roles via profiles.
- AWS STS AssumeRole?Returns temporary credentials (access key, secret, session token) for a role.
- Cross-account role access?Target account role trusts source account; source principal needs sts:AssumeRole permission.
- External ID?Shared secret in trust policy preventing the confused deputy problem for third parties.
- AssumeRoleWithWebIdentity?Exchange OIDC token (e.g. from Cognito, EKS IRSA, GitHub) for role credentials.
- AssumeRoleWithSAML?Exchange SAML assertion for role credentials.
- GetSessionToken?Temporary credentials for an IAM user, often with MFA.
- Session duration?1 hour default for roles, configurable up to 12 hours (max session duration).
- Authenticated calls to AWS services?SDK signs requests with SigV4 using credentials from the provider chain.
- Error: 'not authorized to perform sts:AssumeRole'. Fix?Update role trust policy and caller's identity policy.
- decode-authorization-message?STS API to decode encoded authorization failure messages.