wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

API Gateway Worksheet (Questions 7-12)

Total questions: 31

Worksheet time: 18mins

Name
Class
Date
1.

What is the main purpose of Amazon API Gateway?

a)

Store large amounts of unstructured data

b)

Deploy virtual machines

c)

Create, publish, and manage APIs at any scale

d)

Host static websites

2.

API Gateway can integrate directly with which of the following services?

a)

Amazon EC2

b)

AWS Lambda

c)

Amazon S3

d)

All of the above

3.

Which protocol types are supported by Amazon API Gateway?

a)

HTTP only

b)

HTTPS only

c)

REST, HTTP, and WebSocket

d)

FTP and TCP

4.

What is the default throttling limit for API Gateway requests per second per account?

a)

1,000 RPS

b)

10,000 RPS

c)

100 RPS

d)

Unlimited

5.

Which AWS service works seamlessly with API Gateway to process backend logic?

a)

Amazon DynamoDB

b)

AWS Lambda

c)

Amazon S3

d)

AWS CloudFormation

6.

What is the benefit of using API Gateway with AWS Lambda?

a)

Manual scaling required

b)

Fully serverless architecture

c)

Requires dedicated servers

7.

Which feature in API Gateway helps manage API versions or environments like Dev, Test, and Prod?

a)

Stages

b)

Endpoints

c)

Methods

d)

Routes

8.

What is the purpose of usage plans in API Gateway?

a)

Restrict IP addresses

b)

Monitor backend database

c)

Control API access and usage limits for specific users

d)

Store API logs

9.

What is the maximum payload size for a request in API Gateway?

a)

1 MB

b)

10 MB

c)

5 MB

d)

50 MB

10.

API Gateway supports caching to improve performance. Where is this cache stored?

a)

On S3

b)

On EC2

c)

In API Gateway itself

d)

In CloudFront

11.

Which AWS service is typically used with API Gateway for authentication and authorization?

a)

AWS IAM

b)

Amazon Cognito

c)

AWS KMS

d)

AWS Secrets Manager

12.

In API Gateway, what is the purpose of a method request?

4 lines
13.

Which of the following metrics can be monitored for API Gateway in CloudWatch?

a)

Latency

b)

4XX and 5XX errors

c)

Cache hit rates

d)

All of the above

14.

What is the main difference between REST API and HTTP API in API Gateway?

a)

HTTP APIs are cheaper and faster with limited features

b)

REST APIs are faster

c)

HTTP APIs support SOAP

d)

REST APIs only support WebSockets

15.

How can you secure your API in API Gateway?

a)

Use API Keys

b)

Use IAM Roles

c)

Use Cognito User Pools

d)

All of the above

16.

Which feature of API Gateway allows you to transform requests and responses?

a)

Mapping Templates

b)

Stages

c)

Usage Plans

d)

Models

17.

When integrating API Gateway with AWS Lambda, what is the communication model?

a)

Push Model

b)

Pull Model

c)

Event-driven Invocation

d)

Manual Trigger

18.

API Gateway integrates with which AWS service to deliver API traffic globally with low latency?

a)

AWS CloudFront

b)

AWS SNS

c)

AWS Glue

d)

Amazon Route 53

19.

What is the default data format supported by API Gateway?

a)

XML

b)

JSON

c)

YAML

d)

Binary

20.

Which AWS tool can automatically generate SDKs for APIs built in API Gateway?

a)

AWS CLI

b)

AWS CodeBuild

c)

API Gateway Console

d)

AWS Amplify

21.

A developer wants to expose a Lambda function as a REST API without managing any servers. Which service combination is ideal?

a)

EC2 + S3

b)

API Gateway + Lambda

c)

S3 + CloudFront

d)

Route 53 + ECS

22.

Your organization wants to build an API that supports real-time chat functionality. Which type of API Gateway should you choose?

a)

REST API

b)

HTTP API

c)

WebSocket API

d)

GraphQL API

23.

23. You deployed an API but users are reporting increased latency. Which API Gateway feature can help improve performance?

a)

Enable caching

b)

Increase request throttling

c)

Disable logging

d)

Reduce endpoint count

24.

You need to restrict an API so that only premium users can make more than 1000 requests per day. What should you configure?

a)

API Keys and Usage Plans

b)

IAM Policies

c)

Custom Authorizer

d)

Lambda Proxy Integration

25.

An API returns sensitive financial data. Which method is most suitable to secure the API?

a)

Enable caching

b)

Use API Key

c)

Use Cognito or IAM Authorization

d)

Disable logging

26.

You are deploying multiple versions of an API (v1, v2) for backward compatibility. How can you manage them efficiently?

a)

Use stage variables

b)

Create multiple accounts

c)

Use separate AWS Regions

d)

Use separate Lambda functions only

27.

A user calls your API from a web browser but encounters a CORS error. How can you resolve this?

a)

Enable CORS in API Gateway

b)

Disable CloudWatch

c)

Reboot the API Gateway

d)

Enable public access to the backend

28.

You need to analyze which API method (GET, POST, DELETE) is most used. Which AWS service will help?

a)

CloudWatch Metrics

b)

AWS Glue

c)

CloudTrail

29.

Which of the following is used to improve the performance of an API?

a)

API Throttling

b)

Caching

c)

Stage Variables

d)

Cross-Origin Resource Sharing (CORS)

30.

A mobile app calls your API frequently and users are reporting "429 Too Many Requests" errors. What is the cause?

a)

Incorrect API key

b)

Throttling limits exceeded

c)

Invalid payload

d)

Lambda timeout

31.

A development team wants to call an internal API from a private VPC without exposing it to the public internet. What should they configure?

a)

VPC Endpoint for API Gateway (Private API)

b)

Internet Gateway

c)

NAT Gateway

d)

Cross-region VPC Peering