Top AWS API Gateway Interview Questions (2024)
What is AWS API Gateway?
Why do we require an AWS API gateway?
Is the Amazon API gateway secure?
How does AWS Gateway API work?
What is API Caching in API Gateway?
What are the benefits of an API Gateway?
What is the AWS API Gateway CLI command to get all Rest APIs info?
Q: What is AWS API Gateway?
Ans:
Amazon API Gateway is an AWS service that allows you to create, publish, maintain, monitor, and secure REST, HTTP, and WebSocket APIs at any scale. API developers can construct APIs that interact with AWS or other web services, as well as data stored in the AWS Cloud.
Q: Why do we require an AWS API gateway?
Ans:
API Gateway allows to provide a schema or model for the payload, to make it easier to set up the body mapping template. API Gateway offers REST API management features including the feature for API Gateway enhancements to OpenAPI provide support for producing SDKs and creating API documentation.
Q: Is the Amazon API gateway secure?
Ans:
Yes : Amazon API gateway is secured, because all APIs developed with Amazon API Gateway only expose HTTPS endpoints. Unencrypted (HTTP) endpoints are not supported by Amazon API Gateway..
Take a look at our suggested post:
Q: How does AWS Gateway API work?
Ans:
According to API Gateway documentation, it
manages all aspects of accepting and processing hundreds of thousands of concurrent
API calls. Traffic management, permission and access control, monitoring, and API version
management are examples of these tasks.
API Gateway works as a "front door" for accessing and monitoring data, business logic, or functionality from your backend services, like Amazon Elastic Compute Cloud (Amazon EC2) workloads, AWS Lambda code, any web application, or real-time communication applications.
Q: What is API Caching in API Gateway?
Ans:
Users can enable API caching in Amazon API Gateway to cache the responses for our endpoints. Caching allows to reduce the amount of calls made to our endpoint while also improving the latency of requests to the API. The TTL value for API caching is set to 300 seconds by default. TTL can be set to a maximum of 3600 seconds.
Q: What are the benefits of an API Gateway?
Ans:
- Cost Effective
- Requests are throttled to prevent attacks.
- API Caching
- The CloudWatch service, which is a monitoring service, is connected with an Amazon API Gateway.
- Scalable
- To ensure security, users can authorise API access in API Gateway. IAM is linked to a gateway, which provides tools such as AWS credentials.
Q: What is the AWS API Gateway CLI command to get all Rest APIs info?
Ans:
We will have to use apigatewayv2
for HTTP api:
aws apigatewayv2 get-apis