Question 540
An engineer can deploy VMs but cannot attach a particular service account to them. Which IAM role may be missing on that account?
- Attach a service account to a VM
- Rotate compromised service account key
- Grant service account user role for attachment
- Grant target resource role to service account
- Use service-account-level IAM policy
- Attach a service account to Cloud Run
Explanation
Correct Answer
C:Service Account User includes the iam.serviceAccounts.actAs permission used for attaching a service account to supported resources; the decisive property here is authorizing workload identity attachment.
Incorrect Answers
A:VMs can run as attached service accounts, with tokens available through the metadata server subject to access settings; Applying it would target assigning workload identity to a compute instance, leaving the separate need for authorizing workload identity attachment.
B:Deleting or disabling compromised user-managed service-account keys prevents further authentication with those keys; its operational role is revoking a compromised service-account key; the needed capability is authorizing workload identity attachment.
D:Attaching an account establishes identity but the service account still needs IAM permissions on the resources it accesses; its operational role is granting the workload identity the required API permissions; the needed capability is authorizing workload identity attachment.
E:A service account is an IAM resource with its own allow policy for controlling who can use or manage it; it concerns delegating access to exactly one service account, and its normal effect does not provide authorizing workload identity attachment.
F:Cloud Run services use configured runtime service accounts for Google Cloud API calls; Applying it would target running the container as a selected service account, leaving the separate need for authorizing workload identity attachment.
Question 541
An internal TCP endpoint needs a predictable private address across backend changes. Which resource should be reserved?
- Reserve a static internal address
- Add a subnet to a custom VPC
- Inspect effective VPC routes
- Use Network Intelligence Center routes analysis
- Reserve a static external address
Explanation
Correct Answer
A:Internal static IP reservations reserve eligible private addresses at the appropriate regional or global scope; this is the specific mechanism used for allocating a stable private VPC IP.
Incorrect Answers
B:For creating a new regional subnet in an existing network, this could be relevant; Subnets are regional resources associated with a VPC and have nonoverlapping ranges as required; the actual request concerns allocating a stable private VPC IP.
C:Effective route information shows applicable VPC paths and helps diagnose destination selection; the decision here is about allocating a stable private VPC IP, not diagnosing the actual selected network route.
D:Network Intelligence Center and route diagnostics expose supported route and connectivity insights; it is not the focused action for allocating a stable private VPC IP; its primary use is troubleshooting network route visibility.
E:Static external IP reservations avoid losing an address when ephemeral assignment would otherwise change; it would help with preserving a stable external IP address, but it does not directly implement allocating a stable private VPC IP.
Question 542
An analytics platform has predictable CPU and memory demand over the next year. What pricing program could reduce expense?
- Choose a custom machine type
- Use Confidential VM
- Use committed use discounts for compute
- Configure VM Manager
Explanation
Correct Answer
C:Committed use discounts exchange qualifying resource or spend commitments for discounted eligible usage; it is the direct control for committing eligible baseline compute usage.
Incorrect Answers
A:The alternative would address matching VM CPU and RAM to workload requirements; Compute Engine custom machine types support configurable processor and memory combinations within family constraints; the question instead requires committing eligible baseline compute usage.
B:Confidential VM uses hardware confidential-computing capabilities to protect supported workloads during execution; it concerns protecting data in use on supported VMs, and its normal effect does not provide committing eligible baseline compute usage.
D:VM Manager provides OS inventory, patch and configuration capabilities for supported VM environments; it would help with managing fleet OS patches and inventory, but it does not directly implement committing eligible baseline compute usage.
Question 543
A hybrid network requires a redundant encrypted VPN design plus BGP-based dynamic route exchange with customer routers. Choose TWO Google Cloud components.
- Use HA VPN
- Use Cloud Router
- Use VPC Network Peering
- Use a Shared VPC host project
- Use Cloud Interconnect
Explanation
Correct Answers
A:HA VPN uses regional high-availability gateways with two interfaces and supports Cloud Router dynamic routing; within the multi-part workflow of providing a redundant encrypted hybrid tunnel and dynamic BGP routes, this provides designing a highly available VPN connection.
B:Cloud Router manages dynamic route exchange using BGP for supported hybrid connectivity; within the multi-part workflow of providing a redundant encrypted hybrid tunnel and dynamic BGP routes, this provides dynamically exchanging hybrid routes.
Incorrect Answers
C:VPC Network Peering exchanges supported routes between paired VPC networks without transitive peering; its focus is privately connecting separate VPC networks, rather than providing a redundant encrypted hybrid tunnel and dynamic BGP routes.
D:Shared VPC allows service projects to use subnets from a host project's shared network under delegated access; it is designed for centralizing network ownership across projects, rather than the needed providing a redundant encrypted hybrid tunnel and dynamic BGP routes.
E:Cloud Interconnect provides supported private connectivity between on-premises networks and Google Cloud through dedicated or partner arrangements, which serves connecting a private circuit to Google's network instead of providing a redundant encrypted hybrid tunnel and dynamic BGP routes.
Question 544
An on-premises network must tolerate the loss of one VPN gateway interface with the appropriate peer design. Which setup fits?
- Use HA VPN
- Use Cloud Interconnect
- Use Cloud VPN
- Use an auto-mode VPC
Explanation
Correct Answer
A:HA VPN uses regional high-availability gateways with two interfaces and supports Cloud Router dynamic routing; it is the direct control for using redundant VPN interfaces for hybrid availability.
Incorrect Answers
B:Cloud Interconnect provides supported private connectivity between on-premises networks and Google Cloud through dedicated or partner arrangements; it is relevant when connecting a private circuit to Google's network, not when the primary need is using redundant VPN interfaces for hybrid availability.
C:Cloud VPN provides managed IPsec VPN tunnels for hybrid network connectivity; the supported outcome is connecting external networks through VPN tunnels, while the requested result is using redundant VPN interfaces for hybrid availability.
D:Auto-mode VPC networks create subnets in eligible regions automatically and have defined address allocation behavior; its operational role is creating regional subnets automatically; the needed capability is using redundant VPN interfaces for hybrid availability.
Question 545
Records may stay unread for years while still requiring access when explicitly requested. Which Cloud Storage class fits?
- Choose Cloud Storage Archive
- Choose Cloud Storage Standard
- Configure Cloud Storage lifecycle rules
- Use a multi-region Cloud Storage bucket
Explanation
Correct Answer
A:Archive is the coldest Cloud Storage class with retrieval charges and minimum storage duration but online object availability; that behavior is precisely what storing long-term rarely retrieved objects calls for.
Incorrect Answers
B:Standard is designed for frequently accessed Cloud Storage objects without a minimum storage-duration charge; the decision here is about storing long-term rarely retrieved objects, not choosing hot-tier object storage.
C:Object lifecycle management evaluates configured conditions and applies supported storage class transitions or deletions; Applying it would target automatically deleting aged objects, leaving the separate need for storing long-term rarely retrieved objects.
D:For selecting multi-region object storage, this could be relevant; Cloud Storage multi-region locations store object data using Google's supported multi-region placement and redundancy model; the actual request concerns storing long-term rarely retrieved objects.
Question 546
An incident responder wants a CLI-assisted SSH session to a VM with supported network and identity access. What tool fits?
- Use gcloud compute ssh
- Schedule disk snapshots
- Change a VM machine type
- Create an instance from an image
Explanation
Correct Answer
A:The scenario depends on opening an administrative SSH session; Gcloud compute ssh helps establish SSH connectivity to a supported VM using applicable authentication and network paths.
Incorrect Answers
B:Resource policies can schedule eligible persistent disk snapshots and manage their retention; the scenario specifies opening an administrative SSH session, which differs from automating regular persistent disk snapshots.
C:VM machine types control vCPU and memory allocations; changing types commonly requires stopping an eligible VM; its purpose differs: adjusting a VM's machine configuration is separate from opening an administrative SSH session.
D:VM boot disks can be initialized from public or custom images in compatible configurations; the scenario specifies opening an administrative SSH session, which differs from launching a replacement VM from a prepared image.
Question 547
A VM's SSH access from a trusted office CIDR is denied by ingress firewall policy. Which rule direction and action can permit it?
- Use Cloud NGFW hierarchical firewall policies
- Use VPC Flow Logs
- Use Cloud NGFW secure tags
- Use firewall target service accounts
- Use VPC firewall ingress allow
Explanation
Correct Answer
E:Ingress allow rules permit matching incoming connections to specified targets subject to higher-priority policies; that matches the requirement for allowing inbound traffic from approved sources.
Incorrect Answers
A:Hierarchical firewall policies apply ordered network security rules from organization or folder associations; it is relevant when enforcing inherited network firewall policies, not when the primary need is allowing inbound traffic from approved sources.
B:VPC Flow Logs records sampled network flow information for eligible subnet traffic; it is relevant when collecting sampled connection-flow telemetry, not when the primary need is allowing inbound traffic from approved sources.
C:This alternative focuses on selecting network targets using governed security tags; Secure Tags are resource-manager tags usable in supported Cloud NGFW policy targeting; the stem instead asks for allowing inbound traffic from approved sources.
D:VPC firewall rules can use supported service-account selectors to identify target VM interfaces; that solves problems involving applying network rules to VM service account targets, rather than the allowing inbound traffic from approved sources requirement.
Question 548
An analyst wants detailed historical cost data queried with SQL across cloud projects. Which export should be enabled?
- Use Cloud Billing credits view
- Use billing cost table reports
- Create a billing budget
- Apply labels for cost attribution
- Configure billing export of pricing data
- Configure billing export to BigQuery
Explanation
Correct Answer
F:Cloud Billing exports send selected cost and pricing information to BigQuery datasets for analysis; it supports making Cloud Billing data queryable in BigQuery at the appropriate resource scope.
Incorrect Answers
A:Billing reports and exports expose applicable credits alongside costs, subject to report and export settings; this is a distinct control for examining applicable billing credits, rather than making Cloud Billing data queryable in BigQuery.
B:The Cost table provides tabular cost records and invoice-oriented analysis for supported billing accounts; this governs reviewing invoice-aligned billing cost detail, whereas the stated objective is making Cloud Billing data queryable in BigQuery.
C:Cloud Billing budgets evaluate costs against thresholds and issue alerts but do not directly cap or halt usage; this is a distinct control for notifying owners of spending thresholds, rather than making Cloud Billing data queryable in BigQuery.
D:Supported labels can be surfaced in billing exports and filters to allocate eligible costs; the supported outcome is categorizing resource charges using labels, while the requested result is making Cloud Billing data queryable in BigQuery.
E:For retrieving price-list data programmatically, this could be relevant; Pricing exports provide pricing-related records to BigQuery separately from detailed usage cost exports; the actual request concerns making Cloud Billing data queryable in BigQuery.
Question 549
A pipeline may upload new objects but must not read or delete objects that already exist. Which role is relevant?
- Use gcloud storage ls
- Grant Storage Object Creator
- Enable bucket IAM with uniform access
- Restore a soft-deleted Cloud Storage object
Explanation
Correct Answer
B:Storage Object Creator supports creating objects without granting general read or delete permissions; that behavior is precisely what allowing append-only style object creation calls for.
Incorrect Answers
A:Gcloud storage ls enumerates supported buckets and objects depending on the specified path; the scenario specifies allowing append-only style object creation, which differs from listing Cloud Storage objects.
C:Uniform bucket-level access disables object ACL enforcement in favor of IAM evaluation; the decision here is about allowing append-only style object creation, not enforcing centralized IAM control of bucket objects.
D:Soft-deleted objects can be restored within their applicable retention period using supported restore workflows; Applying it would target recovering retained deleted object data, leaving the separate need for allowing append-only style object creation.
Question 550
A support engineer must inspect one VM's exact attached disks, networking and service account configuration. Which command fits?
- Schedule disk snapshots
- Diagnose OS Login IAM roles
- Resize a persistent disk
- Use IAP TCP forwarding for SSH
- Create a custom image from a disk
- Use gcloud compute instances describe
Explanation
Correct Answer
F:The instances describe operation retrieves configuration and status details for a specified VM in its zone; Applied in this case, it delivers retrieving one instance's detailed configuration.
Incorrect Answers
A:Resource policies can schedule eligible persistent disk snapshots and manage their retention; it is not the focused action for retrieving one instance's detailed configuration; its primary use is automating regular persistent disk snapshots.
B:OS Login uses IAM roles and identities for VM SSH access, superseding metadata-managed key access when enabled; that applies to granting supported OS Login access through IAM; the requested task is retrieving one instance's detailed configuration.
C:The alternative would address expanding an existing persistent disk; Persistent disks can be expanded subject to limits, with guest partition or filesystem growth often still required; the question instead requires retrieving one instance's detailed configuration.
D:This alternative focuses on reaching private VM SSH through IAP TCP tunnels; IAP TCP forwarding can proxy authorized SSH connections without a public VM address when prerequisites are met; the stem instead asks for retrieving one instance's detailed configuration.
E:Custom Compute Engine images provide reusable disk source content for new boot disks; that mechanism handles preparing reusable VM boot images; it does not configure retrieving one instance's detailed configuration.