SAP-C02 Exam QuestionsBrowse all questions from this exam

SAP-C02 Exam - Question 505


A company creates an Amazon API Gateway API and shares the API with an external development team. The API uses AWS Lambda functions and is deployed to a stage that is named Production.

The external development team is the sole consumer of the API. The API experiences sudden increases of usage at specific times, leading to concerns about increased costs. The company needs to limit cost and usage without reworking the Lambda functions.

Which solution will meet these requirements MOST cost-effectively?

Show Answer
Correct Answer: D

Creating an API Gateway API Key and usage plan allows you to control and limit the usage of the API. The usage plan lets you define throttling limits (requests per second) and quotas (total requests per day or month), ensuring that the API usage stays within the desired boundaries. This approach helps control costs by limiting the number of requests handled by the Lambda functions without requiring any changes to the existing Lambda functions or the overall architecture.

Discussion

5 comments
Sign in to comment
awsazOption: D
Jun 28, 2024

Creating an API key and a usage plan allows you to control and limit the usage of the API. The usage plan lets you define throttling limits (requests per second) and quotas (total requests per day or month). By associating the usage plan with the Production stage and the API key, you can enforce these limits on the external development team, ensuring that the API usage stays within the desired boundaries. This approach directly addresses the concern of sudden increases in usage and helps control costs without requiring any changes to the existing Lambda functions or the overall architecture

mifuneOption: D
Jun 27, 2024

The "usage plan" is the key here for me to access the API within the defined limits.

vip2Option: D
Jul 6, 2024

User plan is to define who and how much for API usage

gfhbox0083Option: D
Jul 12, 2024

D, for sure. API Gateway Usage Plans allow you to set throttling limits and quotas on API keys. This directly controls the number of requests per second and per day that the external development team can make. It helps in managing costs by limiting the amount of Lambda invocations triggered by API requests.

ChakanetsaOption: D
Jul 22, 2024

The most cost-effective solution to limit cost and usage for the API Gateway API with minimal code changes is: D. Create an API Gateway API Key and usage plan. Define throttling limits and quotas in the usage plan. Associate the usage plan with the Production stage and the API key. Share the API key with the external development team. Here's why this approach is most cost-effective: API Key and Usage Plan: This restricts access to the API only for the development team using the provided API key. The usage plan allows defining throttling limits (maximum requests per unit time) and quotas (total requests allowed) for the API key. This controls resource utilization and costs. Minimal Code Changes: No modifications are required to the existing Lambda functions, reducing development effort.