AWS 22, 23, 24 Flashcards
What indicates that a YAML file is a SAM template?
There needs to be a Transform Header
What is a Cognito User Pool?
Create a serverless database of users for your web & mobile apps
Cognito User Pools integrates with what two services natively?
API Gateway and Application Load Balancer
What is Cognito Identity Pools?
Allows us to grant temporary access to AWS resources to users that we do not want to give IAM access to. Either because of size or security concerns
Cognito Identity Pools allow for unauthenticated guest access, true or false?
True
How does Cognito Identity Pools work with Cognito User Pools?
Users will reach out to Cognito User Pools which will either reach out to an Internal DB of users or Federated login options;
CUP will return a token;
Users will send token to CIP;
CIP will validate with CUP and get temp creds with STS and return the credentials;
What is the difference between standard vs express step functions?
Standard workflow has a maximum duration of 1 year and express step functions have and express workflow of 5 minutes;
Express is cheaper;
What is AWS STS?
Allows you to grant and temporarily access AWS resources (up to 1 hour)
If you don’t know what user or role you are using, what call can you make with STS?
GetCallerIdentity
How do we define in IAM roles who can assume the role?
The Principal element in the role’s trust policy
What temporary security credentials are returned when you use STS AssumeRole?
Access key ID, secret access key, and a security token
What call do we make to STS to get credentials once logged in with MFA?
GetSessionToken
What happens when an IAM principal makes an API request to S3 with a bucket policy?
The union of the IAM Policy and the S3 Bucket Policy is examined; an explicit deny on the S3 Bucket Policy overrules everything.
An EC2 instance does not have an allowance to access an S3 bucket but the S3 bucket does allow the EC2 instance contact on the bucket policy. What is the outcome?
The EC2 instance will be able to access the S3 bucket.
How can we make sure that a user can give an AWS service a role?
We use IAM PassRole and define what we can pass to a service; however, we must have a trust policy on that role which allows it to be given to be used by the service