QA
Beginner LevelCloud Computing (AWS/GCP/Azure)

What is Amazon API Gateway and how does it interface with AWS Lambda?

❓ Interview Prompt: Explain Amazon API Gateway REST vs HTTP APIs, request validation, throttling, CORS, and Lambda proxy integration.

Amazon API Gateway is a fully-managed service that makes it easy for developers to create, publish, maintain, monitor, and secure REST, HTTP, and WebSocket APIs at any scale.

Key API Types:

•
HTTP APIs: Lightweight, low-latency, lower-cost ($70\%$ cheaper) designed for simple serverless Lambda proxies.
•
REST APIs: Full-featured APIs offering request/response data transformation, API keys, usage plans, and WAF integration.

Core Features:

1
Lambda Proxy Integration: Forwards raw HTTP requests directly to Lambda handler functions.
2
Throttling & Rate Limiting: Protects backend services from traffic spikes using token bucket algorithms.
3
CORS Handling: Automatically responds to browser pre-flight 'OPTIONS' requests.

Code Implementation Example

hcl
# API Gateway HTTP API integrating with Lambda
resource "aws_apigatewayv2_api" "http_api" {
  name          = "serverless-api"
  protocol_type = "HTTP"
}

resource "aws_apigatewayv2_integration" "lambda_integration" {
  api_id           = aws_apigatewayv2_api.http_api.id
  integration_type = "AWS_PROXY"
  integration_uri  = aws_lambda_function.my_function.invoke_arn
}
💡Terraform API Gateway HTTP API proxy integration with Lambda.
🎯 Interview Key Takeaway

API Gateway acts as the entry point for serverless APIs, handling rate limiting, CORS, and Lambda proxy integrations.

#API Gateway#Lambda#REST API#Serverless#Beginner
Back to all Cloud Computing (AWS/GCP/Azure) Questions→

More Cloud Computing (AWS/GCP/Azure) Interview Questions

Beginner LevelCloud Computing (AWS/GCP/Azure)

How does Serverless Architecture (AWS Lambda / GCP Cloud Run) handle Auto-Scaling and Cold Starts?

Beginner LevelCloud Computing (AWS/GCP/Azure)

What is the difference between IaaS, PaaS, and SaaS cloud service models?

Beginner LevelCloud Computing (AWS/GCP/Azure)

What is AWS EC2 and what are On-Demand, Reserved, and Spot Instance pricing models?