
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A development team runs monthly resource-intensive tests on its general purpose Amazon RDS for MySQL DB instance with Performance Insights enabled. The testing lasts for 48 hours once a month and is the only process that uses the database. The team wants to reduce the cost of running the tests without reducing the compute and memory attributes of the DB instance.
Which solution meets these requirements MOST cost-effectively?
A
Stop the DB instance when tests are completed. Restart the DB instance when required.
B
Use an Auto Scaling policy with the DB instance to automatically scale when tests are completed.
C
Create a snapshot when tests are completed. Terminate the DB instance and restore the snapshot when required.
D
Modify the DB instance to a low-capacity instance when tests are completed. Modify the DB instance again when required.
Explanation:
Correct Answer: C - Create a snapshot when tests are completed. Terminate the DB instance and restore the snapshot when required.
Cost Structure Analysis:
Cost Comparison:
Key Requirements Met:
Operational Considerations:
# After testing completes
aws rds create-db-snapshot \
--db-instance-identifier mydb \
--db-snapshot-identifier mydb-snapshot-$(date +%Y%m%d)
aws rds delete-db-instance \
--db-instance-identifier mydb \
--skip-final-snapshot
# Before next testing cycle
aws rds restore-db-instance-from-db-snapshot \
--db-instance-identifier mydb \
--db-snapshot-identifier mydb-snapshot-latest
# After testing completes
aws rds create-db-snapshot \
--db-instance-identifier mydb \
--db-snapshot-identifier mydb-snapshot-$(date +%Y%m%d)
aws rds delete-db-instance \
--db-instance-identifier mydb \
--skip-final-snapshot
# Before next testing cycle
aws rds restore-db-instance-from-db-snapshot \
--db-instance-identifier mydb \
--db-snapshot-identifier mydb-snapshot-latest
This approach maximizes cost savings while maintaining the required compute and memory attributes when the database is actually in use.