nerdexam
Amazon

SAP-C02 · Question #768

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…

The correct answer is D. Create an API Gateway API Key and usage plan. Define throttling limits and quotas in the usage. To cost-effectively limit API usage and costs without modifying Lambda functions, the solution is to create an API Gateway API Key, assign it to the external development team, and define throttling limits and quotas within an API Gateway usage plan.

Submitted by tom_us· Mar 6, 2026Continuous Improvement for Existing Solutions

Question

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?

Options

  • AConfigure the API to send requests to Amazon Simple Queue Service (Amazon SQS) queues
  • BConfigure provisioned concurrency for each Lambda function. Use AWS Application Auto Scaling
  • CCreate an API Gateway API key and an AWS WAF Regional web ACL. Associate the web ACL
  • DCreate an API Gateway API Key and usage plan. Define throttling limits and quotas in the usage

How the community answered

(39 responses)
  • A
    13% (5)
  • B
    3% (1)
  • C
    5% (2)
  • D
    79% (31)

Why each option

To cost-effectively limit API usage and costs without modifying Lambda functions, the solution is to create an API Gateway API Key, assign it to the external development team, and define throttling limits and quotas within an API Gateway usage plan.

AConfigure the API to send requests to Amazon Simple Queue Service (Amazon SQS) queues

Configuring the API to send requests to Amazon Simple Queue Service (Amazon SQS) queues would fundamentally change the API's behavior from synchronous to asynchronous and would require reworking the Lambda functions to process SQS messages.

BConfigure provisioned concurrency for each Lambda function. Use AWS Application Auto Scaling

Configuring provisioned concurrency for Lambda functions addresses cold start latency and performance, but it does not limit the number of API calls or control costs; in fact, it incurs additional costs.

CCreate an API Gateway API key and an AWS WAF Regional web ACL. Associate the web ACL

While AWS WAF Regional can provide rate-limiting functionality, it is primarily a security service, and a usage plan within API Gateway is a more direct, cost-effective, and simpler mechanism for managing specific consumer usage limits.

DCreate an API Gateway API Key and usage plan. Define throttling limits and quotas in the usageCorrect

An API Gateway API Key combined with a usage plan is the most effective and cost-efficient solution to limit API usage and costs for a specific consumer without modifying backend Lambda functions, as it allows defining throttling limits (e.g., requests per second, burst) and quotas (e.g., total requests over a month) directly on the API Gateway.

Concept tested: API Gateway Usage Plans, Throttling, Quotas, API Keys

Source: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html

Community Discussion

No community discussion yet for this question.

Full SAP-C02 Practice