SAP-C02 学习助手

SAP-C02 第 458 题

Lambda RDS CloudWatch Config

题目

A company wants to record key performance indicators (KPIs) from its application as part of a strategy to convert to a user-based licensing schema. The application is a multi-tier application with a web-based UI. The company saves all log files to Amazon CloudWatch by using the CloudWatch agent. All logins to the application are saved in a log file. As part of the new license schema, the company needs to find out how many unique users each client has on a daily basis, weekly basis, and monthly basis. Which solution will provide this information with the LEAST change to the application?

中文翻译:
一家公司希望记录其应用程序的关键绩效指标 (KPI),作为转换为基于用户的许可模式策略的一部分。该应用程序是一个多层应用程序,具有基于 Web 的 UI。该公司使用 CloudWatch 代理将所有日志文件保存到 Amazon CloudWatch。应用程序的所有登录都保存在日志文件中。作为新许可证架构的一部分,公司需要了解每个客户每天、每周和每月有多少唯一用户。哪种解决方案将在对应用程序进行最少更改的情况下提供此信息?

选项

A. Configure an Amazon CloudWatch Logs metric filter that saves each successful login as a metric. Configure the user name and client name as dimensions for the metric.

中文翻译:
配置 Amazon CloudWatch Logs 指标过滤器,将每次成功登录保存为指标。将用户名和客户端名称配置为指标的维度。

B. Change the application logic to make each successful login generate a call to the AWS SDK to increment a custom metric that records user name and client name dimensions in CloudWatch.

中文翻译:
更改应用程序逻辑,使每次成功登录都会生成对 AWS 开发工具包的调用,以增加记录 CloudWatch 中的用户名和客户端名称维度的自定义指标。

C. Configure the CloudWatch agent to extract successful login metrics from the logs. Additionally, configure the CloudWatch agent to save the successful login metrics as a custom metric that uses the user name and client name as dimensions for the metric.

中文翻译:
配置 CloudWatch 代理以从日志中提取成功登录指标。此外,配置 CloudWatch 代理以将成功登录指标保存为自定义指标,该指标使用用户名和客户端名称作为指标的维度。

D. Configure an AWS Lambda function to consume an Amazon CloudWatch Logs stream of the application logs. Additionally, configure the Lambda function to increment a custom metric in CloudWatch that uses the user name and client name as dimensions for the metric.

中文翻译:
配置 AWS Lambda 函数以使用应用程序日志的 Amazon CloudWatch Logs 流。此外,配置 Lambda 函数以增加 CloudWatch 中的自定义指标,该指标使用用户名和客户端名称作为指标的维度。

答案

A

解析

正确答案:A 解析: 本题应选择 A。 正确选项: A. 配置 Amazon CloudWatch Logs 指标过滤器,将每次成功登录保存为指标。将用户名和客户端名称配置为指标的维度。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:Lambda、RDS、CloudW...

登录后查看完整解析