AWS STS Flashcards
(90 cards)
What does STS stand for in AWS?
Security Token Service
True or False: AWS STS allows users to create temporary security credentials.
True
Fill in the blank: AWS STS is primarily used for _____ authentication.
temporary
What is the maximum duration for which AWS STS credentials can be valid?
12 hours
Which AWS service can be used to assume a role and gain temporary access to AWS resources?
AWS STS
What API action is used to request temporary security credentials in AWS STS?
AssumeRole
True or False: Temporary security credentials provided by AWS STS are long-lived.
False
What are the three components of temporary security credentials provided by AWS STS?
Access key ID, secret access key, session token
Multiple Choice: Which of the following is NOT a use case for AWS STS? A) Cross-account access B) Federated user access C) Long-term IAM user creation
C) Long-term IAM user creation
What is the purpose of the AssumeRoleWithWebIdentity API call?
To allow users to access AWS resources using web identity tokens from providers like Google or Facebook.
True or False: AWS STS can be used to grant permissions to users from outside of your AWS account.
True
What type of policy can be attached to a role assumed via AWS STS?
IAM policy
Fill in the blank: The AWS STS service is region-specific and must be called from a _____ region.
specific
Which AWS STS feature allows users to delegate access to AWS resources without sharing long-term credentials?
Assuming roles
What is the difference between AssumeRole and AssumeRoleWithSAML?
AssumeRole is for AWS IAM roles, while AssumeRoleWithSAML is for SAML-based federated authentication.
True or False: AWS STS supports the use of access policies to control the permissions of temporary security credentials.
True
What is the main benefit of using AWS STS for cross-account access?
It allows for secure and temporary access without sharing long-term credentials.
Multiple Choice: Which of the following is a valid AWS STS API action? A) CreateTemporaryCredentials B) GetSessionToken C) UpdateRole
B) GetSessionToken
What is a key advantage of using temporary credentials over long-term credentials?
Reduced risk of credential compromise
Fill in the blank: The session token issued by AWS STS is required to make requests using temporary credentials, and it must be included in the _____ header.
Authorization
What is the purpose of the GetFederationToken API call in AWS STS?
To provide temporary credentials for federated users.
True or False: AWS STS can issue credentials based on a predefined IAM policy.
True
What is the maximum number of roles that can be assumed in a single AssumeRole call?
One
Multiple Choice: Which of the following scenarios would NOT benefit from AWS STS? A) A web application granting temporary access to users B) A single AWS account managing all resources C) A mobile app accessing AWS resources securely
B) A single AWS account managing all resources