Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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