Google Cloud Professional Cloud Database Engineer — Question 102

You are configuring a new application that has access to an existing Cloud Spanner database. The new application reads from this database to gather statistics for a dashboard. You want to follow Google-recommended practices when granting Identity and Access Management (IAM) permissions. What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C because granting the Cloud Spanner Database Reader role allows the new application to read data from the database without unnecessary permissions. Option A is incorrect as reusing the existing service account may provide more access than needed, while B and D give excessive permissions that are not appropriate for just reading data.