SAP-C02 第 259 题
题目
A company has an application that is deployed on Amazon EC2 instances behind an Application Load Balancer (ALB). The instances are part of an Auto Scaling group. The application has unpredictable workloads and frequently scales out and in. The company’s development team wants to analyze application logs to find ways to improve the application's performance. However, the logs are no longer available after instances scale in. Which solution will give the development team the ability to view the application logs after a scale-in event?
中文翻译:
一家公司有一个应用程序部署在应用程序负载均衡器 (ALB) 后面的 Amazon EC2 实例上。这些实例是 Auto Scaling 组的一部分。该应用程序具有不可预测的工作负载,并且经常横向扩展和收缩。该公司的开发团队希望分析应用程序日志,以找到提高应用程序性能的方法。但是,在实例缩减后,日志将不再可用。哪种解决方案将使开发团队能够在缩减事件后查看应用程序日志?
选项
A. Enable access logs for the ALB. Store the logs in an Amazon S3 bucket.
中文翻译:
启用 ALB 的访问日志。将日志存储在 Amazon S3 存储桶中。
B. Configure the EC2 instances to publish logs to Amazon CloudWatch Logs by using the unified CloudWatch agent.
中文翻译:
配置 EC2 实例以使用统一的 CloudWatch 代理将日志发布到 Amazon CloudWatch Logs。
C. Modify the Auto Scaling group to use a step scaling policy.
中文翻译:
修改 Auto Scaling 组以使用步进扩展策略。
D. Instrument the application with AWS X-Ray tracing.
中文翻译:
使用 AWS X-Ray 跟踪检测应用程序。
答案
B
解析
正确答案:B 解析: 本题应选择 B。 正确选项: B. 配置 EC2 实例以使用统一的 CloudWatch 代理将日志发布到 Amazon CloudWatch Logs。 选择理由: 该选项最直接地满足题干中的关键约束。做 SAP-C02 题目时,需要同时对照题干里的限定词,例如最高性能、最低运维开销、成本效益、可靠性、可扩展性、安全性、RTO/RPO、合规要求等。本题相关考点主要包括:S3、EC2、CloudWatch、Conf...