You want to establish a dedicated connection to Google that can access Cloud SQL via a public IP address and that does not require a third-party service provider. Which connection type should you choose?
When established, Direct Peering provides a direct path from your on-premises network to Google services, including Google Cloud products that can be exposed through one or more public IP addresses. Traffic from Google's network to your on-premises network also takes that direct path, including traffic from VPC networks in your projects. Google Cloud customers must request that direct egress pricing be enabled for each of their projects after they have established Direct Peering with Google. For more information, see Pricing.
https://cloud.google.com/network-connectivity/docs/direct-peering
Yes, question says using a public IP address, which you would use with Direct Peering. I don't believe you need a public address for dedicated interconnect?
I see that "Direct Peering" and "Dedicated Interconnect" appear correct. However one important difference is - "Direct Peering" connects to public IP Addresses where as "Dedicated interconnect" connects to Internal IP Addresses. For this reason - Answer should be "B"
https://cloud.google.com/network-connectivity/docs/how-to/choose-product#dp-compare
https://cloud.google.com/network-connectivity/docs/direct-peering
When established, Direct Peering provides a direct path from your on-premises network to Google services, including Google Cloud products that can be exposed through one or more public IP addresses.
B: Direct Peering overview
Direct Peering enables you to establish a direct peering connection between your business network and Google's edge network and exchange high-throughput cloud traffic.
This capability is available at any of more than 100 locations in 33 countries around the world. For more information about Google's edge locations, see Google's peering site.
When established, Direct Peering provides a direct path from your on-premises network to Google services, including Google Cloud products that can be exposed through one or more public IP addresses. Traffic from Google's network to your on-premises network also takes that direct path, including traffic from VPC networks in your projects. Google Cloud customers must request that direct egress pricing be enabled for each of their projects after they have established Direct Peering with Google. For more information, see Pricing.
Answer is B: Direct Peering
https://cloud.google.com/network-connectivity/docs/direct-peering
'When established, Direct Peering provides a direct path from your on-premises network to Google services, including Google Cloud products that can be exposed through one or more public IP addresses'
The next section is misleading: 'Direct Peering exists outside of Google Cloud. Unless you need to access Google Workspace applications, the recommended methods of access to Google Cloud are Dedicated Interconnect or Partner Interconnect.'
BUT we're not accessing Google Cloud and in the questions is says 'connection to Google'. Direct Peering allows access to the Google Cloud service we need - Cloud SQL via Public IP.
Thoughts?
C. Direct Peering exists outside of Google Cloud. Unless you need to access Google Workspace applications, the recommended methods of access to Google Cloud are Dedicated Interconnect or Partner Interconnect.
When established, Direct Peering provides a direct path from your on-premises network to Google services, including Google Cloud products that can be exposed through one or more public IP addresses...Google Cloud Products... Cloud SQL is a Google Cloud Product.
You're not accessing a Google Cloud... only a service in it.
Agree with you also because you can use Private Google Access from on-prem to access Cloud SQL as per the below:
(Cloud Interconnect) "Does not give you access to Google Workspace, but gives you access to all other Google Cloud products and services from your on-premises network. Also allows access to supported APIs and services by using Private Google Access from on-premises hosts." https://cloud.google.com/network-connectivity/docs/how-to/choose-product#dp-compare
why dedicated interconnect or partner interconnect is the answer?
it's because they are dependent of third party service provider and Google is itself for Dedicated internconnect.
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.
majun
Highly Voted 3 years, 1 month agomajun
3 years, 1 month agoWindy_Welly88
2 years agoGurminderjit
Most Recent 1 week, 5 days agobus_karan19
2 months, 1 week agosubhala
10 months agopk349
11 months, 2 weeks agoMr_MIXER007
1 year, 2 months agokumarp6
1 year, 11 months agodesertlotus1211
1 year, 12 months agoLisX
2 years, 3 months agodesertlotus1211
1 year, 12 months agoThisisJohn
2 years, 1 month agojeeet_
2 years, 5 months ago[Removed]
3 years, 1 month agolukedj87
3 years, 1 month ago