πŸ”

PCA β€” questions

Page 13 of 17 Β· 337 total questions.

Topic 1 Β· Question 241

Your company uses a custom-built application running on a Compute Engine virtual machine (VM). This application processes real-time sales data and writes it to a zonal Persistent Disk. A recent internal audit requires that you implement a backup and recovery plan to protect against zonal failures. Your company has a strict policy that all backup data must be retained for at least 90 days and stored in a separate project with limited access. You need to implement a fully automated backup solution that meets these requirements with minimal operational overhead. What should you do?

  • AWrite a script to create daily backups of the Persistent Disk. Copy the backups to a different zone and apply a label to each snapshot to indicate the deletion date.
  • BUse gcloud commands to create snapshots of the Persistent Disk. Store the snapshots in a regional Cloud Storage bucket and configure a lifecycle rule to delete objects older than 90 days.
  • CCreate a snapshot schedule to automatically create Persistent Disk snapshots and use a script to move and store them in a multi-regional Cloud Storage bucket.
  • DUse the Backup and Disaster Recovery (DR) service to create a backup plan. Configure the backup plan to take daily snapshots and store them in a backup vault with a 90-day retention policy. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use the Backup and Disaster Recovery (DR) service to create a backup plan. Configure the backup plan to take daily snapshots and store them in a backup vault with a 90-day retention policy.

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

Your ecommerce web application includes many products with pictures and videos. You need to improve the application's page load speed and reduce the latency for customer requests. What should you do? (Choose two.)

  • ADeploy your application to Cloud Run and enable concurrency.
  • BUse Memorystore tor Redis. (correct answer)
  • CImplement CDN with the application's external HTTPS load balancer. (correct answer)
  • DChange the database from Bigtable to Spanner.
  • EDeploy your application to a GKE Autopilot cluster instead of a regular GKE cluster.
Reveal answer & explanation
Correct answer: B, C

The correct answer is B, C. Option B: Use Memorystore tor Redis. Option C: Implement CDN with the application's external HTTPS load balancer.

Explanation

Memorystore provides managed in-memory Redis/Memcached caching to reduce latency and offload databases. A load balancer distributes traffic across healthy backends in multiple zones for availability and scale.

Topic 1 Β· Question 243

You need to build and deploy a containerized web application to Google Cloud. The application is very write-heavy and requires a relational database as its data store. The application needs to be highly available in multiple cloud regions. You want to minimize operational overhead while following Google-recommended practices. What should you do?

  • ADeploy the application to GKE clusters in multiple regions and expose the application endpoint with a regional load balancer. Use Cloud SQL as the database.
  • BDeploy the application to Cloud Run in multiple regions behind a global HTTPS load balancer. Use Spanner as the database. (correct answer)
  • CDeploy the application to a GKE standard cluster behind a global HTTPS load balancer. Use Firestore as the database with multi-region locations enabled.
  • DDeploy the application to a GKE standard cluster with a global ingress to expose the application endpoint. Use Bigtable as the database.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Deploy the application to Cloud Run in multiple regions behind a global HTTPS load balancer. Use Spanner as the database.

Explanation

Cloud Run runs stateless containers serverlessly and scales to zero, minimizing operational overhead. Cloud Spanner is a horizontally scalable, strongly consistent relational database with global reach. A load balancer distributes traffic across healthy backends in multiple zones for availability and scale.

Topic 1 Β· Question 244

Your machine learning (ML) engineers use self-hosted Jupyter notebooks for tasks such as data preparation, model training, and fine-tuning. The operations team then deploys these models in various environments. You want to provide maximum flexibility for ML engineers, promote collaboration with a common toolset, and leverage Google Cloud's scalability, while following Google-recommended practices. What should you do?

  • AUse AutoML for machine learning and Cloud Deploy for model deployment.
  • BUse Colab Enterprise for machine learning and DevOps for model deployment.
  • CUse Vertex AI for machine learning and machine learning operations (MLOps) for model deployment. (correct answer)
  • DUse TensorFlow for machine learning and Cloud Deploy for model deployment.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use Vertex AI for machine learning and machine learning operations (MLOps) for model deployment.

Explanation

Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 Β· Question 245

Your employer is a financial services company that recently acquired a popular fintech startup. The startup's core application is a monolithic Python application running on a managed instance group of Compute Engine virtual machines with a single, large PostgreSQL database. Your development team struggles with slow deployment cycles, and the monolithic design of the startup's core application makes it difficult to integrate new. ML-powered fraud detection models. You need a long-term strategy that improves developer agility and positions the company to leverage Google Cloud's advanced data and AI capabilities for future innovations. What should you do?

  • ADeploy the ML fraud detection model to a Vertex AI endpoint. Create a REST API for the model and modify the monolithic Python application to call this endpoint for real-time fraud analysis.
  • BContainerize the application, deploy it to Google Kubernetes Engine (GKE), and migrate the PostgreSQL database to Cloud SQL for PostgreSQL.
  • CPropose a phased, event-driven migration to a microservices architecture. Use Pub/Sub for asynchronous communication and deploy the fraud models on Vertex AI endpoints. (correct answer)
  • DMigrate the PostgreSQL database to Cloud SQL for PostgreSQL. Replicate the data into BigQuery using Datastream, and then train and deploy the fraud detection models directly within BigQuery using BigQuery ML.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Propose a phased, event-driven migration to a microservices architecture. Use Pub/Sub for asynchronous communication and deploy the fraud models on Vertex AI endpoints.

Explanation

Pub/Sub is a serverless, global messaging service that decouples services and ingests high-volume event streams. Vertex AI is the unified managed platform to build, train, tune, deploy, and operate ML models.

Topic 1 Β· Question 246

Your company has hired an external auditing firm to perform a compliance audit. Your company’s governance policy requires that external auditors be managed in a single Google Group that is granted temporary, read-only access to a Cloud Storage bucket named audit-evidence-bucket. Access must be traceable to the individual auditor's identity and be active only for the duration of the audit engagement, which runs the entire month of October. You need a secure access control strategy that avoids administrative overhead and complies with your company's governance policy. What should you do?

  • AApply an IAM policy binding that grants the roles/storage.objectViewer role to the Google Group. Configure this binding with a time-based IAM Condition that automatically grants access from October 1 to November 1. (correct answer)
  • BCreate a service account, and grant it the roles/storage.objectViewer role on the bucket. Generate and share Signed URLs for each object in the bucket with an expiration date of November 1.
  • CUse Cloud Scheduler to run a Cloud Run functions script that adds the IAM binding of roles/storage.objectViewer to the Google Group on October 1 and another that removes the IAM binding on November 1.
  • DUse Workforce Identity Federation to map the auditors’ group to the Google Group. Bind the roles/storage.objectViewer role to this Google Group. Configure a 1-month session duration on the provider.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Apply an IAM policy binding that grants the roles/storage.objectViewer role to the Google Group. Configure this binding with a time-based IAM Condition that automatically grants access from October 1 to November 1.

Explanation

Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources.

Topic 1 Β· Question 247

You are using a GitHub repository for your application’s source code. You want to set up an efficient and secure continuous deployment process to automatically build and deploy the application to Cloud Run whenever a pull request is merged. What should you do?

  • ACreate a GitHub webhook trigger in Cloud Build. Once a pull request is merged, trigger Cloud Build to build a container image and save it in Artifact Registry. Use Config Sync to deploy the application to Cloud Run.
  • BCreate a workflow using GitHub Actions to build and deploy the application to Cloud Run once a pull request is merged. The workflow will use a service account key checked in with your source code for deployment permission.
  • CCreate a GitHub Enterprise trigger in Cloud Build. Once a pull request is merged, trigger Cloud Build to build and deploy the application to Cloud Run. Save the deployment credential to Secret Manager.
  • DConnect your repository using the Cloud Build GitHub app. Create a trigger in Cloud Build. Once a pull request is merged, trigger Cloud Build to build and deploy the application to Cloud Run. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Connect your repository using the Cloud Build GitHub app. Create a trigger in Cloud Build. Once a pull request is merged, trigger Cloud Build to build and deploy the application to Cloud Run.

Explanation

Cloud Run runs stateless containers serverlessly and scales to zero, minimizing operational overhead. Cloud Build runs managed CI pipelines to build, test, and package code.

Topic 1 Β· Question 248

You are deploying a highly confidential data processing workload on Google Cloud. Your company’s compliance framework mandates that cryptographic keys used for encrypting data at rest must be generated and stored exclusively within a validated Hardware Security Module (HSM). You want to use a fully integrated Google Cloud managed service to handle the lifecycle and usage of these keys. What should you do?

  • AUse Customer-Supplied Encryption Keys (CSEK) by providing your on-premises generated key with each API request.
  • BImport your on-premises HSM key material into a Cloud KMS key with the SOFTWARE protection level.
  • CCreate a new key in Cloud Key Management Service (Cloud KMS) with the HSM protection level. (correct answer)
  • DConfigure Cloud External Key Manager (Cloud EKM) to connect to your on-premises HSM.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a new key in Cloud Key Management Service (Cloud KMS) with the HSM protection level.

Explanation

Cloud KMS manages encryption keys and integrates with Google Cloud services for encryption.

Topic 1 Β· Question 249

You are designing a central, automated infrastructure deployment process for your organization using Terraform and Cloud Build. The security team prohibits the use of long-lived, static service account keys in any CI/CD pipeline. Additionally, while developers can propose infrastructure changes for peer review, they must not have permissions to directly apply changes in the production project. You need to design a secure and automated workflow for applying Terraform changes that meets the security team's requirements and ensures proper governance. What should you do?

  • AConfigure the Cloud Build pipeline to use service account impersonation. Set up a trigger that automatically runs terraform apply when a pull request is merged.
  • BUse service account impersonation in Cloud Build. Configure the pipeline to run terraform plan on pull requests, and require manual approval before running terraform apply. (correct answer)
  • CConfigure the pipeline to only run terraform plan. After a pull request is approved, have an authorized developer run terraform apply from a secured workstation.
  • DCreate a privileged service account and store its JSON key in Secret Manager. Configure the Cloud Build pipeline to fetch this key during execution to authenticate Terraform.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use service account impersonation in Cloud Build. Configure the pipeline to run terraform plan on pull requests, and require manual approval before running terraform apply.

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. Terraform provisions Google Cloud infrastructure as code repeatably.

Topic 1 Β· Question 250

Your company is expanding its AI-powered operations nationwide and has chosen accelerator-based compute for the AI workloads. The batch image processing workloads are not time-sensitive and can tolerate interruptions. You need to rapidly deploy cost-effective accelerator nodes for these batch tasks, ensuring rapid deployment and data persistence when necessary. What should you do?

  • ADeploy standard VMs with configured accelerators and attached persistent disks.
  • BDeploy spot VMs with attached persistent disks and implement checkpoint mechanisms. (correct answer)
  • CDeploy spot VMs with local SSD to reduce time for bursty workloads
  • DDeploy Cloud Run functions with ephemeral local SSD.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Deploy spot VMs with attached persistent disks and implement checkpoint mechanisms.

Explanation

Spot VMs use spare capacity at a large discount for fault-tolerant, interruptible workloads. Persistent Disk provides durable block storage attached to Compute Engine VMs. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 251

A large, multinational corporation is migrating to Google Cloud. The company has several distinct business units: Finance, Marketing, and Research and Development (R&D). The central security team has mandated governance requirements for each business unit: β€’ Finance: Must be restricted to deploying resources only in specific, compliant regions (us-central1 and europe-west2). Access to their projects must be tightly controlled by a dedicated finance-admins group. β€’ Marketing: Needs separate environments for production and development, with different teams managing each environment. β€’ R&D: Requires maximum flexibility to experiment with new services but must be completely isolated to prevent any impact on production systems. β€’ Global Auditing: A central compliance team requires read-only access to view all resources across the entire company for auditing purposes. You need to design a resource hierarchy that enforces these security policies at scale according to the Google Cloud Well-Architected Framework while providing the correct level of autonomy for each business unit. What should you do?

  • ACreate a folder for each department under the root Organization node. Apply the resource location Organization Policy on the Finance folder. Within the Marketing folder, create separate projects for mktg-prod and mktg-dev. Grant the compliance team the roles/viewer role at the Organization level. (correct answer)
  • BPlace all projects directly under the Organization node. Use network tags and service accounts to enforce security boundaries between the different department workloads. Apply the resource location Organization Policy on the Finance project.
  • CCreate separate Google Cloud Organizations for each department (Finance, Marketing, and R&D). Grant the compliance team the roles/viewer role for each organization.
  • DCreate a single project for each department. Apply the resource location policy directly to the Finance project. Grant the compliance team the roles/browser role on each project individually.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a folder for each department under the root Organization node. Apply the resource location Organization Policy on the Finance folder. Within the Marketing folder, create separate projects for mktg-prod and mktg...

Explanation

Organization Policy sets guardrails that constrain how resources can be configured across the org.

Topic 1 Β· Question 252

Your organization is going to migrate applications to Kubernetes and use managed cloud services to deploy applications. Your team is new to Kubernetes and wants to quickly onboard engineers. You want to reduce operational overhead, so the engineering team can focus on developing consumer requirements instead of maintaining the infrastructure. What should you do?

  • APackage your application into a Docker image, and deploy it to Kubernetes on Compute Engine.
  • BLeverage Cloud Build to create a container image, and deploy it automatically to Kubernetes on Compute Engine.
  • CAssess application and dependencies for containerization Develop a migration strategy for deployment to GKE in Standard mode.
  • DAssess application and dependencies for containerization. Develop a migration strategy for deployment to GKE in Autopilot mode. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Assess application and dependencies for containerization. Develop a migration strategy for deployment to GKE in Autopilot mode.

Explanation

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

Topic 1 Β· Question 253

Your company runs a critical, revenue-generating ecommerce application that is served by a regional managed instance group (MIG) behind an external HTTP(S) Load Balancer. The operations team is currently overwhelmed with low-priority notifications and is starting to ignore alerts. Your team's service level objective (SLO) is to maintain 99.9% availability, which is measured by the ratio of successful requests (2xx status codes) to total requests. You want to minimize noise from non-critical events and ensure that the team is only notified of issues that are actionable and threaten the SLO. What should you do?

  • AFocus on cause-based alerts, creating alerting policies with thresholds for the Compute Engine instances, including CPU utilization, memory usage, disk I/O, and network traffic.
  • BCreate log-based alerts for only the WARN and ERROR log entries generated by the application to ensure that no potential issue is missed.
  • CImplement an error budget policy based on the availability of the SLO. Create a "page” alert that triggers only when the rate of burn of the error budget predicts a full exhaustion within the next 24 hours. (correct answer)
  • DConfigure alerts based on predictive metrics. Use the instance count of the MIG as the primary metric to trigger an alert.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Implement an error budget policy based on the availability of the SLO. Create a "page” alert that triggers only when the rate of burn of the error budget predicts a full exhaustion within the next 24 hours.

Topic 1 Β· Question 254

You manage a highly distributed, hybrid- and multi-cloud IT environment, and your developers rely heavily on Prometheus for their workflows. You need a cloud-based, highly scalable, low-maintenance enterprise solution that supports Prometheus Query Language (PromQL) queries, quick metric viewing, and efficient issue diagnosis. What should you do?

  • ADeploy a Prometheus operator in your existing Kubernetes and Serverless setup across multi-cloud environments.
  • BSet up Cloud Monitoring as a single pane of glass across multi-cloud environments.
  • CEnable Google Cloud Managed Service for Prometheus to monitor and alert on your workloads at scale. (correct answer)
  • DBuild a SaaS-based, Prometheus-compatible solution to display metrics for each cloud in a customizable way.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Enable Google Cloud Managed Service for Prometheus to monitor and alert on your workloads at scale.

Topic 1 Β· Question 255

Your organization uses Google Kubernetes Engine (GKE) and Amazon Elastic Kubernetes Service (EKS) to manage a complex Kubernetes environment across multiple cloud providers. You need to deploy a solution that streamlines configuration management, enforces security policies, and ensures consistent application deployment across all of the environments. You want to follow Google-recommended practices. What should you do?

  • ALeverage Argo CD for GitOps-based continuous delivery and Open Policy Agent (OPA) for policy enforcement, and develop a controller for multi-cluster configuration management.
  • BDeploy Crossplane for managing cloud resources as Kubernetes objects, FluxCD for GitOps-based configuration synchronization, and Kyverno for policy enforcement.
  • CDeploy Kustomize for configuration customization, Config Sync with multiple Git repositories, and a script to enforce security policies.
  • DUtilize Config Sync as part of GKE to synchronize configurations from a centralized repository, and utilize Policy Controller to enforce policies using OPA Gatekeeper. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Utilize Config Sync as part of GKE to synchronize configurations from a centralized repository, and utilize Policy Controller to enforce policies using OPA Gatekeeper.

Explanation

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

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

Your company is rapidly deploying containerized microservices on Google Kubernetes Engine (GKE) using a robust CI/CD pipeline. Security is a top priority, and you need to implement a comprehensive and efficient strategy to prevent container image vulnerabilities from reaching your GKE production environment. What should you do? (Choose two.)

  • AReview the security reports generated by Artifact Analysis for each container image before deployment to GKE.
  • BIncorporate vulnerability scanning before building container images, and use Google-maintained base images for your container deployments. (correct answer)
  • CEnable Artifact Analysis for the container images, and stop deployment if critical vulnerabilities are found. (correct answer)
  • DUse a custom security policy within your container image that restricts access to specific network ports and resources.
  • EEnable Shielded GKE Nodes on the production cluster to automatically block the execution of container images with known vulnerabilities.
Reveal answer & explanation
Correct answer: B, C

The correct answer is B, C. Option B: Incorporate vulnerability scanning before building container images, and use Google-maintained base images for your container deployments. Option C: Enable Artifact Analysis for the container images, and stop deployment if critical vulnerabilities are found.

Topic 1 Β· Question 257

Your organization is implementing a new cloud-native application on Google Cloud and needs to ensure compliance with the ISO/IEC 27001 framework. You want to leverage Google Cloud’s security reports and documentation to support your ISO/IEC 27001 audit process. What should you do?

  • AEngage an independent auditor to conduct an ISO/IEC 27001 audit of your organization's Google Cloud implementation.
  • BDownload the ISO/IEC 27001 report for Google Cloud through internet search.
  • CReview the Compliance Reports Manager for information about ISO/IEC 27001 compliance and related documentation on obtaining reports through your Google Cloud account. (correct answer)
  • DUtilize the Cloud Audit Logs service for accessing and requesting the ISO/IEC 27001 reports.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Review the Compliance Reports Manager for information about ISO/IEC 27001 compliance and related documentation on obtaining reports through your Google Cloud account.

Explanation

Compliance Reports Manager provides on-demand access to Google Cloud audit reports and certifications.

Topic 1 Β· Question 258

You are monitoring Google Kubernetes Engine (GKE) clusters in a Cloud Monitoring workspace. As a Site Reliability Engineer (SRE), you need to triage incidents quickly. What should you do?

  • A1. Navigate the predefined dashboards in the Cloud Monitoring workspace.2. Add metrics and create alert policies. (correct answer)
  • B1. Write a shell script that gathers metrics from GKE nodes, and publish these metrics to a Pub/Sub topic.2. Export the data to BigQuery. and make a Data Studio dashboard.
  • C1. Create a custom dashboard in the Cloud Monitoring workspace for each incident.2. Add metrics and create alert policies.
  • D1. Navigate the predefined dashboards in the Cloud Monitoring workspace.2. Create custom metrics and install alerting software on a Compute Engine instance.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: 1. Navigate the predefined dashboards in the Cloud Monitoring workspace.2. Add metrics and create alert policies.

Explanation

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

Topic 2 Β· Question 259

The JencoMart security team requires that all Google Cloud Platform infrastructure is deployed using a least privilege model with separation of duties for administration between production and development resources. What Google domain and project structure should you recommend?

  • ACreate two G Suite accounts to manage users: one for development/test/staging and one for production. Each account should contain one project for every application
  • BCreate two G Suite accounts to manage users: one with a single project for all development applications and one with a single project for all production applications
  • CCreate a single G Suite account to manage users with each stage of each application in its own project (correct answer)
  • DCreate a single G Suite account to manage users with one project for the development/test/staging environment and one project for the production environment
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a single G Suite account to manage users with each stage of each application in its own project.

Topic 2 Β· Question 260 Β· Select all that apply

A few days after JencoMart migrates the user credentials database to Google Cloud Platform and shuts down the old server, the new database server stops responding to SSH connections. It is still serving database requests to the application servers correctly. What three steps should you take to diagnose the problem? (Choose three.)

  • ADelete the virtual machine (VM) and disks and create a new one
  • BDelete the instance, attach the disk to a new VM, and investigate
  • CTake a snapshot of the disk and connect to a new machine to investigate (correct answer)
  • DCheck inbound firewall rules for the network the machine is connected to (correct answer)
  • EConnect the machine to another network with very simple firewall rules and investigate
  • FPrint the Serial Console output for the instance for troubleshooting, activate the interactive console, and investigate (correct answer)
Reveal answer & explanation
Correct answer: C, D, F

The correct answer is C, D, F. Option C: Take a snapshot of the disk and connect to a new machine to investigate Option D: Check inbound firewall rules for the network the machine is connected to Option F: Print the Serial Console output for the instance for troubleshooting, activate the interactive console, and investigate.

Showing questions 241–260 of 337 Β· Page 13 of 17