Font size
WorksheetsAPI Gateway Worksheet (Questions 7-12)
Total questions: 31
Worksheet time: 18mins
What is the main purpose of Amazon API Gateway?
Store large amounts of unstructured data
Deploy virtual machines
Create, publish, and manage APIs at any scale
Host static websites
API Gateway can integrate directly with which of the following services?
Amazon EC2
AWS Lambda
Amazon S3
All of the above
Which protocol types are supported by Amazon API Gateway?
HTTP only
HTTPS only
REST, HTTP, and WebSocket
FTP and TCP
What is the default throttling limit for API Gateway requests per second per account?
1,000 RPS
10,000 RPS
100 RPS
Unlimited
Which AWS service works seamlessly with API Gateway to process backend logic?
Amazon DynamoDB
AWS Lambda
Amazon S3
AWS CloudFormation
What is the benefit of using API Gateway with AWS Lambda?
Manual scaling required
Fully serverless architecture
Requires dedicated servers
Which feature in API Gateway helps manage API versions or environments like Dev, Test, and Prod?
Stages
Endpoints
Methods
Routes
What is the purpose of usage plans in API Gateway?
Restrict IP addresses
Monitor backend database
Control API access and usage limits for specific users
Store API logs
What is the maximum payload size for a request in API Gateway?
1 MB
10 MB
5 MB
50 MB
API Gateway supports caching to improve performance. Where is this cache stored?
On S3
On EC2
In API Gateway itself
In CloudFront
Which AWS service is typically used with API Gateway for authentication and authorization?
AWS IAM
Amazon Cognito
AWS KMS
AWS Secrets Manager
In API Gateway, what is the purpose of a method request?
Which of the following metrics can be monitored for API Gateway in CloudWatch?
Latency
4XX and 5XX errors
Cache hit rates
All of the above
What is the main difference between REST API and HTTP API in API Gateway?
HTTP APIs are cheaper and faster with limited features
REST APIs are faster
HTTP APIs support SOAP
REST APIs only support WebSockets
How can you secure your API in API Gateway?
Use API Keys
Use IAM Roles
Use Cognito User Pools
All of the above
Which feature of API Gateway allows you to transform requests and responses?
Mapping Templates
Stages
Usage Plans
Models
When integrating API Gateway with AWS Lambda, what is the communication model?
Push Model
Pull Model
Event-driven Invocation
Manual Trigger
API Gateway integrates with which AWS service to deliver API traffic globally with low latency?
AWS CloudFront
AWS SNS
AWS Glue
Amazon Route 53
What is the default data format supported by API Gateway?
XML
JSON
YAML
Binary
Which AWS tool can automatically generate SDKs for APIs built in API Gateway?
AWS CLI
AWS CodeBuild
API Gateway Console
AWS Amplify
A developer wants to expose a Lambda function as a REST API without managing any servers. Which service combination is ideal?
EC2 + S3
API Gateway + Lambda
S3 + CloudFront
Route 53 + ECS
Your organization wants to build an API that supports real-time chat functionality. Which type of API Gateway should you choose?
REST API
HTTP API
WebSocket API
GraphQL API
23. You deployed an API but users are reporting increased latency. Which API Gateway feature can help improve performance?
Enable caching
Increase request throttling
Disable logging
Reduce endpoint count
You need to restrict an API so that only premium users can make more than 1000 requests per day. What should you configure?
API Keys and Usage Plans
IAM Policies
Custom Authorizer
Lambda Proxy Integration
An API returns sensitive financial data. Which method is most suitable to secure the API?
Enable caching
Use API Key
Use Cognito or IAM Authorization
Disable logging
You are deploying multiple versions of an API (v1, v2) for backward compatibility. How can you manage them efficiently?
Use stage variables
Create multiple accounts
Use separate AWS Regions
Use separate Lambda functions only
A user calls your API from a web browser but encounters a CORS error. How can you resolve this?
Enable CORS in API Gateway
Disable CloudWatch
Reboot the API Gateway
Enable public access to the backend
You need to analyze which API method (GET, POST, DELETE) is most used. Which AWS service will help?
CloudWatch Metrics
AWS Glue
CloudTrail
Which of the following is used to improve the performance of an API?
API Throttling
Caching
Stage Variables
Cross-Origin Resource Sharing (CORS)
A mobile app calls your API frequently and users are reporting "429 Too Many Requests" errors. What is the cause?
Incorrect API key
Throttling limits exceeded
Invalid payload
Lambda timeout
A development team wants to call an internal API from a private VPC without exposing it to the public internet. What should they configure?
VPC Endpoint for API Gateway (Private API)
Internet Gateway
NAT Gateway
Cross-region VPC Peering
