Google Cloud Professional Cloud DevOps Engineer Exam-style mock test
Google Cloud Professional Cloud DevOps Engineer Practice Exams|Practice test
Full explanations
Exam format
Pass line 70%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Applying Site Reliability Engineering Principles
A global retail bank runs a checkout service with a monthly availability SLO of 99.9%. Mid-month, the error budget is already fully consumed because of a bad release, yet the product team wants to ship a new rewards feature immediately. The SRE team and product leadership agreed in advance to an error budget policy. According to SRE principles, what is the correct action to take for the rest of the month?
・Raise the SLO target to 99.99% so the remaining errors fall inside the larger budget and ship.
Incorrect. Inflating the SLO to absorb failures defeats the purpose of the target and misrepresents the real reliability users experience.
・Ignore the agreed policy for this one release because leadership explicitly requested the rewards feature immediately.
Incorrect. The error budget policy was agreed in advance precisely so that a single stakeholder cannot override it under pressure.
・Switch the measurement from a fixed calendar month to a rolling trailing window so recent failures gradually age out of the budget.
Incorrect. Changing the measurement window opportunistically to hide recent failures manipulates the data instead of addressing reliability.
✓Freeze non-critical feature releases and prioritize reliability work until the error budget recovers at the next window.
Correct. A consumed error budget triggers the agreed policy: slow feature velocity and spend effort on reliability until the budget is restored.
Explanation
An error budget policy defines what happens when the budget is exhausted, typically halting risky changes in favor of reliability work. Gaming the SLO target or measurement window, or overriding the policy on request, undermines the shared agreement SRE depends on.
Example2 · Building and Implementing CI/CD Pipelines
A global retail bank runs its mobile banking API on GKE and must comply with a rule that only images built by the organization's trusted Cloud Build pipeline may run in the production cluster. Developers have occasionally deployed images pulled directly from public registries. Which approach enforces that only approved images are admitted to production?
・Restrict developer IAM roles so only the Cloud Build service account holds the Engine Developer role on production.
Incorrect. Limiting who can deploy does not stop an authorized identity from deploying an unapproved public image, because IAM controls the actor, not the image provenance.
・Add a Cloud Build step that scans each image with Artifact Analysis and fails on any critical vulnerability.
Incorrect. Vulnerability scanning in the build stops insecure images from being built but does not prevent a non-pipeline image from being deployed directly to the cluster.
・Configure an Artifact Registry remote repository that caches public images privately.
Incorrect. Remote repository caching changes where images are pulled from but does not verify that a deployed image came from the trusted build pipeline.
✓Enable Binary Authorization on the cluster and require a Cloud Build attestation on each image before deploy.
Correct. Binary Authorization is deploy-time admission control that blocks any image lacking the required attestation, so only pipeline-attested images run.
Explanation
Binary Authorization provides admission control at deploy time, rejecting images that lack a valid attestation from the trusted builder. IAM, scanning, and registry caching address access or image hygiene but none enforce provenance at admission.
Example3 · Implementing Service Monitoring Strategies
A global retail bank runs a payments API on Google Kubernetes Engine. The SRE team wants to define the availability SLI as the proportion of successful HTTP requests, measured at the load balancer, so that the measurement reflects what customers actually experience rather than internal pod health. Which Cloud Monitoring approach correctly implements this request-based availability SLI?
・A windows-based SLI counting each minute good whenever at least one backend pod reports a ready status that minute.
Incorrect. Pod readiness per minute is a windows-based proxy for infrastructure health and does not count individual customer requests at the load balancer.
✓A request-based SLI dividing good responses by total valid requests via the load balancer request_count metric by class.
Correct. A request-based availability SLI divides good responses by total valid requests using the load balancer request_count metric split by response_code_class, matching the customer-facing measurement point.
・An uptime check from one region hitting the backend pod IP directly, using probe success percentage.
Incorrect. Probing a single pod IP from one region measures synthetic reachability, not the proportion of real customer requests served successfully.
・Average the GKE container CPU utilization across all pods and define availability as the inverse of saturation.
Incorrect. CPU utilization is a saturation signal and has no direct relationship to the fraction of requests that returned successful responses.
Explanation
A request-based SLI is defined as good_events / valid_events, and measuring at the load balancer with response_code_class captures the true customer experience. Readiness, single-pod probes, and CPU saturation are not request success ratios.
Example4 · Managing Service Incidents
During a major outage of a telehealth video-consultation platform, the on-call engineer is simultaneously debugging the database, posting updates to the status page, and fielding questions from three executives over chat. Progress stalls because every task competes for the same person. Which single action best aligns this response with the SRE incident management model?
・Add more engineers to the chat so executives and stakeholders get their questions answered faster by whoever is available
Incorrect. Adding engineers without defined roles increases coordination overhead and does not resolve the overload because no one owns communications or command.
・Pause all customer communication until the database is fully recovered so the engineer can focus exclusively on the technical root cause
Incorrect. Halting communication violates incident response practice; stakeholders and customers need timely updates even while the technical cause is unknown.
✓Designate an incident commander to coordinate the response, with separate communications and operations leads so each distinct role sits with its own dedicated person
Correct. Separating the incident commander, communications lead, and operations lead prevents one person from being overloaded and gives clear ownership of coordination, messaging, and remediation.
・Escalate the incident to the vendor's support queue and wait for their guidance before taking any further internal mitigation steps
Incorrect. Deferring all internal mitigation to a vendor abandons the team's responsibility to coordinate and mitigate the active outage.
Explanation
The SRE incident management model separates command, communications, and operations so no individual is overloaded. Clear role assignment restores structured progress during a major outage.
Example5 · Optimizing Service Performance
A media streaming platform runs its video transcoding API on GKE. During prime-time traffic, pods saturate CPU and p99 latency breaches the latency SLO, but the Horizontal Pod Autoscaler reacts too slowly because it only scales on average CPU. The SRE team wants autoscaling to track the signal that most directly reflects user-facing load for this request-driven service. Which HPA configuration should they adopt?
・Keep CPU-based scaling but lower the target utilization to 30% so the HPA always runs far more replicas than the traffic currently needs.
Incorrect. Driving the CPU target to 30% permanently over-provisions replicas, wastes money, and still lags because CPU remains an indirect, slow-moving proxy for request load.
・Replace the HPA with a Vertical Pod Autoscaler so each transcoding pod is granted additional CPU and memory as prime-time demand increases.
Incorrect. VPA resizes pods and typically requires restarts, so it cannot add parallel capacity fast enough for bursty prime-time request traffic.
✓Scale the Deployment on a custom Cloud Monitoring metric that measures in-flight requests per pod, so the replica count tracks actual concurrent user demand.
Correct. A custom/external metric such as in-flight requests per pod maps scaling to actual user-facing concurrency, letting the HPA add replicas promptly when demand rises and protecting the latency SLO.
・Switch the HPA to scale on node memory utilization from the metrics server, since transcoding is bound by each worker node's memory.
Incorrect. Node memory utilization is a cluster-level signal unrelated to per-request concurrency and will not scale pods in step with user demand.
Explanation
For request-driven services, HPA should track a demand-proportional signal like requests in flight rather than CPU. Custom and external metrics let the HPA respond to real concurrency and defend latency SLOs without permanent over-provisioning.
Example6 · Applying Site Reliability Engineering Principles
A hospital's patient-records API has an SLO of 99.9% availability measured over a rolling 28-day window. Three days into the window a botched config push consumes the entire monthly error budget, yet the team keeps shipping risky features because a major release is due. What does a well-formed error budget policy require the team to do in this situation?
・Raise the availability SLO to 99.99% so that the consumed errors represent a smaller fraction of the new, larger budget allowance
Incorrect. Inflating the SLO to a stricter target shrinks, not enlarges, the allowed budget and does not address the already-exhausted budget or the agreed consequence.
・Switch the SLI to a latency percentile so the exhausted budget stops applying
Incorrect. Changing the SLI to hide the breach is gaming the metric rather than honoring the agreed policy and still leaves users experiencing unreliability.
・Extend the rolling window to a full 90 days so the incident averages out and a positive error budget is restored
Incorrect. Retroactively widening the window to mask an incident undermines the policy's purpose and the trust between product and SRE stakeholders.
✓Freeze non-essential launches and redirect effort to reliability work until the budget is replenished in the next window
Correct. An error budget policy defines that once the budget is exhausted, launches pause and the team prioritizes reliability work until the budget recovers in the next window.
Explanation
An error budget policy is a pre-agreed contract specifying the consequences of exhausting the budget, typically a feature freeze and a shift to reliability work. Manipulating the SLO, SLI, or window to erase a breach defeats the policy's purpose.
Example7 · Applying Site Reliability Engineering Principles
A logistics company runs a fleet-tracking API that ingests GPS pings from 40,000 delivery trucks. The SRE team set an availability SLO of 99.9% measured monthly, with an error budget policy stating that if the budget is exhausted, feature launches freeze until it recovers. Halfway through the month the budget is fully consumed by an outage. Product managers want to ship a new route-optimization feature now. According to the agreed error budget policy, which action should the team take?
・Ship the route-optimization feature immediately but tighten the SLO to 99.99%, since a stricter target is expected to make up for the overspent budget.
Incorrect. Tightening the SLO to 99.99% raises the reliability bar while ignoring the policy, which makes the budget situation worse rather than honoring the agreed freeze.
・Ship the feature anyway, since the GPS ingestion pipeline has fully recovered and the earlier outage no longer affects the success rate being measured this month.
Incorrect. The budget is measured over the whole month, so an earlier outage still counts; recovery of ingestion does not restore the consumed budget.
・Raise the SLO target to 99.95% for the rest of the month and lower the alerting burn-rate thresholds so engineers are notified much sooner about new problems.
Incorrect. Changing the target mid-period and adjusting alerting does not satisfy the policy, which requires halting launches when the budget is gone.
✓Freeze new feature releases and redirect all engineering effort to reliability work until the error budget recovers, since the error budget policy was negotiated in advance precisely to govern exactly this exhausted-budget situation without any case-by-case debate.
Correct. The error budget policy was negotiated in advance precisely to remove case-by-case debate; an exhausted budget triggers a feature freeze and a pivot to reliability work.
Explanation
Error budget policies are agreed before incidents so that an exhausted budget automatically triggers a feature freeze and reliability focus. Mid-period target changes or ignoring the freeze undermine the policy's purpose.
Example8 · Applying Site Reliability Engineering Principles
A manufacturing IoT platform collects sensor telemetry from factory robots. The SRE team must define an SLI that best reflects whether customers can rely on the telemetry dashboard. They are choosing between measuring server CPU utilization, the ratio of successful dashboard data-load requests to total requests, the number of robots currently connected, and the average age of the oldest unprocessed message. Which option is the most appropriate SLI for user-facing dashboard reliability?
・The percentage of host CPU utilization measured across the entire fleet of telemetry ingestion servers, averaged over each one-minute measurement window during the whole reporting month.
Incorrect. CPU utilization is a resource saturation signal, not a measure of whether users successfully receive dashboard data.
✓The ratio of successful dashboard data-load requests to total requests, measured at the serving layer that users interact with.
Correct. A good availability SLI is a ratio of good events to total events measured where users experience the service, so request success rate at the serving layer fits best.
・The total count of factory robots currently reporting telemetry into the platform at any given moment across every one of the connected manufacturing sites worldwide.
Incorrect. The count of connected robots describes input volume and does not indicate whether dashboard users are served successfully.
・The average age of the oldest unprocessed telemetry message sitting in the backend ingestion queue while it is waiting to be committed durably into storage.
Incorrect. Queue age is a useful freshness or pipeline health metric but does not directly capture user-facing dashboard request success.
Explanation
SLIs should be expressed as the ratio of good events to total events, measured as close to the user as possible. Request success rate at the serving layer directly reflects user experience, unlike internal resource or volume metrics.
Example9 · Applying Site Reliability Engineering Principles
An on-call engineer for a logistics warehouse-management service spends roughly three hours every day manually restarting stuck label-printer microservices, clearing a backlog table, and copying logs into a spreadsheet. Leadership asks the SRE team to reduce toil. Which characteristic of this work most clearly identifies it as toil that should be targeted for automation?
・The tasks require deep architectural judgment and fresh design decisions made anew on every single occurrence.
Incorrect. Work needing deep design judgment each time is engineering work, not toil, which by definition lacks enduring value.
✓The tasks are manual, repetitive, automatable, and scale linearly with service growth while steadily producing no lasting engineering value whatsoever.
Correct. Toil is defined as manual, repetitive, automatable, tactical work that scales with the service and carries no lasting value, which exactly describes these daily tasks.
・The tasks occasionally expose interesting edge cases that lead the team toward long-term redesign proposals.
Incorrect. If the work mainly surfaces novel problems leading to redesign, it is closer to project work than to repetitive toil.
・The tasks are performed only once during the initial provisioning of each brand-new warehouse site and therefore rarely recur during normal daily operations afterward.
Incorrect. One-time provisioning performed rarely does not meet the repetitive, recurring criterion that characterizes toil.
Explanation
Toil is manual, repetitive, automatable, devoid of enduring value, and grows with service scale. Daily restart-and-cleanup tasks match that definition and should be automated to free engineers for higher-value work.
Example10 · Applying Site Reliability Engineering Principles
A B2B SaaS company runs a billing API with a monthly availability SLO of 99.9%. Three weeks into the month, a monitoring dashboard shows the error budget has been fully consumed by a series of outages. The product team wants to ship a large pricing-engine rewrite immediately. According to SRE error budget policy, what should the engineering organization do for the rest of the month?
・Ship the rewrite on schedule, treating the 99.9% SLO as merely an aspirational goal that does not restrict deployment pace.
Incorrect. An error budget policy makes the SLO an enforced contract, not an aspirational goal; exhausting the budget does restrict the release pace until reliability recovers.
・Lower the published SLO to 99.5% so the remaining budget turns positive and the release can proceed with no reliability review.
Incorrect. Lowering the SLO purely to manufacture budget subverts the policy and misrepresents the reliability actually promised to customers.
・Disable alerting on the billing API dashboards so on-call stops being paged, then keep releasing features at the normal cadence.
Incorrect. Silencing alerts hides failures rather than protecting users and violates the intent of the error budget policy.
✓Freeze non-reliability feature releases and prioritize work that improves stability until the budget recovers.
Correct. When the error budget is exhausted, the policy halts risky feature launches and redirects effort to reliability work until the budget is replenished.
Explanation
An error budget policy ties change velocity to measured reliability. When the budget is spent, feature launches pause and the team invests in stability, protecting the user-facing SLO rather than gaming or ignoring it.
Example11 · Applying Site Reliability Engineering Principles
An online multiplayer game exposes a matchmaking service. Leadership asks you to define an SLI that best reflects the experience of players waiting to join a match. Which measurement is the most appropriate service level indicator for this user journey?
・The average CPU utilization across all matchmaking server virtual machines, aggregated over a rolling five-minute window per zone.
Incorrect. CPU utilization is a resource metric that does not reliably correspond to whether players actually receive matches in time.
・The total number of lines of application log output that the matchmaking service writes to Cloud Logging during each one-hour reporting interval.
Incorrect. Log volume measures internal activity, not whether the matchmaking journey succeeds for players.
✓The percentage of matchmaking requests that return a valid match within the target latency threshold, measured at the load balancer.
Correct. A good SLI measures the user-facing outcome; the fraction of match requests served correctly within the latency target directly reflects player experience.
・The count of container image deployments pushed to the matchmaking service through the continuous delivery pipeline during the current calendar week.
Incorrect. Deployment frequency reflects release cadence, not the reliability experienced by players waiting for a match.
Explanation
SLIs should quantify the quality of a user journey, typically as the ratio of good events to valid events. Latency-and-success of match requests captures the player experience, while CPU, log volume, and deploy counts are proxies unrelated to the outcome.
Example12 · Applying Site Reliability Engineering Principles
A national energy grid operator runs a load-dispatch service with a 99.9% availability SLO measured monthly. Three weeks into the month the error budget is fully exhausted after a bad release, yet the platform team has a batch of feature changes queued. According to SRE error budget policy, what should the organization do for the remainder of the month?
・Keep shipping the queued feature changes because the signed regulator SLA still permits occasional downtime
Incorrect. An SLA is an external contract, not the internal control for change velocity; a burned error budget halts feature risk regardless of SLA slack.
・Lower the published SLO to 99.5% so that the consumed budget now comfortably fits within the new looser monthly target going forward
Incorrect. Retroactively weakening the SLO to hide the breach undermines the budget's purpose and misleads stakeholders about reliability.
・Keep releasing features but require every change to be shipped behind a manual approval from the on-call engineer each time
Incorrect. Adding manual approvals still spends unavailable budget on feature risk and injects toil rather than enforcing the freeze.
✓Freeze feature releases and redirect engineering effort toward reliability work until the budget recovers next period
Correct. A spent error budget triggers a release freeze on risky changes and refocuses the team on reliability until the budget refills.
Explanation
An error budget policy agreed by product and SRE converts an exhausted budget into an automatic brake on feature risk. When the budget is gone, the correct response is to stop shipping risky features and invest in reliability until the budget resets.
Example13 · Applying Site Reliability Engineering Principles
A city government's online permit portal defines its SLO using a latency SLI: the fraction of HTTP requests served in under 400 ms. The SRE team wants the SLI to reflect what residents actually experience when submitting forms. Which measurement approach best satisfies that requirement?
✓Measure latency at the load balancer as seen by client requests, capturing queuing and network time close to the user
Correct. Measuring at the load balancer captures the user-facing request path including queuing, giving an SLI aligned with resident experience.
・Measure latency from server application logs at the backend process, since that is where request handling time is actually spent by the service itself
Incorrect. Backend process timing omits queuing and edge latency, so it understates the delay a resident perceives when submitting a form.
・Measure the average CPU utilization of the portal instances and alert whenever it crosses a saturation threshold
Incorrect. CPU saturation is a resource signal, not a user-facing latency SLI, and does not represent perceived request time.
・Measure the count of successful database transactions per minute and treat sustained throughput as the latency indicator here
Incorrect. Transaction throughput measures volume rather than per-request latency, so it cannot serve as a latency indicator.
Explanation
A good SLI measures the signal at the point closest to the user's actual experience. For a user-facing latency objective, instrumenting at the load balancer captures the full request path rather than only backend processing.
Example14 · Applying Site Reliability Engineering Principles
An insurance claims platform has an SLO of 99.9% availability over 28 days, giving a monthly error budget of roughly 40 minutes of downtime. Two weeks in, a bad deploy has already consumed 35 minutes of the budget, and product management wants to ship three large feature releases this week. As the SRE lead applying error budget policy, what should you decide?
・Approve all three releases because the SLO still shows the service as technically available and the remaining budget has not been fully exhausted yet according to the dashboard
Incorrect. Spending nearly all the remaining budget on feature launches ignores the policy that triggers a change freeze when the budget is almost depleted, risking a full SLO breach.
✓Freeze risky feature releases this week and prioritize reliability and hardening work until the error budget recovers in the next measurement window
Correct. With the budget nearly exhausted, the error budget policy dictates halting feature velocity and investing in reliability until the next measurement window restores budget.
・Permanently lower the SLO to 99.5% so the larger error budget comfortably absorbs any future bad deploys the team ships
Incorrect. Lowering the SLO to mask a reliability problem breaks the agreement with stakeholders and hides real user-facing risk rather than addressing the bad deploys.
・Disable the monitoring alerts that measure availability so the remaining error budget stops being consumed by noisy false positives
Incorrect. Turning off availability alerting does not stop real downtime; it only blinds the team to budget consumption and genuine outages.
Explanation
Error budget policies exist to arbitrate the trade-off between change velocity and reliability. When the budget is nearly spent, the agreed response is to freeze feature work and focus on reliability, not to ship more risk or redefine the target.
Example15 · Applying Site Reliability Engineering Principles
A travel booking company publishes an SLA to corporate customers promising 99.5% monthly availability with service credits if breached. Internally the SRE team wants an operational target that triggers action before customers are ever harmed. Which approach correctly relates the internal target to the external promise?
・Set the external SLA and the internal SLO both to exactly 99.5% so there is no confusing gap between what engineers monitor and what the contract states to customers
Incorrect. Matching the SLO to the SLA leaves no safety margin, so the team learns of trouble only when the contract is already being breached.
・Replace the SLA entirely with raw SLI measurements and share the per-request latency metrics directly with every corporate customer
Incorrect. SLIs are the raw measurements feeding SLOs and SLAs; they do not replace the contractual agreement and are not meant to be a customer promise on their own.
・Set an internal SLO looser than the SLA, such as 99.0%, so engineers are not paged until well after the contract has already been violated
Incorrect. A looser SLO guarantees the team responds only after the SLA is already violated, defeating the purpose of an internal early-warning target.
✓Set an internal SLO that is deliberately stricter than the contractual SLA, such as 99.9% versus 99.5%, so the team is alerted and reacts before the customer-facing contractual threshold is at risk
Correct. A deliberately stricter internal SLO creates an early-warning buffer, prompting reliability action well before the customer-facing SLA is endangered.
Explanation
SLIs measure behavior, SLOs are internal targets, and SLAs are external contracts. Setting the SLO tighter than the SLA gives engineers a buffer to act before customers experience a contractual breach.
▶ Try 10 free questions (graded)