exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 105 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 105
Topic #: 1
[All Professional Cloud Developer Questions]

You are deploying your application on a Compute Engine instance that communicates with Cloud SQL. You will use Cloud SQL Proxy to allow your application to communicate to the database using the service account associated with the application's instance. You want to follow the Google-recommended best practice of providing minimum access for the role assigned to the service account. What should you do?

  • A. Assign the Project Editor role.
  • B. Assign the Project Owner role.
  • C. Assign the Cloud SQL Client role.
  • D. Assign the Cloud SQL Editor role.
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
scaenruy
Highly Voted 2 years, 9 months ago
I vote C https://cloud.google.com/sql/docs/mysql/roles-and-permissions
upvoted 7 times
...
alpha_canary
Most Recent 6 months, 1 week ago
Selected Answer: C
https://cloud.google.com/sql/docs/mysql/roles-and-permissions#:~:text=When%20you%20use%20an%20account%20to%20connect%20to%20a%20Cloud%20SQL%20instance%2C%20the%20account%20must%20have%20the%20Cloud%20SQL%20%3E%20Client%20role%20(roles/cloudsql.client)%2C%20which%20includes%20the%20permissions%20required%20for%20connecting.
upvoted 1 times
...
__rajan__
1 year, 1 month ago
Selected Answer: C
Cloud SQL Client role: This role provides the necessary permissions to interact with Cloud SQL while minimizing access to other resources.
upvoted 1 times
...
omermahgoub
1 year, 9 months ago
C. Assign the Cloud SQL Client role. The Cloud SQL Client role has the minimal set of permissions required to access Cloud SQL instances. This role includes permissions to connect to and use a Cloud SQL instance, but it doesn't include permissions to create, delete or manage the instance itself. This role should be granted to the service account associated with your Compute Engine instance, in order to allow your application to connect to the Cloud SQL instance using the Cloud SQL Proxy. You can assign the Cloud SQL Client role to a service account by using the Cloud Console, the gcloud command-line tool, or the Cloud Identity and Access Management (IAM) API. Once the role is assigned, your application will be able to authenticate to Cloud SQL using the service account and the Cloud SQL Proxy. It is important to note that the permissions granted by this role should be limited to the specific Cloud SQL instance that the application needs to connect to and not the entire project, to minimize the access and follow the principle of least privilege.
upvoted 1 times
...
zellck
1 year, 10 months ago
Selected Answer: C
C is the answer. https://cloud.google.com/sql/docs/mysql/roles-and-permissions#proxy-roles-permissions If you are connecting to a Cloud SQL instance from a Compute Engine instance using Cloud SQL Auth proxy, you can use the default Compute Engine service account associated with the Compute Engine instance. As with all accounts connecting to a Cloud SQL instance, the service account must have the Cloud SQL > Client role.
upvoted 1 times
...
tomato123
2 years, 2 months ago
Selected Answer: C
C is correct
upvoted 3 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