AWS Certified Database – Specialty — Question 40

A company is planning to close for several days. A Database Specialist needs to stop all applications along with the DB instances to ensure employees do not have access to the systems during this time. All databases are running on Amazon RDS for MySQL.
The Database Specialist wrote and ran a script to stop all the DB instances. When reviewing the logs, the Database Specialist found that Amazon RDS DB instances with read replicas did not stop.
How should the Database Specialist edit the script to fix this issue?

Answer options

Correct answer: B

Explanation

The correct answer is B because read replicas cannot be stopped while their source instance is still running; they must be deleted first. Options A and C suggest stopping instances in a sequence that won't resolve the issue, while D proposes simultaneous stopping, which is not supported by RDS for read replicas.