A smart agriculture enterprise operates a telemetry data processing application on Amazon EC2 instances in an Auto Scaling group. The application writes system and sensor processing logs to `/var/log/telemetry/gateway.log`. The application rotates logs hourly, renaming the historical logs to `/var/log/telemetry/gateway.log.YYYY-MM-DD-HH`. The company's operations team has installed the CloudWatch agent on the instances, but notices that logs generated after the hourly rotation are not being sent to Amazon CloudWatch Logs.
Additionally, the enterprise wants to centralize AWS CloudTrail logs from all member accounts in their AWS Organization into a single Amazon S3 bucket located in a dedicated Security account.
Which of the following actions should the Solutions Architect take to resolve these logging issues? (Select TWO.)
- Update the CloudWatch agent configuration file on the EC2 instances, setting the `file_path` parameter to `/var/log/telemetry/gateway.log*` to capture both the active log file and the rotated log files.Cevap
- BUpdate the CloudWatch agent configuration file on the EC2 instances, setting the `file_path` parameter to the static path `/var/log/telemetry/gateway.log` and enabling the `track_file_descriptor` setting to follow log rotation.
- Configure the S3 bucket policy in the Security account to grant `s3:PutObject` permissions to the CloudTrail service principal (`cloudtrail.amazonaws.com`), using the `aws:PrincipalOrgID` condition key to restrict write access to the organization.Cevap
- DConfigure the S3 bucket policy in the Security account to grant `s3:PutObject` permissions to the root IAM ARNs of all member accounts, relying on Service Control Policies (SCPs) to enforce log delivery only via CloudTrail.
- EConfigure the CloudWatch agent configuration file on the EC2 instances, setting the `file_path` parameter to the directory `/var/log/telemetry/` and enabling the `auto_rotation_discovery` parameter to track rotated log files.