Hard1 markMultiple Choice
Domain 2.4: ReliabilityReliabilityAuto ScalingSQS

AWS SAP-C02 · Question 09 · Domain 2.4: Reliability

A high-traffic e-commerce website experiences unpredictable traffic spikes. The backend uses an Auto Scaling group of EC2 instances processing orders from an SQS queue. During spikes, instances take 5 minutes to boot, causing order processing delays. How can the architect improve reliability and responsiveness?

Answer options:

A.

Change the Auto Scaling group to use Target Tracking on CPU utilization.

B.

Implement Step Scaling policies based on SQS queue depth (ApproximateNumberOfMessagesVisible).

C.

Use AWS Lambda instead of EC2 for processing.

D.

Increase the size of the EC2 instances in the Auto Scaling group.

How to approach this question

Identify the best scaling metric for worker nodes processing a queue.

Full Answer

B.Implement Step Scaling policies based on SQS queue depth (ApproximateNumberOfMessagesVisible).✓ Correct
Implement Step Scaling policies based on SQS queue depth (ApproximateNumberOfMessagesVisible).
For queue-processing workloads, scaling based on the number of messages in the queue is the most responsive approach.

Common mistakes

Using CPU metrics for queue workers, which reacts too slowly.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 3

75 questions · hints · full answers · grading

More questions from this exam