ExamGecko
Home Home / Google / Professional Cloud Developer

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

Question list
Search
Search

List of questions

Search

Related questions











Your company has a BigQuery dataset named 'Master' that keeps information about employee travel and expenses. This information is organized by employee department. That means employees should only be able to view information for their department. You want to apply a security framework to enforce this requirement with the minimum number of steps.

What should you do?

A.
Create a separate dataset for each department. Create a view with an appropriate WHERE clause to select records from a particular dataset for the specific department. Authorize this view to access records from your Master dataset. Give employees the permission to this department-specific dataset.
A.
Create a separate dataset for each department. Create a view with an appropriate WHERE clause to select records from a particular dataset for the specific department. Authorize this view to access records from your Master dataset. Give employees the permission to this department-specific dataset.
Answers
B.
Create a separate dataset for each department. Create a data pipeline for each department to copy appropriate information from the Master dataset to the specific dataset for the department. Give employees the permission to this department-specific dataset.
B.
Create a separate dataset for each department. Create a data pipeline for each department to copy appropriate information from the Master dataset to the specific dataset for the department. Give employees the permission to this department-specific dataset.
Answers
C.
Create a dataset named Master dataset. Create a separate view for each department in the Master dataset. Give employees access to the specific view for their department.
C.
Create a dataset named Master dataset. Create a separate view for each department in the Master dataset. Give employees access to the specific view for their department.
Answers
D.
Create a dataset named Master dataset. Create a separate table for each department in the Master dataset. Give employees access to the specific table for their department.
D.
Create a dataset named Master dataset. Create a separate table for each department in the Master dataset. Give employees access to the specific table for their department.
Answers
Suggested answer: B

You have an application in production. It is deployed on Compute Engine virtual machine instances controlled by a managed instance group. Traffic is routed to the instances via a HTTP(s) load balancer. Your users are unable to access your application. You want to implement a monitoring technique to alert you when the application is unavailable.

Which technique should you choose?

A.
Smoke tests
A.
Smoke tests
Answers
B.
Stackdriver uptime checks
B.
Stackdriver uptime checks
Answers
C.
Cloud Load Balancing - heath checks
C.
Cloud Load Balancing - heath checks
Answers
D.
Managed instance group - heath checks
D.
Managed instance group - heath checks
Answers
Suggested answer: B

Explanation:

476b8507f59c

You are load testing your server application. During the first 30 seconds, you observe that a previously inactive Cloud Storage bucket is now servicing 2000 write requests per second and 7500 read requests per second.

Your application is now receiving intermittent 5xx and 429 HTTP responses from the Cloud Storage JSON API as the demand escalates. You want to decrease the failed responses from the Cloud Storage API.

What should you do?

A.
Distribute the uploads across a large number of individual storage buckets.
A.
Distribute the uploads across a large number of individual storage buckets.
Answers
B.
Use the XML API instead of the JSON API for interfacing with Cloud Storage.
B.
Use the XML API instead of the JSON API for interfacing with Cloud Storage.
Answers
C.
Pass the HTTP response codes back to clients that are invoking the uploads from your application.
C.
Pass the HTTP response codes back to clients that are invoking the uploads from your application.
Answers
D.
Limit the upload rate from your application clients so that the dormant bucket's peak request rate is reached more gradually.
D.
Limit the upload rate from your application clients so that the dormant bucket's peak request rate is reached more gradually.
Answers
Suggested answer: A

Your application is controlled by a managed instance group. You want to share a large read-only data set between all the instances in the managed instance group. You want to ensure that each instance can start quickly and can access the data set via its filesystem with very low latency. You also want to minimize the total cost of the solution.

What should you do?

A.
Move the data to a Cloud Storage bucket, and mount the bucket on the filesystem using Cloud Storage FUSE.
A.
Move the data to a Cloud Storage bucket, and mount the bucket on the filesystem using Cloud Storage FUSE.
Answers
B.
Move the data to a Cloud Storage bucket, and copy the data to the boot disk of the instance via a startup script.
B.
Move the data to a Cloud Storage bucket, and copy the data to the boot disk of the instance via a startup script.
Answers
C.
Move the data to a Compute Engine persistent disk, and attach the disk in read-only mode to multiple Compute Engine virtual machine instances.
C.
Move the data to a Compute Engine persistent disk, and attach the disk in read-only mode to multiple Compute Engine virtual machine instances.
Answers
D.
Move the data to a Compute Engine persistent disk, take a snapshot, create multiple disks from the snapshot, and attach each disk to its own instance.
D.
Move the data to a Compute Engine persistent disk, take a snapshot, create multiple disks from the snapshot, and attach each disk to its own instance.
Answers
Suggested answer: C

You are developing an HTTP API hosted on a Compute Engine virtual machine instance that needs to be invoked by multiple clients within the same Virtual Private Cloud (VPC). You want clients to be able to get the IP address of the service.

What should you do?

A.
Reserve a static external IP address and assign it to an HTTP(S) load balancing service's forwarding rule. Clients should use this IP address to connect to the service.
A.
Reserve a static external IP address and assign it to an HTTP(S) load balancing service's forwarding rule. Clients should use this IP address to connect to the service.
Answers
B.
Reserve a static external IP address and assign it to an HTTP(S) load balancing service's forwarding rule. Then, define an A record in Cloud DNS. Clients should use the name of the A record to connect to the service.
B.
Reserve a static external IP address and assign it to an HTTP(S) load balancing service's forwarding rule. Then, define an A record in Cloud DNS. Clients should use the name of the A record to connect to the service.
Answers
C.
Ensure that clients use Compute Engine internal DNS by connecting to the instance name with the url https://[INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal/.
C.
Ensure that clients use Compute Engine internal DNS by connecting to the instance name with the url https://[INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal/.
Answers
D.
Ensure that clients use Compute Engine internal DNS by connecting to the instance name with the url https://[API_NAME]/[API_VERSION]/.
D.
Ensure that clients use Compute Engine internal DNS by connecting to the instance name with the url https://[API_NAME]/[API_VERSION]/.
Answers
Suggested answer: D

Your application is logging to Stackdriver. You want to get the count of all requests on all /api/alpha/* endpoints.

What should you do?

A.
Add a Stackdriver counter metric for path:/api/alpha/.
A.
Add a Stackdriver counter metric for path:/api/alpha/.
Answers
B.
Add a Stackdriver counter metric for endpoint:/api/alpha/*.
B.
Add a Stackdriver counter metric for endpoint:/api/alpha/*.
Answers
C.
Export the logs to Cloud Storage and count lines matching /api/alphA.
C.
Export the logs to Cloud Storage and count lines matching /api/alphA.
Answers
D.
Export the logs to Cloud Pub/Sub and count lines matching /api/alphA.
D.
Export the logs to Cloud Pub/Sub and count lines matching /api/alphA.
Answers
Suggested answer: C

You want to re-architect a monolithic application so that it follows a microservices model. You want to accomplish this efficiently while minimizing the impact of this change to the business.

Which approach should you take?

A.
Deploy the application to Compute Engine and turn on autoscaling.
A.
Deploy the application to Compute Engine and turn on autoscaling.
Answers
B.
Replace the application's features with appropriate microservices in phases.
B.
Replace the application's features with appropriate microservices in phases.
Answers
C.
Refactor the monolithic application with appropriate microservices in a single effort and deploy it.
C.
Refactor the monolithic application with appropriate microservices in a single effort and deploy it.
Answers
D.
Build a new application with the appropriate microservices separate from the monolith and replace it when it is complete.
D.
Build a new application with the appropriate microservices separate from the monolith and replace it when it is complete.
Answers
Suggested answer: C

Your existing application keeps user state information in a single MySQL database. This state information is very user-specific and depends heavily on how long a user has been using an application. The MySQL database is causing challenges to maintain and enhance the schema for various users.

Which storage option should you choose?

A.
Cloud SQL
A.
Cloud SQL
Answers
B.
Cloud Storage
B.
Cloud Storage
Answers
C.
Cloud Spanner
C.
Cloud Spanner
Answers
D.
Cloud Datastore/Firestore
D.
Cloud Datastore/Firestore
Answers
Suggested answer: A

You are building a new API. You want to minimize the cost of storing and reduce the latency of serving images.

Which architecture should you use?

A.
App Engine backed by Cloud Storage
A.
App Engine backed by Cloud Storage
Answers
B.
Compute Engine backed by Persistent Disk
B.
Compute Engine backed by Persistent Disk
Answers
C.
Transfer Appliance backed by Cloud Filestore
C.
Transfer Appliance backed by Cloud Filestore
Answers
D.
Cloud Content Delivery Network (CDN) backed by Cloud Storage
D.
Cloud Content Delivery Network (CDN) backed by Cloud Storage
Answers
Suggested answer: B

HipLocal's.net-based auth service fails under intermittent load.

What should they do?

A.
Use App Engine for autoscaling.
A.
Use App Engine for autoscaling.
Answers
B.
Use Cloud Functions for autoscaling.
B.
Use Cloud Functions for autoscaling.
Answers
C.
Use a Compute Engine cluster for the service.
C.
Use a Compute Engine cluster for the service.
Answers
D.
Use a dedicated Compute Engine virtual machine instance for the service.
D.
Use a dedicated Compute Engine virtual machine instance for the service.
Answers
Suggested answer: D
Total 265 questions
Go to page: of 27