
Answer-first summary for fast verification
Answer: Incorporate a testing phase within the amplify.yml configuration to define and execute tests as part of the build process.
The correct answer is C. 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 setup ensures that bugs can be detected and fixed before the application reaches production, thereby improving the overall quality of the application. The amplify.yml file is specifically designed for customizing the build and deployment workflow, making it the appropriate place to add test configurations.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A developer utilizes AWS Amplify Hosting for application deployment. Facing a rise in user-reported bugs, the developer seeks to integrate end-to-end testing to preemptively identify and rectify bugs prior to production deployment. What is the recommended approach to achieve this?
A
Execute the amplify add test command via the Amplify CLI.
B
Develop unit tests for the application and utilize the amplify push command in the Amplify CLI for deployment.
C
Incorporate a testing phase within the amplify.yml configuration to define and execute tests as part of the build process.
D
Integrate a testing phase in the aws-exports.js file to manage test execution.
No comments yet.