Practice Free Professional Cloud Developer Exam Online Questions
This architectural diagram depicts a system that streams data from thousands of devices. You want to ingest data into a pipeline, store the data, and analyze the data using SQL statements.
Which Google Cloud services should you use for steps 1, 2, 3, and 4?
- A . 1) App Engine
2) Pub/Sub
3) BigQuery
4) Firestore - B . 1) Dataflow
2) Pub/Sub
3) Firestore
4) BigQuery - C . 1) Pub/Sub
2) Dataflow
3) BigQuery
4) Firestore - D . 1) Pub/Sub
2) Dataflow
3) Firestore
4) BigQuery
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.
- B . Create a Cloud Build build config file with a single build step to compile 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.
- D . Create a Cloud Build build config file with separate cloud builder steps to compile and execute unit and integration tests.
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.
- B . Use the XML API instead of the JSON API for interfacing with Cloud Storage.
- C . Pass the HTTP response codes back to clients that are invoking the uploads from your application.
- D . Limit the upload rate from your application clients so that the dormant bucket’s peak request rate is reached more gradually.
A
Explanation:
Reference: https://cloud.google.com/storage/docs/request-rate
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.
- B . Use the XML API instead of the JSON API for interfacing with Cloud Storage.
- C . Pass the HTTP response codes back to clients that are invoking the uploads from your application.
- D . Limit the upload rate from your application clients so that the dormant bucket’s peak request rate is reached more gradually.
A
Explanation:
Reference: https://cloud.google.com/storage/docs/request-rate
One of your deployed applications in Google Kubernetes Engine (GKE) is having intermittent performance issues. Your team uses a third-party logging solution. You want to install this solution on each node in your GKE cluster so you can view the logs.
What should you do?
- A . Deploy the third-party solution as a DaemonSet
- B . Modify your container image to include the monitoring software
- C . Use SSH to connect to the GKE node, and install the software manually
- D . Deploy the third-party solution using Terraform and deploy the logging Pod as a Kubernetes Deployment
A
Explanation:
https://cloud.google.com/kubernetes-engine/docs/concepts/daemonset#usage_patterns DaemonSets are useful for deploying ongoing background tasks that you need to run on all or certain nodes, and which do not require user intervention. Examples of such tasks include storage daemons like ceph, log collection daemons like fluent-bit, and node monitoring daemons like collectd.
One of your deployed applications in Google Kubernetes Engine (GKE) is having intermittent performance issues. Your team uses a third-party logging solution. You want to install this solution on each node in your GKE cluster so you can view the logs.
What should you do?
- A . Deploy the third-party solution as a DaemonSet
- B . Modify your container image to include the monitoring software
- C . Use SSH to connect to the GKE node, and install the software manually
- D . Deploy the third-party solution using Terraform and deploy the logging Pod as a Kubernetes Deployment
A
Explanation:
https://cloud.google.com/kubernetes-engine/docs/concepts/daemonset#usage_patterns DaemonSets are useful for deploying ongoing background tasks that you need to run on all or certain nodes, and which do not require user intervention. Examples of such tasks include storage daemons like ceph, log collection daemons like fluent-bit, and node monitoring daemons like collectd.
You are deploying your applications on Compute Engine. One of your Compute Engine instances failed to launch.
What should you do? (Choose two.)
- A . Determine whether your file system is corrupted.
- B . Access Compute Engine as a different SSH user.
- C . Troubleshoot firewall rules or routes on an instance.
- D . Check whether your instance boot disk is completely full.
- E . Check whether network traffic to or from your instance is being dropped.
AD
Explanation:
https://cloud.google.com/compute/docs/troubleshooting/vm-startup
HipLocal is configuring their access controls.
Which firewall configuration should they implement?
- A . Block all traffic on port 443.
- B . Allow all traffic into the network.
- C . Allow traffic on port 443 for a specific tag.
- D . Allow all traffic on port 443 into the network.
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.
- B . Perform a rolling-action with maxSurge set to 0, maxUnavailable set to 1
- C . Perform a rolling-action with maxHealthy set to 1, maxUnhealthy set to 0.
- D . Perform a rolling-action with maxHealthy set to 0, maxUnhealthy set to 1.
A
Explanation:
Reference: https://cloud.google.com/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups
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 C 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.
- 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.
- 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. - 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.
B
Explanation:
Reference: https://cloud.google.com/blog/products/storage-data-transfer/uploading-images-directly-to-cloud-storage-by-using-signed-url