Google Cloud DevOps Engineer

Google Professional-Cloud-DevOps-Engineer Exam Dumps

Google Cloud Certified - Professional Cloud DevOps Engineer Exam

Exam code
Professional-Cloud-DevOps-Engineer
Questions
201
Updated
25 Nov 2026
  • Instant access from My Account after payment
  • 90 days of free updates
  • Money-back guarantee – see conditions
  • Help by live chat or email
Choose a format
Try free sample questions

Prices in USD. Downloads appear in My Account once your order is complete.

  • Instant access from My Account after payment
  • 90 days of free updates
  • Money-back guarantee – see conditions
  • Help by live chat or email
Free demo

Professional-Cloud-DevOps-Engineer sample questions

Check the style and quality of the material before you buy.

Question 1

The new version of your containerized application has been tested and is ready to be deployed to production on Google Kubernetes Engine (GKE) You could not fully load-test the new version in your pre-production environment and you need to ensure that the application does not have performance problems after deployment Your deployment must be automated What should you do? 

  • A. Deploy the application through a continuous delivery pipeline by using canary deployments Use Cloud Monitoring to look for performance issues, and ramp up traffic as supported by the metrics
  • B. Deploy the application through a continuous delivery pipeline by using blue/green deployments Migrate traffic to the new version of the application and use Cloud Monitoring to look for performance issues
  • C. Deploy the application by using kubectl and use Config Connector to slowly ramp up traffic between versions. Use Cloud Monitoring to look for performance issues
  • D. Deploy the application by using kubectl and set the spec. updatestrategy. type field to RollingUpdate Use Cloud Monitoring to look for performance issues, and run the kubectl rollback command if there are any issues.

Answer: A

Explanation

The best option for deploying a new version of your containerized application to production on GKE and ensuring that the application does not have performance problems after deployment is to deploy the application through a continuous delivery pipeline by using canary deployments, use Cloud Monitoring to look for performance issues, and ramp up traffic as supported by the metrics. A canary deployment is a deployment strategy that involves releasing a new version of an application to a subset of users or servers and monitoring its performance and reliability. This way, you can test the new version in the production environment with real traffic and load, and gradually increase the traffic as the metrics indicate. You can use Cloud Monitoring to collect and analyze metrics from your application and GKE cluster, such as latency, error rate, CPU utilization, and memory usage. You can also use Cloud Monitoring to set up alerts and dashboards to track the performance of your application.

Question 2

Your company is developing applications that are deployed on Google Kubernetes Engine (GKE) Each team manages a different application You need to create the development and production environments for each team while you minimize costs Different teams should not be able to access other teams environments You want to follow Google-recommended practices What should you do?

  • A. Create one Google Cloud project per team In each project create a cluster for development and one for production Grant the teams Identity and Access Management (1AM) access to their respective clusters
  • B. Create one Google Cloud project per team In each project create a cluster with a Kubernetes namespace for development and one for production Grant the teams Identity and Access Management (1AM) access to their respective clusters
  • C. Create 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
  • D. Create 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

Answer: D

Explanation

The best option for creating the development and production environments for each team while minimizing costs and ensuring isolation is to create 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. This option allows you to use fewer clusters and projects than creating one project or cluster per team, which reduces costs and complexity. It also allows you to isolate each teams environment by using namespaces and RBAC, which prevents teams from accessing other teams environments.

Question 3

You need to 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 to run all your tests in the pipeline for any new versions of the application to improve the quality What should you do? 

  • A. 1. 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
  • B. 1. 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
  • C. 1. 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
  • D. 1. 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 

Answer: D

Explanation

The best option for building a CI/CD pipeline for a containerized application in Google Cloud is to 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, trigger Cloud Build to deploy the container to a testing environment, and run integration tests and acceptance tests, and if all tests are successful, the pipeline deploys the application to the production environment and runs smoke tests. This option follows the best practices for CI/CD pipelines, such as running tests at different stages of the pipeline, using a central registry for storing and managing containers, deploying to different environments, and using Cloud Build as a unified tool for building, testing, and deploying.

Question 4

Your company runs services by using multiple globally distributed Google Kubernetes Engine (GKE) clusters Your operations team has set up workload monitoring that uses Prometheus-based tooling for metrics alerts: and generating dashboards This setup does not provide a method to view metrics globally across all clusters You need to implement a scalable solution to support global Prometheus querying and minimize management overhead What should you do?

  • A. Configure Prometheus cross-service federation for centralized data access 
  • B. Configure workload metrics within Cloud Operations for GKE 
  • C. Configure Prometheus hierarchical federation for centralized data access 
  • D. Configure Google Cloud Managed Service for Prometheus 

Answer: D

Explanation

The best option for implementing a scalable solution to support global Prometheus querying and minimize management overhead is to use Google Cloud Managed Service for Prometheus. Google Cloud Managed Service for Prometheus is a fully managed service that allows you to collect, query, and visualize metrics from your GKE clusters using Prometheus-based tooling. You can use Google Cloud Managed Service for Prometheus to query metrics across multiple clusters and regions using a global view. You can also use Google Cloud Managed Service for Prometheus to integrate with other Google Cloud services, such as Cloud Monitoring, Cloud Logging, and BigQuery. By using Google Cloud Managed Service for Prometheus, you can avoid managing and scaling your own Prometheus servers and focus on your application performance.

Question 5

You deployed an application into a large Standard Google Kubernetes Engine (GKE) cluster. Theapplication is stateless and multiple pods run at the same time. Your application receivesinconsistent traffic. You need to ensure that the user experience remains consistent regardless ofchanges in traffic. and that the resource usage of the cluster is optimized.What should you do?

  • A. Configure a cron job to scale the deployment on a schedule.
  • B. Configure a Horizontal Pod Autoscaler.
  • C. Configure a Vertical Pod Autoscaler.
  • D. Configure cluster autoscaling on the node pool.

Answer: B

Question 6

You are analyzing Java applications in production. All applications have Cloud Profiler and CloudTrace installed and configured by default. You want to determine which applications needperformance tuning. What should you do?Choose 2 answers

  • A. Examine the wall-clock time and the CPU time Of the application. If the difference is substantial,increase the CPU resource allocation.
  • B. Examine the wall-clock time and the CPU time of the application. If the difference is substantial,increase the memory resource allocation.
  • C. 17 Examine the wall-clock time and the CPU time of the application. If the difference is substantial,increase the local disk storage allocation.
  • D. O Examine the latency time, the wall-clock time, and the CPU time of the application. If thelatency time is slowly burning down the error budget, and the difference between wall-clock timeand CPU time is minimal, mark the application for optimization.
  • E. Examine the heap usage Of the application. If the usage is low, mark the application foroptimization.

Answer: AD

Explanation

The correct answers are A and D) Examine the wall-clock time and the CPU time of the application. If the difference is substantial, increase the CPU resource allocation. This is a good way to determine if the application is CPUbound, meaning that it spends more time waiting for the CPU than performing actual computation. Increasing the CPU resource allocation can improve the performance of CPU-bound applications1. Examine 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. This is a good way to determine if the application is I/O-bound, meaning that it spends more time waiting for input/output operations than performing actual computation. Increasing the CPU resource allocation will not help I/O-bound applications, and they may need optimization to reduce the number or duration of I/O operations2. Answer B is incorrect because increasing the memory resource allocation will not help if the application is CPU-bound or I/O-bound. Memory allocation affects how much data the application can store and access in memory, but it does not affect how fast the application can process that data. Answer C is incorrect because increasing the local disk storage allocation will not help if the application is CPU-bound or I/O-bound. Disk storage affects how much data the application can store and access on disk, but it does not affect how fast the application can process that data. Answer E is incorrect because examining the heap usage of the application will not help to determine if the application needs performance tuning. Heap usage affects how much memory the application allocates for dynamic objects, but it does not affect how fast the application can process those objects. Moreover, low heap usage does not necessarily mean that the application is inefficient or unoptimized.

Question 7

You are creating Cloud Logging sinks to export log entries from Cloud Logging to BigQuery for future 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 for development projects must be exported to dev_dataset. and log entries for production projects must be exported to prod_dataset You need to minimize the number of log sinks created and you want to ensure that the log sinks apply to future projects What should you do?

  • A. Create a single aggregated log sink at the organization level. 
  • B. Create a log sink in each project 
  • C. Create two aggregated log sinks at the organization level, and filter by project ID 
  • D. Create an aggregated Iog sink in the Dev and Prod folders 

Answer: D

Explanation

The best option for minimizing the number of log sinks created and ensuring that the log sinks apply to future projects is to create an aggregated log sink in the Dev and Prod folders. An aggregated log sink is a log sink that collects logs from multiple sources, such as projects, folders, or organizations. By creating an aggregated log sink in each folder, you can export log entries for development projects to dev_dataset and log entries for production projects to prod_dataset. You can also use filters to specify which logs you want to export. Additionally, by creating an aggregated log sink at the folder level, you can ensure that the log sink applies to future projects that are created under that folder.

Question 8

You are using Terraform to manage infrastructure as code within a Cl/CD pipeline You notice that multiple copies of the entire infrastructure stack exist in your Google Cloud project, and a new copy is created each time a change to the existing infrastructure is made You need to optimize your cloud spend by ensuring that only a single instance of your infrastructure stack exists at a time. You want to follow Google-recommended practices What should you do?

  • A. Create a new pipeline to delete old infrastructure stacks when they are no longer needed 
  • B. Confirm that the pipeline is storing and retrieving the terraform. if state file from Cloud Storage with the Terraform gcs backend
  • C. Verify that the pipeline is storing and retrieving the terrafom.tfstat* file from a source control 
  • D. Update the pipeline to remove any existing infrastructure before you apply the latest configuration 

Answer: B

Explanation

The best option for optimizing your cloud spend by ensuring that only a single instance of your infrastructure stack exists at a time is to confirm that the pipeline is storing and retrieving the terraform.tfstate file from Cloud Storage with the Terraform gcs backend. The terraform.tfstate file is a file that Terraform uses to store the current state of your infrastructure. The Terraform gcs backend is a backend type that allows you to store the terraform.tfstate file in a Cloud Storage bucket. By using the Terraform gcs backend, you can ensure that your pipeline has access to the latest state of your infrastructure and avoid creating multiple copies of the entire infrastructure stack

Question 9

Your uses Jenkins running on Google Cloud VM instances for CI/CD. You need to extend thefunctionality to use infrastructure as code automation by using Terraform. You must ensure that theTerraform Jenkins instance is authorized to create Google Cloud resources. You want to followGoogle-recommended practices- What should you do?

  • A. Add the auth application-default command as a step in Jenkins before running the Terraformcommands.
  • B. Create a dedicated service account for the Terraform instance. Download and copy the secret keyvalue to the GOOGLE environment variable on the Jenkins server
  • C. Confirm that the Jenkins VM instance has an attached service account with the appropriateIdentity and Access Management (IAM) permissions
  • D. use the Terraform module so that Secret Manager can retrieve credentials.

Answer: C

Explanation

The correct answer is C) Confirming that the Jenkins VM instance has an attached service account with the appropriate Identity and Access Management (IAM) permissions is the best way to ensure that the Terraform Jenkins instance is authorized to create Google Cloud resources. This follows the Googlerecommended practice of using service accounts to authenticate and authorize applications running on Google Cloud1. Service accounts are associated with private keys that can be used to generate access tokens for Google Cloud APIs2. By attaching a service account to the Jenkins VM instance, Terraform can use the Application Default Credentials (ADC) strategy to automatically find and use the service account credentials3. Answer A is incorrect because the auth application-default command is used to obtain user credentials, not service account credentials. User credentials are not recommended for applications running on Google Cloud, as they are less secure and less scalable than service account credentials1. Answer B is incorrect because it involves downloading and copying the secret key value of the service account, which is not a secure or reliable way of managing credentials. The secret key value should be kept private and not exposed to any other system or user2. Moreover, setting the GOOGLE environment variable on the Jenkins server is not a valid way of providing credentials to Terraform. Terraform expects the credentials to be either in a file pointed by the GOOGLE_APPLICATION_CREDENTIALS environment variable, or in a provider block with the credentials argument3. Answer D is incorrect because it involves using the Terraform module for Secret Manager, which is a service that stores and manages sensitive data such as API keys, passwords, and certificates. While Secret Manager can be used to store and retrieve credentials, it is not necessary or sufficient for authorizing the Terraform Jenkins instance. The Terraform Jenkins instance still needs a service account with the appropriate IAM permissions to access Secret Manager and other Google Cloud resources.

Question 10

Your CTO has asked you to implement a postmortem policy on every incident for internal use. Youwant to define what a good postmortem is to ensure that the policy is successful at your company.What should you do?Choose 2 answers

  • A. Ensure that all postmortems include what caused the incident, identify the person or teamresponsible for causing the incident. and how to prevent a future occurrence of the incident.
  • B. Ensure that all postmortems include what caused the incident, how the incident could have beenworse, and how to prevent a future occurrence of the incident.
  • C. Ensure that all postmortems include the severity of the incident, how to prevent a futureoccurrence of the incident. and what caused the incident without naming internal systemcomponents.
  • D. Ensure that all postmortems include how the incident was resolved and what caused the incidentwithout naming customer information.
  • E. Ensure that all postmortems include all incident participants in postmortem authoring and sharepostmortems as widely as possible,

Answer: BE

Explanation

The correct answers are B and E A good postmortem should include what caused the incident, how the incident could have been worse, and how to prevent a future occurrence of the incident1. This helps to identify the root cause of the problem, the impact of the incident, and the actions to take to mitigate or eliminate the risk of recurrence. A good postmortem should also include all incident participants in postmortem authoring and share postmortems as widely as possible2. This helps to foster a culture of learning and collaboration, as well as to increase the visibility and accountability of the incident response process. Answer A is incorrect because it assigns blame to a person or team, which goes against the principle of blameless postmortems2. Blameless postmortems focus on finding solutions rather than pointing fingers, and encourage honest and constructive feedback without fear of punishment. Answer C is incorrect because it omits how the incident could have been worse, which is an important factor to consider when evaluating the severity and impact of the incident1. It also avoids naming internal system components, which makes it harder to understand the technical details and root cause of the problem. Answer D is incorrect because it omits how to prevent a future occurrence of the incident, which is the main goal of a postmortem1. It also avoids naming customer information, which may be relevant for understanding the impact and scope of the incident.

Why Dumpsforsure is the best choice for Google Professional-Cloud-DevOps-Engineer exam preparation

Secure your position in a competitive IT industry

The Google Professional-Cloud-DevOps-Engineer certification is a strong way to demonstrate your understanding and ability. Our Professional-Cloud-DevOps-Engineer questions & answers help you prepare for it, so you can secure your current position and move your career forward.

Reviewed by IT professionals

We keep our Professional-Cloud-DevOps-Engineer exam dumps up to date, with explanations. The questions and answers on Dumpsforsure are reviewed by people with professional experience of Google technologies.

One place to prepare

Dumpsforsure brings together the material you need for the Google Professional-Cloud-DevOps-Engineer exam. Explanations are added to the questions to help you understand the logic behind them and prepare for other Google exams.

Updated Professional-Cloud-DevOps-Engineer questions & answers

We update the exam files regularly to add new questions. The date of the latest update is shown at the top of this page.

Free Professional-Cloud-DevOps-Engineer demo before you buy

You can view sample Professional-Cloud-DevOps-Engineer questions on this page before buying, to see the format and pattern of the material.

90 days of free updates

You are eligible for 90 days of free updates after buying the Professional-Cloud-DevOps-Engineer exam. If the file is updated in that time, you can download the latest version from your account.

Ready to prepare?

Google Professional-Cloud-DevOps-Engineer · 201 questions

Choose a format