exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 506 discussion

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?

  • A. Configure the API to send requests to Amazon Simple Queue Service (Amazon SQS) queues instead of directly to the Lambda functions. Update the Lambda functions to consume messages from the queues and to process the requests. Set up the queues to invoke the Lambda functions when new messages arrive.
  • B. Configure provisioned concurrency for each Lambda function. Use AWS Application Auto Scaling to register the Lambda functions as targets. Set up scaling schedules to increase and decrease capacity to match changes in API usage.
  • C. Create an API Gateway API key and an AWS WAF Regional web ACL. Associate the web ACL with the Production stage. Add a rate-based rule to the web ACL. In the rule, specify the rate limit and a custom request aggregation that uses the X-API-Key header. Share the API key with the external development team.
  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Chakanetsa
Highly Voted 9 months, 1 week ago
Selected Answer: D
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.
upvoted 5 times
...
nimbus_00
Most Recent 4 months, 3 weeks ago
Selected Answer: D
effective way to control API consumption = API KEY + Usage Plan https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html
upvoted 1 times
...
gfhbox0083
9 months, 2 weeks ago
Selected Answer: D
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.
upvoted 1 times
...
vip2
9 months, 3 weeks ago
Selected Answer: D
User plan is to define who and how much for API usage
upvoted 1 times
...
awsaz
10 months ago
Selected Answer: D
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
upvoted 4 times
...
mifune
10 months ago
Selected Answer: D
The "usage plan" is the key here for me to access the API within the defined limits.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago