A logistics company collects real-time vehicle telemetry data using a custom logging framework running on a fleet of Amazon EC2 instances in an Auto Scaling group. The logging framework rotates the log files hourly, renaming them using the pattern `/var/log/telemetry/telemetry-YYYY-MM-DD-hh.log`. The operations team wants to stream these logs to Amazon CloudWatch Logs using the CloudWatch agent, and then use Amazon Kinesis Data Firehose to deliver them to a centralized Amazon S3 bucket in a dedicated security account. Currently, logs are not appearing in the central S3 bucket after the first hour of EC2 instance launch. Which two actions should the solutions architect take to resolve the logging delivery failures and ensure operational excellence? (Select TWO.)
- Specify the log file path as `/var/log/telemetry/telemetry-*.log` in the CloudWatch agent configuration file to ensure the agent monitors and tracks the rotated log files.Answer
- Update the S3 bucket policy in the centralized security account to allow `s3:PutObject` permissions for the IAM role assumed by the Kinesis Data Firehose delivery stream in the application account.Answer
- CSpecify the static path `/var/log/telemetry/telemetry-current.log` in the CloudWatch agent configuration and configure a cron job to restart the CloudWatch agent daemon every hour.
- DAttach a Service Control Policy (SCP) to the application account's Organizational Unit (OU) that grants `s3:PutObject` access to the centralized S3 bucket for all resources in the account.
- EConfigure the destination S3 bucket to encrypt objects using the default AWS-managed KMS key (`aws/s3`) and grant the Kinesis Data Firehose IAM role permission to use this key for cross-account writes.