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 351 discussion

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

You have a Cloud Run service that needs to connect to a Cloud SQL instance in a different project. You provisioned the Cloud Run service account with the Cloud SQL Client IAM role on the project that is hosting Cloud SQL. However, when you test the connection, the connection fails. You want to fix the connection failure while following Google-recommended practices. What should you do?

  • A. Add the cloudsql.instances.connect IAM permission to the Cloud Run service account.
  • B. Request additional API quota for Cloud SQL Auth Proxy,
  • C. Enable the Cloud SQL Admin API in both projects.
  • D. Migrate the Cloud SQL instance into the same project as the Cloud Run service.
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
Sandesh24
2 months ago
Selected Answer: C
Even though you have granted the Cloud SQL Client role to the Cloud Run service account, the connection can still fail if the Cloud SQL Admin API is not enabled in the project where your Cloud Run service resides. For cross-project connections, Google Cloud recommends that the Cloud SQL Admin API be enabled in both projects (the one hosting Cloud SQL and the one running Cloud Run) so that proper metadata and instance connection details can be retrieved. • Option A: The Cloud SQL Client role already includes the necessary cloudsql.instances.connect permission. • Option B: There’s no indication that you are hitting an API quota issue. • Option D: Migrating the Cloud SQL instance is unnecessary and not in line with best practices for cross-project communication. Thus, enabling the Cloud SQL Admin API in both projects resolves the connectivity issue.
upvoted 2 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