SAP-C02 学习助手

SAP-C02 第 54 题

API Gateway Lambda CloudFront S3 EBS EventBridge CloudWatch Config EKS

题目

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?

中文翻译:
一家公司在 Amazon S3 中运行一个新应用程序作为静态网站。该公司已将该应用程序部署到生产 AWS 账户,并使用 Amazon CloudFront 交付该网站。该网站调用 Amazon API Gateway REST API。 AWS Lambda 函数支持每个 API 方法。该公司希望每两周创建一个 CSV 报告,以显示每个 API Lambda 函数的建议配置内存、建议成本以及当前配置与建议之间的价格差异。该公司将把报告存储在 S3 存储桶中。哪种解决方案能够以最短的开发时间满足这些要求?

选项

A. 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.

中文翻译:
创建一个 Lambda 函数,从 Amazon CloudWatch Logs 中提取 2 周内每个 API Lambda 函数的指标数据。将数据整理成表格格式。将数据以 .csv 文件形式存储在 S3 存储桶中。创建 Amazon EventBridge 规则以安排 Lambda 函数每 2 周运行一次。

B. 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.

中文翻译:
选择加入 AWS 计算优化器。创建一个调用 ExportLambdaFunctionRecommendations 操作的 Lambda 函数。将 .csv 文件导出到 S3 存储桶。创建 Amazon EventBridge 规则以安排 Lambda 函数每 2 周运行一次。

C. 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.

中文翻译:
选择加入 AWS 计算优化器。设置增强的基础设施指标。在 Compute Optimizer 控制台中,安排一项作业以将 Lambda 建议导出到 .csv 文件。每两周将文件存储在 S3 存储桶中。

D. 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.

中文翻译:
为生产账户购买 AWS 业务支持计划。选择加入 AWS Compute Optimizer 以进行 AWS Trusted Advisor 检查。在 Trusted Advisor 控制台中,安排作业将成本优化检查导出到 .csv 文件。每两周将文件存储在 S3 存储桶中。

答案

B

解析

正确答案:B 解析: 本题应选择 B。 正确选项: B. 选择加入 AWS 计算优化器。创建一个调用 ExportLambdaFunctionRecommendations 操作的 Lambda 函数。将 .csv 文件导出到 S3 存储桶。创建 Amazon EventBridge 规则以安排 Lambda 函数每 2 周运行一次。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词...

登录后查看完整解析