DVA-C02 · Question #35
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…
The correct answer is C. Add a test phase to the amplify.yml build settings for the application. 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 https://docs.aws.amazon.com/amplify/latest/userguide/running-tests.html
Question
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?
Options
- ARun the amplify add test command in the Amplify CLI.
- BCreate unit tests in the application. Deploy the unit tests by using the amplify push command in
- CAdd a test phase to the amplify.yml build settings for the application.
- DAdd a test phase to the aws-exports.js file for the application.
How the community answered
(16 responses)- A13% (2)
- B6% (1)
- C75% (12)
- D6% (1)
Explanation
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 https://docs.aws.amazon.com/amplify/latest/userguide/running-tests.html
Community Discussion
No community discussion yet for this question.