DVA-C02 exam dumps

DVA-C02 practice question 272 of 399

AWS Certified Developer - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

DVA-C02 Question 272

Select 3

You are working on a CI/CD pipeline using AWS CodePipeline to automate your application deployment. The pipeline is configured with two branches: 'development' and 'main'. You want code changes made to the 'development' branch to undergo testing and manual approval before merging into the 'main' branch. Which combination of actions should you include in the pipeline to achieve this?

  1. A

    Add a source stage connected to the 'development' branch and a build stage for running unit tests.

  2. B

    Add a source stage connected to the 'main' branch and a deploy stage for automatic deployment.

  3. C

    Include a manual approval action after the test stage in the pipeline.

  4. D

    Add a build stage configured to deploy changes to a production environment.

  5. E

    Add a build stage for integration tests after the source stage connected to the 'development' branch.

Show answer and explanation

Correct answers: A, C, E

Explanation

To create a CI/CD pipeline that tests code changes in the 'development' branch before merging into the 'main' branch, you need a source stage for the 'development' branch, a build stage for testing, and a manual approval action. These components ensure the pipeline validates and verifies the changes before they can be merged or deployed. Including integration tests provides an additional layer of validation.

  • A. Correct.

    Correct: A source stage connected to the 'development' branch ensures that the pipeline is triggered when changes are pushed to this branch, and a build stage for running unit tests validates the code before further action.

  • B. Incorrect.

    Incorrect: The 'main' branch is not the source of this pipeline. Changes in the 'development' branch are being tested and approved before merging into the 'main' branch.

  • C. Correct.

    Correct: A manual approval action is required to allow a human reviewer to approve changes before proceeding to merge or deploy them.

  • D. Incorrect.

    Incorrect: Deploying directly to a production environment in this scenario is not aligned with the intent of testing and approval on the 'development' branch.

  • E. Correct.

    Correct: A build stage for integration tests further validates the changes and ensures that the code is production-ready before final approval.

Timed practice exam

Take a DVA-C02 practice test under exam conditions

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

Start timed exam