Practice Free Professional Cloud DevOps Engineer Exam Online Questions
You are responsible for creating and modifying the Terraform templates that define your Infrastructure. Because two new engineers will also be working on the same code, you need to define a process and adopt a tool that will prevent you from overwriting each other’s code. You also want to ensure that you capture all updates in the latest version.
What should you do?
- A . • Store your code in a Git-based version control system.
• Establish a process that allows developers to merge their own changes at the end of each day.
• Package and upload code lo a versioned Cloud Storage bucket as the latest master version. - B . • Store your code in a Git-based version control system.
• Establish a process that includes code reviews by peers and unit testing to ensure integrity and functionality before integration of code.
• Establish a process where the fully integrated code in the repository becomes the latest master version. - C . • Store your code as text files in Google Drive in a defined folder structure that organizes the files.
• At the end of each day. confirm that all changes have been captured in the files within the folder structure.
• Rename the folder structure with a predefined naming convention that increments the version. - D . • Store your code as text files in Google Drive in a defined folder structure that organizes the files.
• At the end of each day, confirm that all changes have been captured in the files within the folder structure and create a new .zip archive with a predefined naming convention.
• Upload the .zip archive to a versioned Cloud Storage bucket and accept it as the latest version.
You want to share a Cloud Monitoring custom dashboard with a partner team.
What should you do?
- A . Provide the partner team with the dashboard URL to enable the partner team to create a copy of the dashboard
- B . Export the metrics to BigQuery Use Looker Studio to create a dashboard, and share the dashboard with the partner team
- C . Copy the Monitoring Query Language (MQL) query from the dashboard; and send the MQL query to the partner team
- D . Download the JSON definition of the dashboard, and send the JSON file to the partner team
You manage an application that runs in Google Kubernetes Engine (GKE) and uses the blue/green deployment methodology.
Extracts of the Kubernetes manifests are shown below:
The Deployment app-green was updated to use the new version of the application During post-deployment monitoring you notice that the majority of user requests are failing You did not observe this behavior in the testing environment You need to mitigate the incident impact on users and enable the developers to troubleshoot the issue.
What should you do?
- A . Update the Deployment app-blue to use the new version of the application
- B . Update the Deployment ape-green to use the previous version of the application
- C . Change the selector on the Service app-2vc to app: my-app.
- D . Change the selector on the Service app-svc to app: my-app, version: blue
Your company has recently experienced several production service issues. You need to create a Cloud Monitoring dashboard to troubleshoot the issues, and you want to use the dashboard to distinguish between failures in your own service and those caused by a Google Cloud service that you use.
What should you do?
- A . Enable Personalized Service Health annotations on the dashboard.
- B . Create an alerting policy for the system error metrics.
- C . Create a log-based metric to track cloud service errors, and display the metric on the dashboard.
- D . Create a logs widget to display system errors from Cloud Logging on the dashboard.
You are part of an organization that follows SRE practices and principles. You are taking over the management of a new service from the Development Team, and you conduct a Production Readiness Review (PRR). After the PRR analysis phase, you determine that the service cannot currently meet its Service Level Objectives (SLOs). You want to ensure that the service can meet its SLOs in production.
What should you do next?
- A . Adjust the SLO targets to be achievable by the service so you can bring it into production.
- B . Notify the development team that they will have to provide production support for the service.
- C . Identify recommended reliability improvements to the service to be completed before handover.
- D . Bring the service into production with no SLOs and build them when you have collected operational data.
You support a Node.js application running on Google Kubernetes Engine (GKE) in production. The application makes several HTTP requests to dependent applications. You want to anticipate which dependent applications might cause performance issues.
What should you do?
- A . Instrument all applications with Stackdriver Profiler.
- B . Instrument all applications with Stackdriver Trace and review inter-service HTTP requests.
- C . Use Stackdriver Debugger to review the execution of logic within each application to instrument all applications.
- D . Modify the Node.js application to log HTTP request and response times to dependent applications. Use Stackdriver Logging to find dependent applications that are performing poorly.
You are designing a system with three different environments: development, quality assurance (QA), and production.
Each environment will be deployed with Terraform and has a Google Kubemetes Engine (GKE) cluster created so that application teams can deploy their applications. Anthos Config Management will be used and templated to deploy infrastructure level resources in each GKE cluster. All users (for example, infrastructure operators and application owners) will use GitOps.
How should you structure your source control repositories for both Infrastructure as Code (laC) and application code?
- A . Cloud Infrastructure (Terraform) repository is shared: different directories are different environmentsGKE Infrastructure (Anthos Config Management Kustomize manifests) repository is shared: differentoverlay directories are different environmentsApplication (app source code) repositories are separated: different branches are different features
- B . Cloud Infrastructure (Terraform) repository is shared: different directories are different environmentsGKE Infrastructure (Anthos Config Management Kustomize manifests) repositories are separated:different branches are different environmentsApplication (app source code) repositories are separated: different branches are different features
- C . Cloud Infrastructure (Terraform) repository is shared: different branches are different environmentsGKE Infrastructure (Anthos Config Management Kustomize manifests) repository is shared: differentoverlay directories are different environmentsApplication (app source code) repository is shared: different directories are different features
- D . Cloud Infrastructure (Terraform) repositories are separated: different branches are different environmentsGKE Infrastructure (Anthos Config Management Kustomize manifests) repositories are separated:different overlay directories are different environmentsApplication (app source code) repositories are separated: different branches are different features
You have migrated an e-commerce application to Google Cloud Platform (GCP). You want to prepare the application for the upcoming busy season.
What should you do first to prepare for the busy season?
- A . Load teat the application to profile its performance for scaling.
- B . Enable AutoScaling on the production clusters, in case there is growth.
- C . Pre-provision double the compute power used last season, expecting growth.
- D . Create a runbook on inflating the disaster recovery (DR) environment if there is growth.
Some of your production services are running in Google Kubernetes Engine (GKE) in the eu-west-1 region. Your build system runs in the us-west-1 region. You want to push the container images from your build system to a scalable registry to maximize the bandwidth for transferring the images to the cluster.
What should you do?
- A . Push the images to Google Container Registry (GCR) using the gcr.io hostname.
- B . Push the images to Google Container Registry (GCR) using the us.gcr.io hostname.
- C . Push the images to Google Container Registry (GCR) using the eu.gcr.io hostname.
- D . Push the images to a private image registry running on a Compute Engine instance in the eu-west-1 region.
Your application images are built and pushed to Google Container Registry (GCR). You want to build an automated pipeline that deploys the application when the image is updated while minimizing the development effort.
What should you do?
- A . Use Cloud Build to trigger a Spinnaker pipeline.
- B . Use Cloud Pub/Sub to trigger a Spinnaker pipeline.
- C . Use a custom builder in Cloud Build to trigger a Jenkins pipeline.
- D . Use Cloud Pub/Sub to trigger a custom deployment service running in Google Kubernetes Engine (GKE).