ExamGecko
Home Home / Google / Professional Cloud Developer

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

Question list
Search
Search

List of questions

Search

Related questions











You are using Cloud Build to build a Docker image. You need to modify the build to execute unit and run integration tests. When there is a failure, you want the build history to clearly display the stage at which the build failed.

What should you do?

A.
Add RUN commands in the Dockerfile to execute unit and integration tests.
A.
Add RUN commands in the Dockerfile to execute unit and integration tests.
Answers
B.
Create a Cloud Build build config file with a single build step to compile unit and integration tests.
B.
Create a Cloud Build build config file with a single build step to compile unit and integration tests.
Answers
C.
Create a Cloud Build build config file that will spawn a separate cloud build pipeline for unit and integration tests.
C.
Create a Cloud Build build config file that will spawn a separate cloud build pipeline for unit and integration tests.
Answers
D.
Create a Cloud Build build config file with separate cloud builder steps to compile and execute unit and integration tests.
D.
Create a Cloud Build build config file with separate cloud builder steps to compile and execute unit and integration tests.
Answers
Suggested answer: D

Your code is running on Cloud Functions in project

A.
It is supposed to write an object in a Cloud Storage bucket owned by project B. However, the write call is failing with the error '403 Forbidden'. What should you do to correct the problem?
A.
It is supposed to write an object in a Cloud Storage bucket owned by project B. However, the write call is failing with the error '403 Forbidden'. What should you do to correct the problem?
Answers
B.
Grant your user account the roles/storage.objectCreator role for the Cloud Storage bucket.
B.
Grant your user account the roles/storage.objectCreator role for the Cloud Storage bucket.
Answers
C.
Grant your user account the roles/iam.serviceAccountUser role for the service-PROJECTA@gcf-adminrobot. iam.gserviceaccount.com service account.
C.
Grant your user account the roles/iam.serviceAccountUser role for the service-PROJECTA@gcf-adminrobot. iam.gserviceaccount.com service account.
Answers
D.
Grant the [email protected] service account the roles/ storage.objectCreator role for the Cloud Storage bucket.
D.
Grant the [email protected] service account the roles/ storage.objectCreator role for the Cloud Storage bucket.
Answers
E.
Enable the Cloud Storage API in project B.
E.
Enable the Cloud Storage API in project B.
Answers
Suggested answer: B

Your application is running in multiple Google Kubernetes Engine clusters. It is managed by a Deployment in each cluster. The Deployment has created multiple replicas of your Pod in each cluster. You want to view the logs sent to stdout for all of the replicas in your Deployment in all clusters. Which command should you use?

A.
kubectl logs [PARAM]
A.
kubectl logs [PARAM]
Answers
B.
gcloud logging read [PARAM]
B.
gcloud logging read [PARAM]
Answers
C.
kubectl exec --it [PARAM] journalctl
C.
kubectl exec --it [PARAM] journalctl
Answers
D.
gcloud compute ssh [PARAM] ---command= ''sudo journalctl''
D.
gcloud compute ssh [PARAM] ---command= ''sudo journalctl''
Answers
Suggested answer: D

You are using Cloud Build to create a new Docker image on each source code commit to a Cloud Source Repositoties repository. Your application is built on every commit to the master branch. You want to release specific commits made to the master branch in an automated method. What should you do?

A.
Manually trigger the build for new releases.
A.
Manually trigger the build for new releases.
Answers
B.
Create a build trigger on a Git tag pattern. Use a Git tag convention for new releases.
B.
Create a build trigger on a Git tag pattern. Use a Git tag convention for new releases.
Answers
C.
Create a build trigger on a Git branch name pattern. Use a Git branch naming convention for new releases.
C.
Create a build trigger on a Git branch name pattern. Use a Git branch naming convention for new releases.
Answers
D.
Commit your source code to a second Cloud Source Repositories repository with a second Cloud Build trigger. Use this repository for new releases only.
D.
Commit your source code to a second Cloud Source Repositories repository with a second Cloud Build trigger. Use this repository for new releases only.
Answers
Suggested answer: C

You are designing a schema for a table that will be moved from MySQL to Cloud Bigtable. The MySQL table is as follows:

How should you design a row key for Cloud Bigtable for this table?

A.
Set Account_id as a key.
A.
Set Account_id as a key.
Answers
B.
Set Account_id_Event_timestamp as a key.
B.
Set Account_id_Event_timestamp as a key.
Answers
C.
Set Event_timestamp_Account_id as a key.
C.
Set Event_timestamp_Account_id as a key.
Answers
D.
Set Event_timestamp as a key.
D.
Set Event_timestamp as a key.
Answers
Suggested answer: C

You want to view the memory usage of your application deployed on Compute Engine. What should you do?

A.
Install the Stackdriver Client Library.
A.
Install the Stackdriver Client Library.
Answers
B.
Install the Stackdriver Monitoring Agent.
B.
Install the Stackdriver Monitoring Agent.
Answers
C.
Use the Stackdriver Metrics Explorer.
C.
Use the Stackdriver Metrics Explorer.
Answers
D.
Use the Google Cloud Platform Console.
D.
Use the Google Cloud Platform Console.
Answers
Suggested answer: C

You have an analytics application that runs hundreds of queries on BigQuery every few minutes using BigQuery API. You want to find out how much time these queries take to execute. What should you do?

A.
Use Stackdriver Monitoring to plot slot usage.
A.
Use Stackdriver Monitoring to plot slot usage.
Answers
B.
Use Stackdriver Trace to plot API execution time.
B.
Use Stackdriver Trace to plot API execution time.
Answers
C.
Use Stackdriver Trace to plot query execution time.
C.
Use Stackdriver Trace to plot query execution time.
Answers
D.
Use Stackdriver Monitoring to plot query execution times.
D.
Use Stackdriver Monitoring to plot query execution times.
Answers
Suggested answer: D

You are designing a schema for a Cloud Spanner customer database. You want to store a phone number array field in a customer table. You also want to allow users to search customers by phone number. How should you design this schema?

A.
Create a table named Customers. Add an Array field in a table that will hold phone numbers for the customer.
A.
Create a table named Customers. Add an Array field in a table that will hold phone numbers for the customer.
Answers
B.
Create a table named Customers. Create a table named Phones. Add a CustomerId field in the Phones table to find the CustomerId from a phone number.
B.
Create a table named Customers. Create a table named Phones. Add a CustomerId field in the Phones table to find the CustomerId from a phone number.
Answers
C.
Create a table named Customers. Add an Array field in a table that will hold phone numbers for the customer. Create a secondary index on the Array field.
C.
Create a table named Customers. Add an Array field in a table that will hold phone numbers for the customer. Create a secondary index on the Array field.
Answers
D.
Create a table named Customers as a parent table. Create a table named Phones, and interleave this table into the Customer table. Create an index on the phone number field in the Phones table.
D.
Create a table named Customers as a parent table. Create a table named Phones, and interleave this table into the Customer table. Create an index on the phone number field in the Phones table.
Answers
Suggested answer: C

You are deploying a single website on App Engine that needs to be accessible via the URL http://www.altostrat.com/. What should you do?

A.
Verify domain ownership with Webmaster Central. Create a DNS CNAME record to point to the App Engine canonical name ghs.googlehosted.com.
A.
Verify domain ownership with Webmaster Central. Create a DNS CNAME record to point to the App Engine canonical name ghs.googlehosted.com.
Answers
B.
Verify domain ownership with Webmaster Central. Define an A record pointing to the single global App Engine IP address.
B.
Verify domain ownership with Webmaster Central. Define an A record pointing to the single global App Engine IP address.
Answers
C.
Define a mapping in dispatch.yaml to point the domain www.altostrat.com to your App Engine service. Create a DNS CNAME record to point to the App Engine canonical name ghs.googlehosted.com.
C.
Define a mapping in dispatch.yaml to point the domain www.altostrat.com to your App Engine service. Create a DNS CNAME record to point to the App Engine canonical name ghs.googlehosted.com.
Answers
D.
Define a mapping in dispatch.yaml to point the domain www.altostrat.com to your App Engine service. Define an A record pointing to the single global App Engine IP address.
D.
Define a mapping in dispatch.yaml to point the domain www.altostrat.com to your App Engine service. Define an A record pointing to the single global App Engine IP address.
Answers
Suggested answer: A

You are running an application on App Engine that you inherited. You want to find out whether the application is using insecure binaries or is vulnerable to XSS attacks. Which service should you use?

A.
Cloud Amor
A.
Cloud Amor
Answers
B.
Stackdriver Debugger
B.
Stackdriver Debugger
Answers
C.
Cloud Security Scanner
C.
Cloud Security Scanner
Answers
D.
Stackdriver Error Reporting
D.
Stackdriver Error Reporting
Answers
Suggested answer: C
Total 265 questions
Go to page: of 27