exam questions

Exam AWS Certified Developer Associate All Questions

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

Exam AWS Certified Developer Associate topic 1 question 42 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 42
Topic #: 1
[All AWS Certified Developer Associate Questions]

A Company runs continuous integration/continuous delivery (CI/CD) pipelines for its application on AWS CodePipeline. A Developer must write unit tests and run them as part of the pipelines before staging the artifacts for testing.
How should the Developer incorporate unit tests as part of CI/CD pipelines?

  • A. Create a separate CodePipeline pipeline to run unit tests
  • B. Update the AWS CodeBuild specification to include a phase for running unit tests
  • C. Install the AWS CodeDeploy agent on an Amazon EC2 instance to run unit tests
  • D. Create a testing branch in AWS CodeCommit to run unit tests
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
RicardoD
Highly Voted 3 years, 6 months ago
B is the answer With codebuild repots one can see reports generated by functional or integration tests
upvoted 20 times
...
WilsonNF
Highly Voted 3 years, 7 months ago
B. Update the AWS CodeBuild specification to include a phase for running unit tests New feature of CodeBuild: https://aws.amazon.com/pt/blogs/devops/test-reports-with-aws-codebuild/
upvoted 8 times
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: B
B) Correct You can modify the buildspec.yml file, which is used by CodeBuild, to define the steps to install dependencies, run unit tests, and build the application. The unit tests will be executed as part of the build phase before the artifacts are staged for testing or deployment.
upvoted 1 times
...
AsmaZoheb
1 year, 3 months ago
Selected Answer: B
i think so B
upvoted 1 times
...
sara_exam_topics
1 year, 6 months ago
Selected Answer: B
Option D (creating a testing branch in AWS CodeCommit) is more related to branching strategy rather than running unit tests as part of the CI/CD pipeline. You can use branches for different purposes, but running tests is typically done within the CI/CD process using tools like AWS CodeBuild.
upvoted 1 times
...
rcaliandro
1 year, 10 months ago
Selected Answer: B
The right answer is B since CodeBuild can also be used for running tests
upvoted 1 times
...
duong23
2 years ago
Selected Answer: B
B is the answer. My company is doing like this.
upvoted 2 times
...
Krok
2 years, 1 month ago
Selected Answer: B
You can add unit-tests to post_build phase of CodeBuild.
upvoted 1 times
...
dp8719823
2 years, 1 month ago
Selected Answer: B
The recommended way to incorporate unit tests as part of CI/CD pipelines in AWS CodePipeline is to update the AWS CodeBuild specification to include a phase for running unit tests. The AWS CodeBuild specification allows developers to define build commands and output artifacts for their build projects. By including a phase to run unit tests in the build specification, developers can ensure that their code passes automated tests before it moves to the next stage of the pipeline. This approach ensures that only working code is deployed, reducing the risk of errors or issues in production.
upvoted 1 times
...
GD_ZH
2 years, 2 months ago
B should be the right one.
upvoted 1 times
...
ayoubmk
2 years, 3 months ago
Selected Answer: B
BBBBBB
upvoted 1 times
...
ayoubmk
2 years, 3 months ago
Selected Answer: B
B is the right answer
upvoted 1 times
...
smica9
2 years, 4 months ago
Selected Answer: B
B should be the correct answer?
upvoted 1 times
...
tsampaio
2 years, 4 months ago
Answer B
upvoted 1 times
...
Justu
2 years, 10 months ago
Selected Answer: B
ANS: B
upvoted 1 times
...
JP_PA
3 years, 2 months ago
Selected Answer: B
ANS: B
upvoted 1 times
...
jc966
3 years, 6 months ago
B You can specify the unit tests in either the build or the post_build sequence in the buildspec.yml file.
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