For the purposes of this demo, it is recommended that you remove the public access authorization from the database. However, on production deployments whether or not to do this will depend on your deployment circumstances. If you remove public access from the database, but the PowerServer project cache is configured to use that database it will fail to deploy.
Delete the Security group rules that were added to allow connecting remotely (RDS > Database > Connectivity & security > Security > VPC security group > Inbound rules > Edit inbound rules).
Also remove the public access permission to the database (RDS > Database > Modify > Connectivity > Additional configuration).
Remember to apply the changes immediately.