πŸ”

PCDOE β€” questions

Page 4 of 11 Β· 210 total questions.

Topic 1 Β· Question 61

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?

  • AImplement Jenkins on local workstations.
  • BImplement Jenkins on Kubernetes on-premises.
  • CImplement Jenkins on Google Cloud Functions.
  • DImplement Jenkins on Compute Engine virtual machines. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Implement Jenkins on Compute Engine virtual machines.

Explanation

Compute Engine provides configurable virtual machines when you need full control of the OS.

Topic 1 Β· Question 62

You are working with a government agency that requires you to archive application logs for seven years. You need to configure Stackdriver to export and store the logs while minimizing costs of storage. What should you do?

  • ACreate a Cloud Storage bucket and develop your application to send logs directly to the bucket.
  • BDevelop an App Engine application that pulls the logs from Stackdriver and saves them in BigQuery.
  • CCreate an export in Stackdriver and configure Cloud Pub/Sub to store logs in permanent storage for seven years.
  • DCreate a sink in Stackdriver, name it, create a bucket on Cloud Storage for storing archived logs, and then select the bucket as the log export destination. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create a sink in Stackdriver, name it, create a bucket on Cloud Storage for storing archived logs, and then select the bucket as the log export destination.

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 63

You support a trading application written in Python and hosted on App Engine flexible environment. You want to customize the error information being sent to Stackdriver Error Reporting. What should you do?

  • AInstall the Stackdriver Error Reporting library for Python, and then run your code on a Compute Engine VM.
  • BInstall the Stackdriver Error Reporting library for Python, and then run your code on Google Kubernetes Engine.
  • CInstall the Stackdriver Error Reporting library for Python, and then run your code on App Engine flexible environment.
  • DUse the Stackdriver Error Reporting API to write errors from your application to ReportedErrorEvent, and then generate log entries with properly formatted error messages in Stackdriver Logging. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use the Stackdriver Error Reporting API to write errors from your application to ReportedErrorEvent, and then generate log entries with properly formatted error messages in Stackdriver Logging.

Explanation

Cloud Operations (formerly Stackdriver) provides monitoring, logging, and tracing for reliability. Error Reporting aggregates and surfaces application errors in real time.

Topic 1 Β· Question 64

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 90 percentile of latency is 120ms and the 95 percentile of latency is 275ms over a 28-day window. What latency SLO would you recommend to the team to th th publish?

  • A90 percentile "" 100ms th 95 percentile "" 250ms th
  • B90 percentile "" 120ms th 95 percentile "" 275ms th
  • C90 percentile "" 150ms th 95 percentile "" 300ms th (correct answer)
  • D90 percentile "" 250ms th 95 percentile "" 400ms th
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: 90 percentile "" 150ms th 95 percentile "" 300ms th.

Topic 1 Β· Question 65

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?

  • ADevelop an appropriate error budget policy in cooperation with all service stakeholders. (correct answer)
  • BNegotiate with the product team to always prioritize service reliability over releasing new features.
  • CNegotiate with the development team to reduce the release frequency to no more than once a week.
  • DAdd a plugin to your Jenkins pipeline that prevents new releases whenever your service is out of SLO.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Develop an appropriate error budget policy in cooperation with all service stakeholders.

Topic 1 Β· Question 66

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 minimizing costs. Different teams should not be able to access other teams' environments. What should you do?

  • ACreate one GCP Project per team. In each project, create a cluster for Development and one for Production. Grant the teams IAM access to their respective clusters.
  • BCreate one GCP Project per team. In each project, create a cluster with a Kubernetes namespace for Development and one for Production. Grant the teams IAM access to their respective clusters.
  • CCreate a Development and a Production GKE cluster in separate projects. In each cluster, create a Kubernetes namespace per team, and then configure Identity Aware Proxy so that each team can only access its own namespace.
  • DCreate a Development and a Production GKE cluster in separate projects. In each cluster, create a Kubernetes namespace per team, and then configure Kubernetes Role-based access control (RBAC) so that each team can only access its own namespace. (correct answer)
Reveal answer & explanation
Correct answer: D

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

Explanation

Google Kubernetes Engine runs managed Kubernetes for containerized, portable workloads.

Topic 1 Β· Question 67

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?

  • APush the images to Google Container Registry (GCR) using the gcr.io hostname.
  • BPush the images to Google Container Registry (GCR) using the us.gcr.io hostname.
  • CPush the images to Google Container Registry (GCR) using the eu.gcr.io hostname. (correct answer)
  • DPush the images to a private image registry running on a Compute Engine instance in the eu-west-1 region.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Push the images to Google Container Registry (GCR) using the eu.gcr.io hostname.

Topic 1 Β· Question 68

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?

  • AIn the Google Cloud Platform Console, use the Cost Breakdown section to visualize the costs per system.
  • BAssign all instances a label specific to the system they run. Configure BigQuery billing export and query costs per label. (correct answer)
  • CEnrich all instances with metadata specific to the system they run. Configure Stackdriver Logging to export to BigQuery, and query costs based on the metadata.
  • DName 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.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Assign all instances a label specific to the system they run. Configure BigQuery billing export and query costs per label.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 Β· Question 69

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?

  • ACreate 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.
  • BEncrypt 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.
  • CUse 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.
  • DUse 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. (correct answer)
Reveal answer & explanation
Correct answer: D

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

Explanation

Cloud KMS manages encryption keys and integrates with Google Cloud services for encryption. Cloud Build runs managed CI pipelines to build, test, and package code.

Topic 1 Β· Question 70

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?

  • AReroute the user traffic from the affected region to other regions that don't report issues. (correct answer)
  • BUse Stackdriver Monitoring to check for a spike in CPU or memory usage for the affected region.
  • CAdd an extra node pool that consists of high memory and high CPU machine type instances to the cluster.
  • DUse Stackdriver Logging to filter on the clusters in the affected region, and inspect error messages in the logs.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Reroute the user traffic from the affected region to other regions that don't report issues.

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

You are writing a postmortem for an incident that severely affected users. You want to prevent similar incidents in the future. Which two of the following sections should you include in the postmortem? (Choose two.)

  • AAn explanation of the root cause of the incident. (correct answer)
  • BA list of employees responsible for causing the incident
  • CA list of action items to prevent a recurrence of the incident (correct answer)
  • DYour opinion of the incident's severity compared to past incidents
  • ECopies of the design documents for all the services impacted by the incident
Reveal answer & explanation
Correct answer: A, C

The correct answer is A, C. Option A: An explanation of the root cause of the incident. Option C: A list of action items to prevent a recurrence of the incident.

Topic 1 Β· Question 72

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

  • AUse a partitioned rolling update. (correct answer)
  • BUse Node taints with NoExecute.
  • CUse a replica set in the deployment specification.
  • DUse a stateful set with parallel pod management policy.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use a partitioned rolling update.

Topic 1 Β· Question 73

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

  • AAs the I/O wait times aggregated across all report generation backends
  • BAs the proportion of report generation requests that result in a successful response (correct answer)
  • CAs the application's report generation queue size compared to a known-good threshold
  • DAs the reporting backend PD throughout capacity compared to a known-good threshold
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: As the proportion of report generation requests that result in a successful response.

Topic 1 Β· Question 74

You have an application running in Google Kubernetes Engine. The application invokes multiple services per request but responds too slowly. You need to identify which downstream service or services are causing the delay. What should you do?

  • AAnalyze VPC flow logs along the path of the request.
  • BInvestigate the Liveness and Readiness probes for each service.
  • CCreate a Dataflow pipeline to analyze service metrics in real time.
  • DUse a distributed tracing framework such as OpenTelemetry or Stackdriver Trace. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use a distributed tracing framework such as OpenTelemetry or Stackdriver Trace.

Explanation

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

Topic 1 Β· Question 75

You are creating and assigning action items in a postmodern for an outage. The outage is over, but you need to address the root causes. You want to ensure that your team handles the action items quickly and efficiently. How should you assign owners and collaborators to action items?

  • AAssign one owner for each action item and any necessary collaborators. (correct answer)
  • BAssign multiple owners for each item to guarantee that the team addresses items quickly.
  • CAssign collaborators but no individual owners to the items to keep the postmortem blameless.
  • DAssign the team lead as the owner for all action items because they are in charge of the SRE team.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Assign one owner for each action item and any necessary collaborators.

Topic 1 Β· Question 76

Your development team has created a new version of their service's API. You need to deploy the new versions of the API with the least disruption to third-party developers and end users of third-party installed applications. What should you do?

  • AIntroduce the new version of the API. Announce deprecation of the old version of the API. Deprecate the old version of the API. Contact remaining users of the old API. Provide best effort support to users of the old API. Turn down the old version of the API. (correct answer)
  • BAnnounce deprecation of the old version of the API. Introduce the new version of the API. Contact remaining users on the old API. Deprecate the old version of the API. Turn down the old version of the API. Provide best effort support to users of the old API.
  • CAnnounce deprecation of the old version of the API. Contact remaining users on the old API. Introduce the new version of the API. Deprecate the old version of the API. Provide best effort support to users of the old API. Turn down the old version of the API.
  • DIntroduce the new version of the API. Contact remaining users of the old API. Announce deprecation of the old version of the API. Deprecate the old version of the API. Turn down the old version of the API. Provide best effort support to users of the old API.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Introduce the new version of the API. Announce deprecation of the old version of the API. Deprecate the old version of the API. Contact remaining users of the old API. Provide best effort support to users of the old A...

Topic 1 Β· Question 77

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. You want to prevent these fields from being written in new log entries as quickly as possible. What should you do?

  • AUse the filter-record-transformer Fluentd filter plugin to remove the fields from the log entries in flight. (correct answer)
  • BUse the fluent-plugin-record-reformer Fluentd output plugin to remove the fields from the log entries in flight.
  • CWait for the application developers to patch the application, and then verify that the log entries are no longer exposing PII.
  • DStage log entries to Cloud Storage, and then trigger a Cloud Function to remove the fields and write the entries to Stackdriver via the Stackdriver Logging API.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use the filter-record-transformer Fluentd filter plugin to remove the fields from the log entries in flight.

Topic 1 Β· Question 78

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?

  • AFocus on developing new features rather than avoiding the outages from recurring.
  • BFocus on identifying the contributing causes of the incident rather than the individual responsible for the cause. (correct answer)
  • CPlan individual meetings with all the engineers involved. Determine who approved and pushed the new release to production.
  • DUse the Git history to find the related code commit. Prevent the engineer who made that commit from working on production services.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Focus on identifying the contributing causes of the incident rather than the individual responsible for the cause.

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

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

  • AAdd more serving capacity to all of your application's zones.
  • BHave more frequent or potentially risky application releases.
  • CTighten the SLO match the application's observed reliability.
  • DImplement and measure additional Service Level Indicators (SLIs) fro the application. (correct answer)
  • EAnnounce planned downtime to consume more error budget, and ensure that users are not depending on a tighter SLO. (correct answer)
Reveal answer & explanation
Correct answer: D, E

The correct answer is D, E. Option D: Implement and measure additional Service Level Indicators (SLIs) fro the application. Option E: Announce planned downtime to consume more error budget, and ensure that users are not depending on a tighter SLO.

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

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

  • AMake the service's SLO more strict.
  • BIncrease the service's deployment velocity and/or risk. (correct answer)
  • CShift engineering time to other services that need more reliability. (correct answer)
  • DGet the product team to prioritize reliability work over new features.
  • EChange the implementation of your Service Level Indicators (SLIs) to increase coverage.
Reveal answer & explanation
Correct answer: B, C

The correct answer is B, C. Option B: Increase the service's deployment velocity and/or risk. Option C: Shift engineering time to other services that need more reliability.

Showing questions 61–80 of 210 Β· Page 4 of 11