A static website is hosted in Amazon S3 and delivered with CloudFront. The site calls an Amazon API Gateway REST API whose methods are backed by AWS Lambda functions. The company needs a CSV report every two weeks that lists, for each API Lambda function: the recommended memory configuration, the recommended cost, and the price difference between the function’s current configuration and the recommendation. The CSV files will be stored in S3. Which solution requires the least development effort?
Choose an answer
Tap an option to check your answer.
Correct answer: Opt in to AWS Compute Optimizer. Create a Lambda function that calls ExportLambdaFunctionRecommendations, export the resulting .csv to an S3 bucket, and schedule that Lambda with an EventBridge rule to run every two weeks..
Why this is the answer
The correct solution leverages AWS Compute Optimizer, which automatically analyzes Lambda function configurations and provides recommendations for optimal memory, cost, and performance. The ExportLambdaFunctionRecommendations API call directly generates a CSV report with the required data, including recommended memory, cost, and price differences. A simple Lambda function can then call this API, save the output to S3, and be scheduled with EventBridge, minimizing development effort. Incorrect options: Extracting metrics from CloudWatch Logs and manually aggregating them is complex and requires significant development to calculate recommendations and cost differences, which Compute Optimizer handles automatically. While Compute Optimizer can export recommendations, scheduling exports directly from the console for specific intervals like "every two weeks" for a CSV to S3 is not a standard feature. The API call provides programmatic control. AWS Trusted Advisor provides cost optimization checks but does not offer the granular, function-specific memory and cost recommendations that Compute Optimizer does for Lambda functions.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed