A company runs a new application as a static website in Amazon S3. The company has deployed the application to a production AWS account and uses Amazon CloudFront to deliver the website. The website calls an Amazon API Gateway REST API. An AWS Lambda function backs each API method. The company wants to create a CSV report every 2 weeks to show each API Lambda function’s recommended configured memory, recommended cost, and the price difference between current configurations and the recommendations. The company will store the reports in an S3 bucket. Which solution will meet these requirements with the LEAST development time?
Select one answer.
Marked answer: B
Community Discussion
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Chose B1
C is not possible because the console only supports daily, weekly, or monthly schedules. For biweekly, you have to use another approach.
2
The question is asking for 'automated'. Also, you could use the console every two weeks, no one is preventing you. Answer C is wrong because there is no automated feature to export reports, not because of the biweekly.
Chose B1
Answer B Solution Steps 1. Use AWS Compute Optimizer for Lambda Recommendations AWS Compute Optimizer provides recommendations for Lambda functions, including: * Recommended memory size to improve performance or reduce cost. * Current and recommended cost comparisons. You can query AWS Compute Optimizer using the AWS Management Console, AWS CLI, or SDKs to retrieve the necessary data for your report. 2. Automate Data Retrieval Set up an AWS Lambda function to automate the process: 1. Query Compute Optimizer: * Use the GetLambdaFunctionRecommendations API to retrieve: * Current memory size * Recommended memory size * Current and recommended cost