DVA-C02 · Question #84
A developer is configuring an application's deployment environment in AWS CodePipeline. The application code is stored in a GitHub repository. The developer wants to ensure that the repository package
The correct answer is B. Create an AWS CodeBuild project. Add the repository package's build and test commands to the E. Add a new stage to the pipeline after the source stage. Add an action to the new stage. Specify. The buildspec file is a collection of build commands and related settings, in YAML format, that CodeBuild uses to run a build. By adding the build and test commands to the buildspec file, the developer can ensure that these commands are executed as part of the build process. Opti
Question
A developer is configuring an application's deployment environment in AWS CodePipeline. The application code is stored in a GitHub repository. The developer wants to ensure that the repository package's unit tests run in the new deployment environment. The developer has already set the pipeline's source provider to GitHub and has specified the repository and branch to use in the deployment. Which combination of steps should the developer take next to meet these requirements with the LEAST overhead? (Choose two.)
Options
- ACreate an AWS CodeCommit project. Add the repository package's build and test commands to
- BCreate an AWS CodeBuild project. Add the repository package's build and test commands to the
- CCreate an AWS CodeDeploy project. Add the repository package's build and test commands to
- DAdd an action to the source stage. Specify the newly created project as the action provider.
- EAdd a new stage to the pipeline after the source stage. Add an action to the new stage. Specify
How the community answered
(30 responses)- A7% (2)
- B77% (23)
- C13% (4)
- D3% (1)
Explanation
The buildspec file is a collection of build commands and related settings, in YAML format, that CodeBuild uses to run a build. By adding the build and test commands to the buildspec file, the developer can ensure that these commands are executed as part of the build process. Option E will ensure that the CodeBuild project is triggered as part of the pipeline and that the unit tests are run in the new deployment environment.
Community Discussion
No community discussion yet for this question.