A tester finds that a managed cloud database has a public IP and accepts connections from any internet address, although only application servers in the same virtual network use it. What is the BEST remediation?
Show the answer
Correct answerC. Remove the public endpoint and use private access
AWhy not this: Versioning protects stored objects against overwrite or deletion and has no effect on network reachability of a database.
BWhy not this: A least-privilege role limits what the servers can do in the account, but the database would still accept internet connections.
CWhy this is right: Only internal servers need the database, so removing the public endpoint takes away the unnecessary internet exposure.
DWhy not this: Rotation limits credential age but leaves the database reachable from the internet to anyone who can guess or steal a password.
The database is reachable from the internet although only internal hosts need it. Removing the public endpoint and using private networking removes the exposure itself. Rotating the password only makes guessing harder; the service stays publicly reachable.