A media streaming platform runs its transaction processing workload on a fleet of Amazon EC2 instances managed by an Auto Scaling group across multiple AWS accounts in an organization. The application outputs transactional logs to `/var/log/checkout/transaction.log`. These logs are rotated hourly and renamed using the pattern `/var/log/checkout/transaction-YYYY-MM-DD-hh.log`. A Solutions Architect must design a solution to centralize these logs into a dedicated Amazon S3 bucket within a security account. The solution must ensure that log rotation does not interrupt log collection or result in duplicate log entries, and must enforce strict cross-account security controls. Which two of the following actions should the Solutions Architect perform to meet these requirements? (Select TWO.)
- Configure the log files collector in the Amazon CloudWatch agent configuration on the EC2 instances to monitor `/var/log/checkout/transaction*.log`, allowing the agent to track file state and process both current and rotated logs without data loss.Cevap
- In the security account, configure a CloudWatch Logs destination mapping to an Amazon Kinesis Data Firehose delivery stream that targets the central S3 bucket. Apply an access policy to the destination that trusts the member accounts, restricted by the `aws:PrincipalOrgID` condition key.Cevap
- CConfigure the log files collector in the Amazon CloudWatch agent configuration on the EC2 instances to target `/var/log/checkout/transaction.log` as a static file, relying on the agent's default behavior to automatically re-open and detect files when they are renamed during rotation.
- DSet up the destination S3 bucket policy in the security account to allow write actions from the member accounts' roles, but omit the specific service principal for CloudWatch Logs and the organizational constraints, relying on account-level bucket sharing instead.
- EImplement subscription filters in the member accounts to stream logs directly to the security account's S3 bucket, utilizing the default AWS-managed KMS key (`aws/s3`) to handle cross-account data encryption in transit.