Labour Day Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exams65

Google Cloud Certified - Professional Cloud DevOps Engineer Exam Question and Answers

Google Cloud Certified - Professional Cloud DevOps Engineer Exam

Last Update Apr 29, 2024
Total Questions : 162

We are offering FREE Professional-Cloud-DevOps-Engineer Google exam questions. All you do is to just go and sign up. Give your details, prepare Professional-Cloud-DevOps-Engineer free exam questions and then go for complete pool of Google Cloud Certified - Professional Cloud DevOps Engineer Exam test questions that will help you more.

Professional-Cloud-DevOps-Engineer pdf

Professional-Cloud-DevOps-Engineer PDF

$35  $99.99
Professional-Cloud-DevOps-Engineer Engine

Professional-Cloud-DevOps-Engineer Testing Engine

$42  $119.99
Professional-Cloud-DevOps-Engineer PDF + Engine

Professional-Cloud-DevOps-Engineer PDF + Testing Engine

$56  $159.99
Questions 1

You support a user-facing web application. When analyzing the application’s error budget over the previous six months, you notice that the application has never consumed more than 5% of its error budget in any given time window. You hold a Service Level Objective (SLO) review with business stakeholders and confirm that the SLO is set appropriately. You want your application’s SLO to more closely reflect its observed reliability. What steps can you take to further that goal while balancing velocity, reliability, and business needs? (Choose two.)

Options:

A.  

Add more serving capacity to all of your application’s zones.

B.  

Have more frequent or potentially risky application releases.

C.  

Tighten the SLO match the application’s observed reliability.

D.  

Implement and measure additional Service Level Indicators (SLIs) fro the application.

E.  

Announce planned downtime to consume more error budget, and ensure that users are not depending on a tighter SLO.

Discussion 0
Questions 2

You use Cloud Build to build and deploy your application. You want to securely incorporate database credentials and other application secrets into the build pipeline. You also want to minimize the development effort. What should you do?

Options:

A.  

Create a Cloud Storage bucket and use the built-in encryption at rest. Store the secrets in the bucket and grant Cloud Build access to the bucket.

B.  

Encrypt the secrets and store them in the application repository. Store a decryption key in a separate repository and grant Cloud Build access to the repository.

C.  

Use client-side encryption to encrypt the secrets and store them in a Cloud Storage bucket. Store a decryption key in the bucket and grant Cloud Build access to the bucket.

D.  

Use Cloud Key Management Service (Cloud KMS) to encrypt the secrets and include them in your Cloud Build deployment configuration. Grant Cloud Build access to the KeyRing.

Discussion 0
Questions 3

You manage several production systems that run on Compute Engine in the same Google Cloud Platform (GCP) project. Each system has its own set of dedicated Compute Engine instances. You want to know how must it costs to run each of the systems. What should you do?

Options:

A.  

In the Google Cloud Platform Console, use the Cost Breakdown section to visualize the costs per system.

B.  

Assign all instances a label specific to the system they run. Configure BigQuery billing export and query costs per label.

C.  

Enrich all instances with metadata specific to the system they run. Configure Stackdriver Logging to export to BigQuery, and query costs based on the metadata.

D.  

Name each virtual machine (VM) after the system it runs. Set up a usage report export to a Cloud Storage bucket. Configure the bucket as a source in BigQuery to query costs based on VM name.

Discussion 0
Questions 4

Your company experiences bugs, outages, and slowness in its production systems. Developers use the production environment for new feature development and bug fixes. Configuration and experiments are done in the production environment, causing outages for users. Testers use the production environment for load testing, which often slows the production systems. You need to redesign the environment to reduce the number of bugs and outages in production and to enable testers to load test new features. What should you do?

Options:

A.  

Create an automated testing script in production to detect failures as soon as they occur.

B.  

Create a development environment with smaller server capacity and give access only to developers and testers.

C.  

Secure the production environment to ensure that developers can't change it and set up one controlled update per year.

D.  

Create a development environment for writing code and a test environment for configurations, experiments, and load testing.

Discussion 0
Questions 5

You need to run a business-critical workload on a fixed set of Compute Engine instances for several months. The workload is stable with the exact amount of resources allocated to it. You want to lower the costs for this workload without any performance implications. What should you do?

Options:

A.  

Purchase Committed Use Discounts.

B.  

Migrate the instances to a Managed Instance Group.

C.  

Convert the instances to preemptible virtual machines.

D.  

Create an Unmanaged Instance Group for the instances used to run the workload.

Discussion 0
Questions 6

You use Cloud Build to build your application. You want to reduce the build time while minimizing cost and development effort. What should you do?

Options:

A.  

Use Cloud Storage to cache intermediate artifacts.

B.  

Run multiple Jenkins agents to parallelize the build.

C.  

Use multiple smaller build steps to minimize execution time.

D.  

Use larger Cloud Build virtual machines (VMs) by using the machine-type option.

Discussion 0
Questions 7

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

Options:

A.  

Use Stackdriver Kubernetes Engine Monitoring.

B.  

Use Prometheus to collect and aggregate logs per container, and then analyze the results in Grafana.

C.  

Use the Stackdriver Monitoring API to create custom metrics, and then organize your containers using groups.

D.  

Use Stackdriver Logging to export application logs to BigOuery. aggregate logs per container, and then analyze CPU and memory consumption.

Discussion 0
Questions 8

You have a CI/CD pipeline that uses Cloud Build to build new Docker images and push them to Docker Hub. You use Git for code versioning. After making a change in the Cloud Build YAML configuration, you notice that no new artifacts are being built by the pipeline. You need to resolve the issue following Site Reliability Engineering practices. What should you do?

Options:

A.  

Disable the CI pipeline and revert to manually building and pushing the artifacts.

B.  

Change the CI pipeline to push the artifacts to Container Registry instead of Docker Hub.

C.  

Upload the configuration YAML file to Cloud Storage and use Error Reporting to identify and fix the issue.

D.  

Run a Git compare between the previous and current Cloud Build Configuration files to find and fix the bug.

Discussion 0
Questions 9

You are deploying an application that needs to access sensitive information. You need to ensure that this information is encrypted and the risk of exposure is minimal if a breach occurs. What should you do?

Options:

A.  

Store the encryption keys in Cloud Key Management Service (KMS) and rotate the keys frequently

B.  

Inject the secret at the time of instance creation via an encrypted configuration management system.

C.  

Integrate the application with a Single sign-on (SSO) system and do not expose secrets to the application

D.  

Leverage a continuous build pipeline that produces multiple versions of the secret for each instance of the application.

Discussion 0
Questions 10

Your organization recently adopted a container-based workflow for application development. Your team develops numerous applications that are deployed continuously through an automated build pipeline to the production environment. A recent security audit alerted your team that the code pushed to production could contain vulnerabilities and that the existing tooling around virtual machine (VM) vulnerabilities no longer applies to the containerized environment. You need to ensure the security and patch level of all code running through the pipeline. What should you do?

Options:

A.  

Set up Container Analysis to scan and report Common Vulnerabilities and Exposures.

B.  

Configure the containers in the build pipeline to always update themselves before release.

C.  

Reconfigure the existing operating system vulnerability software to exist inside the container.

D.  

Implement static code analysis tooling against the Docker files used to create the containers.

Discussion 0
Questions 11

You support a production service that runs on a single Compute Engine instance. You regularly need to spend time on recreating the service by deleting the crashing instance and creating a new instance based on the relevant image. You want to reduce the time spent performing manual operations while following Site Reliability Engineering principles. What should you do?

Options:

A.  

File a bug with the development team so they can find the root cause of the crashing instance.

B.  

Create a Managed Instance Group with a single instance and use health checks to determine the system status.

C.  

Add a Load Balancer in front of the Compute Engine instance and use health checks to determine the system status.

D.  

Create a Stackdriver Monitoring dashboard with SMS alerts to be able to start recreating the crashed instance promptly after it has crashed.

Discussion 0
Questions 12

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?

Options:

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.

Discussion 0
Questions 13

Your organization stores 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 only view their respective logs, and only the operations team can view all the logs. You need to design a solution that meets the security team's requirements, while minimizing costs. What should you do?

Options:

A.  

Export 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.

B.  

Create log views for each project team, and only show each project team their application logs. Grant the operations team access to the _ Al Il-jogs View in the central logging project.

C.  

Grant each project team access to the project _ Default view in the central logging project. Grant logging viewer access to the operations team in the central logging project.

D.  

Create 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.

Discussion 0
Questions 14

You are configuring Cloud Logging for a new application that runs on a Compute Engine instance with a public IP address. A user-managed service account is attached to the instance. You confirmed that the necessary agents are running on the instance but you cannot see any log entries from the instance in Cloud Logging. You want to resolve the issue by following Google-recommended practices. What should you do?

Options:

A.  

Add the Logs Writer role to the service account.

B.  

Enable Private Google Access on the subnet that the instance is in.

C.  

Update the instance to use the default Compute Engine service account.

D.  

Export the service account key and configure the agents to use the key.

Discussion 0
Questions 15

Your team is designing a new application for deployment into Google Kubernetes Engine (GKE). You need to set up monitoring to collect and aggregate various application-level metrics in a centralized location. You want to use Google Cloud Platform services while minimizing the amount of work required to set up monitoring. What should you do?

Options:

A.  

Publish various metrics from the application directly to the Slackdriver Monitoring API, and then observe these custom metrics in Stackdriver.

B.  

Install the Cloud Pub/Sub client libraries, push various metrics from the application to various topics, and then observe the aggregated metrics in Stackdriver.

C.  

Install 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.

D.  

Emit 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.

Discussion 0
Questions 16

You support a high-traffic web application that runs on Google Cloud Platform (GCP). You need to measure application reliability from a user perspective without making any engineering changes to it. What should you do?

Choose 2 answers

Options:

A.  

Review current application metrics and add new ones as needed.

B.  

Modify the code to capture additional information for user interaction.

C.  

Analyze the web proxy logs only and capture response time of each request.

D.  

Create new synthetic clients to simulate a user journey using the application.

E.  

Use current and historic Request Logs to trace customer interaction with the application.

Discussion 0
Questions 17

You deploy a new release of an internal application during a weekend maintenance window when there is minimal user traffic. After the window ends, you learn that one of the new features isn't working as expected in the production environment. After an extended outage, you roll back the new release and deploy a fix. You want to modify your release process to reduce the mean time to recovery so you can avoid extended outages in the future. What should you do?

Choose 2 answers

Options:

A.  

Before merging new code, require 2 different peers to review the code changes.

B.  

Adopt the blue/green deployment strategy when releasing new code via a CD server.

C.  

Integrate a code linting tool to validate coding standards before any code is accepted into the repository.

D.  

Require developers to run automated integration tests on their local development environments before release.

E.  

Configure a CI server. Add a suite of unit tests to your code and have your CI server run them on commit and verify any changes.

Discussion 0
Questions 18

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?

Options:

A.  

Store the Terraform code in a version-control system. Establish procedures for pushing new versions and merging with the master.

B.  

Store the Terraform code in a network shared folder with child folders for each version release. Ensure that everyone works on different files.

C.  

Store 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.

D.  

Store 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.

Discussion 0
Questions 19

You support an application running on GCP and want to configure SMS notifications to your team for the most critical alerts in Stackdriver Monitoring. You have already identified the alerting policies you want to configure this for. What should you do?

Options:

A.  

Download and configure a third-party integration between Stackdriver Monitoring and an SMS gateway. Ensure that your team members add their SMS/phone numbers to the external tool.

B.  

Select the Webhook notifications option for each alerting policy, and configure it to use a third-party integration tool. Ensure that your team members add their SMS/phone numbers to the external tool.

C.  

Ensure that your team members set their SMS/phone numbers in their Stackdriver Profile. Select the SMS notification option for each alerting policy and then select the appropriate SMS/phone numbers from the list.

D.  

Configure a Slack notification for each alerting policy. Set up a Slack-to-SMS integration to send SMS messages when Slack messages are received. Ensure that your team members add their SMS/phone numbers to the external integration.

Discussion 0
Questions 20

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?

Options:

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.

Discussion 0
Questions 21

You are managing an application that runs in Compute Engine The application uses a custom HTTP server to expose an API that is accessed by other applications through an internal TCP/UDP load balancer A firewall rule allows access to the API port from 0.0.0-0/0. You need to configure Cloud Logging to log each IP address that accesses the API by using the fewest number of steps What should you do Bret?

Options:

A.  

Enable Packet Mirroring on the VPC

B.  

Install the Ops Agent on the Compute Engine instances.

C.  

Enable logging on the firewall rule

D.  

Enable VPC Flow Logs on the subnet

Discussion 0
Questions 22

You encountered a major service outage that affected all users of the service for multiple hours. After several hours of incident management, the service returned to normal, and user access was restored. You need to provide an incident summary to relevant stakeholders following the Site Reliability Engineering recommended practices. What should you do first?

Options:

A.  

Call individual stakeholders lo explain what happened.

B.  

Develop a post-mortem to be distributed to stakeholders.

C.  

Send the Incident State Document to all the stakeholders.

D.  

Require the engineer responsible to write an apology email to all stakeholders.

Discussion 0
Questions 23

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?

Options:

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

Discussion 0
Questions 24

You currently store the virtual machine (VM) utilization logs in Stackdriver. You need to provide an easy-to-share interactive VM utilization dashboard that is updated in real time and contains information aggregated on a quarterly basis. You want to use Google Cloud Platform solutions. What should you do?

Options:

A.  

1. Export VM utilization logs from Stackdriver to BigOuery.

2. Create a dashboard in Data Studio.

3. Share the dashboard with your stakeholders.

B.  

1. 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.

C.  

1. Export VM utilization logs (rom 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.

D.  

1. 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.

Discussion 0
Questions 25

You need to define SLOs for a high-traffic web application. Customers are currently happy with the application performance and availability. Based on current measurement, the 90th percentile Of latency is 160 ms and the 95th

percentile of latency is 300 ms over a 28-day window. What latency SLO should you publish?

Options:

A.  

90th percentile - 150 ms

95th percentile - 290 ms

B.  

90th percentile - 160 ms

95th percentile - 300 ms

C.  

90th percentile - 190 ms

95th percentile - 330 ms

D.  

90th percentile - 300 ms

95th percentile - 450 ms

Discussion 0
Questions 26

As a Site Reliability Engineer, you support an application written in GO that runs on Google Kubernetes Engine (GKE) in production. After releasing a new version Of the application, you notice the application runs for about 15 minutes and then restarts. You decide to add Cloud Profiler to your application and now notice that the heap usage grows constantly until the application restarts. What should you do?

Options:

A.  

Add high memory compute nodes to the cluster.

B.  

Increase the memory limit in the application deployment.

C.  

Add Cloud Trace to the application, and redeploy.

D.  

Increase the CPU limit in the application deployment.

Discussion 0
Questions 27

You need to create a Cloud Monitoring SLO for a service that will be published soon. You want to verify that requests to the service will be addressed 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?

Options:

A.  

Select a latency metric for a request-based method of evaluation.

B.  

Select a latency metric for a window-based method of evaluation.

C.  

Select an availability metric for a request-based method of evaluation.

D.  

Select an availability metric for a window-based method Of evaluation.

Discussion 0
Questions 28

Your organization is using Helm to package containerized applications Your applications reference both public and private charts Your security team flagged that using a public Helm repository as a dependency is a risk You want to manage all charts uniformly, with native access control and VPC Service Controls What should you do?

Options:

A.  

Store public and private charts in OCI format by using Artifact Registry

B.  

Store public and private charts by using GitHub Enterprise with Google Workspace as the identity provider

C.  

Store 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] .srorage.googleapis.com/ [holnchart] as the Helm repository

D.  

Configure a Helm chart repository server to run in Google Kubernetes Engine (GKE) with Cloud Storage bucket as the storage backend

Discussion 0
Questions 29

You support a service with a well-defined Service Level Objective (SLO). Over the previous 6 months, your service has consistently met its SLO and customer satisfaction has been consistently high. Most of your service’s operations tasks are automated and few repetitive tasks occur frequently. You want to optimize the balance between reliability and deployment velocity while following site reliability engineering best practices. What should you do? (Choose two.)

Options:

A.  

Make the service’s SLO more strict.

B.  

Increase the service’s deployment velocity and/or risk.

C.  

Shift engineering time to other services that need more reliability.

D.  

Get the product team to prioritize reliability work over new features.

E.  

Change the implementation of your Service Level Indicators (SLIs) to increase coverage.

Discussion 0
Questions 30

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?

Options:

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

Discussion 0
Questions 31

You recently noticed that one Of your services has exceeded the error budget for the current rolling window period. Your company's product team is about to launch a new feature. You want to follow Site Reliability Engineering (SRE) practices.

What should you do?

Options:

A.  

Notify the team that their error budget is used up. Negotiate with the team for a launch freeze or tolerate a slightly worse user experience.

B.  

Look through other metrics related to the product and find SLOs with remaining error budget. Reallocate the error budgets and allow the feature launch.

C.  

Escalate the situation and request additional error budget.

D.  

Notify the team about the lack of error budget and ensure that all their tests are successful so the launch will not further risk the error budget.

Discussion 0
Questions 32

You are building an application that runs on Cloud Run The application needs to access a third-party API by using an API key You need to determine a secure way to store and use the API key in your application by following Google-recommended practices What should you do?

Options:

A.  

Save the API key in Secret Manager as a secret Reference the secret as an environment variable in the Cloud Run application

B.  

Save 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

C.  

Save 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

D.  

Encrypt 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

Discussion 0
Questions 33

You are configuring the frontend tier of an application deployed in Google Cloud The frontend tier is hosted in ngmx and deployed using a managed instance group with an Envoy-based external HTTP(S) load balancer in front The application is deployed entirely within the europe-west2 region: and only serves users based in the United Kingdom. You need to choose the most cost-effective network tier and load balancing configuration What should you use?

Options:

A.  

Premium Tier with a global load balancer

B.  

Premium Tier with a regional load balancer

C.  

Standard Tier with a global load balancer

D.  

Standard Tier with a regional load balancer

Discussion 0
Questions 34

You support a service that recently had an outage. The outage was caused by a new release that exhausted the service memory resources. You rolled back the release successfully to mitigate the impact on users. You are now in charge of the post-mortem for the outage. You want to follow Site Reliability Engineering practices when developing the post-mortem. What should you do?

Options:

A.  

Focus on developing new features rather than avoiding the outages from recurring.

B.  

Focus on identifying the contributing causes of the incident rather than the individual responsible for the cause.

C.  

Plan individual meetings with all the engineers involved. Determine who approved and pushed the new release to production.

D.  

Use the Git history to find the related code commit. Prevent the engineer who made that commit from working on production services.

Discussion 0
Questions 35

You are deploying an application to Cloud Run. The application requires a password to start. Your organization requires that all passwords are rotated every 24 hours, and your application must have the latest password. You need to deploy the application with no downtime. What should you do?

Options:

A.  

Store the password in Secret Manager and send the secret to the application by using environment variables.

B.  

Store the password in Secret Manager and mount the secret as a volume within the application.

C.  

Use Cloud Build to add your password into the application container at build time. Ensure that Artifact Registry is secured from public access.

D.  

Store the password directly in the code. Use Cloud Build to rebuild and deploy the application each time the password changes.

Discussion 0
Questions 36

You support an application deployed on Compute Engine. The application connects to a Cloud SQL instance to store and retrieve data. After an update to the application, users report errors showing database timeout messages. The number of concurrent active users remained stable. You need to find the most probable cause of the database timeout. What should you do?

Options:

A.  

Check the serial port logs of the Compute Engine instance.

B.  

Use Stackdriver Profiler to visualize the resources utilization throughout the application.

C.  

Determine whether there is an increased number of connections to the Cloud SQL instance.

D.  

Use Cloud Security Scanner to see whether your Cloud SQL is under a Distributed Denial of Service (DDoS) attack.

Discussion 0
Questions 37

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

Options:

A.  

Set 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.

B.  

When there is a change in GitHub, use a web hook to send a request to Anthos Service Mesh, and apply the change.

C.  

Configure Anthos Config Management with the GitHub repository. When there is a change in the repository, use Anthos Config Management to apply the change.

D.  

Configure Config Connector with the GitHub repository. When there is a change in the repository, use Config Connector to apply the change.

Discussion 0
Questions 38

You support an application running on App Engine. The application is used globally and accessed from various device types. You want to know the number of connections. You are using Stackdriver Monitoring for App Engine. What metric should you use?

Options:

A.  

flex/connections/current

B.  

tcp_ssl_proxy/new_connections

C.  

tcp_ssl_proxy/open_connections

D.  

flex/instance/connections/current

Discussion 0
Questions 39

Your product is currently deployed in three Google Cloud Platform (GCP) zones with your users divided between the zones. You can fail over from one zone to another, but it causes a 10-minute service disruption for the affected users. You typically experience a database failure once per quarter and can detect it within five minutes. You are cataloging the reliability risks of a new real-time chat feature for your product. You catalog the following information for each risk:

• Mean Time to Detect (MUD} 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 would be the values for the risk of database failover with the new system?

Options:

A.  

MTTD: 5

MTTR: 10

MTBF: 90

Impact: 33%

B.  

MTTD:5

MTTR: 20

MTBF: 90

Impact: 33%

C.  

MTTD:5

MTTR: 10

MTBF: 90

Impact 50%

D.  

MTTD:5

MTTR: 20

MTBF: 90

Impact: 50%

Discussion 0
Questions 40

You support a popular mobile game application deployed on Google Kubernetes Engine (GKE) across several Google Cloud regions. Each region has multiple Kubernetes clusters. You receive a report that none of the users in a specific region can connect to the application. You want to resolve the incident while following Site Reliability Engineering practices. What should you do first?

Options:

A.  

Reroute the user traffic from the affected region to other regions that don’t report issues.

B.  

Use Stackdriver Monitoring to check for a spike in CPU or memory usage for the affected region.

C.  

Add an extra node pool that consists of high memory and high CPU machine type instances to the cluster.

D.  

Use Stackdriver Logging to filter on the clusters in the affected region, and inspect error messages in the logs.

Discussion 0
Questions 41

You are performing a semi-annual capacity planning exercise for your flagship service You expect a service user growth rate of 10% month-over-month for the next six months Your service is fully containerized and runs on a Google Kubemetes Engine (GKE) standard cluster across three zones with cluster autoscaling enabled You currently consume about 30% of your total deployed CPU capacity and you require resilience against the failure of a zone. You want to ensure that your users experience minimal negative impact as a result of this growth o' as a result of zone failure while you avoid unnecessary costs How should you prepare to handle the predicted growth?

Options:

A.  

Verify the maximum node pool size enable a Horizontal Pod Autoscaler and then perform a load lest to verify your expected resource needs

B.  

Because you deployed the service on GKE and are using a cluster autoscaler your GKE cluster will scale automatically regardless of growth rate

C.  

Because you are only using 30% of deployed CPU capacity there is significant headroom and you do not need to add any additional capacity for this rate of growth

D.  

Proactively add 80% more node capacity to account for six months of 10% growth rate and then perform a load test to ensure that you have enough capacity

Discussion 0
Questions 42

You are developing a strategy for monitoring your Google Cloud Platform (GCP) projects in production using Stackdriver Workspaces. One of the requirements is to be able to quickly identify and react to production environment issues without false alerts from development and staging projects. You want to ensure that you adhere to the principle of least privilege when providing relevant team members with access to Stackdriver Workspaces. What should you do?

Options:

A.  

Grant relevant team members read access to all GCP production projects. Create Stackdriver workspaces inside each project.

B.  

Grant relevant team members the Project Viewer IAM role on all GCP production projects. Create Slackdriver workspaces inside each project.

C.  

Choose an existing GCP production project to host the monitoring workspace. Attach the production projects to this workspace. Grant relevant team members read access to the Stackdriver Workspace.

D.  

Create a new GCP monitoring project, and create a Stackdriver Workspace inside it. Attach the production projects to this workspace. Grant relevant team members read access to the Stackdriver Workspace.

Discussion 0
Questions 43

Your company runs applications in Google Kubernetes Engine (GKE). Several applications rely on ephemeral volumes. You noticed some applications were unstable due to the DiskPressure node condition on the worker nodes. You need

to identify which Pods are causing the issue, but you do not have execute access to workloads and nodes. What should you do?

Options:

A.  

Check the node/ephemeral_storage/used_bytes metric by using Metrics Explorer.

B.  

Check the metric by using Metrics Explorer.

C.  

Locate all the Pods with emptyDir volumes. use the df-h command to measure volume disk usage.

D.  

Locate all the Pods with emptyDir volumes. Use the du -sh * command to measure volume disk usage.

Discussion 0
Questions 44

You support a large service with a well-defined Service Level Objective (SLO). The development team deploys new releases of the service multiple times a week. If a major incident causes the service to miss its SLO, you want the development team to shift its focus from working on features to improving service reliability. What should you do before a major incident occurs?

Options:

A.  

Develop an appropriate error budget policy in cooperation with all service stakeholders.

B.  

Negotiate with the product team to always prioritize service reliability over releasing new features.

C.  

Negotiate with the development team to reduce the release frequency to no more than once a week.

D.  

Add a plugin to your Jenkins pipeline that prevents new releases whenever your service is out of SLO.

Discussion 0
Questions 45

Your organization recently adopted a container-based workflow for application development. Your team develops numerous applications that are deployed continuously through an automated build pipeline to a Kubernetes cluster in the production environment. The security auditor is concerned that developers or operators could circumvent automated testing and push code changes to production without approval. What should you do to enforce approvals?

Options:

A.  

Configure the build system with protected branches that require pull request approval.

B.  

Use an Admission Controller to verify that incoming requests originate from approved sources.

C.  

Leverage Kubernetes Role-Based Access Control (RBAC) to restrict access to only approved users.

D.  

Enable binary authorization inside the Kubernetes cluster and configure the build pipeline as an attestor.

Discussion 0
Questions 46

As part of your company's initiative to shift left on security, the infoSec team is asking all teams to implement guard rails on all the Google Kubernetes Engine (GKE) clusters to only allow the deployment of trusted and approved images You need to determine how to satisfy the InfoSec teams goal of shifting left on security. What should you do?

Options:

A.  

Deploy Falco or Twistlock on GKE to monitor for vulnerabilities on your running Pods

B.  

Configure Identity and Access Management (1AM) policies to create a least privilege model on your GKE clusters

C.  

Use Binary Authorization to attest images during your CI CD pipeline

D.  

Enable Container Analysis in Artifact Registry, and check for common vulnerabilities and exposures (CVEs) in your container images

Discussion 0
Questions 47

You use Spinnaker to deploy your application and have created a canary deployment stage in the pipeline. Your application has an in-memory cache that loads objects at start time. You want to automate the comparison of the canary version against the production version. How should you configure the canary analysis?

Options:

A.  

Compare the canary with a new deployment of the current production version.

B.  

Compare the canary with a new deployment of the previous production version.

C.  

Compare the canary with the existing deployment of the current production version.

D.  

Compare the canary with the average performance of a sliding window of previous production versions.

Discussion 0
Questions 48

You use Cloud Build to build your application. You want to reduce the build time while minimizing cost and development effort. What should you do?

Options:

A.  

Use Cloud Storage to cache intermediate artifacts.

B.  

Run multiple Jenkins agents to parallelize the build.

C.  

Use multiple smaller build steps to minimize execution time.

D.  

Use larger Cloud Build virtual machines (VMs) by using the machine-type option.

Discussion 0
Questions 49

Your company runs applications in Google Kubernetes Engine (GKE) that are deployed following a GitOps methodology.

Application developers frequently create cloud resources to support their applications. You want to give developers the ability to manage infrastructure as code, while ensuring that you follow Google-recommended practices. You need to ensure that infrastructure as code reconciles periodically to avoid configuration drift. What should you do?

Options:

A.  

Install and configure Config Connector in Google Kubernetes Engine (GKE).

B.  

Configure Cloud Build with a Terraform builder to execute plan and apply commands.

C.  

Create a Pod resource with a Terraform docker image to execute terraform plan and terraform apply commands.

D.  

Create a Job resource with a Terraform docker image to execute terraforrm plan and terraform apply commands.

Discussion 0
Questions 50

Your application runs on Google Cloud Platform (GCP). You need to implement Jenkins for deploying application releases to GCP. You want to streamline the release process, lower operational toil, and keep user data secure. What should you do?

Options:

A.  

Implement Jenkins on local workstations.

B.  

Implement Jenkins on Kubernetes on-premises

C.  

Implement Jenkins on Google Cloud Functions.

D.  

Implement Jenkins on Compute Engine virtual machines.

Discussion 0
Questions 51

Your organization wants to collect system logs that will be used to generate dashboards in Cloud Operations for their Google Cloud project. You need to configure all current and future Compute Engine instances to collect the system logs and you must ensure that the Ops Agent remains up to date. What should you do?

Options:

A.  

Use the gcloud CLI to install the Ops Agent on each VM listed in the Cloud Asset Inventory

B.  

Select all VMs with an Agent status of Not detected on the Cloud Operations VMs dashboard Then select Install agents

C.  

Use the gcloud CLI to create an Agent Policy.

D.  

Install the Ops Agent on the Compute Engine image by using a startup script

Discussion 0
Questions 52

You created a Stackdriver chart for CPU utilization in a dashboard within your workspace project. You want to share the chart with your Site Reliability Engineering (SRE) team only. You want to ensure you follow the principle of least privilege. What should you do?

Options:

A.  

Share the workspace Project ID with the SRE team. Assign the SRE team the Monitoring Viewer IAM role in the workspace project.

B.  

Share the workspace Project ID with the SRE team. Assign the SRE team the Dashboard Viewer IAM role in the workspace project.

C.  

Click "Share chart by URL" and provide the URL to the SRE team. Assign the SRE team the Monitoring Viewer IAM role in the workspace project.

D.  

Click "Share chart by URL" and provide the URL to the SRE team. Assign the SRE team the Dashboard Viewer IAM role in the workspace project.

Discussion 0
Questions 53

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 have fast response times. Customers are currently happy with the application performance and availability. Based on current measurement, you observe that the 90th percentile of latency is 120ms and the 95th percentile of latency is 275ms over a 28-day window. What latency SLO would you recommend to the team to publish?

Options:

A.  

90th percentile – 100ms

95th percentile – 250ms

B.  

90th percentile – 120ms

95th percentile – 275ms

C.  

90th percentile – 150ms

95th percentile – 300ms

D.  

90th percentile – 250ms

95th percentile – 400ms

Discussion 0
Questions 54

You use Cloud Build to build and deploy your application. You want to securely incorporate database credentials and other application secrets into the build pipeline. You also want to minimize the development effort. What should you do?

Options:

A.  

Create a Cloud Storage bucket and use the built-in encryption at rest. Store the secrets in the bucket and grant Cloud Build access to the bucket.

B.  

Encrypt the secrets and store them in the application repository. Store a decryption key in a separate repository and grant Cloud Build access to the repository.

C.  

Use client-side encryption to encrypt the secrets and store them in a Cloud Storage bucket. Store a decryption key in the bucket and grant Cloud Build access to the bucket.

D.  

Use Cloud Key Management Service (Cloud KMS) to encrypt the secrets and include them in your Cloud Build deployment configuration. Grant Cloud Build access to the KeyRing.

Discussion 0
Questions 55

You support a web application that runs on App Engine and uses CloudSQL and Cloud Storage for data storage. After a short spike in website traffic, you notice a big increase in latency for all user requests, increase in CPU use, and the number of processes running the application. Initial troubleshooting reveals:

After the initial spike in traffic, load levels returned to normal but users still experience high latency.

Requests for content from the CloudSQL database and images from Cloud Storage show the same high latency.

No changes were made to the website around the time the latency increased.

There is no increase in the number of errors to the users.

You expect another spike in website traffic in the coming days and want to make sure users don’t experience latency. What should you do?

Options:

A.  

Upgrade the GCS buckets to Multi-Regional.

B.  

Enable high availability on the CloudSQL instances.

C.  

Move the application from App Engine to Compute Engine.

D.  

Modify the App Engine configuration to have additional idle instances.

Discussion 0
Questions 56

You recently deployed your application in Google Kubernetes Engine (GKE) and now need to release a new version of the application You need the ability to instantly roll back to the previous version of the application in case there are issues with the new version Which deployment model should you use?

Options:

A.  

Perform a rolling deployment and test your new application after the deployment is complete

B.  

Perform A. B testing, and test your application periodically after the deployment is complete

C.  

Perform a canary deployment, and test your new application periodically after the new version is deployed

D.  

Perform a blue/green deployment and test your new application after the deployment is complete

Discussion 0