An Amazon CloudWatch Logs agent is successfully streaming logs, but logging stops after the associated log stream has been active for a set number of hours. What actions will help identify the cause? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Confirm that file permissions on the monitored log files still allow the CloudWatch Logs agent to read them., Verify that the operating system’s log rotation settings are compatible with the agent’s streaming configuration..
Why this is the answer
When CloudWatch Logs agent streaming stops after a period, permission issues or log rotation are common culprits. The agent requires read access to the log files it monitors; if permissions change or are revoked, streaming will cease. Similarly, log rotation can move, rename, or delete the log file the agent is tracking. If the agent isn't configured to follow rotated logs or the rotation scheme is incompatible, it will lose its target file. Introducing a Kinesis producer adds complexity without addressing the root cause of the agent stopping. Creating a CloudWatch Logs metric helps monitor, but not identify the cause of the stoppage. Using CloudFormation for configuration management is a good practice but doesn't inherently solve an agent stopping due to runtime issues like permissions or rotation.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed