ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 605 - DVA-C01 discussion

Report
Export

A company that manages movie reviews wants to make its movie review data available to its customers by calling a set of REST web service endpoints. The company will develop the retrieval functionality as AWS Lambda functions and will expose the functionality to customers as an Amazon API Gateway REST API.

The company needs to ensure that no consumer exceeds 100 requests a day to the API during the initial deployment. The company decides to use API Gateway API keys to restrict access. The company creates and issues API keys for each customer.

What should the company do next to meet these requirements with the LEAST administrative effort?

A.
Create a usage plan that applies throttling at 100 requests a day. Associate the usage plan with the API keys of all customers.
Answers
A.
Create a usage plan that applies throttling at 100 requests a day. Associate the usage plan with the API keys of all customers.
B.
Create an Amazon DynamoDB table to track all the requests that use a particular API key. For each request to the API, count the number of records in the DynamoDB table for that day for the API key. If the number of requests is 100 or greater, generate an exception.
Answers
B.
Create an Amazon DynamoDB table to track all the requests that use a particular API key. For each request to the API, count the number of records in the DynamoDB table for that day for the API key. If the number of requests is 100 or greater, generate an exception.
C.
Create a usage plan that applies a quota of 100 requests a day. Associate the usage plan with the API keys of all customers.
Answers
C.
Create a usage plan that applies a quota of 100 requests a day. Associate the usage plan with the API keys of all customers.
D.
Create an Amazon Aurora table to track all the requests that use a particular API key. For each request to the API, count the number of records in the Aurora table for that day for the API key. If the number of requests is 100 or greater, generate an exception.
Answers
D.
Create an Amazon Aurora table to track all the requests that use a particular API key. For each request to the API, count the number of records in the Aurora table for that day for the API key. If the number of requests is 100 or greater, generate an exception.
Suggested answer: C

Explanation:

What is quota in API gateway?

API quotas usually describe a certain amount of calls for longer intervals. For example, your API quota might be 5.000 calls per month. Remember that this could be combined with a rate limit or throttling setup e.g. 20 TPS (Transactions per Second).

What is throttling in AWS API gateway?

AWS throttling limits are applied across all accounts and clients in a region. These limit settings exist to prevent your API—and your account—from being overwhelmed by too many requests. These limits are set by AWS and can't be changed by a customer.

https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-usage-planswith-console.html#api-gateway-usage-plan-create Choose Enable quota, and set specify a value (for example, 5000) for a selected time interval (for example, Month).

asked 16/09/2024
Elefánti Gábor
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first