ExamGecko
Home Home / Google / Professional Cloud Developer

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

Question list
Search
Search

List of questions

Search

Related questions











You are working on a social media application. You plan to add a feature that allows users to upload images. These images will be 2 MB -- 1 GB in size. You want to minimize their infrastructure operations overhead for this feature. What should you do?

A.
Change the application to accept images directly and store them in the database that stores other user information.
A.
Change the application to accept images directly and store them in the database that stores other user information.
Answers
B.
Change the application to create signed URLs for Cloud Storage. Transfer these signed URLs to the client application to upload images to Cloud Storage.
B.
Change the application to create signed URLs for Cloud Storage. Transfer these signed URLs to the client application to upload images to Cloud Storage.
Answers
C.
Set up a web server on GCP to accept user images and create a file store to keep uploaded files. Change the application to retrieve images from the file store.
C.
Set up a web server on GCP to accept user images and create a file store to keep uploaded files. Change the application to retrieve images from the file store.
Answers
D.
Create a separate bucket for each user in Cloud Storage. Assign a separate service account to allow write access on each bucket. Transfer service account credentials to the client application based on user information. The application uses this service account to upload images to Cloud Storage.
D.
Create a separate bucket for each user in Cloud Storage. Assign a separate service account to allow write access on each bucket. Transfer service account credentials to the client application based on user information. The application uses this service account to upload images to Cloud Storage.
Answers
Suggested answer: B

Your application is built as a custom machine image. You have multiple unique deployments of the machine image. Each deployment is a separate managed instance group with its own template. Each deployment requires a unique set of configuration values. You want to provide these unique values to each deployment but use the same custom machine image in all deployments. You want to use out-of-the-box features of Compute Engine. What should you do?

A.
Place the unique configuration values in the persistent disk.
A.
Place the unique configuration values in the persistent disk.
Answers
B.
Place the unique configuration values in a Cloud Bigtable table.
B.
Place the unique configuration values in a Cloud Bigtable table.
Answers
C.
Place the unique configuration values in the instance template startup script.
C.
Place the unique configuration values in the instance template startup script.
Answers
D.
Place the unique configuration values in the instance template instance metadata.
D.
Place the unique configuration values in the instance template instance metadata.
Answers
Suggested answer: A

Your application performs well when tested locally, but it runs significantly slower when you deploy it to App Engine standard environment. You want to diagnose the problem. What should you do?

A.
File a ticket with Cloud Support indicating that the application performs faster locally.
A.
File a ticket with Cloud Support indicating that the application performs faster locally.
Answers
B.
Use Stackdriver Debugger Snapshots to look at a point-in-time execution of the application.
B.
Use Stackdriver Debugger Snapshots to look at a point-in-time execution of the application.
Answers
C.
Use Stackdriver Trace to determine which functions within the application have higher latency.
C.
Use Stackdriver Trace to determine which functions within the application have higher latency.
Answers
D.
Add logging commands to the application and use Stackdriver Logging to check where the latency problem occurs.
D.
Add logging commands to the application and use Stackdriver Logging to check where the latency problem occurs.
Answers
Suggested answer: D

You have an application running in App Engine. Your application is instrumented with Stackdriver Trace. The /product-details request reports details about four known unique products at /sku-details as shown below. You want to reduce the time it takes for the request to complete. What should you do?

A.
Increase the size of the instance class.
A.
Increase the size of the instance class.
Answers
B.
Change the Persistent Disk type to SSD.
B.
Change the Persistent Disk type to SSD.
Answers
C.
Change /product-details to perform the requests in parallel.
C.
Change /product-details to perform the requests in parallel.
Answers
D.
Store the /sku-details information in a database, and replace the webservice call with a database query.
D.
Store the /sku-details information in a database, and replace the webservice call with a database query.
Answers
Suggested answer: C

Your company has a data warehouse that keeps your application information in BigQuery. The BigQuery data warehouse keeps 2 PBs of user data. Recently, your company expanded your user base to include EU users and needs to comply with these requirements:

Your company must be able to delete all user account information upon user request.

All EU user data must be stored in a single region specifically for EU users.

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

A.
Use BigQuery federated queries to query data from Cloud Storage.
A.
Use BigQuery federated queries to query data from Cloud Storage.
Answers
B.
Create a dataset in the EU region that will keep information about EU users only.
B.
Create a dataset in the EU region that will keep information about EU users only.
Answers
C.
Create a Cloud Storage bucket in the EU region to store information for EU users only.
C.
Create a Cloud Storage bucket in the EU region to store information for EU users only.
Answers
D.
Re-upload your data using to a Cloud Dataflow pipeline by filtering your user records out.
D.
Re-upload your data using to a Cloud Dataflow pipeline by filtering your user records out.
Answers
E.
Use DML statements in BigQuery to update/delete user records based on their requests.
E.
Use DML statements in BigQuery to update/delete user records based on their requests.
Answers
Suggested answer: C, E

Your App Engine standard configuration is as follows:

service: production

instance_class: B1

You want to limit the application to 5 instances. Which code snippet should you include in your configuration?

A.
manual_scaling:instances: 5min_pending_latency: 30ms
A.
manual_scaling:instances: 5min_pending_latency: 30ms
Answers
B.
manual_scaling:max_instances: 5idle_timeout: 10m
B.
manual_scaling:max_instances: 5idle_timeout: 10m
Answers
C.
basic_scaling:instances: 5min_pending_latency: 30ms
C.
basic_scaling:instances: 5min_pending_latency: 30ms
Answers
D.
basic_scaling:max_instances: 5idle_timeout: 10m
D.
basic_scaling:max_instances: 5idle_timeout: 10m
Answers
Suggested answer: C

Your analytics system executes queries against a BigQuery dataset. The SQL query is executed in batch and passes the contents of a SQL file to the BigQuery CLI. Then it redirects the BigQuery CLI output to another process. However, you are getting a permission error from the BigQuery CLI when the queries are executed. You want to resolve the issue. What should you do?

A.
Grant the service account BigQuery Data Viewer and BigQuery Job User roles.
A.
Grant the service account BigQuery Data Viewer and BigQuery Job User roles.
Answers
B.
Grant the service account BigQuery Data Editor and BigQuery Data Viewer roles.
B.
Grant the service account BigQuery Data Editor and BigQuery Data Viewer roles.
Answers
C.
Create a view in BigQuery from the SQL query and SELECT* from the view in the CLI.
C.
Create a view in BigQuery from the SQL query and SELECT* from the view in the CLI.
Answers
D.
Create a new dataset in BigQuery, and copy the source table to the new dataset Query the new dataset and table from the CLI.
D.
Create a new dataset in BigQuery, and copy the source table to the new dataset Query the new dataset and table from the CLI.
Answers
Suggested answer: B

Your application is running on Compute Engine and is showing sustained failures for a small number of requests. You have narrowed the cause down to a single Compute Engine instance, but the instance is unresponsive to SSH. What should you do next?

A.
Reboot the machine.
A.
Reboot the machine.
Answers
B.
Enable and check the serial port output.
B.
Enable and check the serial port output.
Answers
C.
Delete the machine and create a new one.
C.
Delete the machine and create a new one.
Answers
D.
Take a snapshot of the disk and attach it to a new machine.
D.
Take a snapshot of the disk and attach it to a new machine.
Answers
Suggested answer: A

You configured your Compute Engine instance group to scale automatically according to overall CPU usage. However, your application's response latency increases sharply before the cluster has finished adding up instances. You want to provide a more consistent latency experience for your end users by changing the configuration ot the instance group autoscaler. Which two configuration changes should you make? (Choose two.)

A.
Add the label ''AUTOSCALE'' to the instance group template.
A.
Add the label ''AUTOSCALE'' to the instance group template.
Answers
B.
Decrease the cool-down period for instances added to the group.
B.
Decrease the cool-down period for instances added to the group.
Answers
C.
Increase the target CPU usage for the instance group autoscaler.
C.
Increase the target CPU usage for the instance group autoscaler.
Answers
D.
Decrease the target CPU usage for the instance group autoscaler.
D.
Decrease the target CPU usage for the instance group autoscaler.
Answers
E.
Remove the health-check for individual VMs in the instance group.
E.
Remove the health-check for individual VMs in the instance group.
Answers
Suggested answer: A, C

You have an application controlled by a managed instance group. When you deploy a new version of the application, costs should be minimized and the number of instances should not increase. You want to ensure that, when each new instance is created, the deployment only continues if the new instance is healthy. What should you do?

A.
Perform a rolling-action with maxSurge set to 1, maxUnavailable set to 0.
A.
Perform a rolling-action with maxSurge set to 1, maxUnavailable set to 0.
Answers
B.
Perform a rolling-action with maxSurge set to 0, maxUnavailable set to 1
B.
Perform a rolling-action with maxSurge set to 0, maxUnavailable set to 1
Answers
C.
Perform a rolling-action with maxHealthy set to 1, maxUnhealthy set to 0.
C.
Perform a rolling-action with maxHealthy set to 1, maxUnhealthy set to 0.
Answers
D.
Perform a rolling-action with maxHealthy set to 0, maxUnhealthy set to 1.
D.
Perform a rolling-action with maxHealthy set to 0, maxUnhealthy set to 1.
Answers
Suggested answer: A
Total 265 questions
Go to page: of 27