SOA-C03 practice question 8 of 10

Optimization] A company uses an Amazon Simple Queue Service (Amazon SQS) queue and Amazon EC2 instances in an Auto Scaling group with target tracking…

Choose your answer, then check it against the explanation and the full breakdown below.

Domain Cost and Performance Optimization

Optimization] A company uses an Amazon Simple Queue Service (Amazon SQS) queue and Amazon EC2 instances in an Auto Scaling group with target tracking for a web application. The company collects the ASGAverageNetworkIn metric but notices that instances do not scale fast enough during peak traffic. There are a large number of SQS messages accumulating in the queue. A CloudOps engineer must reduce the number of SQS messages during peak periods. Which solution will meet this requirement?
Answer options
Question 8 of 10

Question breakdown

Tests
Choose an appropriate scaling metric for queue-based workloads
Difficulty
Medium

Key idea: Workers that consume from SQS should scale on backlog per instance, calculated with metric math as visible messages divided by in-service instances, and used in a target tracking policy.

How to reach the answer

  1. The symptom is a growing SQS queue while the group scales on network input.
  2. The root cause is the scaling metric, which does not reflect the queued work.
  3. Backlog per instance (ApproximateNumberOfMessagesVisible / GroupInServiceInstances) measures the real workload.
  4. Target tracking can use a metric math expression directly, so it adjusts capacity to hold the backlog at a target value.
  5. Changing only the policy type (step or simple) leaves the wrong metric in place.

Each option

  • AIncorrect. ApproximateNumberOfMessagesDelayed counts messages held back by delay settings, not messages waiting to be processed.
  • BCorrect. Metric math backlog per instance in target tracking ties capacity directly to queue depth.
  • CIncorrect. Step scaling changes how the group responds, not what metric drives it, so the mismatch remains.
  • DIncorrect. Simple scaling has the same metric problem and waits for cooldowns, so it responds more slowly.

Common trap: Option A names an SQS metric and looks queue-aware, but 'Delayed' is the wrong metric; the backlog is the visible messages.

In practice: Batch and worker fleets that drain SQS queues are routinely scaled on backlog per instance, so processing keeps up during traffic spikes.

Remember: Scale SQS consumers on ApproximateNumberOfMessagesVisible divided by in-service instances, using target tracking.

Drafted with AI assistance and checked against the answer key.

Keep practicing

Take the free SOA-C03 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other SOA-C03 practice questions

Scroll to Top