Q80 — AWS SCS-C02 Ch.1
Question 80 of 100 | ← Chapter 1
Amazon CloudWatch Logs agent is successfully delivering logs to the CloudWatch Logs service. However, logs stop being delivered after the associated log stream has been active for a specic number of hours. What steps are necessary to identify the cause of this phenomenon? (Choose two.)
- A. Ensure that le permissions for monitored les that allow the CloudWatch Logs agent to read the le have not been modied. ✓
- B. Verify that the OS Log rotation rules are compatible with the configuration requirements for agent streaming. ✓
- C. Congure an Amazon Kinesis producer to rst put the logs into Amazon Kinesis Streams.
- D. Create a CloudWatch Logs metric to isolate a value that changes at least once during the period before logging stops.
- E. Use AWS CloudFormation to dynamically create and maintain the configuration le for the CloudWatch Logs agent.
Correct Answer: A. Ensure that le permissions for monitored les that allow the CloudWatch Logs agent to read the le have not been modied., B. Verify that the OS Log rotation rules are compatible with the configuration requirements for agent streaming.
Explanation
这道题考察CloudWatch Logs代理停止传送日志后的故障排查。根据AWS文档,当日志流活跃一段时间后停止传输,常见原因与文件权限和日志轮转设置有关。选项A涉及文件权限检查,若权限变更可能导致代理无法读取日志文件。选项B关注操作系统日志轮转规则与代理配置是否冲突,例如轮转后代理无法识别新日志文件。其他选项如C、D、E与问题场景关联性较低,或未直接解决日志传输中断的具体原因。AWS最佳实践指出,处理此类问题时需优先验证权限及轮转配置(来源:AWS CloudWatch Logs Troubleshooting Guide)。