πŸ”

PCDOE β€” questions

Page 11 of 11 Β· 210 total questions.

Topic 1 Β· Question 202

Your company is creating a new cloud-native Google Cloud organization. You expect this Google Cloud organization to first be used by a small number of departments and then expand to be used by a large number of departments. Each department has a large number of applications that range in size. You need to design the VPC network architecture. Your solution must minimize the amount of management required, while remaining flexible enough for development teams to quickly adapt to their evolving needs. What should you do?

  • ACreate a separate VPC for each department, and connect the VPCs with VPC Network Peering. (correct answer)
  • BCreate a separate VPC for each department. Use Private Service Connect to connect the VPCs.
  • CCreate a separate VPC for each application. Use Private Service Connect to connect the VPCs.
  • DCreate a separate VPC for each department, and connect the VPCs with Cloud VPN.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a separate VPC for each department, and connect the VPCs with VPC Network Peering.

Explanation

A VPC provides a global, software-defined private network for your Google Cloud resources.

Topic 1 Β· Question 203

You use Google Cloud Managed Service for Prometheus with managed collection to gather metrics from your service running on Google Kubernetes Engine (GKE). After deploying the service, there is no metric data appearing in Cloud Monitoring and you have not encountered any error messages. You need to troubleshoot this issue. What should you do?

  • ADetermine if your service has exceeded its quota for writes to the Cloud Monitoring API.
  • BVerify that your PodMonitoring configuration references a valid port. (correct answer)
  • CCheck if the Grafana service is installed on your GKE cluster.
  • DConfirm that your service has the monitoring.servicesViewer IAM role.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Verify that your PodMonitoring configuration references a valid port.

Topic 1 Β· Question 204

You are building an ecommerce web application that will be deployed to Google Cloud. You need to periodically test the checkout process in production to ensure its functionality and confirm that you are receiving automated notifications for failures. You also want to minimize administrative effort and follow Google-recommended practices. What should you do?

  • AUse Workflows to create a workflow verifying the functionality, and trigger the workflow periodically by using Cloud Tasks.
  • BImplement a Cloud Run function for synthetic monitoring with an alerting policy. (correct answer)
  • CCreate an alerting policy in Cloud Logging to monitor for failed logs during the checkout process.
  • DConfigure an uptime check with an alerting policy.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Implement a Cloud Run function for synthetic monitoring with an alerting policy.

Explanation

Cloud Run runs stateless containers serverlessly and scales to zero, minimizing operational overhead.

Topic 1 Β· Question 205

You are deploying a containerized application to Cloud Run. The application needs a password to connect to the database to fetch data. The password must be rotated each week to meet your company’s security requirements. You need to implement an easy- to-manage password rotation policy. What should you do?

  • A1. Deploy the container to Cloud Run.2. Create a new container each week with the new database password set as an environment variable in a Dockerfile.3. Deploy the new container to Cloud Run, and migrate the traffic to the new version.
  • B1. Create a secret in Secret Manager to hold the password.2. Deploy the container to Cloud Run, and use the latest version of the secret as an environment variable.3. Create a new version of the secret with the new password in Secret Manager each week.
  • C1. Deploy the container to Cloud Run.2. Create a new container each week with the new database password set as a secret during the build phase.3. Deploy the new container to Cloud Run, and migrate the traffic to the new version.
  • D1. Create a secret in Secret Manager to hold the password.2. Deploy the container to Cloud Run, and use the latest version of the secret as a mounted volume.3. Create a new version of the secret in Secret Manager each week. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: 1. Create a secret in Secret Manager to hold the password.2. Deploy the container to Cloud Run, and use the latest version of the secret as a mounted volume.3. Create a new version of the secret in Secret Manager each...

Explanation

Cloud Run runs stateless containers serverlessly and scales to zero, minimizing operational overhead. Secret Manager stores and controls access to secrets such as API keys and credentials.

Topic 1 Β· Question 206

You have an application deployed to Cloud Run. A new version of the application has recently been deployed using the canary deployment strategy. Your Site Reliability Engineering (SRE) teammate informs you that an SLO has been exceeded for this application. You need to make the application healthy as quickly as possible. What should you do first?

  • AConfigure traffic splitting to send 100% of the traffic to the latest revision.
  • BConfigure traffic splitting to send 100% of the traffic to the previous revision. (correct answer)
  • CCreate a new revision using the last known good version of the application.
  • DIdentify the cause of the latency by using Cloud Trace.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Configure traffic splitting to send 100% of the traffic to the previous revision.

Topic 1 Β· Question 207

Your company is trying to centralize all monitoring and alerting capabilities. Your VPC network has an internally exposed webhook you can call to trigger alerts. You need to integrate your Google Cloud alerts to call this webhook. You want to minimize costs while following Google-recommended practices. What should you do?

  • AConfigure a new Pub/Sub notification channel with a new topic. Create a pull subscription to consume the events.
  • BConfigure a new Pub/Sub notification channel with a new topic. Create a push subscription with the webhook as a subscriber to get the events.
  • CConfigure a new webhook notification channel. Edit your alerting policies to use the new notification channel to propagate the events.
  • DConfigure a new Pub/Sub notification channel with a new topic. Create a new Cloud Run function with direct VPC egress to write the events to the internal endpoint. Create a push subscription with the Cloud Run function as a subscriber to get the events. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Configure a new Pub/Sub notification channel with a new topic. Create a new Cloud Run function with direct VPC egress to write the events to the internal endpoint. Create a push subscription with the Cloud Run functio...

Explanation

Cloud Run runs stateless containers serverlessly and scales to zero, minimizing operational overhead. A VPC provides a global, software-defined private network for your Google Cloud resources. Pub/Sub is a serverless, global messaging service that decouples services and ingests high-volume event streams. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 208

You are establishing a centralized platform to monitor your applications. Your applications are currently running on Kubernetes clusters on-premises and in the cloud across multiple Google Cloud projects. You want to enable developers to monitor both infrastructure and application metrics using OpenTelemetry across on-premises and Google Cloud environments. At the same time, you want to keep the operation easy to support and integrate all metrics into a single place. What should you do?

  • AImplement a sidecar OpenTelemetry Collector alongside each Pod in all Kubernetes clusters (on-premises and GKE). Configure these collectors to export Prometheus-formatted metrics. Use dedicated Prometheus instances in each Kubernetes cluster and Thanos in a central GKE cluster. Install Grafana on a GKE cluster, and use Grafana to monitor the applications.
  • BCreate a scoping project and add all the Google Cloud projects to it. Use Bindplane to streamline OpenTelemetry metric collection for the on-premises Kubernetes clusters into Cloud Monitoring. (correct answer)
  • CCreate a new Google Cloud project to use as a scoping project and add all the other Google Cloud projects to it. Instrument the applications running on-premises to export the metrics to Cloud Monitoring as user-defined metrics. Use Cloud Monitoring to monitor the applications.
  • DEnable Google Cloud Managed Service for Prometheus collections by using the OpenTelemetry Collector on the Google Kubernetes Engine (GKE) clusters, and enable non-managed Prometheus for the on-premises Kubernetes clusters. Install Grafana on a GKE cluster, and use Grafana to monitor the applications.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a scoping project and add all the Google Cloud projects to it. Use Bindplane to streamline OpenTelemetry metric collection for the on-premises Kubernetes clusters into Cloud Monitoring.

Explanation

Cloud Monitoring collects metrics, dashboards, and alerts to observe system health.

Topic 1 Β· Question 209

You are configuring a Cloud Deploy pipeline to deploy an application to Google Kubernetes Engine (GKE). The application is deployed as a Deployment. You need to configure the Deployment so that there are two replicas in the development environment and five replicas in the production environment. You must ensure that all other configuration parameters are consistent between environments. You also need to minimize developmental overhead when updating the manifests in the future. How should you configure the skaffold.yaml file?

  • ACreate multiple profiles, and configure the manifests.kustomize section. (correct answer)
  • BCreate a single profile, and configure the manifests.kustomize section.
  • CCreate multiple profiles, and configure the manifests.rawYaml section.
  • DCreate a single profile, and configure the manifests.rawYaml section.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create multiple profiles, and configure the manifests.kustomize section.

Topic 1 Β· Question 210

You have a CI/CD pipeline set up in Cloud Build that builds container images. These containers are stored in Artifact Registry. You need to ensure that only images built by the Cloud Build pipeline in your production project are deployed to your Google Kubernetes Engine (GKE) cluster. You want to minimize the amount of manual effort required for implementation and maintenance. What should you do?

  • AEnable Binary Authorization on the GKE cluster. Create a Cloud Run function triggered by Artifact Registry INSERT events to verify that pushed containers have the projects/PROJECT_ID/attestors/built-by-cloud-build attestor.
  • BConfigure Artifact Registry to only allow the Cloud Build service account to push containers.
  • CEnable Binary Authorization on the GKE cluster. Create a Cloud Key Management Service (Cloud KMS) keyring and the built-by-cloud-build attestor. After Cloud Build pushes the container, use the key to create an attestation. Update the Binary Authorization policy to require the projects/PROJECT_ID/attestors/built-by-cloud-build attestor.
  • DEnable Binary Authorization on the GKE cluster. Configure the Binary Authorization policy to require the projects/PROJECT_ID/attestors/built-by-cloud-build attestor. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Enable Binary Authorization on the GKE cluster. Configure the Binary Authorization policy to require the projects/PROJECT_ID/attestors/built-by-cloud-build attestor.

Explanation

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

Topic 1 Β· Question 211

You are designing a containerized CI pipeline to minimize reliance on public upstream container registries and improve build reproducibility and security. You need to design a pipeline to cache all containerized dependencies while minimizing the required amount of manual effort and maintenance. What should you do?

  • A1. Create a remote Docker repository for each upstream registry in Artifact Registry.2. Access the container images in the CI pipeline through the remote repository.
  • B1. Create a standard Docker repository for each upstream registry in Artifact Registry.2. Upload the containers used in the build pipelines to the appropriate repositories.
  • C1. Create a standard Docker repository for each upstream registry in Artifact Registry.2. Create a central virtual Docker repository to serve the standard repositories.3. Access the container images in the CI pipeline through the central repository.
  • D1. Create a remote Docker repository for each upstream registry in Artifact Registry.2. Create a central virtual Docker repository to serve the remote repositories.3. Access the container images in the CI pipeline through the central repository. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: 1. Create a remote Docker repository for each upstream registry in Artifact Registry.2. Create a central virtual Docker repository to serve the remote repositories.3. Access the container images in the CI pipeline thr...

Explanation

Artifact Registry stores and manages container images and language packages.

Showing questions 201–210 of 210 Β· Page 11 of 11