A financial technology company deploys a multi-tenant payment gateway application across multiple AWS accounts managed under a single organization in AWS Organizations. The application is hosted on Amazon EC2 instances within Auto Scaling groups. The application writes transaction events locally to /var/log/payment-app/transaction.log. A local script rotates these log files hourly by appending the current timestamp to the filename (e.g., transaction.log.2026-07-16-11) and creating a new empty transaction.log file.
To comply with audit regulations, all transaction logs must be aggregated in near real-time into a centralized Amazon S3 bucket located in a dedicated Security account. The logs must be encrypted at rest using a Customer Managed Key (CMK) in AWS KMS, and the architecture must prevent log loss or duplicate log ingestion.
Which combination of actions should a solutions architect take to meet these requirements? (Select TWO.)
- Configure the CloudWatch agent on the EC2 instances to monitor the log file using the static path /var/log/payment-app/transaction.log without wildcards, allowing the agent to automatically track file rotation using inodes.Cevap
- Create an Amazon Kinesis Data Stream in the Security account, configure a centralized CloudWatch Logs destination that points to the stream, and create CloudWatch Logs subscription filters in the member accounts to forward the log events.Cevap
- CConfigure the CloudWatch agent on the EC2 instances to monitor the log files using the path /var/log/payment-app/transaction.log* with a wildcard to ensure that all rotated logs are explicitly matched and streamed during the hourly rotation transition.
- DConfigure the central S3 bucket to use the default AWS-managed S3 key (aws/s3) for encryption at rest, and update the S3 bucket policy to allow the member account IAM roles to perform s3:PutObject operations.
- EConfigure the CloudWatch agent to write log files directly to a shared Amazon EFS volume mounted across accounts, and configure AWS DataSync to copy the files to the centralized S3 bucket hourly.