API Gateway Flashcards

1
Q

What are the steps to use API gateway + cloud front with a custom domain name?

A
  1. Get a certificate
  2. Import the certificate to ACM in the same region as the rest API
  3. Create a DNS A record. The A record points to the cloud front distribution.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are api gateway 4XXErrors? 5XXErrors?

A

4XXError = client-side errors, such as unauthorized access or invalid requests
5XXError = server-side errors, such as integration failures or configuration issues

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

how to authorize api gateway using https, aws certification manager and route 53?

A
  1. create an SSL certificate in ACM for your custom domain
  2. configure Route 53 to point to your API Gateway endpoint using an alias record
    3.associate the ACM certificate with your custom domain within API Gateway
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the important 4XX errors?

A
  • 400: Bad Request
  • 403: Access Denied, WAF filtered
  • 429: Quota exceeded, Throttle
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the important 5XX errors?

A
  • 502: Bad Gateway Exception, usually for an incompatible output returned from a
    Lambda proxy integration backend and occasionally for out-of-order invocations due to
    heavy loads.
  • 503: Service Unavailable Exception
  • 504: Integration Failure – ex Endpoint Request Timed-out Exception
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the API Gateway Import API in the AWS Console feature for?

A

Allows you to to import a REST API from an external definition file into API Gateway. Currently, the Import API feature supports OpenAPI v2.0 and OpenAPI v3.0 definition files

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

What are stage variables in gateway?

A

Stage variables are name-value pairs that you can define as configuration attributes associated with a deployment stage of a REST API. They act like environment variables and can be used in your API setup and mapping templates.

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

What types of Gateway authorizers can you have?

A

Lambda(token or request-based)
Cognito User Pools (not identity)
IAM

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