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 59 discussion

A developer is using AWS Amplify Hosting to build and deploy an application. The developer is receiving an increased number of bug reports from users. The developer wants to add end-to-end testing to the application to eliminate as many bugs as possible before the bugs reach production.
Which solution should the developer implement to meet these requirements?

  • A. Run the amplify add test command in the Amplify CLI.
  • B. Create unit tests in the application. Deploy the unit tests by using the amplify push command in the Amplify CLI.
  • C. Add a test phase to the amplify.yml build settings for the application.
  • D. Add a test phase to the aws-exports.js file for the application.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
gpt_test
Highly Voted 2 years ago
Selected Answer: C
Explanation: Adding a test phase to the amplify.yml build settings allows the developer to define and execute end-to-end tests as part of the build and deployment process in AWS Amplify Hosting. This will help ensure that bugs are caught and fixed before the application reaches production, improving the overall quality of the application.
upvoted 17 times
...
Untamables
Highly Voted 2 years, 1 month ago
Selected Answer: C
C https://docs.aws.amazon.com/amplify/latest/userguide/running-tests.html
upvoted 10 times
jipark
1 year, 9 months ago
ton of thanks !! document commented 'End to End Test'
upvoted 2 times
...
...
Dadasar
Most Recent 1 month, 3 weeks ago
Selected Answer: C
A. Eliminado: Esse comando não existe na Amplify CLI. O Amplify não tem um comando direto para adicionar testes, então essa alternativa está errada. B. Eliminado: Testes unitários são importantes, mas eles não são testes de ponta a ponta (E2E). Além disso, amplify push serve para implantar mudanças na infraestrutura, não para rodar testes. D. Eliminado: O arquivo aws-exports.js contém configurações do Amplify para conectar o front-end aos serviços da AWS. Ele não é usado para definir fases de teste. Portanto, a melhor solução é a alternativa C, pois ela permite adicionar testes ao processo de build e evitar que bugs cheguem à produção.
upvoted 1 times
...
Dadasar
1 month, 3 weeks ago
Selected Answer: C
A. Eliminado: Esse comando não existe na Amplify CLI. O Amplify não tem um comando direto para adicionar testes, então essa alternativa está errada. B. Eliminado: Testes unitários são importantes, mas eles não são testes de ponta a ponta (E2E). Além disso, amplify push serve para implantar mudanças na infraestrutura, não para rodar testes. D. Eliminado: O arquivo aws-exports.js contém configurações do Amplify para conectar o front-end aos serviços da AWS. Ele não é usado para definir fases de teste. Portanto, a melhor solução é a alternativa C, pois ela permite adicionar testes ao processo de build e evitar que bugs cheguem à produção.
upvoted 1 times
...
sumanshu
4 months ago
Selected Answer: C
To implement end-to-end (E2E) testing before deployment, you can add a test phase to the amplify.yml file. A) Eliminated - Amplify CLI does not have a command named amplify add test.
upvoted 2 times
...
tsangckl
10 months, 2 weeks ago
This appear at 17 Jun exam
upvoted 1 times
...
65703c1
11 months, 1 week ago
Selected Answer: C
C is the correct answer.
upvoted 1 times
...
ninomfr64
1 year, 8 months ago
Selected Answer: B
B as per https://docs.aws.amazon.com/amplify/latest/userguide/running-tests.html You can run end-to-end (E2E) tests in the test phase of your Amplify app to catch regressions before pushing code to production. The test phase can be configured in the build specification YAML. Currently, you can run only the Cypress testing framework during a build. build specification is provided in the amplify.yml file
upvoted 1 times
...
SachinR28
1 year, 9 months ago
Selected Answer: B
I'LL GO WITH B
upvoted 1 times
...
rlnd2000
1 year, 11 months ago
Selected Answer: B
We can use amplify.yml file to run any test commands at build time. Since the test must run while the program is being deployed (E2E) I'll go with B.
upvoted 1 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