exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 69 discussion

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.)

  • A. Create an AWS CodeCommit project. Add the repository package's build and test commands to the project's buildspec.
  • B. Create an AWS CodeBuild project. Add the repository package's build and test commands to the project's buildspec.
  • C. Create an AWS CodeDeploy project. Add the repository package's build and test commands to the project's buildspec.
  • D. Add an action to the source stage. Specify the newly created project as the action provider. Specify the build artifact as the action's input artifact.
  • E. Add a new stage to the pipeline after the source stage. Add an action to the new stage. Specify the newly created project as the action provider. Specify the source artifact as the action's input artifact.
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
MrTee
Highly Voted 2 years ago
The correct answer is B and E 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.
upvoted 21 times
...
imvb88
Highly Voted 1 year, 11 months ago
Selected Answer: BE
For those who just skim the question, keyword between D and E is "unit tests run in the new deployment environment.", which signifies a new stage should be created instead of just adding an action.
upvoted 14 times
...
sumanshu
Most Recent 4 months ago
Selected Answer: BE
AWS CodeBuild is specifically designed for building and testing code in CI/CD pipelines. The buildspec file is where the developer can specify commands to build and run unit tests for the application package. A new stage after the source stage ensures that the unit tests run on the package retrieved from GitHub.
upvoted 3 times
...
tsangckl
10 months, 2 weeks ago
This appear at 17 Jun exam
upvoted 3 times
...
65703c1
11 months, 1 week ago
Selected Answer: BE
BE is the correct answer.
upvoted 1 times
...
SerialiDr
1 year, 3 months ago
Selected Answer: BE
E. Add a new stage to the pipeline after the source stage: This is the correct step. The developer should add a new stage to the pipeline specifically for building and testing the code. Within this stage, an action should be added that specifies the AWS CodeBuild project (created in step B) as the action provider. The source artifact (code fetched from GitHub) should be specified as the action's input artifact. So, the combination of steps that should be taken next to meet these requirements with the least overhead are: B. Create an AWS CodeBuild project. Add the repository package's build and test commands to the project's buildspec. E. Add a new stage to the pipeline after the source stage. Add an action to the new stage. Specify the newly created CodeBuild project as the action provider. Specify the source artifact as the action's input artifact.
upvoted 3 times
...
LR2023
1 year, 4 months ago
Selected Answer: BD
Choosing D as that is the least overhead. There is already a stage and you need to add an action test
upvoted 1 times
LR2023
1 year, 4 months ago
Sorry will go with BE after ding more research as unit tests cannot be run in source stage as an action
upvoted 2 times
...
...
marolisa
1 year, 8 months ago
B e D. https://docs.aws.amazon.com/pt_br/codebuild/latest/userguide/how-to-create-pipeline-add-test.html
upvoted 3 times
...
aaok
1 year, 11 months ago
Selected Answer: BE
As MrTee says.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago