PCD Integrating Google Cloud services • Set 4
PCD Integrating Google Cloud services Practice Test 4 — 15 questions with explanations. Free, no signup.
Refer to the exhibit. A team is deploying a Cloud Function that needs to connect to a Cloud SQL instance in a VPC. They have set up a VPC connector. After deployment, the function fails to connect to the database. What is the most likely cause?
resource "google_cloudfunctions_function" "function" {
name = "my-function"
runtime = "python39"
entry_point = "hello_world"
source_archive_bucket = google_storage_bucket.bucket.name
source_archive_object = "function.zip"
event_trigger {
event_type = "google.storage.object.finalize"
resource = google_storage_bucket.bucket.name
}
vpc_connector = google_vpc_access_connector.connector.id
vpc_connector_egress_settings = "ALL_TRAFFIC"
environment_variables = {
DB_HOST = "10.0.0.4"
}
}