Reboot with failover simulates the loss of the primary: RDS restarts the DB instance and promotes the standby in the other Availability Zone to primary. The endpoint stays the same, but its DNS record now points to the new primary. Keep the loop from step 7.2 running while you do this step.
In the list of databases:
rdspg-lab-db.
On the Reboot DB Instance page:
rdspg-lab-db.
The Status changes to Rebooting, then Available after about one minute.
Choose rdspg-lab-db and open the Logs & events tab:

Because of the event subscription rdspg-lab-failover, you also receive these events by email from Amazon SNS.
Go back to the App server window:
DNS and server show the IP address of the old primary.
Press Ctrl+C to stop the loop.
Applications that keep connections open must reconnect after a failover. Use a short DNS cache time (for example, a JVM DNS TTL of 30 seconds or less), retry failed connections, and consider Amazon RDS Proxy, which keeps client connections open during a failover.
To stop paying for the standby, convert rdspg-lab-db back to Single-AZ. In AWS CloudShell, run:
aws rds modify-db-instance \
--db-instance-identifier rdspg-lab-db \
--no-multi-az --apply-immediately \
--query 'DBInstance.[DBInstanceIdentifier,MultiAZ,PendingModifiedValues.MultiAZ]' \
--output text
The output rdspg-lab-db True False means that the instance is still Multi-AZ and that the change to Single-AZ is pending. RDS removes the standby within a few minutes, without a restart. You can also do this in the console with Modify > Do not create a standby instance.