DOP-C02 exam dumps

DOP-C02 practice question 277 of 411

AWS Certified DevOps Engineer - Professional. Professional level, Amazon Web Services. Free question with the correct answer and a full explanation.

DOP-C02 Question 277

Select 2

Your company runs a highly available web application using Amazon ECS on AWS Fargate. The application traffic fluctuates based on time of day, and you need to ensure that the infrastructure can automatically scale to handle the demand while keeping costs optimized. Which of the following configurations would allow you to achieve this?

  1. A

    Configure an ECS Service Auto Scaling policy that uses a target tracking scaling policy based on the average CPU utilization of the tasks.

  2. B

    Use an ECS Capacity Provider with managed scaling enabled and set the target utilization percentage to 75%.

  3. C

    Enable DynamoDB Auto Scaling for the backend database to automatically adjust read and write capacity units based on application demand.

  4. D

    Configure an EC2 Auto Scaling group with a scheduled scaling policy to increase the number of instances at peak hours and scale down during off-peak hours.

  5. E

    Integrate the Kubernetes Cluster Autoscaler with EKS to automatically adjust the number of nodes in the cluster based on pending pods.

Show answer and explanation

Correct answers: A, B

Explanation

To handle fluctuating traffic for an ECS application running on Fargate, you should configure ECS Service Auto Scaling to dynamically scale the number of tasks based on demand, and use an ECS Capacity Provider with managed scaling to optimize infrastructure capacity. These solutions ensure both application performance and cost efficiency. Other options, such as DynamoDB Auto Scaling, EC2 scheduled scaling, and EKS autoscaling, address different use cases and are not relevant to the ECS on Fargate scenario.

  • A. Correct.

    Correct. ECS Service Auto Scaling with a target tracking policy can dynamically adjust the number of Fargate tasks based on CPU utilization, ensuring the application scales with demand.

  • B. Correct.

    Correct. ECS Capacity Providers with managed scaling can automatically manage the infrastructure capacity for ECS tasks, optimizing resource usage and costs.

  • C. Incorrect.

    Incorrect. While DynamoDB Auto Scaling is useful for scaling database resources, it does not directly address scaling the ECS tasks or infrastructure in this scenario.

  • D. Incorrect.

    Incorrect. EC2 Auto Scaling with a scheduled scaling policy is effective for predictable workloads but does not dynamically respond to fluctuations in demand.

  • E. Incorrect.

    Incorrect. The Kubernetes Cluster Autoscaler for EKS is specific to Kubernetes workloads and does not apply to ECS or Fargate environments.

Timed practice exam

Take a DOP-C02 practice test under exam conditions

75 questions in 180 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam