Hard1 markMultiple Choice
Domain 4.2: Compute Cost OptimizationDomain 4CostAPI GatewayServerless

AWS SAA-C03 · Question 59 · Domain 4.2: Compute Cost Optimization

A company has a serverless application using Amazon API Gateway and AWS Lambda. The application is invoked millions of times per day, and the AWS bill is higher than expected. The solutions architect notices that the Lambda function execution time is very fast, but the API Gateway costs are dominating the bill. Which TWO strategies can reduce the overall cost of this architecture? (Select TWO.)

Answer options:

A.

Increase the memory allocated to the Lambda function.

B.

Switch from API Gateway REST APIs to HTTP APIs.

C.

Deploy an Application Load Balancer (ALB) instead of API Gateway.

D.

Implement caching in API Gateway.

E.

Purchase EC2 Reserved Instances.

How to approach this question

Identify ways to reduce API Gateway costs: HTTP APIs are cheaper than REST APIs, and caching reduces backend calls.

Full Answer

B,D
To optimize API Gateway costs, you can switch from REST APIs to HTTP APIs, which are significantly cheaper and offer core serverless API functionality. Additionally, enabling caching in API Gateway reduces the number of requests sent to the backend Lambda function, saving compute costs and improving response times.

Common mistakes

Thinking increasing Lambda memory saves money. It only saves money if the execution time drops significantly enough to offset the higher per-ms cost, but the prompt says execution is already very fast.

Practice the full AWS SAA-C03 Practice Exam 1

65 questions · hints · full answers · grading

More questions from this exam