Q88 — AWS DVA-C02 Ch.1

Question 88 of 100 | ← Chapter 1

A developer is using AWS Amplify Hosting to build and deploy an application. The developer received numerous bug reports from users. The developer wants to add end-to-end tests to eliminate these bugs as early as possible before they reach production. Which solution should the developer implement to meet these requirements?

Correct Answer: C. Add a test stage in the application’s amplify.yml build settings.

Explanation

Amplify Hosting uses the amplify.yml file to define build and test stages; adding a test stage there (Option C) enables automated end-to-end testing during the build process, catching bugs before production. Option A is invalid—there is no 'amplify add test' command. Option B refers to unit tests, not end-to-end tests, and 'amplify push' deploys backend resources, not frontend tests. Option D is incorrect—aws-exports.js contains AWS configuration, not build/test logic. Thus, C is correct.