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 code is running on Cloud Functions in project A. It is supposed to write an object in a Cloud Storage bucket owned by project B. However, the write call is failing with the error "403 Forbidden".
What should you do to correct the problem?
- A . Grant your user account the roles/storage.objectCreator role for the Cloud Storage bucket.
- B . Grant your user account the roles/iam.serviceAccountUser role for the [email protected] service account.
- C . Grant the [email protected] service account the roles/storage.objectCreator role for the Cloud Storage bucket.
- D . Enable the Cloud Storage API in project B.
Your application is running in multiple Google Kubernetes Engine clusters. It is managed by a Deployment in each cluster. The Deployment has created multiple replicas of your Pod in each cluster. You want to view the logs sent to stdout for all of the replicas in your Deployment in all clusters.
Which command should you use?
- A . kubectl logs [PARAM]
- B . gcloud logging read [PARAM]
- C . kubectl exec Cit [PARAM] journalctl
- D . gcloud compute ssh [PARAM] C-command= “sudo journalctl”
You are using Cloud Build to create a new Docker image on each source code commit to a Cloud Source Repositoties repository. Your application is built on every commit to the master branch. You want to release specific commits made to the master branch in an automated method.
What should you do?
- A . Manually trigger the build for new releases.
- B . Create a build trigger on a Git tag pattern. Use a Git tag convention for new releases.
- C . Create a build trigger on a Git branch name pattern. Use a Git branch naming convention for new releases.
- D . Commit your source code to a second Cloud Source Repositories repository with a second Cloud Build trigger. Use this repository for new releases only.
You are designing a schema for a table that will be moved from MySQL to Cloud Bigtable.
The MySQL table is as follows:
How should you design a row key for Cloud Bigtable for this table?
- A . Set Account_id as a key.
- B . Set Account_id_Event_timestamp as a key.
- C . Set Event_timestamp_Account_id as a key.
- D . Set Event_timestamp as a key.
You want to view the memory usage of your application deployed on Compute Engine.
What should you do?
- A . Install the Stackdriver Client Library.
- B . Install the Stackdriver Monitoring Agent.
- C . Use the Stackdriver Metrics Explorer.
- D . Use the Google Cloud Platform Console.
You have an analytics application that runs hundreds of queries on BigQuery every few minutes using BigQuery API. You want to find out how much time these queries take to execute.
What should you do?
- A . Use Stackdriver Monitoring to plot slot usage.
- B . Use Stackdriver Trace to plot API execution time.
- C . Use Stackdriver Trace to plot query execution time.
- D . Use Stackdriver Monitoring to plot query execution times.
You are designing a schema for a Cloud Spanner customer database. You want to store a phone number array field in a customer table. You also want to allow users to search customers by phone number.
How should you design this schema?
- A . Create a table named Customers. Add an Array field in a table that will hold phone numbers for the customer.
- B . Create a table named Customers. Create a table named Phones. Add a CustomerId field in the Phones table to find the CustomerId from a phone number.
- C . Create a table named Customers. Add an Array field in a table that will hold phone numbers for the customer. Create a secondary index on the Array field.
- D . Create a table named Customers as a parent table. Create a table named Phones, and interleave this table into the Customer table. Create an index on the phone number field in the Phones table.
You are deploying a single website on App Engine that needs to be accessible via the URL http://www.altostrat.com/.
What should you do?
- A . Verify domain ownership with Webmaster Central. Create a DNS CNAME record to point to the App Engine canonical name ghs.googlehosted.com.
- B . Verify domain ownership with Webmaster Central. Define an A record pointing to the single global App Engine IP address.
- C . Define a mapping in dispatch.yaml to point the domain www.altostrat.com to your App Engine service. Create a DNS CNAME record to point to the App Engine canonical name ghs.googlehosted.com.
- D . Define a mapping in dispatch.yaml to point the domain www.altostrat.com to your App Engine service. Define an A record pointing to the single global App Engine IP address.
You are running an application on App Engine that you inherited. You want to find out whether the application is using insecure binaries or is vulnerable to XSS attacks.
Which service should you use?
- A . Cloud Amor
- B . Stackdriver Debugger
- C . Cloud Security Scanner
- D . Stackdriver Error Reporting
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.