nerdexam
Google

PROFESSIONAL-CLOUD-DATABASE-ENGINEER · Question #163

You are setting up a new AlloyDB instance and want users to be able to use their existing Identity and Access Management (IAM) identities to connect to AlloyDB. You have performed the following…

The correct answer is A. Grant the new database users access privileges to the appropriate tables. Although IAM authentication and the alloydb.databaseUser role let users connect, SQL‐level privileges on the actual tables must still be granted inside the database. You need to issue GRANT SELECT (and any other needed privileges) on the relevant schemas/tables to those IAM‐…

Implementing Security and Compliance

Question

You are setting up a new AlloyDB instance and want users to be able to use their existing Identity and Access Management (IAM) identities to connect to AlloyDB. You have performed the following steps: - Manually enabled IAM authentication on the AlloyDB instance - Granted the and IAM alloydb.databaseUser serviceusage.serviceUsageconsumer roles to the users - Created new AlloyDB database users based on corresponding IAM identities Users are able to connect but are reporting that they are not able to SELECT from application tables. What should you do-

Options

  • AGrant the new database users access privileges to the appropriate tables.
  • BGrant the alloydb.client IAM role to each user.
  • CGrant the IAM role to each user.
  • DGrant the alloydb.alloydbreplica IAM role to each user.

How the community answered

(38 responses)
  • A
    79% (30)
  • B
    5% (2)
  • C
    13% (5)
  • D
    3% (1)

Explanation

Although IAM authentication and the alloydb.databaseUser role let users connect, SQL‐level privileges on the actual tables must still be granted inside the database. You need to issue GRANT SELECT (and any other needed privileges) on the relevant schemas/tables to those IAM‐ mapped database users so they can read the application data.

Topics

#AlloyDB IAM#Database Privileges#Access Control#Security Troubleshooting

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DATABASE-ENGINEER Practice