Question 1
At Orchard Insurance, an organization in insurance claims operating under controlled access to sensitive records, engineers observe: An EC2 application intermittently returns errors, but operators collect CPU metrics only and cannot inspect application exception details. Which corrective operational action most directly addresses this failure?
Explanation
Correct Answer
Ship structured application logs to CloudWatch Logs with a defined log group, permissions, and retention period. This targets the exact operational failure at Orchard Insurance: An EC2 application intermittently returns errors, but operators collect CPU metrics only and cannot inspect application exception details. The team should verify success with a controlled check: An induced application exception is searchable in its expected CloudWatch log stream with request metadata and a timestamp.
Incorrect Answers
Implement a governed centralized AWS logging destination with supported cross-account delivery and retention controls. This action can address a DIFFERENT CloudOps problem: A multi-account operations team forwards logs to an ad hoc shared EC2 file server and loses records when the instance is replaced. It would not directly correct the fault observed at Orchard Insurance: An EC2 application intermittently returns errors, but operators collect CPU metrics only and cannot inspect application exception details. The relevant acceptance evidence instead is: An induced application exception is searchable in its expected CloudWatch log stream with request metadata and a timestamp.
Correct the agent configuration and instance identity, then distribute its versioned settings across the target managed instances. This action can address a DIFFERENT CloudOps problem: A fleet uses an outdated CloudWatch agent configuration that sends Windows event logs to an incorrect AWS Region. It would not directly correct the fault observed at Orchard Insurance: An EC2 application intermittently returns errors, but operators collect CPU metrics only and cannot inspect application exception details. The relevant acceptance evidence instead is: An induced application exception is searchable in its expected CloudWatch log stream with request metadata and a timestamp.
Enable an appropriately scoped CloudTrail trail and query its management events to identify the principal, action, and time. This action can address a DIFFERENT CloudOps problem: Security investigators need an auditable history of IAM role changes, but the team mistakes CloudWatch application logs for the API audit record. It would not directly correct the fault observed at Orchard Insurance: An EC2 application intermittently returns errors, but operators collect CPU metrics only and cannot inspect application exception details. The relevant acceptance evidence instead is: An induced application exception is searchable in its expected CloudWatch log stream with request metadata and a timestamp.