Question 250
Multiple engineers collaborate on one Terraform deployment and need a shared authoritative state file. What should they configure?
- Run terraform plan
- Use remote Terraform state storage
- Import an existing resource into Terraform state
- Use Terraform modules
Explanation
Correct Answer
B:The requested administrative outcome is centralizing infrastructure state for a team; A remote backend such as a protected Cloud Storage bucket can centralize Terraform state for collaborative workflows.
Incorrect Answers
A:Terraform plan compares configuration and state with remote resource information to produce an execution plan; it is relevant when reviewing a proposed infrastructure diff, not when the primary need is centralizing infrastructure state for a team.
C:This alternative focuses on bringing an existing resource under Terraform state; Terraform import associates eligible existing remote objects with resource addresses in state, with configuration alignment still required; the stem instead asks for centralizing infrastructure state for a team.
D:Terraform modules encapsulate resource definitions and input/output interfaces for reuse; this is a distinct control for standardizing infrastructure through reusable components, rather than centralizing infrastructure state for a team.
Question 251
An administrator must avoid excess rights in a built-in role but still enable several compatible API actions. What IAM construct helps?
- Bind IAM role at project scope
- Create a custom IAM role
- Bind IAM role at folder scope
- Bind IAM role at resource level
Explanation
Correct Answer
B:Custom roles let eligible administrators define a chosen set of supported IAM permissions; it supports combining supported permissions into a custom role at the appropriate resource scope.
Incorrect Answers
A:Project-level IAM bindings apply role grants across supported resources within that project; it is appropriate for scoping role inheritance to a single project; here, the deciding requirement is combining supported permissions into a custom role.
C:Folder IAM policies can grant inherited permissions to descendant projects and resources; this is a distinct control for sharing access across present and future child projects, rather than combining supported permissions into a custom role.
D:The alternative would address scoping permissions to one supported resource; Resource-level IAM binding limits eligible permissions to that resource and its applicable descendants; the question instead requires combining supported permissions into a custom role.
Question 252
After an incident, the previous known-good Cloud Run revision is still retained and the new one is failing. What fast recovery action is appropriate?
- Check Cloud Run revision logs
- Update Cloud Run maximum instances setting
- Configure Cloud Run request timeout
- Roll back Cloud Run traffic
Explanation
Correct Answer
D:Cloud Run can shift service traffic back to a previous retained revision without requiring another build; that behavior is precisely what redirecting requests to a prior healthy revision calls for.
Incorrect Answers
A:This alternative focuses on examining logs attached to a Cloud Run revision; Cloud Run integrates request and container logs with Cloud Logging for revision-focused diagnosis; the stem instead asks for redirecting requests to a prior healthy revision.
B: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; that supports setting the Cloud Run service maximum instance configuration; the problem to solve concerns redirecting requests to a prior healthy revision.
C:Cloud Run's request timeout bounds each service request and can be increased within supported limits; the scenario specifies redirecting requests to a prior healthy revision, which differs from allowing longer supported Cloud Run HTTP processing.
Question 253
A production migration needs more regional Compute Engine CPUs than the current service quota permits. What administrative request should be made?
- Check a quota in Quotas & System Limits
- Request an adjustable quota increase
- Choose a supported region
- Distinguish quota from physical capacity
Explanation
Correct Answer
B:Eligible service quotas can be increased through quota adjustment subject to approval and actual resource availability; that matches the requirement for raising an adjustable compute quota.
Incorrect Answers
A:Quotas and System Limits surfaces supported quota consumption, values and adjustable limits; Applying it would target diagnosing a project-level quota limit, leaving the separate need for raising an adjustable compute quota.
C:Google Cloud services have distinct regional and global availability; not every SKU exists in each location; it would help with validating service availability and data location, but it does not directly implement raising an adjustable compute quota.
D:Quota determines allowed resource consumption; regional or zonal hardware capacity is a separate constraint; the scenario specifies raising an adjustable compute quota, which differs from checking actual location capacity and availability.
Question 254
A Linux VM does not use OS Login and needs a public key installed through supported Compute Engine metadata. Which mechanism applies?
- Use an SSH metadata key for supported VMs
- Resize a persistent disk
- Create a disk snapshot
- Use gcloud compute instances describe
Explanation
Correct Answer
A:When OS Login is disabled, supported SSH keys in project or instance metadata can be applied by guest agents; this is the capability needed for authorizing a user SSH key through instance metadata.
Incorrect Answers
B:Persistent disks can be expanded subject to limits, with guest partition or filesystem growth often still required; it is not the focused action for authorizing a user SSH key through instance metadata; its primary use is increasing allocated disk capacity.
C:Persistent disk snapshots preserve block-level disk contents and can be used to create recovery disks; this governs capturing persistent disk data for recovery, whereas the stated objective is authorizing a user SSH key through instance metadata.
D:The instances describe operation retrieves configuration and status details for a specified VM in its zone; its operational role is examining an individual VM resource; the needed capability is authorizing a user SSH key through instance metadata.
Question 255
A security reviewer needs timestamps and principals for API actions on cloud resources. Which native audit trail should be examined?
- Use Cloud Audit Logs
- Enable log-based metrics
- Create a Cloud Monitoring dashboard
- Use Logs Explorer
Explanation
Correct Answer
A:Cloud Audit Logs records supported administrative and access activity with audit-log type distinctions; that behavior is precisely what reviewing authorized administrative API activity calls for.
Incorrect Answers
B:Log-based metrics derive metric values from matching log entries and can support dashboards or alerts; its operational role is converting matching log entries into metric time series; the needed capability is reviewing authorized administrative API activity.
C:Cloud Monitoring dashboards arrange metrics and supported visual widgets for operational visibility; that supports organizing metrics charts on a shared dashboard; the problem to solve concerns reviewing authorized administrative API activity.
D:Logs Explorer supports interactive filtering, viewing and investigating entries in authorized log buckets; its purpose differs: filtering operational log records interactively is separate from reviewing authorized administrative API activity.
Question 256
Capacity planning for an upcoming release requires comparing usage with allowed service quotas. Which console view helps?
- Check a quota in Quotas & System Limits
- Use a support case for quota constraints
- Select a compatible zone for zonal resources
- Choose a supported region
Explanation
Correct Answer
A:Quotas and System Limits surfaces supported quota consumption, values and adjustable limits; Applied in this case, it delivers reviewing quota utilization before provisioning.
Incorrect Answers
B:For escalating a quota constraint through support, this could be relevant; Google Cloud support can clarify policy and capacity options, although some system limits are not adjustable; the actual request concerns reviewing quota utilization before provisioning.
C:For co-locating a zonal disk and its VM, this could be relevant; Zonal compute and zonal disks must be placed in compatible zones to attach directly; the actual request concerns reviewing quota utilization before provisioning.
D:Google Cloud services have distinct regional and global availability; not every SKU exists in each location; that applies to validating service availability and data location; the requested task is reviewing quota utilization before provisioning.
Question 257
Application and database traffic must use internal VPC connectivity rather than a database public endpoint. What connection option should be configured?
- Use a Cloud SQL private IP
- Use Cloud SQL automated backups
- Use Cloud SQL point-in-time recovery
- Use Spanner
Explanation
Correct Answer
A:Cloud SQL private IP enables private connectivity through the configured network integration; it is the direct control for connecting to Cloud SQL through private addresses.
Incorrect Answers
B:This alternative focuses on maintaining managed backup coverage; Cloud SQL automated backups create managed database recovery points under configured retention settings; the stem instead asks for connecting to Cloud SQL through private addresses.
C:Point-in-time recovery uses supported transaction log capabilities to restore a Cloud SQL database state near a specified time; that supports recovering database state at a chosen time; the problem to solve concerns connecting to Cloud SQL through private addresses.
D:The alternative would address running globally scalable relational database workloads; Spanner offers managed distributed relational databases with horizontal scale and strong consistency; the question instead requires connecting to Cloud SQL through private addresses.
Question 258
A regulated service needs logs of eligible object reads, not merely bucket policy edits. What audit logging should be examined?
- Use Cloud Audit Logs Admin Activity
- Create a log sink to Cloud Storage
- Use Cloud Audit Logs Data Access
- Use Cloud Monitoring Managed Service for Prometheus
- Configure a log view
Explanation
Correct Answer
C:The requirement is observing data access operations to cloud resources; Data Access audit logs capture supported data reads and writes and may require explicit enablement depending on service and category.
Incorrect Answers
A:Admin Activity audit logs capture supported resource configuration and permission management events; that mechanism handles reviewing administrative audit actions; it does not configure observing data access operations to cloud resources.
B:Cloud Logging sinks can route supported records to Cloud Storage buckets for external retention workflows; this governs archiving matching logs to object storage, whereas the stated objective is observing data access operations to cloud resources.
D:Managed Service for Prometheus integrates Prometheus-compatible metric collection with Cloud Monitoring storage and querying; it is appropriate for collecting Prometheus-compatible workload metrics; here, the deciding requirement is observing data access operations to cloud resources.
E:Log views expose subsets of log bucket entries with access control through IAM; it is appropriate for limiting log visibility to selected entries; here, the deciding requirement is observing data access operations to cloud resources.
Question 259
An operator wants to find an API by name and enable it from the browser interface. Where should they go?
- Use the least-privilege predefined IAM role
- Use an IAM policy binding to a group
- Use gcloud auth application-default login
- Use Google Cloud console's API Library
Explanation
Correct Answer
D:The API Library exposes available services and enables APIs in the selected project subject to access rules; Applied in this case, it delivers locating and activating an API in the console.
Incorrect Answers
A:Predefined service roles offer narrower permission sets than broad basic roles when suitable; this governs granting only the service-specific read permissions required, whereas the stated objective is locating and activating an API in the console.
B:An IAM policy can bind a role to a group principal so members receive its permissions through membership; it is not the focused action for locating and activating an API in the console; its primary use is driving permissions through group-based role assignment.
C:Application Default Credentials are discovered by client libraries separately from the CLI's normal active credential store; it would help with setting up local Application Default Credentials, but it does not directly implement locating and activating an API in the console.
Question 260
A Cloud Run candidate revision must be tested through its own address before receiving any production traffic. Which revision capability supports this without creating a separate service?
- Increase service minimum instances
- Create a new load-balancer forwarding rule
- Delete the stable service revision
- Set production traffic to 50 percent on the candidate
- Assign a Cloud Run revision tag and use its tagged URL
Explanation
Correct Answer
E:A tag supplies a revision-specific URL for testing even when the revision has no percentage of service traffic. Normal service traffic can remain on the stable revision.
Incorrect Answers
A:Minimum instances help keep configured serving capacity warm. They do not give an unpromoted revision a distinct testing URL.
B:An external forwarding rule is unnecessary to test a retained revision of the same Cloud Run service through the native revision address mechanism.
C:Removing the stable revision would disrupt the existing release and is not necessary to exercise the new revision privately before shifting traffic.
D:A half-traffic canary exposes real users to the candidate; the scenario explicitly requires testing before any production traffic is assigned.