
Answer-first summary for fast verification
Answer: Use a buildspec file in AWS CodeBuild to restore the DB cluster from a snapshot of the production database, run integration tests, and drop the restored database after verification.
The correct answer is A. Using AWS CodeBuild with a buildspec file to restore the DB cluster from a snapshot of the production database allows the team to run integration tests in an isolated environment. This approach ensures that the production database is not affected during the testing process. After the tests are complete, the restored database is dropped, maintaining a clean and efficient workflow. This method meets the requirement of testing changes before deploying them to the production database, as it allows for automated, reliable, and repeatable validation against a copy of the production data.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A DevOps team is working on an application that relies on an Amazon RDS Multi-AZ DB cluster for its production environment. The team employs continuous integration practices to regularly ensure the application's functionality. They require a method to validate code changes in a controlled manner before integrating them into the live production database. Which strategy should they adopt to fulfill this testing requirement?
A
Use a buildspec file in AWS CodeBuild to restore the DB cluster from a snapshot of the production database, run integration tests, and drop the restored database after verification.
B
Deploy the application to production. Configure an audit log of data control language (DCL) operations to capture database activities to perform if verification fails.
C
Create a snapshot of the DB cluster before deploying the application. Use the Update requires:Replacement property on the DB instance in AWS CloudFormation to deploy the application and apply the changes.
D
Ensure that the DB cluster is a Multi-AZ deployment. Deploy the application with the updates. Fail over to the standby instance if verification fails.