AWS Certified Solutions Architect Professional SAP-C02 Practice Question

A media-streaming company is migrating about 100 stateless microservices from an on-premises Docker Swarm cluster to AWS. The engineering team wants to run the containers on Amazon ECS in a new three-AZ VPC. Business requirements are:

  • Keep day-to-day cluster maintenance to a minimum.
  • Reduce compute costs by running as many tasks as possible on Spot Instances, but every ECS service must always have at least one task on On-Demand capacity.
  • When Spot capacity is reclaimed, replacement infrastructure and tasks must launch automatically without manual action.

Which solution will satisfy these requirements while providing the least operational overhead?

  • Create a single Auto Scaling group that uses a mixed-instances policy targeting 20 percent On-Demand and 80 percent Spot capacity. Attach the group to the cluster as one capacity provider and rely on the mixed policy to keep the On-Demand portion available.

  • Run the services on AWS Fargate using the FARGATE and FARGATE_SPOT capacity providers with weights of 1 and 4, respectively, and do not set a base value. Let ECS replace interrupted tasks as Spot capacity returns.

  • Create two Auto Scaling groups (one On-Demand, one Spot) and turn on managed scaling for each. Create an ECS capacity provider for each group, associate both providers with the cluster, and configure every ECS service with a capacity-provider strategy that sets base = 1 and weight = 1 for the On-Demand provider and weight = 4 for the Spot provider.

  • Configure every service to use the EC2_SPOT launch type. Enable service auto scaling with the binpack placement strategy and rely on cluster auto scaling to launch new Spot Instances when tasks cannot be placed.

AWS Certified Solutions Architect Professional SAP-C02
Accelerate Workload Migration and Modernization
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