πŸ”

PCDOE β€” questions

Page 2 of 11 Β· 210 total questions.

Topic 1 Β· Question 21

Your application images are built using Cloud Build and pushed to Google Container Registry (GCR). You want to be able to specify a particular version of your application for deployment based on the release version tagged in source control. What should you do when you push 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. (correct answer)
  • DUse GCR digest versioning to match the image to the tag in source control.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use Cloud Build to include the release version tag in the application image.

Explanation

Cloud Build runs managed CI pipelines to build, test, and package code.

Topic 1 Β· Question 22

You are on-call for an infrastructure service that has a large number of dependent systems. You receive an alert indicating that the service is failing to serve most of its requests and all of its dependent systems with hundreds of thousands of users are affected. As part of your Site Reliability Engineering (SRE) incident management protocol, you declare yourself Incident Commander (IC) and pull in two experienced people from your team as Operations Lead (OL) and Communications Lead (CL). What should you do next?

  • ALook for ways to mitigate user impact and deploy the mitigations to production.
  • BContact the affected service owners and update them on the status of the incident.
  • CEstablish a communication channel where incident responders and leads can communicate with each other. (correct answer)
  • DStart a postmortem, add incident information, circulate the draft internally, and ask internal stakeholders for input.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Establish a communication channel where incident responders and leads can communicate with each other.

Topic 1 Β· Question 23

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?

  • AGrant relevant team members read access to all GCP production projects. Create Stackdriver workspaces inside each project.
  • BGrant relevant team members the Project Viewer IAM role on all GCP production projects. Create Stackdriver workspaces inside each project.
  • CChoose 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.
  • DCreate 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. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option 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.

Explanation

Cloud Operations (formerly Stackdriver) provides monitoring, logging, and tracing for reliability.

Topic 1 Β· Question 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?

  • A1. Export VM utilization logs from Stackdriver to BigQuery. 2. Create a dashboard in Data Studio. 3. Share the dashboard with your stakeholders. (correct answer)
  • 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.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: 1. Export VM utilization logs from Stackdriver to BigQuery. 2. Create a dashboard in Data Studio. 3. Share the dashboard with your stakeholders.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Cloud Operations (formerly Stackdriver) provides monitoring, logging, and tracing for reliability. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 25

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?

  • APurchase Committed Use Discounts. (correct answer)
  • 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.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Purchase Committed Use Discounts.

Topic 1 Β· Question 26

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?

  • 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. (correct answer)
  • DBring the service into production with no SLOs and build them when you have collected operational data.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Identify recommended reliability improvements to the service to be completed before handover.

Topic 1 Β· Question 27

You are running an experiment to see whether your users like a new feature of a web application. Shortly after deploying the feature as a canary release, you receive a spike in the number of 500 errors sent to users, and your monitoring reports show increased latency. You want to quickly minimize the negative impact on users. What should you do first?

  • ARoll back the experimental canary release. (correct answer)
  • 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.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Roll back the experimental canary release. This option decouples the components so they scale independently and absorb load spikes.

Topic 1 Β· Question 28

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 to a versioned Cloud Storage basket 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. (correct answer)
  • 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.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option 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...

Topic 1 Β· Question 29

You support a high-traffic web application with a microservice architecture. The home page of the application displays multiple widgets containing content such as the current weather, stock prices, and news headlines. The main serving thread makes a call to a dedicated microservice for each widget and then lays out the homepage for the user. The microservices occasionally fail; when that happens, the serving thread serves the homepage with some missing content. Users of the application are unhappy if this degraded mode occurs too frequently, but they would rather have some content served instead of no content at all. You want to set a Service Level Objective (SLO) to ensure that the user experience does not degrade too much. What Service Level Indicator (SLI) should you use to measure this?

  • AA quality SLI: the ratio of non-degraded responses to total responses. (correct answer)
  • BAn availability SLI: the ratio of healthy microservices to the total number of microservices.
  • CA freshness SLI: the proportion of widgets that have been updated within the last 10 minutes.
  • DA latency SLI: the ratio of microservice calls that complete in under 100 ms to the total number of microservice calls.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: A quality SLI: the ratio of non-degraded responses to total responses.

Topic 1 Β· Question 30 Β· Select all that apply

You support a multi-region web service running on Google Kubernetes Engine (GKE) behind a Global HTTP/S Cloud Load Balancer (CLB). For legacy reasons, user requests first go through a third-party Content Delivery Network (CDN), which then routes traffic to the CLB. You have already implemented an availability Service Level Indicator (SLI) at the CLB level. However, you want to increase coverage in case of a potential load balancer misconfiguration, CDN failure, or other global networking catastrophe. Where should you measure this new SLI? (Choose two.)

  • AYour application servers' logs.
  • BInstrumentation coded directly in the client. (correct answer)
  • CMetrics exported from the application servers.
  • DGKE health checks for your application servers.
  • EA synthetic client that periodically sends simulated user requests. (correct answer)
Reveal answer & explanation
Correct answer: B, E

The correct answer is B, E. Option B: Instrumentation coded directly in the client. Option E: A synthetic client that periodically sends simulated user requests.

Topic 1 Β· Question 31

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?

  • 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. (correct answer)
  • 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.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option 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.

Explanation

Cloud Operations (formerly Stackdriver) provides monitoring, logging, and tracing for reliability.

Topic 1 Β· Question 32

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?

  • AFile a bug with the development team so they can find the root cause of the crashing instance.
  • BCreate a Managed instance Group with a single instance and use health checks to determine the system status. (correct answer)
  • CAdd a Load Balancer in front of the Compute Engine instance and use health checks to determine the system status.
  • DCreate a Stackdriver Monitoring dashboard with SMS alerts to be able to start recreating the crashed instance promptly after it was crashed.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a Managed instance Group with a single instance and use health checks to determine the system status.

Explanation

A managed instance group provides autoscaling, autohealing, and rolling updates for VMs.

Topic 1 Β· Question 33

Your application artifacts are being built and deployed via a CI/CD pipeline. You want the CI/CD pipeline to securely access application secrets. You also want to more easily rotate secrets in case of a security breach. 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. (correct answer)
  • 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.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Store secrets in Cloud Storage encrypted with a key from Cloud KMS. Provide the CI/CD pipeline with access to Cloud KMS via IAM.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources. Cloud KMS manages encryption keys and integrates with Google Cloud services for encryption.

Topic 1 Β· Question 34

Your company follows Site Reliability Engineering practices. You are the person in charge of Communications for a large, ongoing incident affecting your customer-facing applications. There is still no estimated time for a resolution of the outage. You are receiving emails from internal stakeholders who want updates on the outage, as well as emails from customers who want to know what is happening. You want to efficiently provide updates to everyone affected by the outage. What should you do?

  • AFocus on responding to internal stakeholders at least every 30 minutes. Commit to "next update" times.
  • BProvide periodic updates to all stakeholders in a timely manner. Commit to a "next update" time in all communications. (correct answer)
  • CDelegate the responding to internal stakeholder emails to another member of the Incident Response Team. Focus on providing responses directly to customers.
  • DProvide all internal stakeholder emails to the Incident Commander, and allow them to manage internal communications. Focus on providing responses directly to customers.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Provide periodic updates to all stakeholders in a timely manner. Commit to a "next update" time in all communications.

Topic 1 Β· Question 35

Your team uses Cloud Build for all CI/CD pipelines. You want to use the kubectl builder for Cloud Build 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. (correct answer)
  • 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.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Assign the Container Developer role to the Cloud Build service account.

Explanation

A service account provides an identity for workloads to access Google Cloud APIs securely. Cloud Build runs managed CI pipelines to build, test, and package code.

Topic 1 Β· Question 36

You support an application that stores product information in cached memory. For every cache miss, an entry is logged in Stackdriver Logging. You want to visualize how often a cache miss happens over time. What should you do?

  • ALink Stackdriver Logging as a source in Google Data Studio. Filter the logs on the cache misses.
  • BConfigure Stackdriver Profiler to identify and visualize when the cache misses occur based on the logs.
  • CCreate a logs-based metric in Stackdriver Logging and a dashboard for that metric in Stackdriver Monitoring. (correct answer)
  • DConfigure BigQuery as a sink for Stackdriver Logging. Create a scheduled query to filter the cache miss logs and write them to a separate table.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a logs-based metric in Stackdriver Logging and a dashboard for that metric in Stackdriver Monitoring.

Explanation

Cloud Operations (formerly Stackdriver) provides monitoring, logging, and tracing for reliability.

Topic 1 Β· Question 37

You need to deploy a new service to production. The service needs to automatically scale using a Managed Instance Group (MIG) and should be deployed over multiple regions. The service needs a large number of resources for each instance and you need to plan for capacity. What should you do?

  • AUse the n1-highcpu-96 machine type in the configuration of the MIG.
  • BMonitor results of Stackdriver Trace to determine the required amount of resources.
  • CValidate that the resource requirements are within the available quota limits of each region. (correct answer)
  • DDeploy the service in one region and use a global load balancer to route traffic to this region.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Validate that the resource requirements are within the available quota limits of each region.

Topic 1 Β· Question 38

You are running an application on Compute Engine and collecting logs through Stackdriver. You discover that some personally identifiable information (PII) is leaking into certain log entry fields. All PII entries begin with the text userinfo. You want to capture these log entries in a secure location for later review and prevent them from leaking to 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. (correct answer)
  • 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.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use a Fluentd filter plugin with the Stackdriver Agent to remove log entries containing userinfo, and then copy the entries to a Cloud Storage bucket.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Cloud Operations (formerly Stackdriver) provides monitoring, logging, and tracing for reliability.

Topic 1 Β· Question 39

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?

  • ADisable the CI pipeline and revert to manually building and pushing the artifacts.
  • BChange the CI pipeline to push the artifacts is Container Registry instead of Docker Hub.
  • CUpload the configuration YAML file to Cloud Storage and use Error Reporting to identify and fix the issue.
  • DRun a Git compare between the previous and current Cloud Build Configuration files to find and fix the bug. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Run a Git compare between the previous and current Cloud Build Configuration files to find and fix the bug.

Explanation

Cloud Build runs managed CI pipelines to build, test, and package code.

Topic 1 Β· Question 40

Your company follows Site Reliability Engineering principles. You are writing a postmortem for an incident, triggered by a software change, that severely affected users. You want to prevent severe incidents from happening in the future. What should you do?

  • AIdentify engineers responsible for the incident and escalate to their senior management.
  • BEnsure that test cases that catch errors of this type are run successfully before new software releases. (correct answer)
  • 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.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Ensure that test cases that catch errors of this type are run successfully before new software releases.

Showing questions 21–40 of 210 Β· Page 2 of 11