exam questions

Exam Professional Cloud Database Engineer All Questions

View all questions & answers for the Professional Cloud Database Engineer exam

Exam Professional Cloud Database Engineer topic 1 question 64 discussion

Actual exam question from Google's Professional Cloud Database Engineer
Question #: 64
Topic #: 1
[All Professional Cloud Database Engineer Questions]

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?

  • A. Reuse the existing service account that populates this database.
  • B. Create a new service account, and grant it the Cloud Spanner Database Admin role.
  • C. Create a new service account, and grant it the Cloud Spanner Database Reader role.
  • D. Create a new service account, and grant it the spanner.databases.select permission.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
chelbsik
Highly Voted 1 year, 10 months ago
Selected Answer: C
spanner.database.select is not enough, you also need a spanner.database.read which is included in Cloud Spanner Database Reader role
upvoted 7 times
...
whoosh
Most Recent 10 months, 2 weeks ago
Selected Answer: C
Option C is correct. Here is why: spanner.admin God-tier control over everything Full CRUD & DDL for instances, databases, users, policies Manage entire Cloud Spanner environment spanner.databaseAdmin Database master control Full CRUD & DDL for databases, users, policies Create, manage, and secure databases spanner.databaseUser Power user with data rights Full CRUD & DDL for specified databases Read, write, modify data, manage database schema spanner.databaseReader Curious but hands-off observer Read-only access and query execution Analyze data without manipulation spanner.viewer Peeping Tom (metaphorically speaking) View instances, databases, and users Monitor Cloud Spanner metadata, no data access spanner.backupAdmin Backup whiz Create, view, update, delete backups Manage backups without accessing data
upvoted 1 times
...
theseawillclaim
1 year, 1 month ago
Selected Answer: C
A is nonsense. Admin is too much, select is not enough. C is the one.
upvoted 2 times
...
dynamic_dba
1 year, 7 months ago
C. A new application should have its own service account. Eliminate A. The Admin role is too broad. Eliminate B. D grants an individual permission not a role. Granting permissions in IAM is done via a role. From Google’s documentation: “In IAM, permission to access a resource isn't granted directly to the end user. Instead, permissions are grouped into roles, and roles are granted to authenticated principals.” https://cloud.google.com/iam/docs/overview
upvoted 4 times
...
Ayush9596
1 year, 8 months ago
Why not D?
upvoted 1 times
Ayush9596
1 year, 8 months ago
Service account task Required permissions Read data spanner.databases.select spanner.sessions.create spanner.sessions.delete
upvoted 1 times
...
...
Tharun1125438
1 year, 9 months ago
Selected Answer: B
Google Recommended practice is to assign roles but not permissions directly. SO, C
upvoted 2 times
Tharun1125438
1 year, 9 months ago
Sorry Selected Answer is C
upvoted 1 times
...
...
pk349
1 year, 10 months ago
B: Create a new service account, and grant it the Cloud Spanner Database Admin ***** role.
upvoted 1 times
gabrielosluz
1 year, 8 months ago
This role does not satisfy the principle of least privilege. The answer is letter C.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago