An enterprise operates a payment processing platform deployed on Amazon EC2 instances in an Auto Scaling group across multiple member accounts in an AWS Organization. The application on each instance writes transaction and error logs to a local file path `/var/log/payment/app.log`. These logs are rotated hourly and renamed to `/var/log/payment/app.log.YYYY-MM-DD-HH` via a local cron job. The enterprise requires a centralized, secure logging solution to stream these logs to a single Amazon S3 bucket in a dedicated Security Account. The solution must ensure that no log entries are lost during log rotation, all log data is encrypted at rest using a customer managed key (CMK) in AWS KMS, and the architecture adheres to the principle of least privilege. Which two actions should the Solutions Architect take to satisfy these requirements? (Select TWO.)
- Configure the Unified CloudWatch Agent on the EC2 instances. In the agent configuration JSON file, specify `/var/log/payment/app.log*` in the `file_path` field under the `logs` section.Answer
- In the Security Account, create a cross-account CloudWatch Logs destination pointing to an Amazon Kinesis Data Firehose delivery stream that writes to the destination S3 bucket. In the member accounts, create CloudWatch Logs subscription filters that point to the Security Account's destination ARN.Answer
- CConfigure the Unified CloudWatch Agent on the EC2 instances. In the agent configuration JSON file, specify `/var/log/payment/app.log` in the `file_path` field under the `logs` section, as the agent automatically detects log rotation and follows the renamed files via inode tracking.
- DIn each member account, create an Amazon Kinesis Data Firehose delivery stream that writes directly to the central S3 bucket in the Security Account. Encrypt the S3 bucket using the default AWS-managed key (`aws/s3`) and configure the S3 bucket policy to allow the member accounts' Firehose IAM roles to perform `s3:PutObject`.
- EIn the Security Account, create an Amazon S3 bucket and configure its bucket policy to allow `s3:PutObject` and `kms:GenerateDataKey` permissions for the root principal of the AWS Organization. Configure the CloudWatch agent on the EC2 instances to write log data directly to the S3 bucket using custom log destinations.