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

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

Your team is developing a new application using a PostgreSQL database and Cloud Run. You are responsible for ensuring that all traffic is kept private on Google
Cloud. You want to use managed services and follow Google-recommended best practices. What should you do?

  • A. 1. Enable Cloud SQL and Cloud Run in the same project. 2. Configure a private IP address for Cloud SQL. Enable private services access. 3. Create a Serverless VPC Access connector. 4. Configure Cloud Run to use the connector to connect to Cloud SQL.
  • B. 1. Install PostgreSQL on a Compute Engine virtual machine (VM), and enable Cloud Run in the same project. 2. Configure a private IP address for the VM. Enable private services access. 3. Create a Serverless VPC Access connector. 4. Configure Cloud Run to use the connector to connect to the VM hosting PostgreSQL.
  • C. 1. Use Cloud SQL and Cloud Run in different projects. 2. Configure a private IP address for Cloud SQL. Enable private services access. 3. Create a Serverless VPC Access connector. 4. Set up a VPN connection between the two projects. Configure Cloud Run to use the connector to connect to Cloud SQL.
  • D. 1. Install PostgreSQL on a Compute Engine VM, and enable Cloud Run in different projects. 2. Configure a private IP address for the VM. Enable private services access. 3. Create a Serverless VPC Access connector. 4. Set up a VPN connection between the two projects. Configure Cloud Run to use the connector to access the VM hosting PostgreSQL
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
alpha_canary
6 months, 1 week ago
Selected Answer: A
A is correct. B & D is rejected easily C: its adding unnecessary complexity by putting them in different project. Why would be even do that
upvoted 1 times
...
darkblade60
9 months, 2 weeks ago
Should be B, your app is PostgresSQL + Cloud Run, uses Cloud SQL is change the premise
upvoted 1 times
darkblade60
9 months, 2 weeks ago
mmm well, I think its A because CloudSQL can be postgresql
upvoted 1 times
...
...
__rajan__
1 year, 1 month ago
Selected Answer: A
I would go with A.
upvoted 1 times
...
purushi
1 year, 2 months ago
Selected Answer: A
The key here is, Google Managed services and follow Google-recommended best practices: Definitely Cloud SQL instead of Postgres SQL that is almost an unmanaged service managed by custom configurations set by customers.
upvoted 2 times
...
omermahgoub
1 year, 9 months ago
Selected Answer: A
The answer would be A. By using Cloud SQL and Cloud Run in the same project, you can take advantage of the built-in security features and managed services provided by Google Cloud. By configuring a private IP address for Cloud SQL and enabling private services access, you can ensure that all traffic is kept private. You can also create a Serverless VPC Access connector and configure Cloud Run to use this connector to connect to Cloud SQL. This configuration will allow your application to connect to the database securely and privately, following Google-recommended best practices.
upvoted 1 times
...
zellck
1 year, 10 months ago
Selected Answer: A
A is the answer. https://cloud.google.com/vpc/docs/serverless-vpc-access Serverless VPC Access makes it possible for you to connect directly to your Virtual Private Cloud network from serverless environments such as Cloud Run, App Engine, or Cloud Functions. Configuring Serverless VPC Access allows your serverless environment to send requests to your VPC network using internal DNS and internal IP addresses (as defined by RFC 1918 and RFC 6598). The responses to these requests also use your internal network.
upvoted 1 times
...
TNT87
1 year, 11 months ago
Selected Answer: A
https://cloud.google.com/sql/docs/postgres/connect-run#configure https://cloud.google.com/sql/docs/postgres/connect-run#private-ip Answer A
upvoted 1 times
...
tomato123
2 years, 2 months ago
Selected Answer: A
A is correct
upvoted 2 times
...
akshaychavan7
2 years, 2 months ago
Selected Answer: A
Options C and D are crossed out as they suggest using different projects. To choose between option A and B, why should we install PostgreSQL explicitly, if it is already present in CloudSQL. So, I will go with CloudSQL whiz Option A.
upvoted 1 times
...
nqthien041292
2 years, 6 months ago
Selected Answer: A
Vote A
upvoted 2 times
...
Blueocean
2 years, 9 months ago
Option A is best option
upvoted 3 times
...
scaenruy
2 years, 9 months ago
I vote A https://cloud.google.com/sql/docs/postgres/connect-run#private-ip
upvoted 1 times
...
ParagSanyashiv
2 years, 9 months ago
Selected Answer: A
Correct option is A
upvoted 2 times
...
ParagSanyashiv
2 years, 9 months ago
I will go for option A, as mentioned in the question, managed services to be used, in this case using a Cloud SQL would be correct. If a PostgreSQL is installed in a compute engine, then it will be customer managed rather google service managed.
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