
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A company offers a food delivery service that is growing rapidly. Because of the growth, the company's order processing system is experiencing scaling problems during peak traffic hours. The current architecture includes the following:
The order collection process occurs quickly, but the order fulfillment process can take longer. Data must not be lost because of a scaling event.
A solutions architect must ensure that the order collection process and the order fulfillment process can both scale properly during peak traffic hours. The solution must optimize utilization of the company's AWS resources.
Which solution meets these requirements?
A
Use Amazon CloudWatch metrics to monitor the CPU of each instance in the Auto Scaling groups. Configure each Auto Scaling group's minimum capacity according to peak workload values.
B
Use Amazon CloudWatch metrics to monitor the CPU of each instance in the Auto Scaling groups. Configure a CloudWatch alarm to invoke an Amazon Simple Notification Service (Amazon SNS) topic that creates additional Auto Scaling groups on demand.
C
Provision two Amazon Simple Queue Service (Amazon SQS) queues: one for order collection and another for order fulfillment. Configure the EC2 instances to poll their respective queue. Scale the Auto Scaling groups based on notifications that the queues send.
D
Provision two Amazon Simple Queue Service (Amazon SQS) queues: one for order collection and another for order fulfillment. Configure the EC2 instances to poll their respective queue. Create a metric based on a backlog per instance calculation. Scale the Auto Scaling groups based on this metric.
Explanation:
Correct Answer: D
Why Option D is correct:
Why other options are incorrect:
Option A: Setting minimum capacity based on peak workload values leads to over-provisioning and poor resource utilization during off-peak hours. It doesn't address the fundamental decoupling problem between collection and fulfillment.
Option B: Creating additional Auto Scaling groups on demand is complex and doesn't solve the core issue of decoupling the processes. It also doesn't prevent data loss during scaling events.
Option C: While using SQS queues is correct, scaling based on "notifications that the queues send" is vague. SQS doesn't send notifications for scaling; it provides CloudWatch metrics that can be used for scaling decisions. The "backlog per instance" metric in Option D is a more precise and effective scaling approach.
Key AWS Services Used:
This solution ensures both processes can scale independently, prevents data loss, and optimizes resource utilization by scaling based on actual work backlog rather than just CPU metrics.