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
Your application is deployed in a Google Kubernetes Engine (GKE) cluster. You want to expose this application publicly behind a Cloud Load Balancing HTTP(S) load balancer.
What should you do?
- A . Configure a GKE Ingress resource.
- B . Configure a GKE Service resource.
- C . Configure a GKE Ingress resource with type: LoadBalancer.
- D . Configure a GKE Service resource with type: LoadBalancer.
Your company is planning to migrate their on-premises Hadoop environment to the cloud. Increasing storage cost and maintenance of data stored in HDFS is a major concern for your company. You also want to make minimal changes to existing data analytics jobs and existing architecture.
How should you proceed with the migration?
- A . Migrate your data stored in Hadoop to BigQuery. Change your jobs to source their information from BigQuery instead of the on-premises Hadoop environment.
- B . Create Compute Engine instances with HDD instead of SSD to save costs. Then perform a full migration of your existing environment into the new one in Compute Engine instances.
- C . Create a Cloud Dataproc cluster on Google Cloud Platform, and then migrate your Hadoop environment to the new Cloud Dataproc cluster. Move your HDFS data into larger HDD disks to save on storage costs.
- D . Create a Cloud Dataproc cluster on Google Cloud Platform, and then migrate your Hadoop code objects to the new cluster. Move your data to Cloud Storage and leverage the Cloud Dataproc connector to run jobs on that data.
Your data is stored in Cloud Storage buckets. Fellow developers have reported that data downloaded from Cloud Storage is resulting in slow API performance. You want to research the issue to provide details to the GCP support team.
Which command should you run?
- A . gsutil test Co output.json gs://my-bucket
- B . gsutil perfdiag Co output.json gs://my-bucket
- C . gcloud compute scp example-instance:~/test-data Co output.json gs://my-bucket
- D . gcloud services test Co output.json gs://my-bucket
You are using Cloud Build build to promote a Docker image to Development, Test, and Production environments. You need to ensure that the same Docker image is deployed to each of these environments.
How should you identify the Docker image in your build?
- A . Use the latest Docker image tag.
- B . Use a unique Docker image name.
- C . Use the digest of the Docker image.
- D . Use a semantic version Docker image tag.
Your company has created an application that uploads a report to a Cloud Storage bucket. When the report is uploaded to the bucket, you want to publish a message to a Cloud Pub/Sub topic. You want to implement a solution that will take a small amount to effort to implement.
What should you do?
- A . Configure the Cloud Storage bucket to trigger Cloud Pub/Sub notifications when objects are modified.
- B . Create an App Engine application to receive the file; when it is received, publish a message to the Cloud Pub/Sub topic.
- C . Create a Cloud Function that is triggered by the Cloud Storage bucket. In the Cloud Function, publish a message to the Cloud Pub/Sub topic.
- D . Create an application deployed in a Google Kubernetes Engine cluster to receive the file; when it is received, publish a message to the Cloud Pub/Sub topic.
Your teammate has asked you to review the code below, which is adding a credit to an account balance in Cloud Datastore.
Which improvement should you suggest your teammate make?
- A . Get the entity with an ancestor query.
- B . Get and put the entity in a transaction.
- C . Use a strongly consistent transactional database.
- D . Don’t return the account entity from the function.
Your company stores their source code in a Cloud Source Repositories repository. Your company wants to build and test their code on each source code commit to the repository and requires a solution that is managed and has minimal operations overhead.
Which method should they use?
- A . Use Cloud Build with a trigger configured for each source code commit.
- B . Use Jenkins deployed via the Google Cloud Platform Marketplace, configured to watch for source code commits.
- C . Use a Compute Engine virtual machine instance with an open source continuous integration tool, configured to watch for source code commits.
- D . Use a source code commit trigger to push a message to a Cloud Pub/Sub topic that triggers an App Engine service to build the source code.
You are writing a Compute Engine hosted application in project A that needs to securely authenticate
to a Cloud Pub/Sub topic in project B.
What should you do?
- A . Configure the instances with a service account owned by project B. Add the service account as a Cloud Pub/Sub publisher to project A.
- B . Configure the instances with a service account owned by project A. Add the service account as a publisher on the topic.
- C . Configure Application Default Credentials to use the private key of a service account owned by project B. Add the service account as a Cloud Pub/Sub publisher to project A.
- D . Configure Application Default Credentials to use the private key of a service account owned by project A. Add the service account as a publisher on the topic
You are developing a corporate tool on Compute Engine for the finance department, which needs to authenticate users and verify that they are in the finance department. All company employees use G Suite.
What should you do?
- A . Enable Cloud Identity-Aware Proxy on the HTTP(s) load balancer and restrict access to a Google Group containing users in the finance department. Verify the provided JSON Web Token within the application.
- B . Enable Cloud Identity-Aware Proxy on the HTTP(s) load balancer and restrict access to a Google Group containing users in the finance department. Issue client-side certificates to everybody in the finance team and verify the certificates in the application.
- C . Configure Cloud Armor Security Policies to restrict access to only corporate IP address ranges.
Verify the provided JSON Web Token within the application. - D . Configure Cloud Armor Security Policies to restrict access to only corporate IP address ranges. Issue client side certificates to everybody in the finance team and verify the certificates in the application.
Your API backend is running on multiple cloud providers. You want to generate reports for the network latency of your API.
Which two steps should you take? (Choose two.)
- A . Use Zipkin collector to gather data.
- B . Use Fluentd agent to gather data.
- C . Use Stackdriver Trace to generate reports.
- D . Use Stackdriver Debugger to generate report.
- E . Use Stackdriver Profiler to generate report.