ExamGecko
Home Home / Google / Professional Cloud Developer

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

Question list
Search
Search

List of questions

Search

Related questions











You are evaluating developer tools to help drive Google Kubernetes Engine adoption and integration with your development environment, which includes VS Code and IntelliJ. What should you do?

A.
Use Cloud Code to develop applications.
A.
Use Cloud Code to develop applications.
Answers
B.
Use the Cloud Shell integrated Code Editor to edit code and configuration files.
B.
Use the Cloud Shell integrated Code Editor to edit code and configuration files.
Answers
C.
Use a Cloud Notebook instance to ingest and process data and deploy models.
C.
Use a Cloud Notebook instance to ingest and process data and deploy models.
Answers
D.
Use Cloud Shell to manage your infrastructure and applications from the command line.
D.
Use Cloud Shell to manage your infrastructure and applications from the command line.
Answers
Suggested answer: A

You are developing an ecommerce web application that uses App Engine standard environment and Memorystore for Redis. When a user logs into the app, the application caches the user's information (e.g., session, name, address, preferences), which is stored for quick retrieval during checkout.

While testing your application in a browser, you get a 502 Bad Gateway error. You have determined that the application is not connecting to Memorystore. What is the reason for this error?

A.
Your Memorystore for Redis instance was deployed without a public IP address.
A.
Your Memorystore for Redis instance was deployed without a public IP address.
Answers
B.
You configured your Serverless VPC Access connector in a different region than your App Engine instance.
B.
You configured your Serverless VPC Access connector in a different region than your App Engine instance.
Answers
C.
The firewall rule allowing a connection between App Engine and Memorystore was removed during an infrastructure update by the DevOps team.
C.
The firewall rule allowing a connection between App Engine and Memorystore was removed during an infrastructure update by the DevOps team.
Answers
D.
You configured your application to use a Serverless VPC Access connector on a different subnet in a different availability zone than your App Engine instance.
D.
You configured your application to use a Serverless VPC Access connector on a different subnet in a different availability zone than your App Engine instance.
Answers
Suggested answer: A

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
A.
Uptime check
Answers
B.
Process health
B.
Process health
Answers
C.
Metric absence
C.
Metric absence
Answers
D.
Metric threshold
D.
Metric threshold
Answers
Suggested answer: B

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.
A.
Use the JOIN operator in SQL to combine the tables.
Answers
B.
Use nested WITH statements to combine the tables.
B.
Use nested WITH statements to combine the tables.
Answers
C.
Use the UNION operator in SQL to combine the tables.
C.
Use the UNION operator in SQL to combine the tables.
Answers
D.
Use the UNION ALL operator in SQL to combine the tables.
D.
Use the UNION ALL operator in SQL to combine the tables.
Answers
Suggested answer: C

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
A.
Blue/green deployment
Answers
B.
Canary deployment
B.
Canary deployment
Answers
C.
Rolling deployment
C.
Rolling deployment
Answers
D.
Recreate deployment
D.
Recreate deployment
Answers
Suggested answer: A

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.
A.
Create a multi-regional Cloud Spanner instance with 'nam-asia-eur1' configuration.
Answers
B.
Create a multi-regional Cloud Spanner instance with 'nam3' configuration.
B.
Create a multi-regional Cloud Spanner instance with 'nam3' configuration.
Answers
C.
Create a cluster with at least 3 Spanner nodes.
C.
Create a cluster with at least 3 Spanner nodes.
Answers
D.
Create a cluster with at least 1 Spanner node.
D.
Create a cluster with at least 1 Spanner node.
Answers
E.
Create a minimum of two Cloud Spanner instances in separate regions with at least one node.
E.
Create a minimum of two Cloud Spanner instances in separate regions with at least one node.
Answers
F.
Create a Cloud Dataflow pipeline to replicate data across different databases.
F.
Create a Cloud Dataflow pipeline to replicate data across different databases.
Answers
Suggested answer: B, F

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.
A.
Use FTP to upload files.
Answers
B.
Use CPanel to upload files.
B.
Use CPanel to upload files.
Answers
C.
Use signed URLs to upload files.
C.
Use signed URLs to upload files.
Answers
D.
Change the API to be a multipart file upload API.
D.
Change the API to be a multipart file upload API.
Answers
Suggested answer: C

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.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: B

Explanation:

For the GKE ingress controller to use your readinessProbes as health checks, the Pods for an Ingress must exist at the time of Ingress creation. If your replicas are scaled to 0, the default health check will apply.

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.
A.
Include multiple rows with each request.
Answers
B.
Perform the inserts in parallel by creating multiple threads.
B.
Perform the inserts in parallel by creating multiple threads.
Answers
C.
Write each row to a Cloud Storage object, then load into BigQuery.
C.
Write each row to a Cloud Storage object, then load into BigQuery.
Answers
D.
Write each row to a Cloud Storage object in parallel, then load into BigQuery.
D.
Write each row to a Cloud Storage object in parallel, then load into BigQuery.
Answers
Suggested answer: B

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.
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.
Answers
B.
Define a GKE Service. Clients should use the service name in the URL to connect to the service.
B.
Define a GKE Service. Clients should use the service name in the URL to connect to the service.
Answers
C.
Define a GKE Endpoint. Clients should get the endpoint name from the appropriate environment variable in the client container.
C.
Define a GKE Endpoint. Clients should get the endpoint name from the appropriate environment variable in the client container.
Answers
D.
Define a GKE Endpoint. Clients should get the endpoint name from Cloud DNS.
D.
Define a GKE Endpoint. Clients should get the endpoint name from Cloud DNS.
Answers
Suggested answer: C
Total 265 questions
Go to page: of 27