CLOUD-DATABASE-ENGINEER practice question 12 of 25
You are a DBA of Cloud SQL for PostgreSQL. You want the applications to have password-less authentication for read and write access to the database. Which authentication mechanism should you use?
Full set: 141 questionsIAM database authentication is the designated Google Cloud feature for providing password-less access to Cloud SQL instances, including PostgreSQL. It allows applications, through service accounts, and users to authenticate using their IAM identity and permissions. Instead of a static password, the application uses a short-lived OAuth 2.0 access token obtained via the Cloud SQL Auth Proxy or a database connector. This method centralizes access control within IAM, enhances security by eliminating the need to manage database passwords, and directly fulfills the requirement for password-less authentication.
B. Use Managed Active Directory authentication: This authentication method is primarily designed for and supported by Cloud SQL for SQL Server, not PostgreSQL.
C. Use Cloud SQL federated queries: This is a feature of BigQuery that allows it to query data residing in Cloud SQL. It is not an authentication mechanism for applications connecting directly to the database.
D. Use PostgreSQL database's built-in authentication: While PostgreSQL has various authentication methods, the most common ones for applications (e.g., scram-sha-256) require passwords. IAM authentication is the recommended Google Cloud-native approach for password-less access.
1. Google Cloud Documentation: Cloud SQL for PostgreSQL > IAM database authentication.
"Cloud SQL IAM database authentication provides you with the following benefits: ... You don't need to manage database passwords. You can use IAM to centrally manage access to your database instances." This directly supports the use of IAM for password-less access.
"With IAM database authentication, access to your database is granted using an IAM user or service account and the Cloud SQL Admin API, rather than a password." This confirms the mechanism is password-less.
2. Google Cloud Documentation: Cloud SQL > Connect overview > IAM database authentication.
"Cloud SQL integrates with Identity and Access Management (IAM) to help you better manage access for users and service accounts to your databases. This feature is called IAM database authentication." This establishes IAM authentication as the integrated solution.
3. Google Cloud Documentation: Cloud SQL for SQL Server > Using Managed Service for Microsoft Active Directory with Cloud SQL.
This page details the integration of Managed AD, but it is explicitly in the context of Cloud SQL for SQL Server, confirming that it is not the standard solution for PostgreSQL.
Keep practicing
Take the free CLOUD-DATABASE-ENGINEER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CLOUD-DATABASE-ENGINEER practice questions
- Question 1Your DevOps team is using Terraform to deploy applications and Cloud SQL databases. After…
- Question 2Your company is developing a new global transactional application that must be ACID-compl…
- Question 3You are designing a database strategy for a new web application. You plan to start with a…
- Question 4Your application uses Cloud SQL for MySQL. Your users run reports on data that relies on …
- Question 5You plan to use Database Migration Service to migrate data from a PostgreSQL on-premises …
- Question 6You host an application in Google Cloud. The application is located in a single region an…
