Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Google Professional Cloud DevOps Engineer Professional-Cloud-DevOps-Engineer Exam Questions

Last updated: · 11 practice questions with answers and explanations

Page: 1 / 14 Total 205 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Bootstrapping and maintaining a Google Cloud organization

Skill tested: Designs project and network boundaries using Shared VPC for centrally governed workloads.

A company is moving 30 application teams into Google Cloud. Network operations must centrally manage subnets, firewall rules, and connectivity, while application teams retain control of resources in their own projects. Several projects must communicate over private IP addresses, and the company wants to avoid maintaining duplicate network configurations. Which design best meets these requirements?

Correct Answer: A. Place application projects in a Shared VPC host project and grant each team the required subnet-level network use permissions.
Explanation:

A Shared VPC lets a centrally administered host project own the VPC network and subnets while service projects host application resources. Network administrators can manage shared network configuration, and teams can receive narrowly scoped permissions such as Compute Network User on approved subnets. Independent VPCs with peering multiply network administration and do not provide the same centralized subnet ownership. A single project weakens project-level isolation, while Private Service Connect is for private service consumption, not general replacement of shared VPC networking.

Question 2

New Multiple answers

Topic: Bootstrapping and maintaining a Google Cloud organization

Skill tested: Selects repeatable infrastructure provisioning and policy controls for governed multi-project environments.

A regulated organization provisions hundreds of projects across folders. Teams currently create infrastructure manually, and audit findings show inconsistent API enablement and organization-policy settings. The platform group wants reviewable, repeatable changes and a clear separation between approved infrastructure definitions and deployed resources. It also needs to prevent teams from weakening centrally mandated organization policies. Which two actions best address these needs? Select TWO.

Correct Answer: B. Manage project and infrastructure definitions as version-controlled Terraform, and review proposed changes before applying them.; D. Use organization- or folder-level organization policies for mandatory constraints, with appropriate centralized administration.
Explanation:

Version-controlled infrastructure as code provides a reviewable source of truth and repeatable project configuration; changes can be validated and applied through a controlled workflow. Organization policies at the appropriate hierarchy level enforce constraints across descendant projects, and their administration should remain limited to authorized central administrators. Delegating Organization Policy Administrator broadly undermines that control. Console-first provisioning and post hoc exports are not reliable preventive governance, and service account metadata is not an infrastructure configuration repository.

Question 3

New Single answer

Topic: Bootstrapping and maintaining a Google Cloud organization

Skill tested: Configures centralized monitoring and logging visibility across projects in an organization.

A central operations team must investigate incidents across 40 production projects without granting engineers broad project-level access in every application project. The organization wants operational logs retained in a central location, with access controlled centrally and the ability to query logs from multiple projects. Application teams must continue owning their project resources. What should the platform team do?

Correct Answer: C. Create a centralized logging project, configure aggregated sinks at the appropriate organization or folder scope to route logs there, and grant operations access to the central destination.
Explanation:

Aggregated sinks can collect matching logs from projects beneath an organization or folder and route them to a centrally managed destination, such as a log bucket in a logging project. This supports centralized retention and querying while avoiding broad administrative roles in every source project. Project Owner is excessive and does not centralize the data. Cron-based exports create operational gaps and inconsistent coverage, while separate monitoring workspaces alone do not provide the requested centralized log routing.

Question 4

New Single answer

Topic: Applying site reliability engineering practices

Skill tested: Uses service-level objectives and error budgets to govern release risk and deployment velocity.

A customer-facing API has a 99.9% monthly availability SLO. During the first half of the month, it consumes nearly all of its error budget because of a regression introduced by frequent releases. Product leadership still wants feature delivery, but the reliability team requires a policy that changes release behavior based on the remaining budget rather than imposing a permanent release freeze. What is the most appropriate response?

Correct Answer: C. Adopt an error-budget policy that restricts or pauses risky changes when the budget is exhausted, while allowing reliability work and reassessing release risk as budget recovers.
Explanation:

An error budget translates the SLO's allowed unreliability into an operational decision mechanism. When the budget is exhausted or nearly exhausted, the team can limit risky changes and prioritize work that restores reliability, then resume normal change velocity when the policy's criteria are met. An SLA is a contractual commitment and is not a substitute for internal SLO-based risk management. Raising the target does not create reliability, and deployment count is not an availability SLI.

Question 5

New Multiple answers

Topic: Applying site reliability engineering practices

Skill tested: Chooses autoscaling and capacity controls that preserve service availability during demand spikes.

A regional HTTP service runs on a managed instance group behind a load balancer. Demand varies sharply, and the team needs instances to scale out based on actual request load while retaining a minimum warm capacity. A sudden burst must not overwhelm a downstream dependency, and the system must remain able to recover if new instances take time to start. Which two actions are most appropriate? Select TWO.

Correct Answer: B. Configure managed instance group autoscaling using a relevant load metric and set a minimum instance count for warm capacity.; D. Configure autoscaling and capacity limits in conjunction with downstream protection, such as controlled concurrency or rate limiting.
Explanation:

Autoscaling on a representative demand metric allows the managed instance group to add capacity, while a nonzero minimum keeps warm instances available during startup delays. Scaling must also respect downstream limits; otherwise, a successful scale-out can simply transfer overload to a database or other dependency. Scaling from zero may be too slow for the stated burst behavior. Disabling health checks leaves unhealthy instances in service, and increasing the maximum without checking quotas or dependency capacity can worsen an incident.

Question 6

New Multiple answers

Topic: Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

Skill tested: Designs a progressive Cloud Deploy rollout with approval and measurable promotion criteria.

A team deploys a containerized service to production GKE clusters using Cloud Deploy. A release must first reach a small production canary, then progress to the remaining fleet only if application health remains acceptable. A release manager must approve the production rollout, and the team wants deployment history tied to immutable image artifacts. Which two design choices best satisfy these requirements? Select TWO.

Correct Answer: C. Configure a required approval on the relevant Cloud Deploy production rollout and use telemetry-based verification criteria for promotion.; E. Use Cloud Deploy targets and a configured rollout strategy that routes a controlled portion of production traffic to the canary before progression.
Explanation:

Cloud Deploy supports delivery pipelines, targets, rollout strategies, and approval gates; a staged rollout can expose a canary before broader promotion. Verification should use meaningful service telemetry so a failed health signal prevents progression. Reproducible image references should identify the built artifact rather than depend on a mutable tag that can point to different content over time. Direct fleet deployment is not progressive, an email after deployment is not a gate, and out-of-band kubectl deployment weakens release history and controls.

Question 7

New Single answer

Topic: Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

Skill tested: Protects CI/CD runtime credentials using Workload Identity Federation instead of long-lived keys.

A company runs Cloud Build jobs from a source repository hosted outside Google Cloud. The builds deploy to Google Cloud, but security policy prohibits storing service account key files in the repository, build substitutions, or an external secret store. The pipeline should obtain only the permissions it needs and avoid long-lived credentials. Which approach is most appropriate?

Correct Answer: C. Configure Workload Identity Federation for the external workload identity and grant the federated principal access to impersonate a narrowly scoped service account.
Explanation:

Workload Identity Federation allows an external identity provider's authenticated workload to obtain short-lived Google Cloud credentials, commonly through service account impersonation, without a service account key file. Granting only the required roles to the target service account limits impact. Encrypting a persistent key does not eliminate key lifecycle and exposure risks. The default build identity with organization-wide Owner is excessive, and retrieving a long-lived key from Secret Manager still leaves the pipeline dependent on a key.

Question 8

New Single answer

Topic: Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

Skill tested: Uses deployment audit records and artifact provenance to investigate an unapproved release.

After an unexpected production change, an incident responder must determine which pipeline identity deployed it, when the deployment occurred, and which container image was released. The organization uses Cloud Build, Artifact Registry, Cloud Deploy, and Cloud Audit Logs. The responder needs evidence from managed deployment activity rather than relying on a developer's recollection or mutable image tags. What should the responder do first?

Correct Answer: D. Inspect Cloud Audit Logs for relevant deployment and resource-change events, then correlate the actor and time with Cloud Deploy release records and the referenced Artifact Registry image digest.
Explanation:

Cloud Audit Logs provide records of Google Cloud API activity and can identify the principal and timing associated with relevant changes. Cloud Deploy release and rollout records provide delivery context, while the artifact's digest gives a stable reference for the image involved. Application logs may not record deployment identity, and the latest build is not necessarily the deployed build. Mutable tags and registry recency alone cannot establish which artifact was actually released.

Question 9

New Single answer

Topic: Implementing observability practices and troubleshooting issues

Skill tested: Finds the cause of a Cloud Monitoring alert using metric labels and alert-policy scope.

A service's Cloud Monitoring alert reports elevated latency, but the dashboard's global latency chart remains normal. The service runs in several regions and exports a custom distribution metric with labels for region and revision. The alert policy was recently copied from another service. Engineers need to identify whether one deployment or region is responsible before rolling back. What should they do next?

Correct Answer: C. Inspect the alert policy's metric filter, resource scope, and aggregation or grouping, then break down the underlying time series by region and revision in Metrics Explorer.
Explanation:

A mismatch between an alert and a global chart often results from different metric filters, resource scopes, aligners, or aggregation/grouping choices. Inspecting the policy and viewing the underlying series grouped by region and revision can expose a localized regression that an aggregate chart masks. Raising the threshold hides rather than diagnoses the signal. CPU is not a direct substitute for request latency, and a global rollback is premature without determining the affected scope.

Question 10

New Multiple answers

Topic: Implementing observability practices and troubleshooting issues

Skill tested: Configures log routing and redaction to retain useful telemetry while protecting sensitive data.

A healthcare application emits structured application logs that can contain patient identifiers. Security requires centralized log analysis, and the organization wants to retain queryable records for a defined period while preventing raw identifiers from reaching the analytics destination. Engineers also need to control Logging ingestion and storage costs without losing security-relevant events. Which two actions best meet these requirements? Select TWO.

Correct Answer: C. Route matching logs through a centralized Logging sink and apply an appropriate log-processing or redaction control before data reaches the analytics destination.; D. Use Logging sinks and destination retention controls for centralized analysis, and apply carefully scoped exclusions or sampling only to appropriate high-volume, low-value logs.
Explanation:

A centralized sink can route selected logs to an analytics destination, while an appropriate processing control should remove or mask sensitive fields before they are exposed downstream. Destination retention and query access can then be governed centrally. Carefully scoped exclusions or sampling can reduce cost, but security and audit events should not be discarded indiscriminately. Excluding all logs destroys forensic value, redacting only at query time leaves raw identifiers stored, and broad source-project access is unnecessary.

Question 11

New Single answer

Topic: Optimizing performance and cost

Skill tested: Selects a cost-effective Compute Engine capacity strategy for interruptible batch processing.

A data engineering group runs independent, checkpointed batch jobs on Compute Engine. Jobs can tolerate interruption and restart, but must finish within a flexible 24-hour window. The current fleet uses on-demand VMs and has substantial idle capacity between batches. The team wants lower compute cost without sacrificing the ability to meet deadlines, and it does not want to commit to a fixed long-term VM footprint. Which change is most appropriate?

Correct Answer: C. Move interruptible workers to Spot VMs, use workload-aware autoscaling, and retain enough fallback capacity or scheduling flexibility to handle interruptions.
Explanation:

Spot VMs can reduce compute cost for fault-tolerant workloads that can withstand interruption. Checkpointing and restartable independent jobs make them suitable here, while workload-aware autoscaling limits idle capacity; deadline flexibility permits retries or additional runtime. A committed use discount requires a commitment and does not address an idle, variable fleet. Larger fixed instances and a single continuously running VM preserve or increase waste rather than matching capacity to batch demand.