Welcome to awslagi.com – Sharing AWS, Anthropic, Google Cloud, Microsoft Azure IT Exams. It's free for all!

Professional Cloud DevOps Engineer

Expert-level automation and reliability of distributed systems on Google Cloud.

4.8★★★★★(169 ratings)
14,673 studentsAdvanced
Master the deployment, management, and operation of scalable systems on Google Cloud using SRE (Site Reliability Engineering) principles. This course focuses on building software delivery pipelines and incident management. Validate your technical expertise in automated provisioning, monitoring, and performance tuning. Become a leader in implementing CI/CD, binary authorization, and advanced monitoring with Cloud Operations.

What you'll learn

  • Bootstrapping a DevOps culture
  • Building CI/CD pipelines
  • Implementing SRE services
  • Monitoring and logging
  • Incident management

PROFESSIONAL-CLOUD-DEVOPS-ENGINEER

Lectures2
Questions120
Duration30 week
Students14,673

$20.00

Full Free Question Bank (120 Questions)

Professional Cloud DevOps Engineer (PROFESSIONAL-CLOUD-DEVOPS-ENGINEER) Practice Questions & Verified Answers

Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.

Jump to Section:
Question #1Part 1Optimizing performance and cost

You need to lower the cost of virtual machines (VMs) for your organization. After evaluating different options, you choose to use preemptible VM instances. Which application is appropriate for preemptible VMs?

AA scalable in-memory caching system.
BThe organization's public-facing website.
CA distributed, eventually consistent NoSQL database cluster with sufficient quorum.
DA GPU-accelerated video rendering platform that retrieves and stores videos in a storage bucket.
Question #2Part 1Applying site reliability engineering practices

Your company follows Site Reliability Engineering principles. You are preparing a postmortem for an incident caused by a software change that severely impacted users. You want to prevent a severe incident from occurring again in the future. What should you do?

AIdentify engineers responsible for the incident and escalate to the senior management.
BEnsure that test cases that catch errors of this type are run successfully before new software releases.
CFollow up with the employees who reviewed the changes and prescribe practices they should follow in the future.
DDesign a policy that will require on-call teams to immediately call engineers and management to discuss a plan of action if an incident occurs.
Question #3Part 1Implementing observability practices and troubleshooting issues

You are designing a hosting architecture in Google Kubernetes Engine (GKE) for business-critical applications. The applications expose custom metrics for monitoring with Prometheus. You need to collect the application metrics for alerting and troubleshooting. You want to minimize manual effort and ongoing maintenance while following Google-recommended practices. What should you do?

AInstall Prometheus servers in the GKE clusters. Configure Prometheus to scrape and forward the custom metrics to the Cloud Monitoring API.
BInstall the OpenTelemetry collector in the GKE clusters. Configure it to collect and export the custom metrics to Cloud Monitoring.
CModify each application to use the Cloud Monitoring API to push the custom metrics.
DConfigure Google Cloud Managed Service for Prometheus collection in the GKE clusters to collect the custom metrics.
Question #4Part 1Optimizing performance and cost

Your company runs services using Google Kubernetes Engine (GKE). The GKE clusters in the development environment run applications with verbose logging enabled. Developers inspect logs by using the kubectl logs command and do not use Cloud Logging. Applications do not have a defined uniform logging structure. You need to minimize the costs associated with application logging while continuing to collect GKE operational logs. What should you do?

ARun the gcloud container clusters update --logging=SYSTEM command for the development cluster.
BRun the gcloud container clusters update --logging=WORKLOAD command for the development cluster.
CRun the gcloud logging sinks update _Default --disabled command in the project associated with the development environment.
DAdd the severity >= DEBUG resource.type = "k8s_container" exclusion filter to the _Default logging sink in the project associated with the development environment.
Question #5Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You are configuring a CI/CD pipeline natively in Google Cloud. You want builds in a pre-production Google Kubernetes Engine (GKE) environment to be automatically load-tested before promotion to the production GKE environment. You must ensure that only builds that pass this test are deployed to production. You want to follow Google-recommended practices. How should you configure this pipeline with Binary Authorization?

ACreate an attestation for the builds that pass the load test by requiring the lead quality assurance engineer to sign the attestation by using their personal private key.
BCreate an attestation for the builds that pass the load test by using a private key stored in Cloud Key Management Service (Cloud KMS) with a service account JSON key stored as a Kubernetes Secret.
CCreate an attestation for the builds that pass the load test by using a private key stored in Cloud Key Management Service (Cloud KMS) authenticated through Workload Identity.
DCreate an attestation for the builds that pass the load test by requiring the lead quality assurance engineer to sign the attestation by using a key stored in Cloud Key Management Service (Cloud KMS).
Question #6Part 1Optimizing performance and cost

You support the backend for a mobile phone game running on a Google Kubernetes Engine (GKE) cluster. The application serves HTTP requests from users. You need to implement a solution to reduce network costs. What should you do?

AConfigure the VPC as a Shared VPC Host project.
BConfigure your network services on the Standard Tier.
CConfigure your Kubernetes cluster as a Private Cluster.
DConfigure a Google Cloud HTTP Load Balancer as Ingress.
Question #7Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You need to enforce multiple constraint templates across your Google Kubernetes Engine (GKE) clusters. The constraints include policy parameters, such as restrictions on the Kubernetes API. You must ensure that the policy parameters are kept in a GitHub repository and are automatically applied when changes occur. What should you do?

ASet up a GitHub action to trigger Cloud Build when there is a parameter change. In Cloud Build, run a gcloud CLI command to apply the change.
BWhen there is a change in GitHub. use a web hook to send a request to Anthos Service Mesh, and apply the change.
CConfigure Anthos Config Management with the GitHub repository. When there is a change in the repository, use Anthos Config Management to apply the change.
DConfigure Config Connector with the GitHub repository. When there is a change in the repository, use Config Connector to apply the change.
Question #8Part 1Bootstrapping and maintaining a Google Cloud organization

Your organization is beginning to containerize with Google Cloud. You require a fully managed storage solution for container images and Helm charts. Identify a storage solution with native integration with existing Google Cloud services, including Google Kubernetes Engine (GKE), Cloud Run, VPC Service Controls, and Identity and Access Management (IAM). What should you do?

AUse Docker to configure a Cloud Storage driver pointed at the bucket owned by your organization.
BConfigure an open source container registry server to run in GKE with a restrictive role-based access control (RBAC) configuration.
CConfigure Artifact Registry as an OCI-based container registry for both Helm charts and container images.
DConfigure Container Registry as an OCI-based container registry for container images.
Question #9Part 1Optimizing performance and cost

You work for a global organization and run a monolithic application on Compute Engine. You need to choose a machine type for the application that optimizes CPU utilization with the fewest steps. You want to use historical system metrics to determine the machine type for the application and follow Google-recommended practices. What should you do?

AUse the Recommender API and apply the suggested recommendations.
BCreate an Agent Policy to automatically install Ops Agent in all VMs.
CInstall the Ops Agent in a fleet of VMs by using the gcloud CLI.
DReview the Cloud Monitoring dashboard for the VM and choose the machine type with the lowest CPU utilization.
Question #10Part 1Implementing observability practices and troubleshooting issues

You are diagnosing an issue with an application running in a Google Kubernetes Engine (GKE) cluster that has Binary Authorization enabled. You need to run a temporary Pod for troubleshooting by using an unsigned utility container image from Artifact Registry. When you try to apply the Pod configuration from a YAML file, the Binary Authorization policy blocks the deployment. You must use the most secure and auditable solution to run the Pod. What should you do?

AChange enforcementMode in the Binary Authorization policy to ALWAYS_ALLOW.
BAdd the imaqe-policy.k8s.io/break-glass label to the Pod configuration.
CTemporarily disable Binary Authorization on the GKE cluster.
DAdd the container image to the admissionWhitelistPatterns node in the Binary Authorization policy.
Question #11Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You use Terraform to manage an application deployed in a Google Cloud environment. The application runs on instances deployed by a managed instance group. The Terraform code is deployed through a CI/CD pipeline. When you change the machine type on the instance template used by the managed instance group, the pipeline fails during the terraform apply stage with the following error message: ![Question Image](https://cdn.examcademy.com/images/questions/1783848187263-brikxzqc.png) You need to update the instance template while minimizing disruption to the application and the number of pipeline runs. What should you do?

ADelete the managed instance group, and recreate it after updating the instance template.
BAdd a new instance template, update the managed instance group to use the new instance template, and delete the old instance template.
CRemove the managed instance group from the Terraform state file, update the instance template, and reimport the managed instance group.
DSet the create_before_destroy meta-argument to true in the lifecycle block on the instance template.
Question #12Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You must build a CI/CD pipeline for a containerized application in Google Cloud. Your development team uses a central Git repository for trunk-based development. You want the pipeline to run all tests for any new application versions to improve quality. What should you do?

A1. Install a Git hook to require developers to run unit tests before pushing the code to a central repository.2. Trigger Cloud Build to build the application container. Deploy the application container to a testing environment, and run integration tests.3. If the integration tests are successful, deploy the application container to your production environment, and run acceptance tests.
B1. Install a Git hook to require developers to run unit tests before pushing the code to a central repository. If all tests are successful, build a container.2. Trigger Cloud Build to deploy the application container to a testing environment, and run integration tests and acceptance tests.3. If all tests are successful, tag the code as production ready. Trigger Cloud Build to build and deploy the application container to the production environment.
C1. Trigger Cloud Build to build the application container, and run unit tests with the container.2. If unit tests are successful, deploy the application container to a testing environment, and run integration tests.3. If the integration tests are successful, the pipeline deploys the application container to the production environment. After that, run acceptance tests.
D1. Trigger Cloud Build to run unit tests when the code is pushed. If all unit tests are successful, build and push the application container to a central registry.2. Trigger Cloud Build to deploy the container to a testing environment, and run integration tests and acceptance tests.3. If all tests are successful, the pipeline deploys the application to the production environment and runs smoke tests
Question #13Part 1Implementing observability practices and troubleshooting issues

Your team is getting ready to launch a new API on Cloud Run. The API uses an OpenTelemetry agent to send distributed tracing data to Cloud Trace to monitor how long each request takes. The team has observed inconsistent trace collection. You need to fix the issue. What should you do?

AUse an HTTP health check.
BConfigure CPU to be always-allocated.
CIncrease the CPU limit in Cloud Run from 2 to 4.
DConfigure CPU to be allocated only during request processing.
Question #14Part 1Implementing observability practices and troubleshooting issues

Your company’s security team requires read-only access to Data Access audit logs in the _Required bucket. You want to grant the required permissions to the security team according to the principle of least privilege and Google-recommended practices. What should you do?

AAssign the roles/logging.viewer role to each member of the security team.
BAssign the roles/logging.viewer role to a group with all the security team members.
CAssign the roles/logging.privateLogViewer role to each member of the security team.
DAssign the roles/logging.privateLogViewer role to a group with all the security team members.
Question #15Part 1Implementing observability practices and troubleshooting issues

You are conducting an experiment to determine whether users like a new feature in a web application. Soon after deploying the feature as a canary release, you see a spike in 500 errors returned to users, and monitoring indicates higher latency. You want to minimize the negative effect on users as quickly as possible. What should you do first?

ARoll back the experimental canary release.
BStart monitoring latency, traffic, errors, and saturation.
CRecord data for the postmortem document of the incident.
DTrace the origin of 500 errors and the root cause of increased latency.
Question #16Part 1Bootstrapping and maintaining a Google Cloud organization

You manage a Google Cloud environment for 20 different business units, with 50 production projects and 50 development projects located directly under the organization node. This flat hierarchy makes it hard to apply security policies consistently to all production projects and to track the combined costs of the production and development environments separately. You need to reorganize the resource hierarchy to address these issues. What should you do?

ACreate folders for the production and development environments, and move the projects into these folders.
BCreate a folder for each business unit, and move the corresponding projects into these folders.
CApply labels for each environment to each project to identify the environment.
DCreate a common services project for each business unit.
Question #17Part 1Applying site reliability engineering practices

You are deploying an application that requires access to sensitive information. You need to make sure this information is encrypted and that the risk of exposure is minimized in the event of a breach. What should you do?

AStore the encryption keys in Cloud Key Management Service (KMS) and rotate the keys frequently
BInject the secret at the time of instance creation via an encrypted configuration management system.
CIntegrate the application with a Single sign-on (SSO) system and do not expose secrets to the application.
DLeverage a continuous build pipeline that produces multiple versions of the secret for each instance of the application.
Question #18Part 1Bootstrapping and maintaining a Google Cloud organization

You are developing an application that runs on Cloud Run. The application must access a third-party API using an API key. You need to identify a secure method to store and use the API key in the application while following Google-recommended practices. What should you do?

ASave the API key in Secret Manager as a secret. Reference the secret as an environment variable in the Cloud Run application.
BSave the API key in Secret Manager as a secret key. Mount the secret key under the /sys/api_key directory, and decrypt the key in the Cloud Run application.
CSave the API key in Cloud Key Management Service (Cloud KMS) as a key. Reference the key as an environment variable in the Cloud Run application.
DEncrypt the API key by using Cloud Key Management Service (Cloud KMS), and pass the key to Cloud Run as an environment variable. Decrypt and use the key in Cloud Run.
Question #19Part 1Optimizing performance and cost

A team is developing a service that performs compute-intensive processing on batches of data. Data is processed more quickly according to the machine's CPU speed and CPU count. These data batches vary in size and can arrive at any time from multiple third-party sources. You must ensure that third parties can upload their data securely. You want to minimize costs while ensuring the data is processed as quickly as possible. What should you do?

AProvide a secure file transfer protocol (SFTP) server on a Compute Engine instance so that third parties can upload batches of data, and provide appropriate credentials to the server.Create a Cloud Function with a google.storage.object.finalize Cloud Storage trigger. Write code so that the function can scale up a Compute Engine autoscaling managed instance groupUse an image pre-loaded with the data processing software that terminates the instances when processing completes.
BProvide a Cloud Storage bucket so that third parties can upload batches of data, and provide appropriate Identity and Access Management (IAM) access to the bucket.Use a standard Google Kubernetes Engine (GKE) cluster and maintain two services: one that processes the batches of data, and one that monitors Cloud Storage for new batches of data.Stop the processing service when there are no batches of data to process.
CProvide a Cloud Storage bucket so that third parties can upload batches of data, and provide appropriate Identity and Access Management (IAM) access to the bucket.Create a Cloud Function with a google.storage.object.finalize Cloud Storage trigger. Write code so that the function can scale up a Compute Engine autoscaling managed instance group.Use an image pre-loaded with the data processing software that terminates the instances when processing completes.
DProvide a Cloud Storage bucket so that third parties can upload batches of data, and provide appropriate Identity and Access Management (IAM) access to the bucket.Use Cloud Monitoring to detect new batches of data in the bucket and trigger a Cloud Function that processes the data.Set a Cloud Function to use the largest CPU possible to minimize the runtime of the processing.
Question #20Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You are configuring a CI pipeline in Cloud Build. When you test the pipeline, the following cloudbuild.yaml definition results in 5 minutes for each of the foo and bar steps. ![Question Image](https://cdn.examcademy.com/images/questions/1783888158862-frd9ku51.png) The foo and bar steps are independent of one another. The baz step requires both the foo and bar steps to complete before it starts. You want to use parallelism to reduce build times. What should you do?

AModify the build script to add -options:machineType: 'E2_HIGHCPU_8'
BModify the build script to add -options:machineType: 'E2_HIGHCPU_32'
C![](https://cdn.examcademy.com/images/questions/1783888162854-mrs9dd3v.png)
D![](https://cdn.examcademy.com/images/questions/1783888166396-qvn839x6.png)
Question #21Part 1Implementing observability practices and troubleshooting issues

You manage an application that exposes an HTTP endpoint without a load balancer. HTTP response latency is important to the user experience. You need to understand the HTTP latencies experienced by all of your users. You use Stackdriver Monitoring. What should you do?

Aג€¢ In your application, create a metric with a metricKind set to DELTA and a valueType set to DOUBLE. ג€¢ In Stackdriver's Metrics Explorer, use a Stacked Bar graph to visualize the metric.
Bג€¢ In your application, create a metric with a metricKind set to CUMULATIVE and a valueType set to DOUBLE. ג€¢ In Stackdriver's Metrics Explorer, use a Line graph to visualize the metric.
Cג€¢ In your application, create a metric with a metricKind set to GAUGE and a valueType set to DISTRIBUTION. ג€¢ In Stackdriver's Metrics Explorer, use a Heatmap graph to visualize the metric.
Dג€¢ In your application, create a metric with a metricKind set to METRIC_KIND_UNSPECIFIED and a valueType set to INT64. ג€¢ In Stackdriver's Metrics Explorer, use a Stacked Area graph to visualize the metric.
Question #22Part 1Implementing observability practices and troubleshooting issues

You are running an application on Compute Engine and collecting its logs through Stackdriver. You discover that some personally identifiable information (PII) is leaking into certain log entry fields. You want to prevent these fields from being written into new log entries as quickly as possible. What should you do?

AUse the filter-record-transformer Fluentd filter plugin to remove the fields from the log entries in flight.
BUse the fluent-plugin-record-reformer Fluentd output plugin to remove the fields from the log entries in flight.
CWait for the application developers to patch the application, and then verify that the log entries are no longer exposing PII.
DStage log entries to Cloud Storage, and then trigger a Cloud Function to remove the fields and write the entries to Stackdriver via the Stackdriver Logging API.
Question #23Part 1Implementing observability practices and troubleshooting issues

You need to establish SLOs for a high-traffic web application. Customers are currently satisfied with the application's performance and availability. Current measurements over a 28-day window show a 90th-percentile latency of 160 ms and a 95th-percentile latency of 300 ms. What latency SLO should you publish?

A90th percentile - 150 ms95th percentile - 290 ms
B90th percentile - 160 ms95th percentile - 300 ms
C90th percentile - 190 ms95th percentile - 330 ms
D90th percentile - 300 ms95th percentile - 450 ms
Question #24Part 1Applying site reliability engineering practices

You are the on-call Site Reliability Engineer for a microservice deployed in a Google Kubernetes Engine (GKE) Autopilot cluster. Your company operates an online store that publishes order messages to Pub/Sub, and a microservice consumes those messages and updates stock information in the warehousing system. A sales event has increased orders, and stock information is not being updated fast enough. Consequently, many orders are being accepted for products that are out of stock. You review the microservice metrics and compare them with typical levels: ![Question Image](https://cdn.examcademy.com/images/questions/1783848807687-a4rcj26d.png) You must ensure the warehouse system accurately reflects product inventory when orders are placed while minimizing customer impact. What should you do?

ADecrease the acknowledgment deadline on the subscription.
BAdd a virtual queue to the online store that allows typical traffic levels.
CIncrease the number of Pod replicas.
DIncrease the Pod CPU and memory limits.
Question #25Part 1Applying site reliability engineering practicesSelect 2

Your CTO has asked that you implement an internal postmortem policy for every incident. You want to define the characteristics of a good postmortem so that the policy succeeds at your company. What should you do? (Choose two.)

AEnsure that all postmortems include what caused the incident, identify the person or team responsible for causing the incident, and how to prevent a future occurrence of the incident.
BEnsure that all postmortems include what caused the incident, how the incident could have been worse, and how to prevent a future occurrence of the incident.
CEnsure that all postmortems include the severity of the incident, how to prevent a future occurrence of the incident, and what caused the incident without naming internal system components.
DEnsure that all postmortems include how the incident was resolved and what caused the incident without naming customer information.
EEnsure that all postmortems include all incident participants in postmortem authoring and share postmortems as widely as possible.
Question #26Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

Your application images are built with Cloud Build and pushed to Google Container Registry (GCR). You want to specify a particular application version for deployment based on the release version tagged in source control. What should you do when pushing the image?

AReference the image digest in the source control tag.
BSupply the source control tag as a parameter within the image name.
CUse Cloud Build to include the release version tag in the application image.
DUse GCR digest versioning to match the image to the tag in source control.
Question #27Part 1Implementing observability practices and troubleshooting issues

You are troubleshooting problems in your production application running on Google Kubernetes Engine (GKE). You determined that a recently updated container image is the source of the issue, but the exact code change was not identified. The deployment currently points to the latest tag. You need to update the cluster so it runs a container version that functions as intended. What should you do?

ACreate a new tag called stable that points to the previously working container, and change the deployment to point to the new tag.
BAlter the deployment to point to the sha256 digest of the previously working container.
CBuild a new container from a previous Git tag, and do a rolling update on the deployment to the new container.
DApply the latest tag to the previous container image, and do a rolling update on the deployment.
Question #28Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

Your application runs on Google Cloud Platform (GCP), and you need to set up Jenkins to deploy application releases to GCP. Your goal is to streamline the release process, reduce operational toil, and keep user data secure. What should you do?

AImplement Jenkins on local workstations.
BImplement Jenkins on Kubernetes on-premises.
CImplement Jenkins on Google Cloud Functions.
DImplement Jenkins on Compute Engine virtual machines.
Question #29Part 1Implementing observability practices and troubleshooting issues

You manage applications deployed on Google Kubernetes Engine (GKE) clusters in multiple Google Cloud projects. You need a centralized, scalable solution for collecting and querying Prometheus metrics from these clusters with a flexible query language. You want to follow Google-recommended practices. What should you do?

AInstall Prometheus server on an admin cluster with cluster autoscaler enabled, and expose the Prometheus endpoint for queries.
BConfigure the Ops Agent to collect metrics, and run queries in Metrics Explorer.
CConfigure Google Cloud Managed Service for Prometheus with managed collection, and run queries in Metrics Explorer.
DDeploy a Prometheus server as a sidecar to your applications on each cluster, and run queries in Cloud Monitoring.
Question #30Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

Your company uses a CI/CD pipeline that uses Cloud Build and Artifact Registry to deploy container images to Google Kubernetes Engine (GKE). Images are tagged with the most recent commit hash and promoted to production after successful tests in the development and pre-production environments. A recent production deployment caused the application to fail because of untested integration functionality, requiring a disruptive manual rollback. During that rollback, you observed many old, unused container images accumulating in Artifact Registry. You need to improve rollout and rollback management and remove the old container images. What should you do?

ASet up a rollback pipeline in Cloud Build, and implement an Artifact Registry cleanup policy.
BAdopt Cloud Deploy for managing deployments, and implement an Artifact Registry cleanup policy.
CDeploy Cloud Service Mesh across the GKE clusters, and manually clean up Artifact Registry images.
DAdopt Cloud Deploy for managing deployments, and schedule a Cloud Build job for container image cleanup.
Question #31Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You are creating the CI/CD pipeline for an application deployed to Google Kubernetes Engine (GKE). The application uses a Kubernetes Deployment, Service, and Ingress. The application team has asked that it be deployed by using the blue/green deployment methodology. You need to implement the rollback actions. What should you do?

ARun the kubectl rollout undo command.
BDelete the new container image, and delete the running Pods.
CUpdate the Kubernetes Service to point to the previous Kubernetes Deployment.
DScale the new Kubernetes Deployment to zero.
Question #32Part 1Implementing observability practices and troubleshooting issues

Your application's performance on Google Cloud has worsened since the most recent release. You suspect downstream dependencies may be making some requests take longer to finish. You need to investigate the application and identify the cause. What should you do?

AConfigure Error Reporting in your application.
BConfigure Google Cloud Managed Service for Prometheus in your application.
CConfigure Cloud Profiler in your application.
DConfigure Cloud Trace in your application.
Question #33Part 1Optimizing performance and cost

You are monitoring a service that uses n2-standard-2 Compute Engine instances to serve large files. Users report slow downloads. Your Cloud Monitoring dashboard indicates that the VMs are operating at peak network throughput. You want to improve network-throughput performance. What should you do?

AAdd additional network interface controllers (NICs) to your VMs.
BDeploy a Cloud NAT gateway and attach the gateway to the subnet of the VMs.
CChange the machine type for your VMs to n2-standard-8.
DDeploy the Ops Agent to export additional monitoring metrics.
Question #34Part 1Applying site reliability engineering practices

Your team operates a critical service with a 99.9% availability SLO. Several incidents have nearly exhausted the quarter’s error budget. The team plans to release new features next week. What should you do to avoid exceeding the error budget while following Google-recommended practices?

ARelease the features but implement an automatic rollback if new errors occur.
BRelease the features sequentially for each subset of users to minimize potential impact on the SLO.
CPostpone the feature release and focus on reliability improvements until the error budget refreshes.
DPostpone the feature release and focus on building a backlog of features to deploy until the error budget refreshes.
Question #35Part 1Implementing observability practices and troubleshooting issues

The company’s primary ecommerce application, which runs on Google Kubernetes Engine (GKE), is experiencing intermittent intervals of high response latency. Users have reported that the checkout process is occasionally very slow. You need to determine the root cause of this performance degradation. What should you do?

AIncrease the number of replicas for the application’s GKE deployment and enable Horizontal Pod Autoscaling.
BIn Cloud Logging, create a logs-based metric that counts slow requests. Set up a Cloud Monitoring alert to be notified when the count exceeds a certain threshold.
CReview the deployment history in Cloud Deploy, and roll back to a previous version of the application to see if the issue is resolved.
DUse Cloud Trace to analyze the distributed traces of the checkout process. Examine the trace waterfalls to identify which service or operation is introducing the most latency.
Question #36Part 1Applying site reliability engineering practices

You need to define Service Level Objectives (SLOs) for a high-traffic, multi-region web application. Customers expect the application to always be available and to have fast response times, and they are currently satisfied with its performance and availability. Based on current measurements over a 28-day window: - 90th percentile latency: 120ms - 95th percentile latency: 275ms What latency SLO would you recommend the team publish?

A90 percentile ג€" 100ms th 95 percentile ג€" 250ms th
B90 percentile ג€" 120ms th 95 percentile ג€" 275ms th
C90 percentile ג€" 150ms th 95 percentile ג€" 300ms th
D90 percentile ג€" 250ms th 95 percentile ג€" 400ms th
Question #37Part 1Applying site reliability engineering practices

Your product is presently deployed across three Google Cloud Platform (GCP) zones, with users split among the zones. You can fail over between zones, but doing so results in a 10-minute service disruption for the affected users. You generally have a database failure once per quarter and can detect it within five minutes. You are cataloging reliability risks for a new real-time chat feature in your product. For each risk, you record: - Mean Time to Detect (MTTD) in minutes - Mean Time to Repair (MTTR) in minutes - Mean Time Between Failure (MTBF) in days - User Impact Percentage The chat feature requires a new database system that takes twice as long to successfully fail over between zones. You want to account for the risk of the new database failing in one zone. What values would apply to the database-failover risk with the new system?

AMTTD: 5 MTTR: 10 MTBF: 90 Impact: 33%
BMTTD: 5 MTTR: 20 MTBF: 90 Impact: 33%
CMTTD: 5 MTTR: 10 MTBF: 90 Impact: 50%
DMTTD: 5 MTTR: 20 MTBF: 90 Impact: 50%
Question #38Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

Application artifacts are built and deployed through a CI/CD pipeline. You need the CI/CD pipeline to securely access application secrets, and you also want to rotate those secrets more easily if a security breach occurs. What should you do?

APrompt developers for secrets at build time. Instruct developers to not store secrets at rest.
BStore secrets in a separate configuration file on Git. Provide select developers with access to the configuration file.
CStore secrets in Cloud Storage encrypted with a key from Cloud KMS. Provide the CI/CD pipeline with access to Cloud KMS via IAM.
DEncrypt the secrets and store them in the source code repository. Store a decryption key in a separate repository and grant your pipeline access to it.
Question #39Part 1Implementing observability practices and troubleshooting issues

You are setting up Cloud Logging for a new application running on a Compute Engine instance that has a public IP address. A user-managed service account is attached to the instance. You have confirmed that the required agents are running on the instance, but no log entries from the instance appear in Cloud Logging. You want to fix the issue by using Google-recommended practices. What should you do?

AExport the service account key and configure the agents to use the key.
BUpdate the instance to use the default Compute Engine service account.
CAdd the Logs Writer role to the service account.
DEnable Private Google Access on the subnet that the instance is in.
Question #40Part 1Applying site reliability engineering practices

You have an application running in Google Kubernetes Engine (GKE). It consists of several microservices deployed to GKE by using Deployments and Services. One microservice has an issue in which a Pod begins returning 403 errors after it has run for more than five hours. Your development team is working on a solution, but the issue will not be fixed for a month. You need to maintain continued operations until the microservice is fixed. You want to follow Google-recommended practices and use the fewest steps. What should you do?

ACreate a cron job to terminate any Pods that have been running for more than five hours.
BAdd a HTTP liveness probe to the microservice's deployment.
CMonitor the Pods, and terminate any Pods that have been running for more than five hours.
DConfigure an alert to notify you whenever a Pod returns 403 errors.
Question #41Part 1Implementing observability practices and troubleshooting issues

You are responsible for supporting a web application running on Compute Engine that provides a booking service to thousands of users. Shortly after a new feature is released, your monitoring dashboard shows that all users are experiencing latency at login. You want to mitigate the impact of this incident on your users. What should you do first?

ARoll back the recent release.
BReview the Stackdriver monitoring.
CUpsize the virtual machines running the login services.
DDeploy a new release to see whether it fixes the problem.
Question #42Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

A company has an application deployed on Google Kubernetes Engine (GKE) that consists of 12 microservices. Multiple teams are concurrently developing features across three environments: Dev, Staging, and Prod. Developers report dependency-test failures and delayed releases because deployments from multiple feature branches share the Dev GKE cluster. A cost-effective solution is needed so developers can test microservice features in a stable development environment that is isolated from other development work. What should you do?

AAutomate CI pipelines by using Cloud Build for container image creation and Kubernetes manifest updates from main branch merge requests. Integrate with Config Sync to test new im-ages in dynamically created namespaces on the Dev GKE cluster with autoscaling enabled. Im-plement a post-test namespace cleanup routine.
BAutomate CI pipelines by using Cloud Build to create container images and update Kuber-netes manifests for each commit. Use Cloud Deploy for progressive delivery to Dev, Staging, and Prod GKE clusters. Enable Config Sync for consistent Kubernetes configurations across en-vironments.
CUse Cloud Build to automate CI pipelines and update Kubernetes manifest files from feature branch commits. Integrate with Config Sync to test new images in dynamically created namespaces on the Dev GKE cluster with autoscaling enabled. Implement a post-test namespace cleanup routine.
DUse Cloud Build to automate CI pipelines and update Kubernetes manifest files from feature branch commits. Integrate with Config Sync to test new images in dynamically created GKE Dev clusters for each feature branch, which are deleted upon merge request.
Question #43Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You are creating reusable infrastructure-as-code modules. Each module includes integration tests that deploy the module in a test project. You use GitHub for source control. You need to test your feature branch continuously and ensure that all code is tested before changes are accepted. You must implement a solution that automates the integration tests. What should you do?

AUse a Jenkins server for CI/CD pipelines. Periodically run all tests in the feature branch.
BAsk the pull request reviewers to run the integration tests before approving the code.
CUse Cloud Build to run the tests. Trigger all tests to run after a pull request is merged.
DUse Cloud Build to run tests in a specific folder. Trigger Cloud Build for every GitHub pull request.
Question #44Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You are building and deploying a microservice on Cloud Run for your organization. Many internal applications use the service. You are deploying a new release and must test the new version extensively in the staging and production environments while minimizing impact on users and developers. What should you do?

ADeploy the new version of the service to the staging environment. Split the traffic, and allow 1% of traffic through to the latest version. Test the latest version. If the test passes, gradually roll out the latest version to the staging and production environments.
BDeploy the new version of the service to the staging environment. Split the traffic, and allow 50% of traffic through to the latest version. Test the latest version. If the test passes, send all traffic to the latest version. Repeat for the production environment.
CDeploy the new version of the service to the staging environment with a new-release tag without serving traffic. Test the new-release version. If the test passes, gradually roll out this tagged version. Repeat for the production environment.
DDeploy a new environment with the green tag to use as the staging environment. Deploy the new version of the service to the green environment and test the new version. If the tests pass, send all traffic to the green environment and delete the existing staging environment. Repeat for the production environment.
Question #45Part 1Applying site reliability engineering practicesSelect 3

Your team is preparing a postmortem following an incident involving your external-facing application. The team wants to enhance its postmortem policy with triggers that determine whether an incident needs a postmortem. Based on Site Reliability Engineering (SRE) practices, which triggers should be defined in the postmortem policy? (Choose two.)

AAn external stakeholder asks for a postmortem
BData is lost due to an incident.
CAn internal stakeholder requests a postmortem.
DThe monitoring system detects that one of the instances for your application has failed.
EThe CD pipeline detects an issue and rolls back a problematic release.
Question #46Part 1Applying site reliability engineering practices

You are responsible for a stateless, web-based API that runs on a single Compute Engine instance in the europe-west2-a zone. The Service Level Indicator (SLI) for service availability is currently below the defined Service Level Objective (SLO). A postmortem investigation shows that requests to the API frequently time out, and these timeouts occur because the API receives a high volume of requests and runs out of memory. You need to improve the service's availability. What should you do?

AChange the specified SLO to match the measured SLI
BMove the service to higher-specification compute instances with more memory
CSet up additional service instances in other zones and load balance the traffic between all instances
DSet up additional service instances in other zones and use them as a failover in case the primary instance is unavailable
Question #47Part 1Applying site reliability engineering practices

You are the Site Reliability Engineer responsible for operating your company’s data services and products. You regularly address operational challenges with your company’s data-ingestion processes, including unpredictable data volumes and high costs. You have recently learned that a new data-ingestion product will be developed in Google Cloud. You need to work with the product development team to provide operational input for the new product. What should you do?

ADeploy the prototype product in a test environment, run a load test, and share the results with the product development team.
BWhen the initial product version passes the quality assurance phase and compliance assessments, deploy the product to a staging environment. Share error logs and performance metrics with the product development team.
CWhen the new product is used by at least one internal customer in production, share error logs and monitoring metrics with the product development team.
DReview the design of the product with the product development team to provide feedback early in the design phase.
Question #48Part 1Implementing observability practices and troubleshooting issues

You have a group of applications running on a Google Kubernetes Engine (GKE) cluster and are using Stackdriver Kubernetes Engine Monitoring. You are moving a new containerized application required by your company into production. The application was written by a third party and cannot be modified or reconfigured. It writes log information to /var/log/app_messages.log, and you want to send these log entries to Stackdriver Logging. What should you do?

AUse the default Stackdriver Kubernetes Engine Monitoring agent configuration.
BDeploy a Fluentd daemonset to GKE. Then create a customized input and output configuration to tail the log file in the application's pods and write to Stackdriver Logging.
CInstall Kubernetes on Google Compute Engine (GCE) and redeploy your applications. Then customize the built-in Stackdriver Logging configuration to tail the log file in the application's pods and write to Stackdriver Logging.
DWrite a script to tail the log file within the pod and write entries to standard output. Run the script as a sidecar container with the application's pod. Configure a shared volume between the containers to allow the script to have read access to /var/log in the application container.
Question #49Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You have configured a CI/CD pipeline in Cloud Build that builds container images. The containers are stored in Artifact Registry. You must ensure that only images built by the Cloud Build pipeline in your production project are deployed to your Google Kubernetes Engine (GKE) cluster. You want to minimize the manual effort needed for implementation and ongoing maintenance. What should you do?

AEnable Binary Authorization on the GKE cluster. Create a Cloud Run function triggered by Artifact Registry INSERT events to verify that pushed containers have the projects/PROJECT_ID/attestors/built-by-cloud-build attestor.
BConfigure Artifact Registry to only allow the Cloud Build service account to push containers.
CEnable Binary Authorization on the GKE cluster. Create a Cloud Key Management Service (Cloud KMS) keyring and the built-by-cloud-build attestor. After Cloud Build pushes the container, use the key to create an attestation. Update the Binary Authorization policy to require the projects/PROJECT_ID/attestors/built-by-cloud-build attestor.
DEnable Binary Authorization on the GKE cluster. Configure the Binary Authorization policy to require the projects/PROJECT_ID/attestors/built-by-cloud-build attestor.
Question #50Part 1Implementing observability practices and troubleshooting issues

You have deployed a fleet of Compute Engine instances in Google Cloud. You must ensure that the instances' monitoring metrics and logs are visible in Cloud Logging and Cloud Monitoring to your company's operations and cybersecurity teams. You need to grant the necessary roles to the Compute Engine service account by using Identity and Access Management (IAM), while adhering to the principle of least privilege. What should you do?

AGrant the logging.logWriter and monitoring.metricWriter roles to the Compute Engine service accounts.
BGrant the logging.admin and monitoring.editor roles to the Compute Engine service accounts.
CGrant the logging.editor and monitoring.metricWriter roles to the Compute Engine service accounts.
DGrant the logging.logWriter and monitoring.editor roles to the Compute Engine service accounts.
Question #51Part 1Applying site reliability engineering practicesSelect 2

You are writing a postmortem for an incident that caused significant harm to users, with the goal of preventing similar incidents from happening again. Which two of the following sections should the postmortem include? (Choose two.)

AAn explanation of the root cause of the incident.
BA list of employees responsible for causing the incident
CA list of action items to prevent a recurrence of the incident
DYour opinion of the incident's severity compared to past incidents
ECopies of the design documents for all the services impacted by the incident
AAn explanation of the root cause of the incident.
BA list of employees responsible for causing the incident
CA list of action items to prevent a recurrence of the incident
DYour opinion of the incident's severity compared to past incidents
ECopies of the design documents for all the services impacted by the incident
Question #52Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

Your team uses Cloud Build for every CI/CD pipeline. You want to use Cloud Build’s kubectl builder to deploy new images to Google Kubernetes Engine (GKE). You need to authenticate to GKE while minimizing development effort. What should you do?

AAssign the Container Developer role to the Cloud Build service account.
BSpecify the Container Developer role for Cloud Build in the cloudbuild.yaml file.
CCreate a new service account with the Container Developer role and use it to run Cloud Build.
DCreate a separate step in Cloud Build to retrieve service account credentials and pass these to kubectl.
Question #53Part 1Implementing observability practices and troubleshooting issues

Your Cloud Run application sends unstructured text-string logs to Cloud Logging. You want to transform the unstructured logs into JSON-based structured logs. What should you do?

AModify the application to use Cloud Logging software development kit (SDK), and send log entries with a jsonPayload field.
BInstall a Fluent Bit sidecar container, and use a JSON parser.
CInstall the log agent in the Cloud Run container image, and use the log agent to forward logs to Cloud Logging.
DConfigure the log agent to convert log text payload to JSON payload.
Question #54Part 1Implementing observability practices and troubleshooting issues

You manage an application that writes logs to Stackdriver Logging. You need to grant certain team members the ability to export logs. What should you do?

AGrant the team members the IAM role of logging.configWriter on Cloud IAM.
BConfigure Access Context Manager to allow only these members to export logs.
CCreate and grant a custom IAM role with the permissions logging.sinks.list and logging.sink.get.
DCreate an Organizational Policy in Cloud IAM to allow only these members to create log exports.
Question #55Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You use a multi-step Cloud Build pipeline to build and deploy your application to Google Kubernetes Engine (GKE). You want to integrate with a third-party monitoring platform by sending an HTTP POST containing build information to a webhook. You want to minimize development effort. What should you do?

AAdd logic to each Cloud Build step to HTTP POST the build information to a webhook.
BAdd a new step at the end of the pipeline in Cloud Build to HTTP POST the build information to a webhook.
CUse Stackdriver Logging to create a logs-based metric from the Cloud Build logs. Create an Alert with a Webhook notification type.
DCreate a Cloud Pub/Sub push subscription to the Cloud Build cloud-builds PubSub topic to HTTP POST the build information to a webhook.
Question #56Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You are preparing to deploy a new feature of a web-based application to production, and you want to use Google Kubernetes Engine (GKE) to carry out a phased rollout to half of the web server pods. What should you do?

AUse a partitioned rolling update.
BUse Node taints with NoExecute.
CUse a replica set in the deployment specification.
DUse a stateful set with parallel pod management policy.
Question #57Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

Your team has an application built using a Dockerfile. Cloud Build performs the build, and the resulting artifacts are stored in Artifact Registry. Your team reports that builds are slow. You need to improve build speed while following Google-recommended practices. What should you do?

AUse the --cache-from parameter, and point to Artifact Registry. Add the most frequently modified files to the later stages of the build process.
BUse the --cache-from parameter, and point to Artifact Registry. Add the most frequently modified files to the earlier stages of the build process.
CCache the container layers of the build process to Cloud Storage. Add the most frequently modified files to the earlier stages of the build process.
DCache the container layers of the build process to Cloud Storage. Add the most frequently modified files to the later stages of the build process.
Question #58Part 1Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You are setting up a Cloud Deploy pipeline to deploy an application to Google Kubernetes Engine (GKE). The application is deployed as a Deployment. You must configure the Deployment to use two replicas in the development environment and five replicas in the production environment. All other configuration parameters must remain consistent across environments. You must also minimize development overhead when updating manifests in the future. How should you configure the skaffold.yaml file?

ACreate multiple profiles, and configure the manifests.kustomize section.
BCreate a single profile, and configure the manifests.kustomize section.
CCreate multiple profiles, and configure the manifests.rawYaml section.
DCreate a single profile, and configure the manifests.rawYaml section.
Question #59Part 1Implementing observability practices and troubleshooting issues

Your company operates in a highly regulated domain that requires retaining all organization logs for seven years. You want to minimize logging-infrastructure complexity by using managed services. You must prevent any future loss of log capture or stored logs caused by misconfiguration or human error. What should you do?

AUse Cloud Logging to configure an aggregated sink at the organization level to export all logs into a BigQuery dataset.
BUse Cloud Logging to configure an aggregated sink at the organization level to export all logs into Cloud Storage with a seven-year retention policy and Bucket Lock.
CUse Cloud Logging to configure an export sink at each project level to export all logs into a BigQuery dataset
DUse Cloud Logging to configure an export sink at each project level to export all logs into Cloud Storage with a seven-year retention policy and Bucket Lock.
Question #60Part 1Optimizing performance and cost

Your organization plans to raise an application's availability target from 99.9% to 99.99% at an investment of $2,000. The application currently generates $1,000,000 in revenue. You must decide whether the availability increase is worth the investment for a single year of use. What should you do?

ACalculate the value of improved availability to be $900, and determine that the increase in availability is not worth the investment.
BCalculate the value of improved availability to be $1,000, and determine that the increase in availability is not worth the investment.
CCalculate the value of improved availability to be $1,000, and determine that the increase in availability is worth the investment.
DCalculate the value of improved availability to be $9,000, and determine that the increase in availability is worth the investment.
Question #61Part 2Implementing observability practices and troubleshooting issues

You are investigating an ongoing anomaly that involves a high volume of requests. You created a custom dashboard in Cloud Monitoring and determined that the requests originate from one type of client. You want to let your company’s development team investigate the issue further by using your custom dashboard. You want to follow Google-recommended practices. What should you do?

AExport the custom dashboard as a JSON file and share the file with the development team.
BExport the dashboard time series data in CSV format. Instruct the development team to use BigQuery to analyze the data.
CGrant the development team the roles/monitoringViewer IAM role at the project level and share the custom dashboard URL with the development team.
DGrant the development team the roles/viewer IAM role at the project level and share the custom dashboard URL with the development team.
Question #62Part 2Implementing observability practices and troubleshooting issues

You use Google Cloud Managed Service for Prometheus with managed collection to collect metrics from your service running on Google Kubernetes Engine (GKE). After you deploy the service, no metric data appears in Cloud Monitoring, and you have not seen any error messages. You need to troubleshoot the issue. What should you do?

ADetermine if your service has exceeded its quota for writes to the Cloud Monitoring API.
BVerify that your PodMonitoring configuration references a valid port.
CCheck if the Grafana service is installed on your GKE cluster.
DConfirm that your service has the monitoring.servicesViewer IAM role.
Question #63Part 2Applying site reliability engineering practices

You are part of an organization that follows SRE practices and principles. You are assuming management of a new service from the Development Team and conduct a Production Readiness Review (PRR). Following the PRR analysis phase, you determine that the service currently cannot meet its Service Level Objectives (SLOs). You want to ensure the service can meet its SLOs in production. What should you do next?

AAdjust the SLO targets to be achievable by the service so you can bring it into production.
BNotify the development team that they will have to provide production support for the service.
CIdentify recommended reliability improvements to the service to be completed before handover.
DBring the service into production with no SLOs and build them when you have collected operational data.
Question #64Part 2Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You are setting up a Cl pipeline. The build step for Cl pipeline integration testing needs access to APIs within your private VPC network. Your security team requires that API traffic not be exposed publicly. You need to implement a solution that minimizes management overhead. What should you do?

AUse Cloud Build private pools to connect to the private VPC.
BUse Cloud Build to create a Compute Engine instance in the private VPC. Run the integration tests on the VM by using a startup script.
CUse Cloud Build as a pipeline runner. Configure a cross-region internal Application Load Balancer for API access.
DUse Cloud Build as a pipeline runner. Configure a global external Application Load Balancer with a Google Cloud Armor policy for API access.
Question #65Part 2Optimizing performance and cost

You deployed an application to a large Standard Google Kubernetes Engine (GKE) cluster. The application is stateless, with multiple pods running concurrently. It receives variable traffic. You need to ensure a consistent user experience despite traffic changes while optimizing cluster resource usage. What should you do?

AConfigure a cron job to scale the deployment on a schedule
BConfigure a Horizontal Pod Autoscaler.
CConfigure a Vertical Pod Autoscaler
DConfigure cluster autoscaling on the node pool.
Question #66Part 2Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You recently deployed an application in Google Kubernetes Engine (GKE) and now need to release a new version. You require the ability to immediately roll back to the application's previous version if the new version has issues. Which deployment model should you use?

APerform a rolling deployment, and test your new application after the deployment is complete.
BPerform A/B testing, and test your application periodically after the deployment is complete.
CPerform a canary deployment, and test your new application periodically after the new version is deployed.
DPerform a blue/green deployment, and test your new application after the deployment is complete.
Question #67Part 2Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloadsSelect 2

You are building a CI/CD pipeline to perform Terraform deployments of Google Cloud resources. The CI/CD tooling runs in Google Kubernetes Engine (GKE) and uses an ephemeral Pod for every pipeline run. You must ensure that the pipelines running in the Pods have the required Identity and Access Management (IAM) permissions to carry out the Terraform deployments. You want to follow Google-recommended identity-management practices. What should you do? (Choose two.)

ACreate a new Kubernetes service account, and assign the service account to the Pods. Use Workload Identity to authenticate as the Google service account.
BCreate a new JSON service account key for the Google service account, store the key as a Kubernetes secret, inject the key into the Pods, and set the GOOGLE_APPLICATION_CREDENTIALS environment variable.
CCreate a new Google service account, and assign the appropriate IAM permissions.
DCreate a new JSON service account key for the Google service account, store the key in the secret management store for the CI/CD tool, and configure Terraform to use this key for authentication.
EAssign the appropriate IAM permissions to the Google service account associated with the Compute Engine VM instances that run the Pods.
Question #68Part 2Bootstrapping and maintaining a Google Cloud organization

Your organization operates in a highly regulated domain. The security team requires that only trusted container images be deployed to Google Kubernetes Engine (GKE). You need to implement a solution that satisfies the security team’s requirements while minimizing management overhead. What should you do?

AConfigure Binary Authorization in your GKE clusters to enforce deploy-time security policies.
BGrant the roles/artifactregistry.writer role to the Cloud Build service account. Confirm that no employee has Artifact Registry write permission.
CUse Cloud Run to write and deploy a custom validator. Enable an Eventarc trigger to perform validations when new images are uploaded.
DConfigure Kritis to run in your GKE clusters to enforce deploy-time security policies.
Question #69Part 2Implementing observability practices and troubleshooting issues

Your organization keeps all application logs from multiple Google Cloud projects in a central Cloud Logging project. Your security team wants to enforce a rule that each project team can view only its own logs, while only the operations team can view all logs. You need to design a solution that satisfies the security team’s requirements while minimizing costs. What should you do?

AGrant each project team access to the project _Default view in the central logging project. Grant togging viewer access to the operations team in the central logging project.
BCreate Identity and Access Management (IAM) roles for each project team and restrict access to the _Default log view in their individual Google Cloud project. Grant viewer access to the operations team in the central logging project.
CCreate log views for each project team and only show each project team their application logs. Grant the operations team access to the _AllLogs view in the central logging project.
DExport logs to BigQuery tables for each project team. Grant project teams access to their tables. Grant logs writer access to the operations team in the central logging project.
Question #70Part 2Optimizing performance and costSelect 2

You are evaluating Java applications in production. Cloud Profiler and Cloud Trace are installed and configured by default for every application. You need to identify which applications require performance tuning. What should you do? (Choose two.)

AExamine the wall-clock time and the CPU time of the application. If the difference is substantial increase the CPU resource allocation.
BExamine the wall-clock time and the CPU time of the application. If the difference is substantial, increase the memory resource allocation.
CExamine the wall-clock time and the CPU time of the application. If the difference is substantial, increase the local disk storage allocation.
DExamine the latency time the wall-clock time and the CPU time of the application. If the latency time is slowly burning down the error budget, and the difference between wall-clock time and CPU time is minimal mark the application for optimization.
EExamine the heap usage of the application. If the usage is low, mark the application for optimization.
Question #71Part 2Optimizing performance and cost

Your company operates an ecommerce website built with JVM-based applications and a microservice architecture in Google Kubernetes Engine (GKE). Application load rises during the day and falls at night. Your operations team has configured the application with enough Pods to support the evening peak load. You want to automate scaling so that only the required number of Pods and nodes run for the current load. What should you do?

AConfigure the Vertical Pod Autoscaler, but keep the node pool size static.
BConfigure the Vertical Pod Autoscaler, and enable the cluster autoscaler.
CConfigure the Horizontal Pod Autoscaler, but keep the node pool size static.
DConfigure the Horizontal Pod Autoscaler, and enable the cluster autoscaler.
Question #72Part 2Applying site reliability engineering practices

Your team runs microservices in Google Kubernetes Engine (GKE). You want to detect error-budget consumption to protect customers and establish release policies. What should you do?

ACreate SLIs from metrics. Enable Alert Policies if the services do not pass.
BUse the metrics from Anthos Service Mesh to measure the health of the microservices.
CCreate a SLO. Create an Alert Policy on select_slo_burn_rate.
DCreate a SLO and configure uptime checks for your services. Enable Alert Policies if the services do not pass.
Question #73Part 2Applying site reliability engineering practices

Your development team has released a new version of your service's API. You need to roll out this new API version while causing the least possible disruption to third-party developers and end users of third-party applications that use the API. What should you do?

AIntroduce the new version of the API. Announce deprecation of the old version of the API. Deprecate the old version of the API. Contact remaining users of the old API. Provide best effort support to users of the old API. Turn down the old version of the API.
BAnnounce deprecation of the old version of the API. Introduce the new version of the API. Contact remaining users on the old API. Deprecate the old version of the API. Turn down the old version of the API. Provide best effort support to users of the old API.
CAnnounce deprecation of the old version of the API. Contact remaining users on the old API. Introduce the new version of the API. Deprecate the old version of the API. Provide best effort support to users of the old API. Turn down the old version of the API.
DIntroduce the new version of the API. Contact remaining users of the old API. Announce deprecation of the old version of the API. Deprecate the old version of the API. Turn down the old version of the API. Provide best effort support to users of the old API.
Question #74Part 2Applying site reliability engineering practices

You are responsible for the reliability of a high-volume enterprise application. Numerous users report that an important subset of the application's functionality — a data-intensive reporting feature — is consistently failing with an HTTP 500 error. When you investigate your application's dashboards, you notice a strong correlation between the failures and a metric that represents the size of an internal queue used for generating reports. You trace the failures to a reporting backend that is experiencing high I/O wait times. You quickly resolve the issue by resizing the backend's persistent disk (PD). You now need to create an availability Service Level Indicator (SLI) for the report generation feature. How should you define it?

AAs the I/O wait times aggregated across all report generation backends
BAs the proportion of report generation requests that result in a successful response
CAs the application's report generation queue size compared to a known-good threshold
DAs the reporting backend PD throughout capacity compared to a known-good threshold
Question #75Part 2Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

An external application sends encrypted files to a Cloud Storage bucket. The files use an HMAC-SHA256 key and contain sensitive data that must be loaded into BigQuery for analysis each day after midnight. You need to create a secure, automated solution to decrypt the files and load them into BigQuery. You want to follow Google-recommended practices while minimizing the required development effort. What should you do?

A1. Import the encryption key into the same Cloud Storage bucket.2. Create a Cloud Build pipeline that decrypts the file before loading the file into BigQuery.3. Create a Cloud Scheduler trigger that runs every day at the required time.
B1. Create a Cloud Key Management Service (Cloud KMS) key ring and import the encryption key.2. Create an Artifact Registry repository, and push the image containing the script to the Artifact Registry repository.3. Create a Cloud Run job that executes the image on a schedule.4. Grant the Cloud Run service agent the Cloud KMS CryptoKey Encrypter/Decrypter role.
C1. Create a Cloud Key Management Service (Cloud KMS) key ring and import the encryption key.2. Create a Cloud Build trigger that uses Cloud KMS to decrypt the file before loading the file into BigQuery.3. Create a Cloud Scheduler trigger that runs every day at the required time.
D1. Import the encryption key into the same Cloud Storage bucket.2. Create a script that pulls the key from Cloud Storage and decrypts the file.3. Create an Artifact Registry repository containerize the script and push the container to the Artifact Registry repository.4. Create a Cloud Run job that executes on a schedule.
Question #76Part 2Implementing observability practices and troubleshooting issues

You are running a real-time gaming application on Compute Engine that has separate production and testing environments. Each environment has its own Virtual Private Cloud (VPC) network, and within each environment's VPC, the application frontend and backend servers reside on different subnets. You suspect that a malicious process is intermittently communicating from your production frontend servers. You want to ensure that network traffic is captured for analysis. What should you do?

AEnable VPC Flow Logs on the production VPC network frontend and backend subnets only with a sample volume scale of 0.5.
BEnable VPC Flow Logs on the production VPC network frontend and backend subnets only with a sample volume scale of 1.0.
CEnable VPC Flow Logs on the testing and production VPC network frontend and backend subnets with a volume scale of 0.5. Apply changes in testing before production.
DEnable VPC Flow Logs on the testing and production VPC network frontend and backend subnets with a volume scale of 1.0. Apply changes in testing before production.
Question #77Part 2Implementing observability practices and troubleshooting issues

You are configuring Cloud Logging sinks to export log entries from Cloud Logging to BigQuery for later analysis. Your organization has a Google Cloud folder named Dev that contains development projects and a folder named Prod that contains production projects. Log entries from development projects must be exported to dev_dataset, and log entries from production projects must be exported to prod_dataset. You need to minimize the number of log sinks you create and ensure that the log sinks also apply to future projects. What should you do?

ACreate a single aggregated log sink at the organization level.
BCreate a log sink in each project.
CCreate two aggregated log sinks at the organization level, and filter by project ID.
DCreate an aggregated log sink in the Dev and Prod folders.
Question #78Part 2Implementing observability practices and troubleshooting issues

Your company runs applications in a private VPC with no internet access. Internal APIs are accessible only from within the VPC network. You need to monitor the availability of these internal APIs using a solution that follows Google-recommended practices and minimizes manual effort and maintenance. What should you do?

ADeploy the application on a Google Kubernetes Engine (GKE) instance configured with a liveness and readiness probe.
BConfigure private uptime checks.
CCreate a Cloud Run function with a VPC connector to ping the internal endpoints. Configure public uptime checks against the Cloud Run function.
DCreate a synthetic monitor, and use Cloud VPN to access the private endpoints.
Question #79Part 2Bootstrapping and maintaining a Google Cloud organization

You work for a company that handles highly sensitive user data. You are designing the Google Kubernetes Engine (GKE) infrastructure for your company, including several applications that will be deployed in development and production environments. Your design must safeguard data from unauthorized access by other applications while minimizing the required management overhead. What should you do?

ACreate one cluster for the organization with separate namespaces for each application and environment combination.
BCreate one cluster for each application with separate namespaces for production and development environments.
CCreate one cluster for each environment (development and production) with each application in its own namespace within each cluster.
DCreate one cluster for the organization with separate namespaces for each application.
Question #80Part 2Implementing observability practices and troubleshooting issues

You need to share a Cloud Monitoring custom dashboard with a partner team. What should you do?

AProvide the partner team with the dashboard URL to enable the partner team to create a copy of the dashboard.
BExport the metrics to BigQuery. Use Looker Studio to create a dashboard, and share the dashboard with the partner team.
CCopy the Monitoring Query Language (MQL) query from the dashboard, and send the ML query to the partner team.
DDownload the JSON definition of the dashboard, and send the JSON file to the partner team.
Question #81Part 2Optimizing performance and cost

After migrating an e-commerce application to Google Cloud Platform (GCP), you want to get the application ready for the upcoming busy season. What should you do first to prepare for the busy season?

ALoad teat the application to profile its performance for scaling.
BEnable AutoScaling on the production clusters, in case there is growth.
CPre-provision double the compute power used last season, expecting growth.
DCreate a runbook on inflating the disaster recovery (DR) environment if there is growth.
Question #82Part 2Applying site reliability engineering practices

You manage an application running in Google Kubernetes Engine (GKE) that uses the blue/green deployment methodology. Extracts from the Kubernetes manifests are shown below: ![Question Image](https://cdn.examcademy.com/images/questions/1783848649633-w8ka02bh.png) The app-green Deployment was updated to use the new version of the application. During post-deployment monitoring, you notice that most user requests are failing. This behavior was not observed in the testing environment. You need to reduce the incident’s impact on users and allow the developers to troubleshoot the issue. What should you do?

AUpdate the Deployment app-blue to use the new version of the application.
BUpdate the Deployment app-green to use the previous version of the application.
CChange the selector on the Service app-svc to app: my-app.
DChange the selector on the Service app-svc to app: my-app, version: blue.
Question #83Part 2Implementing observability practices and troubleshooting issues

You currently keep the virtual machine (VM) utilization logs in Stackdriver. You need to deliver an easy-to-share, interactive VM utilization dashboard that updates in real time and includes information aggregated quarterly. You want to use Google Cloud Platform solutions. What should you do?

A1. Export VM utilization logs from Stackdriver to BigQuery. 2. Create a dashboard in Data Studio. 3. Share the dashboard with your stakeholders.
B1. Export VM utilization logs from Stackdriver to Cloud Pub/Sub. 2. From Cloud Pub/Sub, send the logs to a Security Information and Event Management (SIEM) system. 3. Build the dashboards in the SIEM system and share with your stakeholders.
C1. Export VM utilization logs from Stackdriver to BigQuery. 2. From BigQuery, export the logs to a CSV file. 3. Import the CSV file into Google Sheets. 4. Build a dashboard in Google Sheets and share it with your stakeholders.
D1. Export VM utilization logs from Stackdriver to a Cloud Storage bucket. 2. Enable the Cloud Storage API to pull the logs programmatically. 3. Build a custom data visualization application. 4. Display the pulled logs in a custom dashboard.
Question #84Part 2Bootstrapping and maintaining a Google Cloud organization

Your company has recently migrated to Google Cloud. You must design a fast, reliable, and repeatable way for the company to provision new projects and basic resources in Google Cloud. What should you do?

AUse the Google Cloud console to create projects.
BWrite a script by using the gcloud CLI that passes the appropriate parameters from the request. Save the script in a Git repository.
CWrite a Terraform module and save it in your source control repository. Copy and run the terraform apply command to create the new project.
DUse the Terraform repositories from the Cloud Foundation Toolkit. Apply the code with appropriate parameters to create the Google Cloud project and related resources.
Question #85Part 2Implementing observability practices and troubleshooting issues

You administer a retail website for your company. The website comprises several microservices running in a GKE Standard node pool with node autoscaling enabled. Each microservice has resource limits and a Horizontal Pod Autoscaler configured. During a busy period, you receive alerts for one microservice. When you inspect the Pods, half have an OOMKilled status, and the Pod count is at the minimum autoscaling limit. You need to resolve this issue. What should you do?

AUpdate the node pool to use a machine type with more memory.
BIncrease the maximum number of nodes in the node pool.
CIncrease the maximum replica limit of the Horizontal Pod Autoscaler.
DIncrease the memory resource limit of the microservice.
Question #86Part 2Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

Your company uses Cloud Deploy with multiple delivery pipelines to deploy applications to different environments. The development team currently has no access to any of these pipelines. You need to grant the team access only to the development delivery pipeline while following Google-recommended practices. What should you do?

AIn the Google Cloud console, grant the development team the roles/clouddeploy.operator role. Add deny conditions to all pipelines other than the development delivery pipeline.
BIn the Google Cloud console, create a custom IAM role with all clouddeploy.automations.* permissions and an allow policy for only the development delivery pipeline. Grant this IAM role to the development team.
CGrant the development team the roles/clouddeploy.operator role in a policy file. Apply the policy file to the development target.
DGrant the development team the roles/clouddeploy.developer role in a policy file. Apply this policy file to the development delivery pipeline.
Question #87Part 2Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloadsSelect 2

You are reviewing a deployment pipeline in Google Cloud Deploy. You need to reduce pipeline toil and minimize the time required to complete an end-to-end deployment. What should you do? (Choose two.)

ACreate a trigger to notify the required team to complete the next step when manual intervention is required.
BDivide the automation steps into smaller tasks.
CUse a script to automate the creation of the deployment pipeline in Google Cloud Deploy.
DAdd more engineers to finish the manual steps.
EAutomate promotion approvals from the development environment to the test environment.
Question #88Part 2Implementing observability practices and troubleshooting issues

Your team is designing a new application to deploy in Google Kubernetes Engine (GKE). You must configure monitoring to collect and aggregate various application-level metrics in a central location. You want to use Google Cloud Platform services while minimizing the effort needed to set up monitoring. What should you do?

APublish various metrics from the application directly to the Stackdriver Monitoring API, and then observe these custom metrics in Stackdriver.
BInstall the Cloud Pub/Sub client libraries, push various metrics from the application to various topics, and then observe the aggregated metrics in Stackdriver.
CInstall the OpenTelemetry client libraries in the application, configure Stackdriver as the export destination for the metrics, and then observe the application's metrics in Stackdriver.
DEmit all metrics in the form of application-specific log messages, pass these messages from the containers to the Stackdriver logging collector, and then observe metrics in Stackdriver.
Question #89Part 2Implementing observability practices and troubleshooting issues

You support a high-traffic web application and want to ensure the home page loads within a timely period. As an initial step, you decide to implement a Service Level Indicator (SLI) representing home page request latency, with an acceptable page-load time of 100 ms. What is Google’s recommended method for calculating this SLI?

ABucketize the request latencies into ranges, and then compute the percentile at 100 ms.
BBucketize the request latencies into ranges, and then compute the median and 90th percentiles.
CCount the number of home page requests that load in under 100 ms, and then divide by the total number of home page requests.
DCount the number of home page request that load in under 100 ms, and then divide by the total number of all web application requests.
Question #90Part 2Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

Your team of Infrastructure DevOps Engineers is growing, and you are starting to use Terraform to manage infrastructure. You need a way to implement code versioning and to share code with other team members. What should you do?

AStore the Terraform code in a version-control system. Establish procedures for pushing new versions and merging with the master.
BStore the Terraform code in a network shared folder with child folders for each version release. Ensure that everyone works on different files.
CStore the Terraform code in a Cloud Storage bucket using object versioning. Give access to the bucket to every team member so they can download the files.
DStore the Terraform code in a shared Google Drive folder so it syncs automatically to every team member's computer. Organize files with a naming convention that identifies each new version.
Question #91Part 2Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

Your company runs Jenkins on Google Cloud VM instances for CI/CD. You need to extend its functionality to use Terraform for infrastructure-as-code automation. Ensure that the Jenkins instance running Terraform is authorized to create Google Cloud resources while following Google-recommended practices. What should you do?

AConfirm that the Jenkins VM instance has an attached service account with the appropriate Identity and Access Management (IAM) permissions.
BUse the Terraform module so that Secret Manager can retrieve credentials.
CCreate a dedicated service account for the Terraform instance. Download and copy the secret key value to the GOOGLE_CREDENTIALS environment variable on the Jenkins server.
DAdd the gcloud auth application-default login command as a step in Jenkins before running the Terraform commands.
Question #92Part 2Applying site reliability engineering practices

You manage a microservice that exposes a public-facing API (Service A). Service A is time-critical and has a response SLO of 500 ms. Service A makes synchronous calls to an internal API (Service B), which is known to become unreliable under heavy load, causing connection timeout errors or 500 errors. Service B collects request information for the transactions handled by Service

AIncrease the size of the queue in front of the thread pool used by Service A instances.
BImplement retry logic with exponential back-offs when calling Service B.
CImplement a circuit breaker to store the request data in a database.
DImplement rate limiting in Service A to limit the number of requests to Service B.
Question #93Part 2Optimizing performance and cost

You are conducting a semi-annual capacity-planning exercise for your flagship service. You anticipate service-user growth of 10% month over month during the next six months. Your fully containerized service runs on Google Cloud Platform (GCP) in a Google Kubernetes Engine (GKE) Standard regional cluster spanning three zones, with cluster autoscaler enabled. You currently use approximately 30% of your total deployed CPU capacity and require resilience to the loss of a zone. You want users to experience minimal negative impact from this growth or from a zone failure, while avoiding unnecessary costs. How should you prepare for the predicted growth?

AVerify the maximum node pool size, enable a horizontal pod autoscaler, and then perform a load test to verify your expected resource needs.
BBecause you are deployed on GKE and are using a cluster autoscaler, your GKE cluster will scale automatically, regardless of growth rate.
CBecause you are at only 30% utilization, you have significant headroom and you won't need to add any additional capacity for this rate of growth.
DProactively add 60% more node capacity to account for six months of 10% growth rate, and then perform a load test to make sure you have enough capacity.
Question #94Part 2Applying site reliability engineering practices

You support a popular mobile game application that runs on Google Kubernetes Engine (GKE) across multiple Google Cloud regions, with several Kubernetes clusters in each region. You receive a report that no users in one particular region are able to connect to the application. Following Site Reliability Engineering (SRE) practices, what should you do first to resolve this incident?

AReroute the user traffic from the affected region to other regions that don't report issues.
BUse Stackdriver Monitoring to check for a spike in CPU or memory usage for the affected region.
CAdd an extra node pool that consists of high memory and high CPU machine type instances to the cluster.
DUse Stackdriver Logging to filter on the clusters in the affected region, and inspect error messages in the logs.
Question #95Part 2Applying site reliability engineering practices

You have an application deployed on Cloud Run. A new application version was recently deployed with the canary deployment strategy. Your Site Reliability Engineering (SRE) teammate tells you that an SLO has been exceeded for this application. You need to restore application health as quickly as possible. What should you do first?

AConfigure traffic splitting to send 100% of the traffic to the latest revision.
BConfigure traffic splitting to send 100% of the traffic to the previous revision.
CCreate a new revision using the last known good version of the application.
DIdentify the cause of the latency by using Cloud Trace.
Question #96Part 2Implementing observability practices and troubleshooting issues

You support an e-commerce application running on a large Google Kubernetes Engine (GKE) cluster deployed on-premises and on Google Cloud Platform. The application consists of containerized microservices. You want to identify the containers using the most CPU and memory. What should you do?

AUse Stackdriver Kubernetes Engine Monitoring.
BUse Prometheus to collect and aggregate logs per container, and then analyze the results in Grafana.
CUse the Stackdriver Monitoring API to create custom metrics, and then organize your containers using groups.
DUse Stackdriver Logging to export application logs to BigQuery, aggregate logs per container, and then analyze CPU and memory consumption.
Question #97Part 2Applying site reliability engineering practices

You are responsible for a service that recently experienced an outage. The outage occurred because a new release exhausted the service's memory resources. You successfully rolled back the release to mitigate the impact on users. You are now leading the post-mortem process for this outage, and you want to follow Site Reliability Engineering (SRE) practices when writing it. What should you do?

AFocus on developing new features rather than avoiding the outages from recurring.
BFocus on identifying the contributing causes of the incident rather than the individual responsible for the cause.
CPlan individual meetings with all the engineers involved. Determine who approved and pushed the new release to production.
DUse the Git history to find the related code commit. Prevent the engineer who made that commit from working on production services.
Question #98Part 2Implementing observability practices and troubleshooting issues

Your company operates applications in Google Kubernetes Engine (GKE). Several applications depend on ephemeral volumes. You observed that some applications were unstable because of the DiskPressure node condition on worker nodes. You must identify which Pods are causing the problem, but you do not have execute access to workloads or nodes. What should you do?

ACheck the node/ephemeral_storage/used_bytes metric by using Metrics Explorer.
BCheck the container/ephemeral_storage/used_bytes metric by using Metrics Explorer.
CLocate all the Pods with emptyDir volumes. Use the df -h command to measure volume disk usage.
DLocate all the Pods with emptyDir volumes. Use the df -sh * command to measure volume disk usage.
Question #99Part 2Applying site reliability engineering practices

You experience a large number of outages in the production systems you support. You receive alerts for every outage; the alerts result from unhealthy systems that automatically restart within a minute. You want to establish a process that prevents staff burnout while following Site Reliability Engineering (SRE) practices. What should you do?

AEliminate alerts that are not actionable
BRedefine the related SLO so that the error budget is not exhausted
CDistribute the alerts to engineers in different time zones
DCreate an incident report for each of the alerts
Question #100Part 2Implementing observability practices and troubleshooting issues

You support an application running on Compute Engine. The application connects to a Cloud SQL instance to store and retrieve data. After an application update, users report errors that show database timeout messages. The number of concurrently active users has stayed stable. You need to identify the most likely cause of the database timeout. What should you do?

ACheck the serial port logs of the Compute Engine instance.
BUse Stackdriver Profiler to visualize the resources utilization throughout the application.
CDetermine whether there is an increased number of connections to the Cloud SQL instance.
DUse Cloud Security Scanner to see whether your Cloud SQL is under a Distributed Denial of Service (DDoS) attack.
Question #101Part 2Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloadsSelect 2

You are building a CI/CD pipeline in Cloud Build to create an application container image. The application code is stored in GitHub. Your company requires that production image builds run only for the main branch and that the change control team approves every push to the main branch. You want to automate the image build as much as possible. What should you do? (Choose two.)

ACreate a trigger on the Cloud Build job. Set the repository event setting to ‘Pull request’.
BAdd the OWNERS file to the Included files filter on the trigger.
CCreate a trigger on the Cloud Build job. Set the repository event setting to ‘Push to a branch’
DConfigure a branch protection rule for the main branch on the repository.
EEnable the Approval option on the trigger.
Question #102Part 2Bootstrapping and maintaining a Google Cloud organization

You work for a healthcare company, and regulations require that all resources be created in a United States-based region. You tried to create a secret in Secret Manager but received this error message: Constraint constraints/gcp.resourceLocations violated for [orgpolicy:projects/000000] attempting to create a secret in [global] You need to resolve the error while staying compliant with the regulations. What should you do?

ARemove the organization policy referenced in the error message.
BCreate the secret with an automatic replication policy.
CCreate the secret with a user-managed replication policy.
DAdd the global region to the organization policy referenced in the error message.
Question #103Part 2Implementing observability practices and troubleshooting issues

You are running an application on a virtual machine (VM) that uses a custom Debian image. The image has the Stackdriver Logging agent installed, and the VM has the cloud-platform scope. The application logs information through syslog. You want to use Stackdriver Logging in the Google Cloud Platform Console to visualize the logs. However, syslog does not appear in the **"All logs"** drop-down list of the Logs Viewer. What should you do first?

ALook for the agent's test log entry in the Logs Viewer.
BInstall the most recent version of the Stackdriver agent.
CVerify the VM service account access scope includes the monitoring.write scope.
DSSH to the VM and execute the following commands on your VM: ps ax | grep fluentd.
Question #104Part 2Implementing observability practices and troubleshooting issues

You are operating an application on Compute Engine and collecting logs with Stackdriver. You find that personally identifiable information (PII) is leaking into certain log-entry fields. Every PII entry starts with the text userinfo. You need to capture these log entries in a secure location for later review while preventing them from leaking into Stackdriver Logging. What should you do?

ACreate a basic log filter matching userinfo, and then configure a log export in the Stackdriver console with Cloud Storage as a sink.
BUse a Fluentd filter plugin with the Stackdriver Agent to remove log entries containing userinfo, and then copy the entries to a Cloud Storage bucket.
CCreate an advanced log filter matching userinfo, configure a log export in the Stackdriver console with Cloud Storage as a sink, and then configure a log exclusion with userinfo as a filter.
DUse a Fluentd filter plugin with the Stackdriver Agent to remove log entries containing userinfo, create an advanced log filter matching userinfo, and then configure a log export in the Stackdriver console with Cloud Storage as a sink.
Question #105Part 2Optimizing performance and cost

You are responsible for supporting a web application that runs on App Engine and relies on Cloud SQL and Cloud Storage for data storage. Following a brief spike in website traffic, you observe a significant increase in latency for all user requests, along with higher CPU usage and a greater number of processes running the application. Initial troubleshooting reveals the following: - After the traffic spike subsided and load levels returned to normal, users continue to experience high latency. - Requests for content from the Cloud SQL database and images from Cloud Storage exhibit the same elevated latency. - No changes were made to the website around the time the latency increase began. - There has been no increase in the number of errors experienced by users. You anticipate another spike in website traffic in the near future and want to ensure that users do not experience latency during that time. What should you do?

AUpgrade the GCS buckets to Multi-Regional.
BEnable high availability on the CloudSQL instances.
CMove the application from App Engine to Compute Engine.
DModify the App Engine configuration to have additional idle instances.
Question #106Part 2Applying site reliability engineering practicesSelect 2

Your company practices Site Reliability Engineering. You are the Incident Commander for a new incident that is affecting customers. You must immediately assign two incident-management roles to help ensure an effective incident response. Which roles should you assign? (Choose two.)

AOperations Lead
BEngineering Lead
CCommunications Lead
DCustomer Impact Assessor
EExternal Customer Communications Lead
Question #107Part 2Optimizing performance and cost

You must run a business-critical workload on a fixed group of Compute Engine instances for several months. The workload is stable and uses the exact resources allocated to it. You want to reduce this workload’s cost with no performance impact. What should you do?

APurchase Committed Use Discounts.
BMigrate the instances to a Managed Instance Group.
CConvert the instances to preemptible virtual machines.
DCreate an Unmanaged Instance Group for the instances used to run the workload.
Question #108Part 2Implementing observability practices and troubleshooting issues

You need to create a Cloud Monitoring SLO for a service that will be published soon. You want to confirm that requests to the service are handled in fewer than 300 ms at least 90% of the time per calendar month. You need to identify the metric and evaluation method to use. What should you do?

ASelect a latency metric for a request-based method of evaluation.
BSelect a latency metric for a window-based method of evaluation.
CSelect an availability metric for a request-based method of evaluation.
DSelect an availability metric for a window-based method of evaluation.
Question #109Part 2Applying site reliability engineering practices

While creating and assigning action items in a postmortem following an outage, the outage itself has been resolved, but you still need to address the underlying root causes. You want to make sure your team handles these action items quickly and efficiently. How should you assign owners and collaborators to the action items?

AAssign one owner for each action item and any necessary collaborators.
BAssign multiple owners for each item to guarantee that the team addresses items quickly.
CAssign collaborators but no individual owners to the items to keep the postmortem blameless.
DAssign the team lead as the owner for all action items because they are in charge of the SRE team.
Question #110Part 2Applying site reliability engineering practices

You are responsible for supporting a large service that has a clearly defined Service Level Objective (SLO). The development team ships new releases of this service several times per week. If a major incident occurs that causes the service to fall short of its SLO, you want the development team to redirect its efforts away from new feature work and toward improving the service's reliability. What should you do in advance, before any major incident happens?

ADevelop an appropriate error budget policy in cooperation with all service stakeholders.
BNegotiate with the product team to always prioritize service reliability over releasing new features.
CNegotiate with the development team to reduce the release frequency to no more than once a week.
DAdd a plugin to your Jenkins pipeline that prevents new releases whenever your service is out of SLO.
Question #111Part 2Implementing observability practices and troubleshooting issues

You receive a Cloud Monitoring alert that indicates possible malicious activity on a node in your Google Kubernetes Engine (GKE) cluster. The alert suggests that a container running on that node might be compromised. You must isolate the node to prevent further compromise while you investigate the issue, while also minimizing disruption to applications running in the cluster. What should you do?

ATaint the suspicious node to prevent Pods that have interacted with it from being scheduled on other nodes in the cluster
BScale down the deployment associated with the compromised container to zero other nodes
CRestart the node to disrupt the malicious activity, and force all Pods to be restructured on other nodes.
DCordon the node to prevent new Pods from being scheduled, the drain the node to safely remove existing Pods and reschedule them to other nodes.
Question #112Part 2Applying site reliability engineering practicesSelect 2

Your company is actively building a new web service using site reliability engineering (SRE) practices. You lead the company’s SRE team and are getting the service ready for production. You must ensure the team follows Google-recommended SRE practices during this productionalization process. Which two actions should you take next? (Choose two.)

AEstablish monitoring and alerting systems.
BStart to document infrastructure system guidelines.
CCollaborate with the product team to design the service.
DImplement redundancy measures.
EProvide early engagement consulting to discuss architecture and design choices in detail.
Question #113Part 2Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

Your organization operates a containerized web application on-premises. As part of its migration plan to Google Cloud, you must choose a deployment strategy and platform that satisfy these acceptance criteria: 1. The platform must be capable of routing traffic from Android devices to an Android-specific microservice. 2. The platform must support arbitrary percentage-based traffic splitting. 3. The deployment strategy must support continuous testing of multiple versions of any microservice. What should you do?

ADeploy the canary release of the application to Cloud Run. Use traffic splitting to direct 10% of user traffic to the canary release based on the revision tag.
BDeploy the canary release of the application to App Engine. Use traffic splitting to direct a subset of user traffic to the new version based on the IP address.
CDeploy the canary release of the application to Compute Engine. Use Anthos Service Mesh with Compute Engine to direct 10% of user traffic to the canary release by configuring the virtual service.
DDeploy the canary release to Google Kubernetes Engine with Anthos Service Mesh. Use traffic splitting to direct 10% of user traffic to the new version based on the user-agent header configured in the virtual service.
Question #114Part 2Implementing observability practices and troubleshooting issues

You are working on a Google Cloud project that has been in production for several months and need to update an IAM policy to give a team member additional permissions. You must proactively identify any potential risks related to these IAM policy changes before applying them to the production environment. What should you do?

AImplement the IAM policy changes. Use the recent change recommendations to monitor for any unintended consequences.
BUse the change risk recommendations to assess the potential impact of the IAM policy changes, and identify any associated risks before applying them.
CGrant the new team member the Project Owner role. Reevaluate permissions after their task is complete.
DUse the Cloud deprecation and breaking changes general recommender to assess the impact of the IAM policy changes on any potentially deprecated or soon-to-be-changed services.
Question #115Part 2Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You recently created a Cloud Build pipeline to deploy Terraform code kept in a GitHub repository. You make Terraform code changes in short-lived branches and occasionally use tags during development. When releases are ready for deployment, you tag them with a semantic version. You need the pipeline to apply the Terraform code whenever there is a new release, while minimizing operational overhead. What should you do?

ACreate a build trigger with the \d+\.\d+\.\d+ tag pattern.
BCreate a build trigger with the \d+\.\d+\.\d+ branch pattern.
CCreate a build trigger with the .* tag pattern.
DCreate a build trigger with the .* branch pattern.
Question #116Part 2Bootstrapping and maintaining a Google Cloud organization

Your organization uses Helm to package containerized applications. Its applications reference both public and private charts. The security team has identified use of a public Helm repository as a risk. You want to manage every chart consistently, with native access control and VPC Service Controls. What should you do?

AStore public and private charts in OCI format by using Artifact Registry.
BStore public and private charts by using GitHub Enterprise with Google Workspace as the identity provider.
CStore public and private charts by using Git repository. Configure Cloud Build to synchronize contents of the repository into a Cloud Storage bucket. Connect Helm to the bucket by using https://[bucket].storage-googleapis.com/[helmchart] as the Helm repository.
DConfigure a Helm chart repository server to run in Google Kubernetes Engine (GKE) with Cloud Storage bucket as the storage backend.
Question #117Part 2Optimizing performance and cost

You are building applications that run on Google Kubernetes Engine (GKE), with each team responsible for a different application. You need to set up Development and Production environments for every team while keeping costs as low as possible. Teams must not be able to access the environments belonging to other teams. What should you do?

ACreate one GCP Project per team. In each project, create a cluster for Development and one for Production. Grant the teams IAM access to their respective clusters.
BCreate one GCP Project per team. In each project, create a cluster with a Kubernetes namespace for Development and one for Production. Grant the teams IAM access to their respective clusters.
CCreate a Development and a Production GKE cluster in separate projects. In each cluster, create a Kubernetes namespace per team, and then configure Identity Aware Proxy so that each team can only access its own namespace.
DCreate a Development and a Production GKE cluster in separate projects. In each cluster, create a Kubernetes namespace per team, and then configure Kubernetes Role-based access control (RBAC) so that each team can only access its own namespace.
Question #118Part 2Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You are designing a CI/CD pipeline that deploys a containerized application from your GitHub repository to Artifact Registry. The build process must trigger whenever a new tag is created. The build requires approval from the [email protected] Google group. To satisfy your company’s security requirements, you must avoid static credentials and federation with any other system. How should you configure the CI/CD pipeline?

A1. Create a GitHub trigger in Cloud Build to execute a build whenever a new tag is created.2. Create a Cloud Build approval.3. Grant the roles/cloudbuild.builds.approver role to the [email protected] Google group, and grant the roles/artifactregistry.writer role to the service account used by the trigger.
B1. Use GitHub Actions to create a workflow to containerize the application and push the container to Artifact Registry when a new tag is created.2. Create a GitHub team with the same members as the [email protected] Google group, and add the team as a mandatory approval.3. On the Google Cloud project, create a service account and a service account key.4. Use the key on the workflow to authenticate with Google Cloud.5. Grant the roles/artifactregistry.writer role to the service account.
C1. Create an SSH key and add it as a deploy key on GitHub.2. Create a Cloud Build trigger that uses the SSH key to pull the repository.3. Create a Cloud Build approval.4. Grant the roles/cloudbuild.builds.editor role to the [email protected] Google group, and grant the roles/artifactregistry.writer role to the service account used by the trigger.
D1. Use GitHub Actions to create a workflow to containerize the application and push the container to Artifact Registry when a new tag is created.2. Create a GitHub team with the same members as the [email protected] Google group, and add the team as a mandatory approval.3. Create a workload identity pool on Google Cloud to authorize the identity of the GitHub workflow.4. Grant the roles/artifactregistry.writer role to the workload identity pool authorized entity.
Question #119Part 2Building and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

You have an application running in production on Cloud Run. Your team has recently completed development of a new application version (revision B). You want to test the new revision with 10% of your clients while using the least effort. What should you do?

ADeploy the new revision to the existing service without traffic allocated. Tag the revision and share the URL with 10% of your clients.
BCreate a new service, and deploy the new revisions on the new service. Deploy a new revision of the old application where the application routes a percentage of the traffic to the new service.
CCreate a new service, and deploy the new revision on that new service. Create a load balancer to split the traffic between the old service and the new service.
DDeploy the new revision to the existing service without traffic allocated. Split the traffic between the old revision and the new revision.
Question #120Part 2Implementing observability practices and troubleshooting issues

You are rolling out a new version of your application to a multi-zone Google Kubernetes Engine (GKE) cluster. The deployment is progressing smoothly, but some Pods in one specific zone are showing higher error rates. You need to selectively revert the update for the Pods with errors while minimizing user impact. What should you do?

AScale down the Pods in the affected zone. Redeploy the new version of the application.
BDrain the affected nodes. Redeploy the new version of the application to the remaining nodes.
CModify the Deployment to use the Pod template from the previous version of your application. Perform a rolling update to replace the Pods in the affected zone.
DUse the kubectl rollout undo command to roll back the entire deployment. Redeploy the new version of the application, excluding the affected zone.

📢 Unlock Full Access to Success!

"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."

👉 Click the button and follow the instructions to secure your full access immediately!