Gateway and Cognito Flashcards

1
Q

What is the default cache TTL in API Gateway?

A

300 seconds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the max TTL in API Gateway?

A

3600 seconds (1 hour)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the API Gateway cache capacity?

A

Between 0.5GB to 237GB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How can a client bypass the cache to get data from the backend?

A

Send the header “Cache-Control:max-age=0”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you get Cloudwatch Logs for API Gateway?

A

Enable Cloudwatch logs on the stage level

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the 3 features of IAM in API GAteway?

A
  • Great for users/roles already in your AWS account
  • It handles authentication and authorization
  • Leverages Sig v4
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the 4 features of Custom Authorizor in API GAteway?

A
  • Great for 3rd party tokens
  • Very flexible in terms of what IAM policy is returned
  • Handles authentication and authorization
  • Py per Lambda invocation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the 3 features of Cognito User Pool in API GAteway?

A
  • You manage your own user pool, FB, Google etc
  • No need to write any custom code
  • Must implement authorization in the backend
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why would you use Cognito?

A

If you want to give a user an identity so that they can interact with our app

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Cognito User Pool?

A

Provides sign in functionality for app users

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Cognito Identity Pool?

A

It is Federated Identity. It provides AWS credentials to users to access AWS resources directly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is Cognito Sync?

A

It synchronizes data from a device to Cognito. Most likely being replaced by AppSync

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the 3 ways to write code in the SAM template?

A
  • AWS::SERVERLESS::FUNCTION
  • AWS::SERVERLESS::API
  • AWS::SERVERLESS::SIMPLETABLE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly