Google Professional Cloud Developer Professional Cloud Developer Online Training
Google Professional Cloud Developer Online Training
The questions for Professional Cloud Developer were last updated at Nov 26,2024.
- Exam Code: Professional Cloud Developer
- Exam Name: Professional Cloud Developer
- Certification Provider: Google
- Latest update: Nov 26,2024
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.
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.
- B . Move the data to a Cloud Storage bucket, and copy the data to the boot disk of the instance via a startup script.
- 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.
- 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.
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.
- 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.
- 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/.
- D . Ensure that clients use Compute Engine internal DNS by connecting to the instance name with the url https://[API_NAME]/[API_VERSION]/.
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/.
- B . Add a Stackdriver counter metric for endpoint:/api/alpha/*.
- C . Export the logs to Cloud Storage and count lines matching /api/alphA.
- D . Export the logs to Cloud Pub/Sub and count lines matching /api/alphA.
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.
- B . Replace the application’s features with appropriate microservices in phases.
- C . Refactor the monolithic application with appropriate microservices in a single effort and deploy it.
- D . Build a new application with the appropriate microservices separate from the monolith and replace it when it is complete.
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
- B . Cloud Storage
- C . Cloud Spanner
- D . Cloud Datastore/Firestore
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
- B . Compute Engine backed by Persistent Disk
- C . Transfer Appliance backed by Cloud Filestore
- D . Cloud Content Delivery Network (CDN) backed by Cloud Storage
Your company’s development teams want to use Cloud Build in their projects to build and push Docker images to Container Registry. The operations team requires all Docker images to be published to a centralized, securely managed Docker registry that the operations team manages.
What should you do?
- A . Use Container Registry to create a registry in each development team’s project. Configure the Cloud Build build to push the Docker image to the project’s registry. Grant the operations team access to each development team’s registry.
- B . Create a separate project for the operations team that has Container Registry configured. Assign appropriate permissions to the Cloud Build service account in each developer team’s project to allow access to the operation team’s registry.
- C . Create a separate project for the operations team that has Container Registry configured. Create a Service Account for each development team and assign the appropriate permissions to allow it access to the operations team’s registry. Store the service account key file in the source code repository and use it to authenticate against the operations team’s registry.
- D . Create a separate project for the operations team that has the open source Docker Registry deployed on a Compute Engine virtual machine instance. Create a username and password for each development team. Store the username and password in the source code repository and use it to authenticate against the operations team’s Docker registry.
You are planning to deploy your application in a Google Kubernetes Engine (GKE) cluster. Your application can scale horizontally, and each instance of your application needs to have a stable network identity and its own persistent disk.
Which GKE object should you use?
- A . Deployment
- B . StatefulSet
- C . ReplicaSet
- D . ReplicaController
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.