ExamGecko
Home Home / Google / Professional Cloud Developer

Google Professional Cloud Developer Practice Test - Questions Answers, Page 24

Question list
Search
Search

List of questions

Search

Related questions











You are deploying a Python application to Cloud Run using Cloud Build. The Cloud Build pipeline is shown below:

You want to optimize deployment times and avoid unnecessary steps What should you do?

A.
Remove the step that pushes the container to Artifact Registry.
A.
Remove the step that pushes the container to Artifact Registry.
Answers
B.
Add the ---cache-from argument to the Docker build step in your build config file.
B.
Add the ---cache-from argument to the Docker build step in your build config file.
Answers
C.
Store image artifacts in a Cloud Storage bucket in the same region as the Cloud Run instance.
C.
Store image artifacts in a Cloud Storage bucket in the same region as the Cloud Run instance.
Answers
D.
Deploy a new Docker registry in a VPC and use Cloud Build worker pools inside the VPC to run the build pipeline.
D.
Deploy a new Docker registry in a VPC and use Cloud Build worker pools inside the VPC to run the build pipeline.
Answers
Suggested answer: B

Explanation:

https://cloud.google.com/build/docs/optimize-builds/speeding-up-builds#using_a_cached_docker_image

You are a developer at a large organization. You are deploying a web application to Google Kubernetes Engine (GKE). The DevOps team has built a CI/CD pipeline that uses Cloud Deploy to deploy the application to Dev Test, and Prod clusters in GKE. After Cloud Deploy successfully deploys the application to the Dev cluster you want to automatically promote it to the Test Cluster. How should you configure this process following Google-recommended best practices?

A.
1 Create a Cloud Build trigger that listens for SUCCEEDED Pub/Sub messages from the clouddeploy-operations topic. 2 Configure Cloud Build to include a step that promotes the application to the Test cluster
A.
1 Create a Cloud Build trigger that listens for SUCCEEDED Pub/Sub messages from the clouddeploy-operations topic. 2 Configure Cloud Build to include a step that promotes the application to the Test cluster
Answers
B.
1 Create a Cloud Function that calls the Google Cloud Deploy API to promote the application to the Test cluster 2 Configure this function to be triggered by SUCCEEDED Pub/Sub messages from the cloud-builds topic
B.
1 Create a Cloud Function that calls the Google Cloud Deploy API to promote the application to the Test cluster 2 Configure this function to be triggered by SUCCEEDED Pub/Sub messages from the cloud-builds topic
Answers
C.
1 Create a Cloud Function that calls the Google Cloud Deploy API to promote the application to the Test cluster 2 Configure this function to be triggered by SUCCEEDED Pub/Sub messages from the clouddeploy operations topic
C.
1 Create a Cloud Function that calls the Google Cloud Deploy API to promote the application to the Test cluster 2 Configure this function to be triggered by SUCCEEDED Pub/Sub messages from the clouddeploy operations topic
Answers
D.
1 Create a Cloud Build pipeline that uses the gke-deploy builder 2 Create a Cloud Build trigger that listens to SUCCEEDED Pub/Sub messages from the cloud-builds topic 3 Configure this pipeline to run a deployment step to the Test cluster
D.
1 Create a Cloud Build pipeline that uses the gke-deploy builder 2 Create a Cloud Build trigger that listens to SUCCEEDED Pub/Sub messages from the cloud-builds topic 3 Configure this pipeline to run a deployment step to the Test cluster
Answers
Suggested answer: B

You need to containerize a web application that will be hosted on Google Cloud behind a global load balancer with SSL certificates. You don't have the time to develop authentication at the application level, and you want to offload SSL encryption and management from your application. You want to configure the architecture using managed services where possible What should you do?

A.
Host the application on Compute Engine, and configure Cloud Endpoints for your application.
A.
Host the application on Compute Engine, and configure Cloud Endpoints for your application.
Answers
B.
Host the application on Google Kubernetes Engine and use Identity-Aware Proxy (IAP) with Cloud Load Balancing and Google-managed certificates.
B.
Host the application on Google Kubernetes Engine and use Identity-Aware Proxy (IAP) with Cloud Load Balancing and Google-managed certificates.
Answers
C.
Host the application on Google Kubernetes Engine, and deploy an NGINX Ingress Controller to handle authentication.
C.
Host the application on Google Kubernetes Engine, and deploy an NGINX Ingress Controller to handle authentication.
Answers
D.
Host the application on Google Kubernetes Engine, and deploy cert-manager to manage SSL certificates.
D.
Host the application on Google Kubernetes Engine, and deploy cert-manager to manage SSL certificates.
Answers
Suggested answer: B

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
A.
Store user data on a Cloud Shell home disk and log in at least every 120 days to prevent its deletion
Answers
B.
Store user data on a persistent disk in a Compute Engine instance
B.
Store user data on a persistent disk in a Compute Engine instance
Answers
C.
Store user data m BigQuery tables
C.
Store user data m BigQuery tables
Answers
D.
Store user data in a Cloud Storage bucket
D.
Store user data in a Cloud Storage bucket
Answers
Suggested answer: B

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 cURLto run a test plan Deploy the image in a managed instance group, and run one instance of the image for each VM.
A.
Create an image that has cURL installed and configure cURLto run a test plan Deploy the image in a managed instance group, and run one instance of the image for each VM.
Answers
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.
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.
Answers
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.
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.
Answers
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.
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.
Answers
Suggested answer: C

You are a lead developer working on a new retail system that runs on Cloud Run and Firestore. A web UI requirement is for the user to be able to browse through alt products. A few months after go-live, you notice that Cloud Run instances are terminated with HTTP 500: Container instances are exceeding memory limits errors during busy times

This error coincides with spikes in the number of Firestore queries

You need to prevent Cloud Run from crashing and decrease the number of Firestore queries. You want to use a solution that optimizes system performance What should you do?

A.
Create a custom jndex over the products
A.
Create a custom jndex over the products
Answers
B.
Modify the query that returns the product list using cursors with limits
B.
Modify the query that returns the product list using cursors with limits
Answers
C.
Modify the Cloud Run configuration to increase the memory limits
C.
Modify the Cloud Run configuration to increase the memory limits
Answers
D.
Modify the query that returns the product list using integer offsets
D.
Modify the query that returns the product list using integer offsets
Answers
Suggested answer: B

You are using Cloud Run to host a global ecommerce web application. Your company's design team is creating a new color scheme for the web app. You have been tasked with determining whether the new color scheme will increase sales You want to conduct testing on live production traffic How should you design the study?

A.
Use an external HTTP(S) load balancer to route a predetermined percentage of traffic to two different color schemes of your application Analyze the results to determine whether there is a statistically significant difference in sales.
A.
Use an external HTTP(S) load balancer to route a predetermined percentage of traffic to two different color schemes of your application Analyze the results to determine whether there is a statistically significant difference in sales.
Answers
B.
Use an external HTTP(S) load balancer to route traffic to the original color scheme while the new deployment is created and tested After testing is complete reroute all traffic to the new color scheme Analyze the results to determine whether there is a statistically significant difference in sales.
B.
Use an external HTTP(S) load balancer to route traffic to the original color scheme while the new deployment is created and tested After testing is complete reroute all traffic to the new color scheme Analyze the results to determine whether there is a statistically significant difference in sales.
Answers
C.
Enable a feature flag that displays the new color scheme to half of all users. Monitor sales to see whether they increase for this group of users.
C.
Enable a feature flag that displays the new color scheme to half of all users. Monitor sales to see whether they increase for this group of users.
Answers
D.
Use an external HTTP(S) load balancer to mirror traffic to the new version of your application Analyze the results to determine whether there is a statistically significant difference in sales.
D.
Use an external HTTP(S) load balancer to mirror traffic to the new version of your application Analyze the results to determine whether there is a statistically significant difference in sales.
Answers
Suggested answer: A

Your team is setting up a build pipeline for an application that will run in Google Kubernetes Engine (GKE). For security reasons, you only want images produced by the pipeline to be deployed to your GKE cluster. Which combination of Google Cloud services should you use?

A.
Google Cloud Deploy. Artifact Registry, and Google Cloud Armor
A.
Google Cloud Deploy. Artifact Registry, and Google Cloud Armor
Answers
B.
Google Cloud Deploy, Cloud Storage and Google Cloud Armor
B.
Google Cloud Deploy, Cloud Storage and Google Cloud Armor
Answers
C.
Cloud Build, Cloud Storage, and Binary Authorization
C.
Cloud Build, Cloud Storage, and Binary Authorization
Answers
D.
Cloud Build. Artifact Registry and Binary Authorization
D.
Cloud Build. Artifact Registry and Binary Authorization
Answers
Suggested answer: A

You are developing an online gaming platform as a microservices application on Google Kubernetes Engine (GKE). Users on social media are complaining about long loading times for certain URL requests to the application. You need to investigate performance bottlenecks in the application and identify. which HTTP requests have a significantly high latency span in user requests What should you do?

A.
Instrument your microservices by installing the OpenTelemetry tracing package Update your application code to send traces to Trace for inspection and analysis Create an analysis report on Trace to analyze user requests
A.
Instrument your microservices by installing the OpenTelemetry tracing package Update your application code to send traces to Trace for inspection and analysis Create an analysis report on Trace to analyze user requests
Answers
B.
Configure GKE workload metrics using kubect1 Select all Pods to send their metrics to Cloud Monitoring. Create a custom dashboard of application metrics in Cloud Monitoring to determine performance bottlenecks of your GKE cluster
B.
Configure GKE workload metrics using kubect1 Select all Pods to send their metrics to Cloud Monitoring. Create a custom dashboard of application metrics in Cloud Monitoring to determine performance bottlenecks of your GKE cluster
Answers
C.
Install tcpdump on your GKE nodes. Run tcpdump to capture network traffic over an extended period of time to collect data Analyze the data files using Wireshark to determine the cause of high latency
C.
Install tcpdump on your GKE nodes. Run tcpdump to capture network traffic over an extended period of time to collect data Analyze the data files using Wireshark to determine the cause of high latency
Answers
D.
Update your microservices to log HTTP request methods and URL paths to STDOUT Use the logs router to send container logs to Cloud Logging Create filters in Cloud Logging to evaluate the latency of user requests across different methods and URL paths.
D.
Update your microservices to log HTTP request methods and URL paths to STDOUT Use the logs router to send container logs to Cloud Logging Create filters in Cloud Logging to evaluate the latency of user requests across different methods and URL paths.
Answers
Suggested answer: B

You are working on a new application that is deployed on Cloud Run and uses Cloud Functions Each time new features are added, new Cloud Functions and Cloud Run services are deployed You use ENV variables to keep track of the services and enable interservice communication but the maintenance of the ENV variables has become difficult. You want to implement dynamic discovery in a scalable way. What should you do?

A.
Create a Service Directory Namespace Use API calls to register the services during deployment, and query during runtime.
A.
Create a Service Directory Namespace Use API calls to register the services during deployment, and query during runtime.
Answers
B.
Configure your microservices to use the Cloud Run Admin and Cloud Functions APIs to query for deployed Cloud Run services and Cloud Functions in the Google Cloud project.
B.
Configure your microservices to use the Cloud Run Admin and Cloud Functions APIs to query for deployed Cloud Run services and Cloud Functions in the Google Cloud project.
Answers
C.
Deploy Hashicorp Consul on a single Compute Engine Instance Register the services with Consul during deployment and query during runtime
C.
Deploy Hashicorp Consul on a single Compute Engine Instance Register the services with Consul during deployment and query during runtime
Answers
D.
Rename the Cloud Functions and Cloud Run services endpoints using a well-documented naming convention
D.
Rename the Cloud Functions and Cloud Run services endpoints using a well-documented naming convention
Answers
Suggested answer: B
Total 265 questions
Go to page: of 27