Google's Professional Cloud Developer You want to upload files from an on-premises virtual machine to Google Cloud Storage as part of a data migration. These files will be consumed by CloudDataProc Hadoop cluster in a GCP environment.Which command should you use?
#1
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You migrated your applications to Google Cloud Platform and kept your existing monitoring platform. You now find that your notification system is too slow for time critical problems.What should you do?
#2
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are planning to migrate a MySQL database to the managed Cloud SQL database for Google Cloud. You have Compute Engine virtual machine instances that will connect with this Cloud SQL instance. You do not want to whitelist IPs for the Compute Engine instances to be able to access Cloud SQL.What should you do?
#3
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You have deployed an HTTP(s) Load Balancer with the gcloud commands shown below.Health checks to port 80 on the Compute Engine virtual machine instance are failing and no traffic is sent to your instances. You want to resolve the problem.Which commands should you run?
#4
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your website is deployed on Compute Engine. Your marketing team wants to test conversion rates between 3 different website designs.Which approach should you use?
#5
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You need to copy directory local-scripts and all of its contents from your local workstation to a Compute Engine virtual machine instance.Which command should you use?
#6
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are deploying your application to a Compute Engine virtual machine instance with the Stackdriver Monitoring Agent installed. Your application is a unix process on the instance. You want to be alerted if the unix process has not run for at least 5 minutes. You are not able to change the application to generate metrics or logs.Which alert condition should you configure?
#7
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer You have two tables in an ANSI-SQL compliant database with identical columns that you need to quickly combine into a single table, removing duplicate rows from the result set.What should you do?
#8
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer You have an application deployed in production. When a new version is deployed, some issues don't arise until the application receives traffic from users in production. You want to reduce both the impact and the number of users affected.Which deployment strategy should you use?
#9
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your company wants to expand their users outside the United States for their popular application. The company wants to ensure 99.999% availability of the database for their application and also wants to minimize the read latency for their users across the globe.Which two actions should they take? (Choose two.) E. Create a minimum of two Cloud Spanner instances in separate regions with at least one node. F. Create a Cloud Dataflow pipeline to replicate data across different databases.
#10
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You need to migrate an internal file upload API with an enforced 500-MB file size limit to App Engine.What should you do?
#11
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your teammate has asked you to review the code below. Its purpose is to efficiently add a large number of small rows to a BigQuery table.Which improvement should you suggest your teammate make?
#12
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are developing a JPEG image-resizing API hosted on Google Kubernetes Engine (GKE). Callers of the service will exist within the same GKE cluster. You want clients to be able to get the IP address of the service.What should you do?
#13
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are using Cloud Build to build and test application source code stored in Cloud Source Repositories. The build process requires a build tool not available in the Cloud Build environment.What should you do?
#14
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are deploying your application to a Compute Engine virtual machine instance. Your application is configured to write its log files to disk. You want to view the logs in Stackdriver Logging without changing the application code.What should you do?
#15
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your service adds text to images that it reads from Cloud Storage. During busy times of the year, requests to Cloud Storage fail with an HTTP 429 "Too ManyRequests" status code.How should you handle this error?
#16
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are building an API that will be used by Android and iOS apps. The API must:* Support HTTPs* Minimize bandwidth cost* Integrate easily with mobile appsWhich API architecture should you use?
#17
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your application takes an input from a user and publishes it to the user's contacts. This input is stored in a table in Cloud Spanner. Your application is more sensitive to latency and less sensitive to consistency.How should you perform reads from Cloud Spanner for this application?
#18
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your application is deployed in a Google Kubernetes Engine (GKE) cluster. When a new version of your application is released, your CI/CD tool updates the spec.template.spec.containers[0].image value to reference the Docker image of your new application version. When the Deployment object applies the change, you want to deploy at least 1 replica of the new version and maintain the previous replicas until the new replica is healthy.Which change should you make to the GKE Deployment object shown below?
#19
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You plan to make a simple HTML application available on the internet. This site keeps information about FAQs for your application. The application is static and contains images, HTML, CSS, and Javascript. You want to make this application available on the internet with as few steps as possible.What should you do?
#20
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer 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?
#21
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer 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?
#22
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer 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?
#23
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You want to notify on-call engineers about a service degradation in production while minimizing development time.What should you do?
#24
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer 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?
#25
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are creating a web application that runs in a Compute Engine instance and writes a file to any user's Google Drive. You need to configure the application to authenticate to the Google Drive API. What should you do?
#26
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer 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?
#27
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer 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?
#28
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer 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?
#29
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer 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?