Question 630
A background process on a VM needs Google API credentials without a key file on disk. What instance attachment supports this?
- Use Application Default Credentials on Google Cloud
- Attach a service account to a VM
- Grant service account token creator
- Avoid exporting service account keys
Explanation
Correct Answer
B:VMs can run as attached service accounts, with tokens available through the metadata server subject to access settings; that behavior is precisely what using the VM metadata server's service-account credentials calls for.
Incorrect Answers
A:Application Default Credentials allows libraries to discover the runtime's supported identity credentials; it is relevant when automatically locating attached runtime credentials, not when the primary need is using the VM metadata server's service-account credentials.
C:For authorizing ephemeral impersonation credentials, this could be relevant; Service Account Token Creator enables supported token or signature operations for a target service account; the actual request concerns using the VM metadata server's service-account credentials.
D:Managed service-account credentials are generally safer than downloadable private keys because the platform supplies short-lived tokens; Applying it would target avoiding unnecessary long-lived private keys, leaving the separate need for using the VM metadata server's service-account credentials.
Question 631
During Cloud Identity domain onboarding, the administrator must prove control of example.org without changing its public website. Which action is normally used for DNS-based ownership verification?
- Assign the Owner basic IAM role to every workforce user
- Add an A record pointing the domain at a VM
- Grant Organization Policy Administrator to the registrar
- Publish the specified verification TXT record in the domain DNS
Explanation
Correct Answer
D:DNS domain verification commonly asks the administrator to place a unique TXT token in the domain's DNS records and then complete the verification check.
Incorrect Answers
A:Project IAM Owner controls cloud resources and does not prove administrative ownership of an Internet DNS domain.
B:An A record maps a hostname to an IP address; it is not the verification token required by the domain-ownership workflow.
C:IAM governance roles do not give Google Cloud a DNS proof that the administrator controls the claimed domain name.
Question 632
An SRE wants a dashboard of custom payment processing lag emitted by application code. Which Monitoring feature is relevant?
- Configure Cloud Monitoring custom metrics
- Use Monitoring notification channels
- Use linked BigQuery datasets for logs
- Use Cloud Profiler profiles
Explanation
Correct Answer
A:Custom Cloud Monitoring metrics let applications write supported time-series values representing domain-specific behavior; that matches the requirement for recording metrics generated by the application.
Incorrect Answers
B:Notification channels identify targets for messages emitted by Monitoring alerting policies; Applying it would target routing incident notifications to recipients, leaving the separate need for recording metrics generated by the application.
C:Linked BigQuery datasets can provide query access to supported Log Analytics bucket data; the scenario specifies recording metrics generated by the application, which differs from exposing compatible log storage through BigQuery linkage.
D:Cloud Profiler collects supported statistical application profiles that highlight code resource consumption; its operational role is identifying CPU-intensive code paths; the needed capability is recording metrics generated by the application.
Question 633
A CI pipeline deploys Cloud Run and the deployed service reads a database. What separation improves least privilege?
- Use Cloud Run runtime identity permission checks
- Use separate build and runtime service accounts
- Use GKE Kubernetes service accounts
- Attach a service account to Cloud Run
- Grant target resource role to service account
Explanation
Correct Answer
B:Deployment and runtime service accounts serve different functions and can receive separate tailored IAM roles; for the stated workload, the practical result is separating deployment authority from application data access.
Incorrect Answers
A:Production API authorization follows the workload's attached service account, not the developer's personal IAM roles; the decision here is about separating deployment authority from application data access, not validating the deployed service's runtime identity.
C:Kubernetes ServiceAccounts identify workloads to the Kubernetes API and can participate in GKE workload identity integrations; it is appropriate for distinguishing Pod identities inside Kubernetes; here, the deciding requirement is separating deployment authority from application data access.
D:Cloud Run services use configured runtime service accounts for Google Cloud API calls; it would help with running the container as a selected service account, but it does not directly implement separating deployment authority from application data access.
E:Attaching an account establishes identity but the service account still needs IAM permissions on the resources it accesses; that applies to authorizing the account on the target resource; the requested task is separating deployment authority from application data access.
Question 634
A principal receives a permission-denied error, and engineers want to understand the evaluated IAM access decision. What tool helps?
- Use IAM policy troubleshooting
- Use IAM deny policies
- Use IAM Recommender
- Use IAM Conditions
Explanation
Correct Answer
A:Policy Troubleshooter evaluates supported permission checks against applicable policies and conditions; this is the specific mechanism used for diagnosing an authorization decision.
Incorrect Answers
B:IAM deny policies can block eligible permissions for matching principals despite otherwise applicable allow grants; this is a distinct control for overriding applicable allows with a deny, rather than diagnosing an authorization decision.
C:IAM Recommender provides eligible role-grant recommendations based on observed access and permission usage; that applies to finding excessive IAM permissions; the requested task is diagnosing an authorization decision.
D:IAM Conditions attach supported CEL expressions to role bindings to restrict when permissions apply; it is appropriate for adding a time-bound conditional role grant; here, the deciding requirement is diagnosing an authorization decision.
Question 635
A Cloud Run deployment must avoid scaling entirely to zero during business hours. Which setting should be adjusted?
- Use Cloud Run minimum instances
- Use Cloud Run ingress settings
- Use Eventarc triggers for Cloud Run
- Choose Cloud Run services
Explanation
Correct Answer
A:Minimum instances keep a configured baseline of Cloud Run capacity provisioned with associated billing consequences; this is the specific mechanism used for retaining a baseline of provisioned instances.
Incorrect Answers
B:Cloud Run ingress settings control eligible network sources and front ends allowed to reach a service; that solves problems involving constraining Cloud Run network ingress, rather than the retaining a baseline of provisioned instances requirement.
C:The alternative would address delivering filtered provider events to an existing serverless container; Eventarc provides managed triggers that route supported events to Cloud Run destinations with event filters and authenticated delivery identities; the question instead requires retaining a baseline of provisioned instances.
D:Cloud Run hosts container services with managed request routing and configurable instance scaling; it is relevant when serving HTTP traffic on managed serverless containers, not when the primary need is retaining a baseline of provisioned instances.
Question 636
People are managed in an external identity directory and their group membership changes frequently. What reduces duplicate manual administration in Cloud Identity?
- Create a Cloud Identity group
- Use an IAM policy binding to a group
- Configure group synchronization
- Enable a service API for the project
- Grant IAM role at folder scope
Explanation
Correct Answer
C:Directory synchronization keeps supported Google identities and group records aligned with a source directory; it is the direct control for keeping cloud groups aligned with an authoritative directory.
Incorrect Answers
A:Cloud Identity groups can represent users and be referenced as principals in supported IAM policies; it concerns controlling memberships as a shared identity group, and its normal effect does not provide keeping cloud groups aligned with an authoritative directory.
B:An IAM policy can bind a role to a group principal so members receive its permissions through membership; its purpose differs: driving permissions through group-based role assignment is separate from keeping cloud groups aligned with an authoritative directory.
D:Service Usage controls API enablement for each project; authorization and billing are separate requirements; that mechanism handles allowing that service's API in the project; it does not configure keeping cloud groups aligned with an authoritative directory.
E:A folder IAM policy passes applicable role grants to descendant resources and projects; its purpose differs: sharing an inherited role across department projects is separate from keeping cloud groups aligned with an authoritative directory.
Question 637
Several replacement VMs should boot from an identical prepared disk rather than restore a backup manually. What artifact fits?
- Diagnose OS Login IAM roles
- Create a custom image from a disk
- Change a VM machine type
- Resize a persistent disk
Explanation
Correct Answer
B:The requested administrative outcome is preparing reusable VM boot images; Custom Compute Engine images provide reusable disk source content for new boot disks.
Incorrect Answers
A:OS Login uses IAM roles and identities for VM SSH access, superseding metadata-managed key access when enabled; that applies to authorizing OS Login rather than legacy metadata keys; the requested task is preparing reusable VM boot images.
C:This alternative focuses on resizing VM compute capacity; VM machine types control vCPU and memory allocations; changing types commonly requires stopping an eligible VM; the stem instead asks for preparing reusable VM boot images.
D:Persistent disks can be expanded subject to limits, with guest partition or filesystem growth often still required; this is a distinct control for increasing allocated disk capacity, rather than preparing reusable VM boot images.
Question 638
A team membership changes every week and project IAM should follow the directory group rather than individual accounts. What principal type should receive the role?
- Use Cloud Identity groups for external collaborators
- Use Principal Access Boundary policies
- Grant roles to a service account
- Use Policy Analyzer
- Grant roles to a Google group
Explanation
Correct Answer
E:Google groups can be IAM principals, with access evaluated through applicable group membership; its effect directly addresses managing many users' access through group membership.
Incorrect Answers
A:Supported Google groups can aggregate external collaborators and be bound to appropriate resource roles; its operational role is grouping authorized collaborators for IAM assignment; the needed capability is managing many users' access through group membership.
B:Principal Access Boundary policies constrain access to supported resources within defined boundaries under applicable enforcement rules; its purpose differs: bounding accessible resources independently of allow roles is separate from managing many users' access through group membership.
C:Service accounts are IAM principals that represent applications or compute workloads and can receive roles; this governs authorizing nonhuman workload API access, whereas the stated objective is managing many users' access through group membership.
D:Policy Analyzer can analyze IAM allow relationships using Cloud Asset Inventory data; that applies to tracing effective role bindings and membership paths; the requested task is managing many users' access through group membership.
Question 639
A finance department wants governance grouping for dozens of projects while retaining one payer. What resource organization helps without forcing a payer per folder?
- Use organization-level Cloud Asset Inventory search
- Use billing project grouping with folders
- Move the project to a different folder
- Use project creation permissions at ancestor
Explanation
Correct Answer
B:The requested administrative outcome is organizing projects separately from billing payer assignment; Folder structure governs hierarchy; billing-account linkage is a separate association and can be shared.
Incorrect Answers
A:Cloud Asset Inventory searches can target supported ancestor scopes including organizations and folders; it is appropriate for searching assets across a hierarchy ancestor; here, the deciding requirement is organizing projects separately from billing payer assignment.
C:This alternative focuses on changing the project's ancestor and inherited controls; Moving a project between eligible folders changes its ancestor path and inherited organization and IAM policies; the stem instead asks for organizing projects separately from billing payer assignment.
D:Project creation and placement require relevant Resource Manager permissions on eligible ancestor resources; that solves problems involving granting project creation at the correct parent scope, rather than the organizing projects separately from billing payer assignment requirement.
Question 640
A load balancer reports its backend group unhealthy, although VMs are running. What should operators inspect?
- Use Connectivity Tests
- Use external HTTP load balancer health checks
- Use Cloud CDN
- Use firewall rules logging
Explanation
Correct Answer
B:Load balancer health checks determine backend eligibility based on configured protocol, port and response conditions; this is the specific mechanism used for checking application health probe configuration.
Incorrect Answers
A:Network Intelligence Center Connectivity Tests analyzes supported connectivity paths and identifies potential configuration blocks; this is a distinct control for analyzing possible network paths and blockers, rather than checking application health probe configuration.
C:Cloud CDN caches eligible HTTP(S) content at Google's edge using configured cache behavior; it is relevant when caching eligible content near users, not when the primary need is checking application health probe configuration.
D:Firewall logging produces Cloud Logging records for matching supported firewall rule traffic; it is not the focused action for checking application health probe configuration; its primary use is recording network firewall policy matches.