Professional Cloud Security Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
An enterprise is deploying a mission-critical workload on a VPC-native Google Kubernetes Engine (GKE) cluster that must interact with a Cloud SQL for PostgreSQL instance configured exclusively with private IP. The organization's security policy mandates the following:
Which configuration should the security engineer implement to meet these requirements?
The Cloud SQL Auth Proxy is a companion connector that provides secure access to Cloud SQL instances by establishing an encrypted TLS/SSL tunnel and authenticating through the Cloud SQL Admin API. When combined with GKE Workload Identity and IAM database authentication, applications running on Google Kubernetes Engine authenticate seamlessly without managing static database user passwords or long-lived private key files.
--private-ip flag forces network traffic to route through internal RFC 1918 addresses via Private Service Access or Private Service Connect. Outgoing connections from the proxy to the database on port 3307 are automatically wrapped in 256-bit TLS/SSL with ephemeral certificates refreshed every hour.--auto-iam-authn flag instructs the proxy to supply IAM credentials directly during the database handshake, eliminating static database passwords entirely.roles/cloudsql.client permits connection authorization via the Cloud SQL Admin API, while roles/cloudsql.instanceUser grants permission to log in using IAM database authentication.127.0.0.1 (localhost), ensuring unencrypted local traffic never leaves the pod boundary.This approach adheres strictly to Google Cloud security best practices by eliminating credential persistence, enforcing internal encrypted routing, and automating identity federation across GKE and Cloud SQL.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.