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

A DevOps engineer manages a Java-based application that runs in an Amazon Elastic Container Service (Amazon ECS) cluster on AWS Fargate. Auto scaling has not been configured for the application.

The DevOps engineer has determined that the Java Virtual Machine (JVM) thread count is a good indicator of when to scale the application. The application serves customer traffic on port 8080 and makes JVM metrics available on port 9404.

Application use has recently increased. The DevOps engineer needs to configure auto scaling for the application.

Which solution will meet these requirements with the LEAST operational overhead? (Choose two.)

Answer options

Correct answer: A, D

Explanation

Option A is correct because deploying the CloudWatch agent as a sidecar to collect Prometheus metrics on port 9404 and using step scaling based on CloudWatch alarms is a standard, low-overhead way to scale ECS. Option D is correct because using AWS Distro for OpenTelemetry (ADOT) as a sidecar to send metrics to Amazon Managed Service for Prometheus allows target tracking scaling using the Prometheus metrics. Options B and C are incorrect because they introduce unnecessary overhead or describe unsupported scaling mechanisms directly from Prometheus rules.