Prepare and test your skills
Prepare and test your skills
Free sample question, answered and explained below. The Professional Cloud Architect practice bank has 2,335 more like it. Try 10 free: instant score, no account.
An enterprise is designing a decoupled, event-driven processing pipeline on Google Cloud. When new image files are uploaded to a private Cloud Storage bucket, an Eventarc trigger must capture the event and deliver it directly to a backend processing service. The backend service is hosted at an internal HTTP endpoint within a private Virtual Private Cloud (VPC) network and is addressed using an internal DNS domain name managed by Cloud DNS.
To ensure private network connectivity and follow the principle of least privilege, which combination of networking and Identity and Access Management (IAM) configurations should you implement?
This option proposes using a Serverless VPC Access connector for event delivery and assigns administrative network roles alongside the Eventarc Event Receiver role.
roles/compute.networkAdmin) violates the principle of least privilege. Furthermore, it does not grant DNS resolution capabilities for internal domains, which specifically requires roles/dns.peer./28 subnet allocation.A Cloud Run service needed to initiate outbound database calls to a private Cloud SQL instance hosted inside a VPC subnet.
This option proposes implementing Cloud NAT and granting broad administrative roles (Pub/Sub Editor and DNS Administrator) to default service accounts.
roles/pubsub.editor and roles/dns.admin gives extensive administrative capabilities (such as modifying DNS zones and creating/deleting topics and subscriptions), violating least privilege.Private backend virtual machines inside the VPC needed outbound internet access to download software updates or third-party patches.
This configuration establishes a secure, private event-routing pathway from Cloud Storage through Eventarc to an internal HTTP destination hosted inside a Virtual Private Cloud (VPC) without traversing the public internet.
roles/pubsub.publisher) role to the project's Cloud Storage service agent (service-PROJECT_NUMBER@gs-project-accounts.iam.gserviceaccount.com) allows it to publish storage mutation events securely.service-PROJECT_NUMBER@gcp-sa-eventarc.iam.gserviceaccount.com) requires the DNS Peer (roles/dns.peer) role on the VPC host project to resolve the internal record.This architecture adheres to the Google Cloud security best practices for event-driven computing by combining native VPC network attachments with granular, least-privilege IAM roles for Google-managed service agents.
This option suggests using a Private Service Connect (PSC) forwarding rule along with Cloud Storage object viewing and Service Directory viewing roles.
roles/storage.objectViewer to emit object lifecycle events; it needs roles/pubsub.publisher to push event notifications to the Pub/Sub transport layer used by Eventarc.roles/servicedirectory.viewer does not grant the Eventarc service agent permission to resolve internal Cloud DNS zone names in the host project, failing internal name resolution.A workload inside the VPC needed private egress connectivity to consume a published Google Cloud API or external third-party managed service.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated