AWS Certified Solutions Architect Professional SAP-C02 Practice Question

Your company runs a batch-processing service on Amazon EC2 instances that are managed by an Auto Scaling group (ASG) spanning two Availability Zones. Each worker instance polls an Amazon SQS queue and may process a single job for up to 25 minutes. The operations team has several reliability requirements. First, when the average CPU utilization of the ASG rises above 70 percent for two consecutive 1-minute periods, new instances must start launching within 90 seconds to prevent the queue backlog from growing. Second, after an instance has begun processing a job, the ASG must allow up to 30 minutes for that instance to finish before it can be terminated by a scale-in event. Finally, the scaling configuration should require minimal ongoing manual tuning as traffic patterns change.

Which combination of actions will meet these requirements?

  • Enable detailed monitoring on the ASG. Create a target tracking scaling policy that maintains 70 percent average CPU utilization and sets Instance warm-up = 90 seconds. Add an EC2 Auto Scaling lifecycle hook on the autoscaling:EC2_INSTANCE_TERMINATING transition with a 1,800-second heartbeat timeout; have each instance call CompleteLifecycleAction when its current job finishes.

  • Create a step scaling policy that adds instances when CPU exceeds 70 percent. Set EstimatedInstanceWarmup = 90 seconds and configure the ASG's default cooldown to 1,800 seconds. Do not use lifecycle hooks.

  • Turn on instance scale-in protection for all new instances at launch. Use a scheduled AWS Lambda function to remove protection after 30 minutes. Configure a simple scaling policy that launches two instances when CPU exceeds 70 percent with the default 300-second cooldown.

  • Enable predictive scaling on the ASG to forecast capacity needs. Add a target tracking policy but disable scale-in for 30 minutes after every scale-out event. Rely on an alarm that tracks the SQS queue depth to trigger additional scale-out if necessary.

AWS Certified Solutions Architect Professional SAP-C02
Design for New Solutions
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot