DOP-C02 exam dumps

DOP-C02 practice question 5 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 5

Single answer

A company is using AWS CodePipeline to implement a CI/CD pipeline for its application. The pipeline has three stages: Source, Build, and Deploy. The Build stage uses AWS CodeBuild to compile and test the application. The Deploy stage deploys the application to multiple Amazon ECS clusters in different AWS regions. The team notices that deployments sometimes fail due to inconsistent configurations between the regions. How can the team ensure that the ECS clusters in all regions are consistently configured before deployment?

  1. A

    Use AWS CloudFormation StackSets to deploy consistent ECS cluster configurations across all regions.

  2. B

    Use AWS CodeCommit to store ECS cluster configuration scripts and execute them using AWS Lambda before deployment.

  3. C

    Implement manual configuration checks in each region before deployment to ensure consistency.

  4. D

    Use AWS Systems Manager Parameter Store to centrally manage ECS cluster configurations and synchronize them before deployment.

Show answer and explanation

Correct answer: A

Explanation

To ensure consistent configurations across multiple regions, AWS CloudFormation StackSets is the best solution as it automates the deployment of the same CloudFormation stack to multiple regions and accounts. This eliminates inconsistencies and integrates seamlessly with the CI/CD pipeline.

  • A. Correct.

    This is the correct option. AWS CloudFormation StackSets allow you to deploy and manage CloudFormation stacks across multiple AWS accounts and regions, ensuring consistent configurations for resources like ECS clusters.

  • B. Incorrect.

    While storing configuration scripts in AWS CodeCommit is a good practice, executing them manually with AWS Lambda does not guarantee consistency across regions, and it adds unnecessary complexity.

  • C. Incorrect.

    Manual configuration checks are error-prone and time-consuming, making them unsuitable for ensuring consistent configurations in a CI/CD pipeline.

  • D. Incorrect.

    AWS Systems Manager Parameter Store is useful for managing configuration values, but it does not directly ensure that ECS clusters are configured consistently across regions.

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