DOP-C02 exam dumps

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

Single answer

Your organization has a CI/CD pipeline using AWS CodePipeline integrated with AWS CodeBuild to build and test applications. You notice that every time a new build is triggered, some builds are delayed because CodeBuild runs out of available build containers due to high demand. How can you scale the build infrastructure dynamically to meet demand while minimizing costs?

  1. A

    Configure AWS CodeBuild to use a larger instance type for all builds to handle increased demand.

  2. B

    Manually monitor the build queue and increase the number of concurrent build containers in the AWS Management Console when demand spikes.

  3. C

    Use the CodeBuild managed scaling feature to automatically adjust the number of concurrent builds based on demand.

  4. D

    Integrate AWS CodeBuild with Amazon EC2 Auto Scaling to launch EC2 instances for each build dynamically.

  5. E

    Leverage Amazon S3 to offload some of the build tasks and reduce the load on CodeBuild.

Show answer and explanation

Correct answer: C

Explanation

To address high demand in AWS CodeBuild, the recommended approach is to enable its managed scaling feature. This allows CodeBuild to automatically scale the number of concurrent builds up or down based on demand, ensuring efficient resource utilization and minimizing costs. Other options, such as manually monitoring or using larger instance types, are less efficient or unsuitable for the scenario.

  • A. Incorrect.

    Configuring a larger instance type will increase the cost for all builds, even during periods of low demand. This is not a cost-efficient solution.

  • B. Incorrect.

    Manually monitoring and adjusting the number of build containers is not scalable and does not align with AWS best practices for automation.

  • C. Correct.

    CodeBuild managed scaling allows you to dynamically adjust the number of concurrent builds based on demand, ensuring cost-effectiveness and scalability.

  • D. Incorrect.

    Amazon EC2 Auto Scaling is not directly integrated with AWS CodeBuild for this purpose. CodeBuild uses its own managed scaling mechanisms to handle build infrastructure.

  • E. Incorrect.

    Amazon S3 is a storage service and cannot be used to execute build tasks. It does not reduce the workload on CodeBuild.

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