Topic 1 Question 106
A security engineer wants to forward custom application-security logs from an Amazon EC2 instance to Amazon CloudWatch. The security engineer installs the CloudWatch agent on the EC2 instance and adds the path of the logs to the CloudWatch configuration file.
However, CloudWatch does not receive the logs. The security engineer verifies that the awslogs service is running on the EC2 instance.
What should the security engineer do next to resolve the issue?
Add AWS CloudTrail to the trust policy of the EC2 in stance. Send the custom logs to CloudTrail instead of CloudWatch.
Add Amazon S3 to the trust policy of the EC2 instance. Configure the application to write the custom logs to an S3 bucket that CloudWatch can use to ingest the logs.
Add Amazon Inspector to the trust policy of the EC2 instance. Use Amazon Inspector instead of the CloudWatch agent to collect the custom logs.
Attach the CloudWatchAgentServerPolicy AWS managed policy to the EC2 instance role.
ユーザの投票
コメント(8)
- 正解だと思う選択肢: D
D is correcto
👍 3[Removed]2024/05/25 - 正解だと思う選択肢: D
No doubt about D.
👍 3Aamee2024/05/27 - 正解だと思う選択肢: D
Uses of CloudWatchAgentServerPolicy ; It allows the CloudWatch agent to publish metrics and logs to CloudWatch on behalf of the IAM role or user the policy is attached to. It provides permissions for the agent to access and manage its own configuration files stored in S3. The policy grants permissions across multiple AWS services like CloudWatch, S3, KMS etc. to allow end-to-end functionality of the monitoring agent.
👍 3yorkicurke2024/06/24
シャッフルモード