ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 67 - DVA-C02 discussion

Report
Export

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.
Answers
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.
Answers
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.
Answers
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.
Answers
D.
Add a test phase to the aws-exports.js file for the application.
Suggested answer: C

Explanation:

The solution that will meet the requirements is to add a test phase to the amplify.yml build settings for the application. This way, the developer can run end-to-end tests on every code commit and catch any bugs before deploying to production. The other options either do not support end-to-end testing, or do not run tests automatically.

Reference: End-to-end testing

asked 16/09/2024
Yusuf E
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first