๐ŸŽ„

CertoMetrics - 15% OFF Special Discount Offer - Ends In:

0d 00h 00m 00s
Coupon code: SALE2026

Google Cloud Certified - Professional Cloud Developer (PR000266)

Get full access to the updated question bank and confidently prepare for your exam.

Vendor

Google

Certification

Google Professional certification

Content

391 Qs

Status

Verified

Updated

21 hours ago

Test the Practice Engine

Experience our interactive testing environment with free demo questions

Launch Free Demo
Best Value Bundle

Premium Bundle

Complete Success Suite

$103 $59

Save $44 Instantly

  • โœ“
    Full PDF + Interactive Engine Everything you need to pass
  • โœ“
    All Advanced Question Types Drag & Drop, Hotspots, Case Studies
  • โœ“
    Priority 24/7 Expert Support Direct line to certification leads
  • โœ“
    90 Days Free Priority Updates Stay current as exams change

Success Metric

98.4% Pass Rate

Verified by 15k+ Students
Secure Checkout
Popular

Standard Simulation

Practice Engine

$54

One-Time Payment

  • Web-Based (Zero Install)
  • Real Testing Environment Virtual & Practice Modes
  • Interactive Engine Drag & Drop, Hotspots
  • 60 Days Free Updates

Compatible with All Devices

Chrome
Verified Secure Checkout

Basic Tier

PDF Study Guide

$49

Digital Access

  • โœ“ Exam Questions (PDF)
  • โœ“ Mobile Friendly
  • โœ“ 60 Days Updates
Download Free Sample PDF

Verified 79-Question Preview (PR000266)

Secure Checkout

Verified Community

The CertoMetrics Standard.

Recommend the #1 platform for verified Google certification resources.

Success Network

Help a Colleague Succeed.

Invite a peer to get their own updated PR000266 prep kit.

Exam Overview

The Google Professional Cloud Developer certification validates your expertise in building and deploying scalable, highly available, and resilient applications on Google Cloud Platform. This credential signifies a deep understanding of modern cloud-native development practices, including serverless architectures, containerization, API management, and robust CI/CD pipelines. Achieving this certification demonstrates your ability to design, develop, and troubleshoot applications that leverage Google Cloud's extensive suite of services, enhancing your professional credibility and opening doors to advanced roles in cloud development. It's an essential milestone for developers aiming to lead projects that build secure, performant, and cost-effective solutions in a cloud-first world, proving your readiness to tackle complex development challenges.

Questions

50-60

Passing Score

700/1000

Duration

120 Minutes

Difficulty

Expert

Level

Professional

Skills Measured

Designing and building highly scalable, available, and resilient applications.
Implementing and managing APIs.
Deploying and integrating solutions.
Debugging and optimizing solutions.
Operating and monitoring solutions.

Career Path

Target Roles

Cloud Developer Software Engineer DevOps Engineer

Common Questions

Is the material up to date?

Yes. We update our question bank weekly to match the latest Google standards. You get free updates for 90 days.

What format do I get?

You get instant access to both the **PDF** (for reading) and our **Premium Test Engine** (for exam simulation).

Is there a guarantee?

Absolutely. If you fail the PR000266 exam using our materials, we offer a full money-back guarantee.

When do I get the download?

Instantly. The download link is available in your dashboard immediately after payment is confirmed.

Free Study Guide Samples

Previewing updated PR000266 bank (79 Questions).

QUESTION 1

Your team is building an application for a financial institution. The application's frontend runs on Compute Engine, and the data resides in Cloud SQL and one Cloud Storage bucket. The application will collect data containing PII, which will be stored in the Cloud SQL database and the Cloud Storage bucket. You need to secure the PII data. What should you do?

A
1. Create the relevant firewall rules to allow only the frontend to communicate with the Cloud SQL database.2. Using IAM, allow only the frontend service account to access the Cloud Storage bucket
B
1. Create the relevant firewall rules to allow only the frontend to communicate with the Cloud SQL database.2. Enable private access to allow the frontend to access the Cloud Storage bucket privately
C
1. Configure a private IP address for Cloud SQL2. Use VPC-SC to create a service perimeter3. Add the Cloud SQL database and the Cloud Storage bucket to the same service perimeter
D
1. Configure a private IP address for Cloud SQL2. Use VPC-SC to create a service perimeter3. Add the Cloud SQL database and the Cloud Storage bucket to different service perimeters

Correct Option: C

QUESTION 2

You are designing an application that consists of several microservices. Each microservice has its own RESTful API and will be deployed as a separate Kubernetes Service. You want to ensure that the consumers of these APIs aren't impacted when there is a change to your API, and also ensure that third-party systems aren't interrupted when new versions of the API are released. How should you configure the connection to the application following Google-recommended best practices?

A
Use an Ingress that uses the API's URL to route requests to the appropriate backend.
B
Leverage a Service Discovery system, and connect to the backend specified by the request.
C
Use multiple clusters, and use DNS entries to route requests to separate versioned backends.
D
Combine multiple versions in the same service, and then specify the API version in the POST request.

Correct Option: A

QUESTION 3

Your company has deployed a new API to a Compute Engine instance. During testing, the API is not behaving as expected. You want to monitor the application over 12 hours to diagnose the problem within the application code without redeploying the application. Which tool should you use?

A
Cloud Trace
B
Cloud Monitoring
C
Cloud Debugger logpoints
D
Cloud Debugger snapshots

Correct Option: C

QUESTION 4

You recently migrated an on-premises monolithic application to a microservices application on Google Kubernetes Engine (GKE). The application has dependencies on backend services on-premises, including a CRM system and a MySQL database that contains personally identifiable information (PII). The backend services must remain on-premises to meet regulatory requirements.

You established a Cloud VPN connection between your on-premises data center and Google Cloud. You notice that some requests from your microservices application on GKE to the backend services are failing due to latency issues caused by fluctuating bandwidth, which is causing the application to crash. How should you address the latency issues?

A
Use Memorystore to cache frequently accessed PII data from the on-premises MySQL database
B
Use Istio to create a service mesh that includes the microservices on GKE and the on-premises services.
C
Increase the number of Cloud VPN tunnels for the connection between Google Cloud and the on-premises services.
D
Decrease the network layer packet size by decreasing the Maximum Transmission Unit (MTU) value from its default value on Cloud VPN

Correct Option: C

QUESTION 5

You manage a microservices application on Google Kubernetes Engine (GKE) using Istio. You secure the communication channels between your microservices by implementing an Istio AuthorizationPolicy, a Kubernetes NetworkPolicy, and mTLS on your GKE cluster. You discover that HTTP requests between two Pods to specific URLs fail, while other requests to other URLs succeed. What is the cause of the connection issue?

A
A Kubernetes NetworkPolicy resource is blocking HTTP traffic between the Pods.
B
The Pod initiating the HTTP requests is attempting to connect to the target Pod via an incorrect TCP port.
C
The Authorization Policy of your cluster is blocking HTTP requests for specific paths within your application.
D
The cluster has mTLS configured in permissive mode, but the Pod's sidecar proxy is sending unencrypted traffic in plain text.

Correct Option: C

QUESTION 6

Your development team has built several Cloud Functions using Java along with corresponding integration and service tests. You are building and deploying the functions and launching the tests using Cloud Build. Your Cloud Build job is reporting deployment failures immediately after successfully validating the code. What should you do?

A
Check the maximum number of Cloud Function instances.
B
Verify that your Cloud Build trigger has the correct build parameters.
C
Retry the tests using the truncated exponential backoff polling strategy.
D
Verify that the Cloud Build service account is assigned the Cloud Functions Developer role.

Correct Option: D

QUESTION 7

Your organization has recently begun an initiative to replatform their legacy applications onto Google Kubernetes Engine. You need to decompose a monolithic application into microservices. Multiple instances have read and write access to a configuration file, which is stored on a shared file system. You want to minimize the effort required to manage this transition, and you want to avoid rewriting the application code. What should you do?

A
Create a new Cloud Storage bucket, and mount it via FUSE in the container.
B
Create a new persistent disk, and mount the volume as a shared PersistentVolume.
C
Create a new Filestore instance, and mount the volume as an NFS PersistentVolume.
D
Create a new ConfigMap and volumeMount to store the contents of the configuration file.

Correct Option: C

QUESTION 8

Your company has a new security initiative that requires all data stored in Google Cloud to be encrypted by customer-managed encryption keys. You plan to use Cloud Key Management Service (KMS) to configure access to the keys. You need to follow the "separation of duties" principle and Google-recommended best practices. What should you do? (Choose two.)

A
Provision Cloud KMS in its own project.
B
Do not assign an owner to the Cloud KMS project.
C
Provision Cloud KMS in the project where the keys are being used.
D
Grant the roles/cloudkms.admin role to the owner of the project where the keys from Cloud KMS are being used.
E
Grant an owner role for the Cloud KMS project to a different user than the owner of the project where the keys from Cloud KMS are being used.

Correct Option: A,B

QUESTION 9

You manage your company's ecommerce platform's payment system, which runs on Google Cloud. Your company must retain user logs for 1 year for internal auditing purposes and for 3 years to meet compliance requirements. You need to store new user logs on Google Cloud to minimize on-premises storage usage and ensure that they are easily searchable. You want to minimize effort while ensuring that the logs are stored correctly. What should you do?

A
Store the logs in a Cloud Storage bucket with bucket lock turned on.
B
Store the logs in a Cloud Storage bucket with a 3-year retention period.
C
Store the logs in Cloud Logging as custom logs with a custom retention period.
D
Store the logs in a Cloud Storage bucket with a 1-year retention period. After 1 year, move the logs to another bucket with a 2-year retention period.

Correct Option: C

QUESTION 10

You are developing an application that consists of several microservices running in a Google Kubernetes Engine cluster. One microservice needs to connect to a third-party database running on-premises. You need to store credentials to the database and ensure that these credentials can be rotated while following security best practices. What should you do?

A
Store the credentials in a sidecar container proxy, and use it to connect to the third-party database.
B
Configure a service mesh to allow or restrict traffic from the Pods in your microservice to the database.
C
Store the credentials in an encrypted volume mount, and associate a Persistent Volume Claim with the client Pod.
D
Store the credentials as a Kubernetes Secret, and use the Cloud Key Management Service plugin to handle encryption and decryption.

Correct Option: D

QUESTION 11

How should HipLocal redesign their architecture to ensure that the application scales to support a large increase in users?

A
Use Google Kubernetes Engine (GKE) to run the application as a microservice. Run the MySQL database on a dedicated GKE node.
B
Use multiple Compute Engine instances to run MySQL to store state information. Use a Google Cloud-managed load balancer to distribute the load between instances. Use managed instance groups for scaling.
C
Use Memorystore to store session information and CloudSQL to store state information. Use a Google Cloud-managed load balancer to distribute the load between instances. Use managed instance groups for scaling.
D
Use a Cloud Storage bucket to serve the application as a static website, and use another Cloud Storage bucket to store user state information.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 12

HipLocal's application uses Cloud Client Libraries to interact with Google Cloud. HipLocal needs to configure authentication and authorization in the Cloud Client Libraries to implement least privileged access for the application. What should they do?

A
Create an API key. Use the API key to interact with Google Cloud.
B
Use the default compute service account to interact with Google Cloud.
C
Create a service account for the application. Export and deploy the private key for the application. Use the service account to interact with Google Cloud.
D
Create a service account for the application and for each Google Cloud API used by the application. Export and deploy the private keys used by the application. Use the service account with one Google Cloud API to interact with Google Cloud.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 13

How should HipLocal increase their API development speed while continuing to provide the QA team with a stable testing environment that meets feature requirements?

A
Include unit tests in their code, and prevent deployments to QA until all tests have a passing status.
B
Include performance tests in their code, and prevent deployments to QA until all tests have a passing status.
C
Create health checks for the QA environment, and redeploy the APIs at a later time if the environment is unhealthy.
D
Redeploy the APIs to App Engine using Traffic Splitting. Do not move QA traffic to the new versions if errors are found.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 14

One of your deployed applications in Google Kubernetes Engine (GKE) is having intermittent performance issues. Your team uses a third-party logging solution. You want to install this solution on each node in your GKE cluster so you can view the logs. What should you do?

A
Deploy the third-party solution as a DaemonSet
B
Modify your container image to include the monitoring software.
C
Use SSH to connect to the GKE node, and install the software manually.
D
Deploy the third-party solution using Terraform and deploy the logging Pod as a Kubernetes Deployment

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 15

You are developing an application that needs to store files belonging to users in Cloud Storage. You want each user to have their own subdirectory in Cloud Storage. When a new user is created, the corresponding empty subdirectory should also be created. What should you do?

A
Create an object with the name of the subdirectory ending with a trailing slash ('/') that is zero bytes in length.
B
Create an object with the name of the subdirectory, and then immediately delete the object within that subdirectory.
C
Create an object with the name of the subdirectory that is zero bytes in length and has WRITER access control list permission.
D
Create an object with the name of the subdirectory that is zero bytes in length. Set the Content-Type metadata to CLOUDSTORAGE_FOLDER.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 16

You are building a mobile application that will store hierarchical data structures in a database. The application will enable users working offline to sync changes when they are back online. A backend service will enrich the data in the database using a service account. The application is expected to be very popular and needs to scale seamlessly and securely. Which database and IAM role should you use?

A
Use Cloud SQL, and assign the roles/cloudsql.editor role to the service account.
B
Use Bigtable, and assign the roles/bigtable.viewer role to the service account.
C
Use Firestore in Native mode and assign the roles/datastore.user role to the service account.
D
Use Firestore in Datastore mode and assign the roles/datastore.viewer role to the service account.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 17

You are using the Cloud Client Library to upload an image in your application to Cloud Storage. Users of the application report that occasionally the upload does not complete and the client library reports an HTTP 504 Gateway Timeout error. You want to make the application more resilient to errors. What changes to the application should you make?

A
Write an exponential backoff process around the client library call.
B
Write a one-second wait time backoff process around the client library call.
C
Design a retry button in the application and ask users to click if the error occurs.
D
Create a queue for the object and inform the users that the application will try again in 10 minutes.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 18

Your team develops services that run on Google Cloud. You want to process messages sent to a Pub/Sub topic, and then store them. Each message must be processed exactly once to avoid duplication of data and any data conflicts. You need to use the cheapest and most simple solution. What should you do?

A
Process the messages with a Dataproc job, and write the output to storage.
B
Process the messages with a Dataflow streaming pipeline using Apache Beam's PubSubIO package, and write the output to storage.
C
Process the messages with a Cloud Function, and write the results to a BigQuery location where you can run a job to deduplicate the data.
D
Retrieve the messages with a Dataflow streaming pipeline, store them in Cloud Bigtable, and use another Dataflow streaming pipeline to deduplicate messages.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 19

Your company just experienced a Google Kubernetes Engine (GKE) API outage due to a zone failure. You want to deploy a highly available GKE architecture that minimizes service interruption to users in the event of a future zone failure. What should you do?

A
Deploy Zonal clusters.
B
Deploy Regional clusters.
C
Deploy Multi-Zone clusters.
D
Deploy GKE on-premises clusters.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 20

This architectural diagram depicts a system that streams data from thousands of devices. You want to ingest data into a pipeline, store the data, and analyze the data using SQL statements. Which Google Cloud services should you use for steps 1, 2, 3, and 4?

A
1. App Engine2. Pub/Sub3. BigQuery4. Firestore
B
1. Dataflow2. Pub/Sub3. Firestore4. BigQuery
C
1. Pub/Sub2. Dataflow3. BigQuery4. Firestore
D
1. Pub/Sub2. Dataflow3. Firestore4. BigQuery

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 21

You want to migrate an on-premises container running in Knative to Google Cloud. You need to make sure that the migration doesn't affect your application's deployment strategy, and you want to use a fully managed service. Which Google Cloud service should you use to deploy your container?

A
Cloud Run
B
Compute Engine
C
Google Kubernetes Engine
D
App Engine flexible environment

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 22

You are designing an application that uses a microservices architecture. You are planning to deploy the application in the cloud and on-premises. You want to make sure the application can scale up on demand and also use managed services as much as possible. What should you do?

A
Deploy open source Istio in a multi-cluster deployment on multiple Google Kubernetes Engine (GKE) clusters managed by Anthos.
B
Create a GKE cluster in each environment with Anthos, and use Cloud Run for Anthos to deploy your application to each cluster.
C
Install a GKE cluster in each environment with Anthos, and use Cloud Build to create a Deployment for your application in each cluster.
D
Create a GKE cluster in the cloud and install open-source Kubernetes on-premises. Use an external load balancer service to distribute traffic across the two environments.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 23

You are a developer working on an internal application for payroll processing. You are building a component of the application that allows an employee to submit a timesheet, which then initiates several steps:

โ€ข An email is sent to the employee and manager, notifying them that the timesheet was submitted.

โ€ข A timesheet is sent to payroll processing for the vendor's API.

โ€ข A timesheet is sent to the data warehouse for headcount planning.

These steps are not dependent on each other and can be completed in any order. New steps are being considered and will be implemented by different development teams. Each development team will implement the error handling specific to their step. What should you do?

A
Deploy a Cloud Function for each step that calls the corresponding downstream system to complete the required action.
B
Create a Pub/Sub topic for each step. Create a subscription for each downstream development team to subscribe to their step's topic.
C
Create a Pub/Sub topic for timesheet submissions. Create a subscription for each downstream development team to subscribe to the topic.
D
Create a timesheet microservice deployed to Google Kubernetes Engine. The microservice calls each downstream step and waits for a successful response before calling the next step.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 24

Your development team has been tasked with maintaining a .NET legacy application. The application incurs occasional changes and was recently updated. Your goal is to ensure that the application provides consistent results while moving through the CI/CD pipeline from environment to environment. You want to minimize the cost of deployment while making sure that external factors and dependencies between hosting environments are not problematic. Containers are not yet approved in your organization. What should you do?

A
Rewrite the application using .NET Core, and deploy to Cloud Run. Use revisions to separate the environments.
B
Use Cloud Build to deploy the application as a new Compute Engine image for each build. Use this image in each environment.
C
Deploy the application using MS Web Deploy, and make sure to always use the latest, patched MS Windows Server base image in Compute Engine.
D
Use Cloud Build to package the application, and deploy to a Google Kubernetes Engine cluster. Use namespaces to separate the environments.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 25

You are developing a microservice-based application that will run on Google Kubernetes Engine (GKE). Some of the services need to access different Google Cloud APIs. How should you set up authentication of these services in the cluster following Google-recommended best practices? (Choose two.)

A
Use the service account attached to the GKE node.
B
Enable Workload Identity in the cluster via the gcloud command-line tool.
C
Access the Google service account keys from a secret management service.
D
Store the Google service account keys in a central secret management service.
E
Use gcloud to bind the Kubernetes service account and the Google service account using roles/iam.workloadIdentity.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 26

Your application is composed of a set of loosely coupled services orchestrated by code executed on Compute Engine. You want your application to easily bring up new Compute Engine instances that find and use a specific version of a service. How should this be configured?

A
Define your service endpoint information as metadata that is retrieved at runtime and used to connect to the desired service.
B
Define your service endpoint information as label data that is retrieved at runtime and used to connect to the desired service.
C
Define your service endpoint information to be retrieved from an environment variable at runtime and used to connect to the desired service.
D
Define your service to use a fixed hostname and port to connect to the desired service. Replace the service at the endpoint with your new version.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 27

Your companyโ€™s product team has a new requirement based on customer demand to autoscale your stateless and distributed service running in a Google Kubernetes Engine (GKE) duster. You want to find a solution that minimizes changes because this feature will go live in two weeks. What should you do?

A
Deploy a Vertical Pod Autoscaler, and scale based on the CPU load.
B
Deploy a Vertical Pod Autoscaler, and scale based on a custom metric.
C
Deploy a Horizontal Pod Autoscaler, and scale based on the CPU toad.
D
Deploy a Horizontal Pod Autoscaler, and scale based on a custom metric.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 28

The development teams in your company want to manage resources from their local environments. You have been asked to enable developer access to each teamโ€™s Google Cloud projects. You want to maximize efficiency while following Google-recommended best practices. What should you do?

A
Add the users to their projects, assign the relevant roles to the users, and then provide the users with each relevant Project ID.
B
Add the users to their projects, assign the relevant roles to the users, and then provide the users with each relevant Project Number.
C
Create groups, add the users to their groups, assign the relevant roles to the groups, and then provide the users with each relevant Project ID.
D
Create groups, add the users to their groups, assign the relevant roles to the groups, and then provide the users with each relevant Project Number.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 29

You need to deploy a new European version of a website hosted on Google Kubernetes Engine. The current and new websites must be accessed via the same HTTP(S) load balancer's external IP address, but have different domain names. What should you do?

A
Define a new Ingress resource with a host rule matching the new domain.
B
Modify the existing Ingress resource with a host rule matching the new domain.
C
Create a new Service of type LoadBalancer specifying the existing IP address as the loadBalancerIP
D
Generate a new Ingress resource and specify the existing IP address as the kubernetes.io/ingress.global-static-ip-name annotation value.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 30

Your operations team has asked you to create a script that lists the Cloud Bigtable, Memorystore, and Cloud SQL databases running within a project. The script should allow users to submit a filter expression to limit the results presented. How should you retrieve the data?

A
Use the HBase API, Redis API, and MySQL connection to retrieve database lists. Combine the results, and then apply the filter to display the results.
B
Use the HBase API, Redis API, and MySQL connection to retrieve database lists. Filter the results individually, and then combine them to display the results.
C
Run gcloud bigtable instances list, gcloud redis instances list, and gcloud sql databases list. Use a filter within the application, and then display the results.
D
Run gcloud bigtable instances list, gcloud redis instances list, and gcloud sql databases list. Use --filter flag with each command, and then display the results.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 31

You are building a CI/CD pipeline that consists of a version control system, Cloud Build, and Container Registry. Each time a new tag is pushed to the repository, a Cloud Build job is triggered, which runs unit tests on the new code builds a new Docker container image, and pushes it into Container Registry. The last step of your pipeline should deploy the new container to your production Google Kubernetes Engine (GKE) cluster. You need to select a tool and deployment strategy that meets the following requirements:

โ€ข Zero downtime is incurred

โ€ข Testing is fully automated

โ€ข Allows for testing before being rolled out to users

โ€ข Can quickly rollback if needed

What should you do?

A
Trigger a Spinnaker pipeline configured as an A/B test of your new code and, if it is successful, deploy the container to production.
B
Trigger a Spinnaker pipeline configured as a canary test of your new code and, if it is successful, deploy the container to production.
C
Trigger another Cloud Build job that uses the Kubernetes CLI tools to deploy your new container to your GKE cluster, where you can perform a canary test.
D
Trigger another Cloud Build job that uses the Kubernetes CLI tools to deploy your new container to your GKE cluster, where you can perform a shadow test.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 32

You are configuring a continuous integration pipeline using Cloud Build to automate the deployment of new container images to Google Kubernetes Engine (GKE). The pipeline builds the application from its source code, runs unit and integration tests in separate steps, and pushes the container to Container Registry. The application runs on a Python web server.

The Dockerfile is as follows:

FROM python:3.7-alpine -

COPY . /app -

WORKDIR /app -

RUN pip install -r requirements.txt

CMD [ "gunicorn", "-w 4", "main:app" ]

You notice that Cloud Build runs are taking longer than expected to complete. You want to decrease the build time. What should you do? (Choose two.)

A
Select a virtual machine (VM) size with higher CPU for Cloud Build runs.
B
Deploy a Container Registry on a Compute Engine VM in a VPC, and use it to store the final images.
C
Cache the Docker image for subsequent builds using the -- cache-from argument in your build config file.
D
Change the base image in the Dockerfile to ubuntu:latest, and install Python 3.7 using a package manager utility.
E
Store application source code on Cloud Storage, and configure the pipeline to use gsutil to download the source code.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 33

Your companyโ€™s development teams want to use various open source operating systems in their Docker builds. When images are created in published containers in your companyโ€™s environment, you need to scan them for Common Vulnerabilities and Exposures (CVEs). The scanning process must not impact software development agility. You want to use managed services where possible. What should you do?

A
Enable the Vulnerability scanning setting in the Container Registry.
B
Create a Cloud Function that is triggered on a code check-in and scan the code for CVEs.
C
Disallow the use of non-commercially supported base images in your development environment.
D
Use Cloud Monitoring to review the output of Cloud Build to determine whether a vulnerable version has been used.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 34

You recently developed a new service on Cloud Run. The new service authenticates using a custom service and then writes transactional information to a Cloud Spanner database. You need to verify that your application can support up to 5,000 read and 1,000 write transactions per second while identifying any bottlenecks that occur. Your test infrastructure must be able to autoscale. What should you do?

A
Build a test harness to generate requests and deploy it to Cloud Run. Analyze the VPC Flow Logs using Cloud Logging.
B
Create a Google Kubernetes Engine cluster running the Locust or JMeter images to dynamically generate load tests. Analyze the results using Cloud Trace.
C
Create a Cloud Task to generate a test load. Use Cloud Scheduler to run 60,000 Cloud Task transactions per minute for 10 minutes. Analyze the results using Cloud Monitoring.
D
Create a Compute Engine instance that uses a LAMP stack image from the Marketplace, and use Apache Bench to generate load tests against the service. Analyze the results using Cloud Trace.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 35

Your company needs a database solution that stores customer purchase history and meets the following requirements:

โœ‘ Customers can query their purchase immediately after submission.

โœ‘ Purchases can be sorted on a variety of fields.

โœ‘ Distinct record formats can be stored at the same time.

Which storage option satisfies these requirements?

A
Firestore in Native mode
B
Cloud Storage using an object read.
C
Cloud SQL using a SQL SELECT statement.
D
Firestore in Datastore mode using a global query.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 36

You want to upload files from an on-premises virtual machine to Google Cloud Storage as part of a data migration. These files will be consumed by Cloud DataProc Hadoop cluster in a GCP environment.

Which command should you use?

A
gsutil cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
B
gcloud cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
C
hadoop fs cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/
D
gcloud dataproc cp [LOCAL_OBJECT] gs://[DESTINATION_BUCKET_NAME]/

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 37

You need to load-test a set of REST API endpoints that are deployed to Cloud Run. The API responds to HTTP POST requests. Your load tests must meet the following requirements:

โ€ข Load is initiated from multiple parallel threads.

โ€ข User traffic to the API originates from multiple source IP addresses.

โ€ข Load can be scaled up using additional test instances.

You want to follow Google-recommended best practices. How should you configure the load testing?

A
Create an image that has cURL installed, and configure cURL to run a test plan. Deploy the image in a managed instance group, and run one instance of the image for each VM.
B
Create an image that has cURL installed, and configure cURL to run a test plan. Deploy the image in an unmanaged instance group, and run one instance of the image for each VM.
C
Deploy a distributed load testing framework on a private Google Kubernetes Engine cluster. Deploy additional Pods as needed to initiate more traffic and support the number of concurrent users.
D
Download the container image of a distributed load testing framework on Cloud Shell. Sequentially start several instances of the container on Cloud Shell to increase the load on the API.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 38

You migrated your applications to Google Cloud Platform and kept your existing monitoring platform. You now find that your notification system is too slow for time critical problems.

What should you do?

A
Replace your entire monitoring platform with Stackdriver.
B
Install the Stackdriver agents on your Compute Engine instances.
C
Use Stackdriver to capture and alert on logs, then ship them to your existing platform.
D
Migrate some traffic back to your old platform and perform AB testing on the two platforms concurrently.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 39

You recently developed a web application to transfer log data to a Cloud Storage bucket daily. Authenticated users will regularly review logs from the prior two weeks for critical events. After that, logs will be reviewed once annually by an external auditor. Data must be stored for a period of no less than 7 years. You want to propose a storage solution that meets these requirements and minimizes costs. What should you do? (Choose two.)

A
Use the Bucket Lock feature to set the retention policy on the data.
B
Run a scheduled job to set the storage class to Coldline for objects older than 14 days.
C
Create a JSON Web Token (JWT) for users needing access to the Coldline storage buckets.
D
Create a lifecycle management policy to set the storage class to Coldline for objects older than 14 days.
E
Create a lifecycle management policy to set the storage class to Nearline for objects older than 14 days.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 40

You are planning to migrate a MySQL database to the managed Cloud SQL database for Google Cloud. You have Compute Engine virtual machine instances that will connect with this Cloud SQL instance. You do not want to whitelist IPs for the Compute Engine instances to be able to access Cloud SQL.

What should you do?

A
Enable private IP for the Cloud SQL instance.
B
Whitelist a project to access Cloud SQL, and add Compute Engine instances in the whitelisted project.
C
Create a role in Cloud SQL that allows access to the database from external instances, and assign the Compute Engine instances to that role.
D
Create a CloudSQL instance on one project. Create Compute engine instances in a different project. Create a VPN between these two projects to allow internal access to CloudSQL.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 41

You are a developer at a financial institution. You use Cloud Shell to interact with Google Cloud services. User data is currently stored on an ephemeral disk; however, a recently passed regulation mandates that you can no longer store sensitive information on an ephemeral disk. You need to implement a new storage solution for your user data. You want to minimize code changes. Where should you store your user data?

A
Store user data on a Cloud Shell home disk, and log in at least every 120 days to prevent its deletion.
B
Store user data on a persistent disk in a Compute Engine instance.
C
Store user data in a Cloud Storage bucket.
D
Store user data in BigQuery tables.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 42

You have deployed an HTTP(s) Load Balancer with the gcloud commands shown below.

Health checks to port 80 on the Compute Engine virtual machine instance are failing and no traffic is sent to your instances. You want to resolve the problem.

Which commands should you run?

A
gcloud compute instances add-access-config ${NAME}-backend-instance-1.
B
gcloud compute instances add-tags ${NAME}-backend-instance-1 --tags http-server.
C
gcloud compute firewall-rules create allow-lb --network load-balancer --allow tcp --source-ranges 130.211.0.0/22,35.191.0.0/16 --direction INGRESS.
D
gcloud compute firewall-rules create allow-lb --network load-balancer --allow tcp --destination-ranges 130.211.0.0/22,35.191.0.0/16 --direction EGRESS.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 43

You are responsible for deploying a new API. That API will have three different URL paths:

โ€ข https://yourcompany.com/students

โ€ข https://yourcompany.com/teachers

โ€ข https://yourcompany.com/classes

You need to configure each API URL path to invoke a different function in your code. What should you do?

A
Create one Cloud Function as a backend service exposed using an HTTPS load balancer.
B
Create three Cloud Functions exposed directly.
C
Create one Cloud Function exposed directly.
D
Create three Cloud Functions as three backend services exposed using an HTTPS load balancer.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 44

Your website is deployed on Compute Engine. Your marketing team wants to test conversion rates between 3 different website designs.

Which approach should you use?

A
Deploy the website on App Engine and use traffic splitting.
B
Deploy the website on App Engine as three separate services.
C
Deploy the website on Cloud Functions and use traffic splitting.
D
Deploy the website on Cloud Functions as three separate functions.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 45

You are developing a new public-facing application that needs to retrieve specific properties in the metadata of usersโ€™ objects in their respective Cloud Storage buckets. Due to privacy and data residency requirements, you must retrieve only the metadata and not the object data. You want to maximize the performance of the retrieval process. How should you retrieve the metadata?

A
Use the patch method.
B
Use the compose method.
C
Use the copy method.
D
Use the fields request parameter.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 46

You need to copy directory local-scripts and all of its contents from your local workstation to a Compute Engine virtual machine instance.

Which command should you use?

A
gsutil cp --project ื’โ‚ฌmy-gcp-projectื’โ‚ฌ -r ~/local-scripts/ gcp-instance-name:~/server-scripts/ --zone ื’โ‚ฌus-east1-bื’โ‚ฌ
B
gsutil cp --project ื’โ‚ฌmy-gcp-projectื’โ‚ฌ -R ~/local-scripts/ gcp-instance-name:~/server-scripts/ --zone ื’โ‚ฌus-east1-bื’โ‚ฌ
C
gcloud compute scp --project ื’โ‚ฌmy-gcp-projectื’โ‚ฌ --recurse ~/local-scripts/ gcp-instance-name:~/server-scripts/ --zone ื’โ‚ฌus-east1-bื’โ‚ฌ
D
gcloud compute mv --project ื’โ‚ฌmy-gcp-projectื’โ‚ฌ --recurse ~/local-scripts/ gcp-instance-name:~/server-scripts/ --zone ื’โ‚ฌus-east1-bื’โ‚ฌ

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 47

You have an application deployed in Google Kubernetes Engine (GKE) that reads and processes Pub/Sub messages. Each Pod handles a fixed number of messages per minute. The rate at which messages are published to the Pub/Sub topic varies considerably throughout the day and week, including occasional large batches of messages published at a single moment.

You want to scale your GKE Deployment to be able to process messages in a timely manner. What GKE feature should you use to automatically adapt your workload?

A
Vertical Pod Autoscaler in Auto mode
B
Vertical Pod Autoscaler in Recommendation mode
C
Horizontal Pod Autoscaler based on an external metric.
D
Horizontal Pod Autoscaler based on resources utilization.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 48

You are deploying your application to a Compute Engine virtual machine instance with the Stackdriver Monitoring Agent installed. Your application is a unix process on the instance. You want to be alerted if the unix process has not run for at least 5 minutes. You are not able to change the application to generate metrics or logs.

Which alert condition should you configure?

A
Uptime check
B
Process health
C
Metric absence
D
Metric threshold

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 49

HipLocal is expanding into new locations. They must capture additional data each time the application is launched in a new European country. This is causing delays in the development process due to constant schema changes and a lack of environments for conducting testing on the application changes. How should they resolve the issue while meeting the business requirements?

A
Create new Cloud SQL instances in Europe and North America for testing and deployment. Provide developers with local MySQL instances to conduct testing on the application changes.
B
Migrate data to Bigtable. Instruct the development teams to use the Cloud SDK to emulate a local Bigtable development environment.
C
Move from Cloud SQL to MySQL hosted on Compute Engine. Replicate hosts across regions in the Americas and Europe. Provide developers with local MySQL instances to conduct testing on the application changes.
D
Migrate data to Firestore in Native mode and set up instances in Europe and North America. Instruct the development teams to use the Cloud SDK to emulate a local Firestore in Native mode development environment.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 50

You have two tables in an ANSI-SQL compliant database with identical columns that you need to quickly combine into a single table, removing duplicate rows from the result set.

What should you do?

A
Use the JOIN operator in SQL to combine the tables.
B
Use nested WITH statements to combine the tables.
C
Use the UNION operator in SQL to combine the tables.
D
Use the UNION ALL operator in SQL to combine the tables.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 51

Which Google Cloud product addresses HipLocalโ€™s business requirements for service level indicators and objectives?

A
Cloud Profiler
B
Cloud Monitoring
C
Cloud Trace
D
Cloud Logging

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 52

You have an application deployed in production. When a new version is deployed, some issues don't arise until the application receives traffic from users in production. You want to reduce both the impact and the number of users affected.

Which deployment strategy should you use?

A
Blue/green deployment
B
Canary deployment
C
Rolling deployment
D
Recreate deployment.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 53

You are running a web application on Google Kubernetes Engine that you inherited. You want to determine whether the application is using libraries with known vulnerabilities or is vulnerable to XSS attacks. Which service should you use?

A
Google Cloud Armor
B
Debugger
C
Web Security Scanner
D
Error Reporting

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 54

Your company wants to expand their users outside the United States for their popular application. The company wants to ensure 99.999% availability of the database for their application and also wants to minimize the read latency for their users across the globe.

Which two actions should they take? (Choose two.)

A
Create a multi-regional Cloud Spanner instance with "nam-asia-eur1" configuration.
B
Create a multi-regional Cloud Spanner instance with "nam3" configuration.
C
Create a cluster with at least 3 Spanner nodes.
D
Create a cluster with at least 1 Spanner node.
E
Create a minimum of two Cloud Spanner instances in separate regions with at least one node.
F
Create a Cloud Dataflow pipeline to replicate data across different databases.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 55

You are developing an application that will handle requests from end users. You need to secure a Cloud Function called by the application to allow authorized end users to authenticate to the function via the application while restricting access to unauthorized users. You will integrate Google Sign-In as part of the solution and want to follow Google-recommended best practices. What should you do?

A
Deploy from a source code repository and grant users the roles/cloudfunctions.viewer role.
B
Deploy from a source code repository and grant users the roles/cloudfunctions.invoker role.
C
Deploy from your local machine using gcloud and grant users the roles/cloudfunctions.admin role.
D
Deploy from your local machine using gcloud and grant users the roles/cloudfunctions.developer role.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 56

You need to migrate an internal file upload API with an enforced 500-MB file size limit to App Engine.

What should you do?

A
Use FTP to upload files.
B
Use CPanel to upload files.
C
Use signed URLs to upload files.
D
Change the API to be a multipart file upload API.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 57

Your companyโ€™s corporate policy states that there must be a copyright comment at the very beginning of all source files. You want to write a custom step in Cloud Build that is triggered by each source commit. You need the trigger to validate that the source contains a copyright and add one for subsequent steps if not there. What should you do?

A
Build a new Docker container that examines the files in /workspace and then checks and adds a copyright for each source file. Changed files are explicitly committed back to the source repository.
B
Build a new Docker container that examines the files in /workspace and then checks and adds a copyright for each source file. Changed files do not need to be committed back to the source repository.
C
Build a new Docker container that examines the files in a Cloud Storage bucket and then checks and adds a copyright for each source file. Changed files are written back to the Cloud Storage bucket.
D
Build a new Docker container that examines the files in a Cloud Storage bucket and then checks and adds a copyright for each source file. Changed files are explicitly committed back to the source repository.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 58

You are planning to deploy your application in a Google Kubernetes Engine (GKE) cluster. The application exposes an HTTP-based health check at /healthz. You want to use this health check endpoint to determine whether traffic should be routed to the pod by the load balancer.

Which code snippet should you include in your Pod configuration?

A
B.
C
Option C

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 59

You made a typo in a low-level Linux configuration file that prevents your Compute Engine instance from booting to a normal run level. You just created the Compute Engine instance today and have done no other maintenance on it, other than tweaking files. How should you correct this error?

A
Download the file using scp, change the file, and then upload the modified version.
B
Configure and log in to the Compute Engine instance through SSH, and change the file.
C
Configure and log in to the Compute Engine instance through the serial port, and change the file.
D
Configure and log in to the Compute Engine instance using a remote desktop client, and change the file.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 60

Your teammate has asked you to review the code below. Its purpose is to efficiently add a large number of small rows to a BigQuery table.

Which improvement should you suggest your teammate make?

A
Include multiple rows with each request.
B
Perform the inserts in parallel by creating multiple threads.
C
Write each row to a Cloud Storage object, then load into BigQuery.
D
Write each row to a Cloud Storage object in parallel, then load into BigQuery.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 61

Users are complaining that your Cloud Run-hosted website responds too slowly during traffic spikes. You want to provide a better user experience during traffic peaks. What should you do?

A
Read application configuration and static data from the database on application startup.
B
Package application configuration and static data into the application image during build time.
C
Perform as much work as possible in the background after the response has been returned to the user.
D
Ensure that timeout exceptions and errors cause the Cloud Run instance to exit quickly so a replacement instance can be started.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 62

You are developing a JPEG image-resizing API hosted on Google Kubernetes Engine (GKE). Callers of the service will exist within the same GKE cluster. You want clients to be able to get the IP address of the service.

What should you do?

A
Define a GKE Service. Clients should use the name of the A record in Cloud DNS to find the service's cluster IP address.
B
Define a GKE Service. Clients should use the service name in the URL to connect to the service.
C
Define a GKE Endpoint. Clients should get the endpoint name from the appropriate environment variable in the client container.
D
Define a GKE Endpoint. Clients should get the endpoint name from Cloud DNS.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 63

You are using Cloud Build for your CI/CD pipeline to complete several tasks, including copying certain files to Compute Engine virtual machines. Your pipeline requires a flat file that is generated in one builder in the pipeline to be accessible by subsequent builders in the same pipeline. How should you store the file so that all the builders in the pipeline can access it?

A
Store and retrieve the file contents using Compute Engine instance metadata.
B
Output the file contents to a file in /workspace. Read from the same /workspace file in the subsequent build step.
C
Use gsutil to output the file contents to a Cloud Storage object. Read from the same object in the subsequent build step.
D
Add a build argument that runs an HTTP POST via curl to a separate web server to persist the value in one builder. Use an HTTP GET via curl from the subsequent build step to read the value.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 64

You are using Cloud Build to build and test application source code stored in Cloud Source Repositories. The build process requires a build tool not available in the Cloud Build environment.

What should you do?

A
Download the binary from the internet during the build process.
B
Build a custom cloud builder image and reference the image in your build steps.
C
Include the binary in your Cloud Source Repositories repository and reference it in your build scripts.
D
Ask to have the binary added to the Cloud Build environment by filing a feature request against the Cloud Build public Issue Tracker.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 65

You are deploying a microservices application to Google Kubernetes Engine (GKE). The application will receive daily updates. You expect to deploy a large number of distinct containers that will run on the Linux operating system (OS). You want to be alerted to any known OS vulnerabilities in the new containers. You want to follow Google-recommended best practices. What should you do?

A
Use the gcloud CLI to call Container Analysis to scan new container images. Review the vulnerability results before each deployment.
B
Enable Container Analysis, and upload new container images to Artifact Registry. Review the vulnerability results before each deployment.
C
Enable Container Analysis, and upload new container images to Artifact Registry. Review the critical vulnerability results before each deployment.
D
Use the Container Analysis REST API to call Container Analysis to scan new container images. Review the vulnerability results before each deployment.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 66

You are deploying your application to a Compute Engine virtual machine instance. Your application is configured to write its log files to disk. You want to view the logs in Stackdriver Logging without changing the application code.

What should you do?

A
Install the Stackdriver Logging Agent and configure it to send the application logs.
B
Use a Stackdriver Logging Library to log directly from the application to Stackdriver Logging.
C
Provide the log file folder path in the metadata of the instance to configure it to send the application logs.
D
Change the application to log to /var/log so that its logs are automatically sent to Stackdriver Logging.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 67

Your team manages a Google Kubernetes Engine (GKE) cluster where an application is running. A different team is planning to integrate with this application. Before they start the integration, you need to ensure that the other team cannot make changes to your application, but they can deploy the integration on GKE. What should you do?

A
Using Identity and Access Management (IAM), grant the Viewer IAM role on the cluster project to the other team.
B
Create a new GKE cluster. Using Identity and Access Management (IAM), grant the Editor role on the cluster project to the other team.
C
Create a new namespace in the existing cluster. Using Identity and Access Management (IAM), grant the Editor role on the cluster project to the other team.
D
Create a new namespace in the existing cluster. Using Kubernetes role-based access control (RBAC), grant the Admin role on the new namespace to the other team.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 68

Your service adds text to images that it reads from Cloud Storage. During busy times of the year, requests to Cloud Storage fail with an HTTP 429 "Too Many Requests" status code.

How should you handle this error?

A
Add a cache-control header to the objects.
B
Request a quota increase from the GCP Console.
C
Retry the request with a truncated exponential backoff strategy.
D
Change the storage class of the Cloud Storage bucket to Multi-regional.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 69

You are a developer at a large organization. You have an application written in Go running in a production Google Kubernetes Engine (GKE) cluster. You need to add a new feature that requires access to BigQuery. You want to grant BigQuery access to your GKE cluster following Google-recommended best practices. What should you do?

A
Create a Google service account with BigQuery access. Add the JSON key to Secret Manager, and use the Go client library to access the JSON key.
B
Create a Google service account with BigQuery access. Add the Google service account JSON key as a Kubernetes secret, and configure the application to use this secret.
C
Create a Google service account with BigQuery access. Add the Google service account JSON key to Secret Manager, and use an init container to access the secret for the application to use.
D
Create a Google service account and a Kubernetes service account. Configure Workload Identity on the GKE cluster, and reference the Kubernetes service account on the application Deployment.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 70

You are building an API that will be used by Android and iOS apps. The API must:

* Support HTTPs

* Minimize bandwidth cost

* Integrate easily with mobile apps

Which API architecture should you use?

A
RESTful APIs
B
MQTT for APIs
C
gRPC-based APIs
D
SOAP-based APIs

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 71

Your team is responsible for maintaining an application that aggregates news articles from many different sources. Your monitoring dashboard contains publicly accessible real-time report and runs on a Compute Engine instance as a web application External stakeholders and analysts need to access these reports via a secure channel without authentication. How should you configure this secure channel?

A
Add a public IP address to the instance. Use the service account key of the instance to encrypt the traffic.
B
Use Cloud Scheduler to trigger Cloud Build every hour to create an export from the reports. Store the reports in a public Cloud Storage bucket.
C
Add an HTTP(S) load balancer in front of the monitoring dashboard Configure Identity-Aware Proxy to secure the communication channel.
D
Add an HTTP(S) load balancer in front of the monitoring dashboard Set up a Google-managed SSL certificate on the load balancer for traffic encryption.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 72

Your application takes an input from a user and publishes it to the user's contacts. This input is stored in a table in Cloud Spanner. Your application is more sensitive to latency and less sensitive to consistency.

How should you perform reads from Cloud Spanner for this application?

A
Perform Read-Only transactions.
B
Perform stale reads using single-read methods.
C
Perform strong reads using single-read methods.
D
Perform stale reads using read-write transactions.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 73

You are responsible for improving the security of your Cloud Run services to protect these services against supply chain threats- You need to ensure that there are adequate security controls such as SLSA Level 3 builds for container images and non-falsifiable provenance for container images by using Google Cloud tools. What should you do?

A
Ask developers to build container images locally and ensure strict version controls by using Container Registry.
B
Use Cloud Deploy to generate authenticated and non-talsifiable build provenance for container images.
C
Use Cloud Build to build container images. Configure a Binary Authorization policy on the Cloud Run job.
D
Use Cloud Build to build container images. Use Cloud Scheduler to automate delivery of your applications to a series of target environments in a defined sequence.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 74

Your application is deployed in a Google Kubernetes Engine (GKE) cluster. When a new version of your application is released, your CI/CD tool updates the spec.template.spec.containers[0].image value to reference the Docker image of your new application version. When the Deployment object applies the change, you want to deploy at least 1 replica of the new version and maintain the previous replicas until the new replica is healthy.

Which change should you make to the GKE Deployment object shown below?

A
Set the Deployment strategy to RollingUpdate with maxSurge set to 0, maxUnavailable set to 1.
B
Set the Deployment strategy to RollingUpdate with maxSurge set to 1, maxUnavailable set to 0.
C
Set the Deployment strategy to Recreate with maxSurge set to 0, maxUnavailable set to 1.
D
Set the Deployment strategy to Recreate with maxSurge set to 1, maxUnavailable set to 0.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 75

Your team is responsible for developing multiple microservices. These microservices are deployed in Cloud Run and connected to a Cloud SQL instance. You typically conduct tests in a local environment prior to deploying new features. However, the external IP was recently removed from your Cloud SQL instance. and you are unable to perform the tests. You need to connect to the database to conduct tests with the most updated data. You want to follow Google-recommended practices. What should you do?

A
Create a VM in the same VPC as the Cloud SQL instance. Connect to the VM by using Identity-Aware Proxy for TCP forwarding. Install and configure the Cloud SQLAuth Proxy.
B
Add your IP as an authorized network on the Cloud SQL instance.
C
Create a Cloud VPN tunnel from your computer to your Google Cloud project, and connect to the Cloud SQL instance.
D
Export the data from the database to a Cloud Storage bucket. Create a database on your computer and import the data.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 76

You plan to make a simple HTML application available on the internet. This site keeps information about FAQs for your application. The application is static and contains images, HTML, CSS, and Javascript. You want to make this application available on the internet with as few steps as possible.

What should you do?

A
Upload your application to Cloud Storage.
B
Upload your application to an App Engine environment.
C
Create a Compute Engine instance with Apache web server installed. Configure Apache web server to host the application.
D
Containerize your application first. Deploy this container to Google Kubernetes Engine (GKE) and assign an external IP address to the GKE pod hosting the application.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 77

You are a developer at a regulated financial company and are the lead of a risk calculation application that is running on Cloud Run Binary Authorization for Cloud Run has been enabled as an organization policy, and there is one attestor. All applications in the company are attested. Each application's image is deployed as part of a CI/CD pipeline during a I-hour change window at 11 PM local time. There is a new security issue that requires you to deploy a critical fix before the next change window. You have created a new image with the fix, and your manager has approved the image in an email message- What should you do?

A
Sign the image with your private key and ask the project admin to change the public key in the attestor.
B
Change the organization policy to temporarily disable Binary Authorization, and deploy the image.
C
Use the breakglass approach to deploy the image,
D
O Add the image to the exempt image patterns in the Binary Authorization policy.

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 78

Your company has deployed a new API to App Engine Standard environment. During testing, the API is not behaving as expected. You want to monitor the application over time to diagnose the problem within the application code without redeploying the application.

Which tool should you use?

A
Stackdriver Trace
B
Stackdriver Monitoring
C
Stackdriver Debug Snapshots
D
Stackdriver Debug Logpoints

Premium Solution Locked

Unlock all 391 answers & explanations

QUESTION 79

You are a developer at a large corporation. You manage three Google Kubernetes Engine clusters on Google Cloud. Your teamโ€™s developers need to switch from one cluster to another regularly without losing access to their preferred development tools. You want to configure access to these multiple clusters while following Google-recommended best practices. What should you do?

A
Ask the developers to use Cloud Shell and run gcloud container clusters get-credential to switch to another cluster.
B
In a configuration file, define the clusters, users, and contexts. Share the file with the developers and ask them to use kubect1 contig to add cluster, user, and context details.
C
Ask the developers to install the gcloud CLI on their workstation and run gcloud container clusters get-credentials to switch to another cluster.
D
Ask the developers to open three terminals on their workstation and use kubect1 config to configure access to each cluster.

Premium Solution Locked

Unlock all 391 answers & explanations

Full Question Bank Locked

You have reached the end of the free study guide preview. Upgrade now to unlock all 391 questions and the full simulation engine.

Customer Reviews

5 / 5
(15,000+ verified)
5
100%
4
0%
3
0%
2
0%
1
0%

Global Community Feedback

DM

David M.

Verified Student

"The practice engine is incredible. It feels exactly like the real testing environment and helped me build so much confidence."

SJ

Sarah J.

Premium Member

"The PDF is very well organized and the explanations for the answers are actually helpful, not just random text."

MC

Michael C.

Verified Buyer

"I was skeptical, but the content is high quality and definitely worth the price. I passed on my first try!"

Need Assistance?

> Our expert support team is available to assist you with any inquiries about our exam materials.

Contact Support
Average response: < 24 Hours

Get Exam Updates

> Subscribe to receive instant notifications on new questions and exclusive flash sales.

* Join 5,000+ students getting weekly updates

Support Chat โ— Active Now

๐Ÿ‘‹ Hi! How can we help you pass your exam?

Enter email to start chatting