AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 327

A company has an application that runs on Amazon EC2 instances in an Auto Scaling group. The application processes a high volume of messages from an Amazon Simple Queue Service (Amazon SQS) queue.

A DevOps engineer noticed that the application took several hours to process a group of messages from the SQS queue. The average CPU utilization of the Auto Scaling group did not cross the threshold of a target tracking scaling policy when processing the messages. The application that processes the SQS queue publishes logs to ‘Amazon CloudWatch Logs.

The DevOps engineer needs to ensure that the queue is processed quickly.

Which solution meets these requirements with the LEAST operational overhead?

Answer options

Correct answer: C

Explanation

Option C is the correct answer because CloudWatch metric math allows you to calculate the backlog per instance (ApproximateNumberOfMessagesVisible divided by GroupInServiceInstances) directly within the target tracking scaling policy. This native configuration avoids the operational overhead of creating, scheduling, and maintaining custom AWS Lambda functions. Options A, B, and D are incorrect as they introduce unnecessary infrastructure components, increasing operational complexity and potential points of failure.