SAP-C02 exam dumps

SAP-C02 practice question 631 of 678

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

SAP-C02 Question 631

Select 2

A company is running a microservices-based application using Amazon ECS on AWS Fargate. The application requires seamless scaling, and the company wants to implement a solution to automatically scale the ECS tasks based on CPU utilization. Additionally, they want to ensure that new container images are automatically deployed whenever a new version is pushed to their Amazon Elastic Container Registry (Amazon ECR). Which combination of actions should the company take to meet these requirements?

  1. A

    Configure an Application Auto Scaling policy to scale the ECS service based on CPU utilization metrics.

  2. B

    Set up an Amazon CloudWatch alarm to monitor CPU utilization and trigger ECS task scaling manually.

  3. C

    Enable the Amazon EventBridge rule to detect new image pushes in the ECR repository and trigger an ECS service deployment.

  4. D

    Use AWS CodePipeline with an ECR source action to automatically deploy new container images to the ECS service.

  5. E

    Manually update the ECS service task definition whenever a new image is pushed to the ECR repository.

Show answer and explanation

Correct answers: A, C

Explanation

To achieve seamless scaling, Application Auto Scaling must be configured to monitor CPU utilization and scale ECS tasks automatically. For automating container image deployments, Amazon EventBridge can be used to detect new image pushes in Amazon ECR and trigger ECS service deployments. This combination ensures the application is both scalable and always running the latest container image without manual intervention.

  • A. Correct.

    Correct. Application Auto Scaling can be used to define scaling policies for ECS services running on Fargate based on metrics like CPU utilization.

  • B. Incorrect.

    Incorrect. While a CloudWatch alarm can monitor CPU utilization, triggering ECS task scaling manually does not provide seamless scaling.

  • C. Correct.

    Correct. Amazon EventBridge can detect image push events in Amazon ECR and trigger ECS service deployments automatically.

  • D. Incorrect.

    Incorrect. AWS CodePipeline is not required in this scenario. EventBridge can handle ECR image push events and trigger deployments directly.

  • E. Incorrect.

    Incorrect. Manually updating the ECS task definition is not automated and does not meet the requirement for automatic deployments.

Timed practice exam

Take a SAP-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