Question 340
Auditors change frequently; the administrator wants straightforward revocation without granting broad Owner access. What pattern fits?
- Use custom role permissions support check
- Use Cloud Identity groups for external collaborators
- Use access change audit logs
- Use security groups with least privilege
Explanation
Correct Answer
D:The scenario depends on combining directory groups with narrow IAM permissions; Group principals and scoped predefined roles reduce per-user grant management and privilege sprawl.
Incorrect Answers
A:Not all IAM permissions can be placed in custom roles, and support levels vary by permission; its operational role is validating permissions permitted in custom roles; the needed capability is combining directory groups with narrow IAM permissions.
B:Supported Google groups can aggregate external collaborators and be bound to appropriate resource roles; the scenario specifies combining directory groups with narrow IAM permissions, which differs from grouping authorized collaborators for IAM assignment.
C:Cloud Audit Logs Admin Activity records supported administrative IAM policy changes; it is appropriate for attributing access-policy updates to callers; here, the deciding requirement is combining directory groups with narrow IAM permissions.
Question 341
A procurement analyst needs a structured dataset of Cloud Billing pricing information for internal modeling. Which export type is appropriate?
- Use the Google Cloud pricing calculator
- Configure billing export to BigQuery
- Use committed use discounts
- Configure billing export of pricing data
Explanation
Correct Answer
D:The requirement is retrieving price-list data programmatically; Pricing exports provide pricing-related records to BigQuery separately from detailed usage cost exports.
Incorrect Answers
A:For estimating predeployment cloud cost, this could be relevant; the pricing calculator estimates charges from specified product usage assumptions and published price structures; the actual request concerns retrieving price-list data programmatically.
B:Cloud Billing exports send selected cost and pricing information to BigQuery datasets for analysis; that supports exporting billing records for warehouse analysis; the problem to solve concerns retrieving price-list data programmatically.
C:Committed use discounts reduce eligible on-demand cost in exchange for a qualifying commitment; that mechanism handles discounting predictable eligible usage through commitment; it does not configure retrieving price-list data programmatically.
Question 342
One deployment should target a different project without changing the terminal's long-lived CLI configuration. What should the engineer do?
- Use gcloud services enable
- Use Cloud Shell
- Pass a per-command --project flag
- Enable a service API for the project
Explanation
Correct Answer
C:The scenario depends on overriding a default project for one command; A --project argument overrides the configured project for supported gcloud commands for that invocation.
Incorrect Answers
A:The gcloud services enable command activates named Service Usage APIs in the selected project; the supported outcome is enabling a service through the command line, while the requested result is overriding a default project for one command.
B:Cloud Shell provides a browser terminal with Google Cloud CLI tools and user-based authentication integration; its purpose differs: performing administration from a managed web shell is separate from overriding a default project for one command.
D:The alternative would address allowing that service's API in the project; Service Usage controls API enablement for each project; authorization and billing are separate requirements; the question instead requires overriding a default project for one command.
Question 343
A production serverless service has a new container image and must release its updated code. Which Cloud Run operation fits?
- Update Cloud Run maximum instances setting
- Deploy a new Cloud Run revision
- Split Cloud Run revision traffic
- Roll back Cloud Run traffic
Explanation
Correct Answer
B:The requested administrative outcome is publishing a new immutable service revision; Deploying changes to a Cloud Run service creates a revision representing its immutable code and configuration.
Incorrect Answers
A:The alternative would address limiting Cloud Run autoscaled instance count; Cloud Run maximum instances configures an upper scaling limit while documented transient overages can occur and capacity limits are not a substitute for downstream protection; the question instead requires publishing a new immutable service revision.
C:Cloud Run traffic allocation assigns configured percentages to eligible service revisions; it would help with gradually shifting traffic between Cloud Run revisions, but it does not directly implement publishing a new immutable service revision.
D:Cloud Run can shift service traffic back to a previous retained revision without requiring another build; that solves problems involving reverting request routing to an earlier Cloud Run revision, rather than the publishing a new immutable service revision requirement.
Question 344
An organization wants its existing SAML or OIDC employee identities to gain controlled Google Cloud access. Which feature should be assessed?
- Use short-lived access tokens
- Use Workforce Identity Federation
- Enable GKE metadata server
- Use IAM Credentials API
- Restrict federation provider attributes
Explanation
Correct Answer
B:Workforce Identity Federation lets external workforce identities access supported Google Cloud resources through configured identity pools and providers; the decisive property here is authorizing human users through external identity federation.
Incorrect Answers
A:For using expiring workload authorization tokens, this could be relevant; Short-lived OAuth access tokens restrict credential lifetime and can be generated using supported identity mechanisms; the actual request concerns authorizing human users through external identity federation.
C:The GKE metadata server handles token access and identity federation for configured workloads on eligible GKE nodes; it concerns enabling the GKE metadata server for workload authentication, and its normal effect does not provide authorizing human users through external identity federation.
D:The IAM Credentials API generates supported short-lived service account tokens and signatures for authorized callers; it would help with generating ephemeral service-account credentials, but it does not directly implement authorizing human users through external identity federation.
E:For enforcing attribute-based identity federation conditions, this could be relevant; Workload identity provider attribute conditions restrict accepted external identity assertions; the actual request concerns authorizing human users through external identity federation.
Question 345
An operator needs a point-in-time block-disk backup before changing a VM's filesystem. What should be created?
- Create a disk snapshot
- Restore a new disk from a snapshot
- Diagnose OS Login IAM roles
- Resize a persistent disk
Explanation
Correct Answer
A:The requested administrative outcome is capturing persistent disk data for recovery; Persistent disk snapshots preserve block-level disk contents and can be used to create recovery disks.
Incorrect Answers
B:A snapshot can be the source for creating a new compatible disk, enabling recovery workflows; it would help with provisioning a restored disk from backup, but it does not directly implement capturing persistent disk data for recovery.
C: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 capturing persistent disk data for recovery.
D:For increasing allocated disk capacity, this could be relevant; Persistent disks can be expanded subject to limits, with guest partition or filesystem growth often still required; the actual request concerns capturing persistent disk data for recovery.
Question 346
A compliance requirement applies to healthcare projects but not engineering projects. Where should its supported constraint be set?
- Use Cloud Asset Inventory
- Set an organization policy at the folder
- Use billing project grouping with folders
- Move the project to a different folder
Explanation
Correct Answer
B:A policy attached at a folder is inherited by descendants according to constraint rules without affecting unrelated sibling branches; this is relevant because the outcome sought is targeting the restriction to one hierarchy branch.
Incorrect Answers
A:Cloud Asset Inventory indexes supported Google Cloud resource and policy metadata for search, analysis and exports; that supports searching a centralized cloud asset inventory; the problem to solve concerns targeting the restriction to one hierarchy branch.
C:Folder structure governs hierarchy; billing-account linkage is a separate association and can be shared; the supported outcome is organizing projects separately from billing payer assignment, while the requested result is targeting the restriction to one hierarchy branch.
D:This alternative focuses on placing a project beneath the correct departmental folder; Moving a project between eligible folders changes its ancestor path and inherited organization and IAM policies; the stem instead asks for targeting the restriction to one hierarchy branch.
Question 347
A Cloud Run application calls a Google Cloud API and credentials should be automatically refreshed. Which approach is preferred?
- Rotate compromised service account key
- Attach a service account to Cloud Run
- Use service account authentication without downloaded keys
- Use service account impersonation audit trail
Explanation
Correct Answer
C:Attached service accounts and the platform metadata service supply refreshed short-lived credentials to supported workloads; Applied in this case, it delivers relying on managed metadata credentials.
Incorrect Answers
A:Deleting or disabling compromised user-managed service-account keys prevents further authentication with those keys; Applying it would target invalidating exposed long-lived credentials, leaving the separate need for relying on managed metadata credentials.
B:Cloud Run services use configured runtime service accounts for Google Cloud API calls; the supported outcome is running the container as a selected service account, while the requested result is relying on managed metadata credentials.
D:The alternative would address tracking requests to the IAM Credentials API; Relevant audit logs for IAM Credentials operations can attribute supported credential issuance under appropriate logging configuration; the question instead requires relying on managed metadata credentials.
Question 348
A legacy application requires a custom OS kernel and a persistent VM filesystem. Which compute product is appropriate?
- Choose Cloud Run services
- Choose Cloud Run functions
- Use batch jobs on Google Cloud Batch
- Choose Compute Engine VMs
- Choose GKE Standard
Explanation
Correct Answer
D:Compute Engine provides infrastructure virtual machines with guest OS control and configurable attached storage; this is relevant because the outcome sought is running a customizable guest operating system.
Incorrect Answers
A:Cloud Run hosts container services with managed request routing and configurable instance scaling; it is appropriate for serving HTTP traffic on managed serverless containers; here, the deciding requirement is running a customizable guest operating system.
B:The alternative would address executing short event-oriented application code; Cloud Run functions supports managed function deployments with event integration and request-based execution; the question instead requires running a customizable guest operating system.
C:Google Cloud Batch schedules and executes batch workloads on managed Compute Engine resources; this governs orchestrating finite parallel batch jobs, whereas the stated objective is running a customizable guest operating system.
E:The alternative would address operating configurable Kubernetes node pools; GKE Standard runs Kubernetes with user-managed node pools and more infrastructure configuration control; the question instead requires running a customizable guest operating system.
Question 349
A production database requires routine recovery points without an operator manually exporting tables each day. What should be enabled?
- Use Cloud SQL automated backups
- Use Spanner
- Use Bigtable
- Use AlloyDB for PostgreSQL
Explanation
Correct Answer
A:Cloud SQL automated backups create managed database recovery points under configured retention settings; it is the direct control for creating scheduled managed database backups.
Incorrect Answers
B:Spanner offers managed distributed relational databases with horizontal scale and strong consistency; Applying it would target running globally scalable relational database workloads, leaving the separate need for creating scheduled managed database backups.
C:Bigtable is a managed wide-column database optimized for large key-based workloads and low-latency access; that solves problems involving storing massive low-latency wide-column datasets, rather than the creating scheduled managed database backups requirement.
D:AlloyDB for PostgreSQL is a managed PostgreSQL-compatible service with a purpose-built storage and compute architecture; it is appropriate for migrating eligible PostgreSQL workloads to AlloyDB; here, the deciding requirement is creating scheduled managed database backups.
Question 350
One subsidiary must have a separate cloud payment instrument and billing administration from the parent. What should finance provision?
- Configure billing export to BigQuery
- Link a project to a billing account
- Create a Cloud Billing account
- Use a separate billing account for payer isolation
Explanation
Correct Answer
D:Separate Cloud Billing accounts can maintain distinct payment and invoice relationships across groups of projects; it is the direct control for establishing a separate billed legal or operational entity.
Incorrect Answers
A:Cloud Billing exports send selected cost and pricing information to BigQuery datasets for analysis; the scenario specifies establishing a separate billed legal or operational entity, which differs from exporting billing records for warehouse analysis.
B:A project must be linked to an active billing account to consume many chargeable services; its operational role is associating the project with an active payer; the needed capability is establishing a separate billed legal or operational entity.
C:Cloud Billing accounts represent payment and invoicing relationships and can pay for multiple linked projects; it would help with managing cloud payment responsibility, but it does not directly implement establishing a separate billed legal or operational entity.