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 company has deployed a new API to App Engine Standard environment. During testing, the API is not behaving as expected. You want to monitor the application over time to diagnose the problem within the application code without redeploying the application.
Which tool should you use?
- A . Stackdriver Trace
- B . Stackdriver Monitoring
- C . Stackdriver Debug Snapshots
- D . Stackdriver Debug Logpoints
You want to use the Stackdriver Logging Agent to send an application’s log file to Stackdriver from a Compute Engine virtual machine instance.
After installing the Stackdriver Logging Agent, what should you do first?
- A . Enable the Error Reporting API on the project.
- B . Grant the instance full access to all Cloud APIs.
- C . Configure the application log file as a custom source.
- D . Create a Stackdriver Logs Export Sink with a filter that matches the application’s log entries.
Your company has a BigQuery data mart that provides analytics information to hundreds of employees. One user of wants to run jobs without interrupting important workloads. This user isn’t concerned about the time it takes to run these jobs. You want to fulfill this request while minimizing cost to the company and the effort required on your part.
What should you do?
- A . Ask the user to run the jobs as batch jobs.
- B . Create a separate project for the user to run jobs.
- C . Add the user as a job.user role in the existing project.
- D . Allow the user to run jobs when important workloads are not running.
You want to notify on-call engineers about a service degradation in production while minimizing Development time.
What should you do?
- A . Use Cloud Function to monitor resources and raise alerts.
- B . Use Cloud Pub/Sub to monitor resources and raise alerts.
- C . Use Stackdriver Error Reporting to capture errors and raise alerts.
- D . Use Stackdriver Monitoring to monitor resources and raise alerts.
You are writing a single-page web application with a user-interface that communicates with a third-party API for content using XMLHttpRequest. The data displayed on the UI by the API results is less critical than other data displayed on the same web page, so it is acceptable for some requests to not have the API data displayed in the UI. However, calls made to the API should not delay rendering of other parts of the user interface. You want your application to perform well when the API response is an error or a timeout.
What should you do?
- A . Set the asynchronous option for your requests to the API to false and omit the widget displaying the API results when a timeout or error is encountered.
- B . Set the asynchronous option for your request to the API to true and omit the widget displaying the API results when a timeout or error is encountered.
- C . Catch timeout or error exceptions from the API call and keep trying with exponential backoff until the API response is successful.
- D . Catch timeout or error exceptions from the API call and display the error response in the UI widget.
You are creating an App Engine application that writes a file to any user’s Google Drive.
How should the application authenticate to the Google Drive API?
- A . With an OAuth Client ID that uses the https://www.googleapis.com/auth/drive.file scope to obtain an access token for each user.
- B . With an OAuth Client ID with delegated domain-wide authority.
- C . With the App Engine service account and https://www.googleapis.com/auth/drive.file scope that generates a signed JWT.
- D . With the App Engine service account with delegated domain-wide authority.
You are creating a Google Kubernetes Engine (GKE) cluster and run this command:
The command fails with the error:
You want to resolve the issue.
What should you do?
- A . Request additional GKE quota is the GCP Console.
- B . Request additional Compute Engine quota in the GCP Console.
- C . Open a support case to request additional GKE quotA.
- D . Decouple services in the cluster, and rewrite new clusters to function with fewer cores.
You are parsing a log file that contains three columns: a timestamp, an account number (a string), and a transaction amount (a number). You want to calculate the sum of all transaction amounts for each unique account number efficiently.
Which data structure should you use?
- A . A linked list
- B . A hash table
- C . A two-dimensional array
- D . A comma-delimited string
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.
- 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.
- 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.
- 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.
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
- B . Stackdriver uptime checks
- C . Cloud Load Balancing – heath checks
- D . Managed instance group – heath checks