Which solution will meet these requirements with the LEAST development time?
Create a Lambda function that extracts metrics data for each API Lambda function from Amazon CloudWatch Logs for the 2-week period. Collate the data into tabular format. Store the data as a .csv file in an S3 bucket. Create an Amazon EventBridge rule to schedule the Lambda function to run every 2 weeks.
Opt in to AWS Compute Optimizer. Create a Lambda function that calls the ExportLambdaFunctionRecommendations operation. Export the .csv file to an S3 bucket. Create an Amazon EventBridge rule to schedule the Lambda function to run every 2 weeks.
Opt in to AWS Compute Optimizer. Set up enhanced infrastructure metrics. Within the Compute Optimizer console, schedule a job to export the Lambda recommendations to a .csv file. Store the file in an S3 bucket every 2 weeks.
Purchase the AWS Business Support plan for the production account. Opt in to AWS Compute Optimizer for AWS Trusted Advisor checks. In the Trusted Advisor console, schedule a job to export the cost optimization checks to a .csv file. Store the file in an S3 bucket every 2 weeks.
Explanations:
This option requires the development of a custom Lambda function to extract metrics from CloudWatch Logs, collate data, and format it into CSV, which involves significant coding and complexity compared to other options.
This option utilizes AWS Compute Optimizer to automatically generate recommendations for Lambda functions and provides a built-in method to export these recommendations to a CSV file. This minimizes development effort since AWS manages the recommendations and export process.
While it involves AWS Compute Optimizer, this option requires setting up enhanced infrastructure metrics and manually scheduling exports via the console, which adds unnecessary complexity and does not provide a straightforward automation method compared to option B.
This option requires purchasing a support plan and leveraging Trusted Advisor checks, which is not directly aimed at Lambda memory recommendations and involves manual intervention for CSV exports, making it less efficient than option B.