Latest [Aug 14, 2023] Professional-Cloud-Developer Exam with Accurate Google Certified Professional - Cloud Developer PDF Questions [Q39-Q59]

Share

Latest [Aug 14, 2023] Professional-Cloud-Developer Exam with Accurate Google Certified Professional - Cloud Developer PDF Questions

Take a Leap Forward in Your Career by Earning Google 228 Questions


Google Professional-Cloud-Developer (Google Certified Professional - Cloud Developer) Exam is a certification exam that assesses an individual's ability to develop and deploy applications on Google Cloud Platform. Professional-Cloud-Developer exam is designed for developers who have experience in building highly scalable, efficient, and reliable cloud-native applications using Google Cloud tools and services.

 

NEW QUESTION # 39
You are developing a microservice-based application that will be deployed on a Google Kubernetes Engine cluster. The application needs to read and write to a Spanner database. You want to follow security best practices while minimizing code changes. How should you configure your application to retrieve Spanner credentials?

  • A. Store the application credentials using Cloud Key Management Service, and retrieve them whenever a database connection is made.
  • B. Configure the appropriate service accounts, and use Workload Identity to run the pods.
  • C. Store the application credentials as Kubernetes Secrets, and expose them as environment variables.
  • D. Configure the appropriate routing rules, and use a VPC-native cluster to directly connect to the database.

Answer: B

Explanation:
Explanation
https://cloud.google.com/kubernetes-engine/docs/concepts/workload-identity


NEW QUESTION # 40
Your team develops services that run on Google Kubernetes Engine. You need to standardize their log data using Google-recommended practices and make the data more useful in the fewest number of steps. What should you do? (Choose two.)

  • A. Mandate the use of the Logging API in the application code to write structured logs to Cloud Logging.
  • B. Create aggregated exports on application logs to BigQuery to facilitate log analytics.
  • C. Create aggregated exports on application logs to Cloud Storage to facilitate log analytics.
  • D. Write log output to standard output (stdout) as single-line JSON to be ingested into Cloud Logging as structured logs.
  • E. Mandate the use of the Pub/Sub API to write structured data to Pub/Sub and create a Dataflow streaming pipeline to normalize logs and write them to BigQuery for analytics.

Answer: B,D

Explanation:
Explanation
https://cloud.google.com/stackdriver/docs/solutions/gke/managing-logs#best_practices


NEW QUESTION # 41
Please refer to the following information to answer the questions on the right.
Rachel is starting a repair on a three-year-old MacBook Pro.
After opening the device, she takes some time to visually inspect the top case assembly with battery.
After gaining agreement with the customer about repair time and cost, Rachel begins the replacement of the top case assembly with battery. If during the repair the battery cells begin to actively swell, how should Rachel respond?

  • A. Find a fire extinguisher and keep it nearby.
  • B. Leave the room for fifteen minutes.
  • C. Pour sand over the battery immediately.
  • D. Carefully continue the repair while monitoring the battery.

Answer: C


NEW QUESTION # 42
Your team develops services that run on Google Kubernetes Engine. Your team's code is stored in Cloud Source Repositories. You need to quickly identify bugs in the code before it is deployed to production. You want to invest in automation to improve developer feedback and make the process as efficient as possible.
What should you do?

  • A. Use Spinnaker to automate deploying container images to the production environment.
  • B. Use Cloud Build to automate building container images from code based on Git tags.
  • C. Use Cloud Build to automate building container images from code based on forked versions.
  • D. Use Spinnaker to automate building container images from code based on Git tags.

Answer: D

Explanation:
Reference: https://spinnaker.io/docs/guides/tutorials/codelabs/kubernetes-v2-source-to-prod/


NEW QUESTION # 43
Wendell explains that his iPhone X is dropping calls. Which of the following is an open question that would best help you further evaluate the issue with Wendell?

  • A. Do you find that you are driving in a car when these dropped calls occur?
  • B. Are you in an elevator or a parking garage when the iPhone drops the calls?
  • C. How is the rest of your experience with the iPhone, aside from the dropped calls?
  • D. Could you please tell me about the situations when your iPhone drops calls?

Answer: D


NEW QUESTION # 44
You are developing an application that will allow users to read and post comments on news articles. You want to configure your application to store and display user-submitted comments using Firestore. How should you design the schema to support an unknown number of comments and articles?

  • A. Add each comment to an array property on the article.
  • B. Store each comment in a document, and add the comment's key to an array property on the article.
  • C. Store each comment in a subcollection of the article.
  • D. Store each comment in a document, and add the comment's key to an array property on the user profile.

Answer: D


NEW QUESTION # 45
You have an application controlled by a managed instance group. When you deploy a new version of the application, costs should be minimized and the number of instances should not increase. You want to ensure that, when each new instance is created, the deployment only continues if the new instance is healthy. What should you do?

  • A. Perform a rolling-action with maxSurge set to 1, maxUnavailable set to 0.
  • B. Perform a rolling-action with maxSurge set to 0, maxUnavailable set to 1
  • C. Perform a rolling-action with maxHealthy set to 0, maxUnhealthy set to 1.
  • D. Perform a rolling-action with maxHealthy set to 1, maxUnhealthy set to 0.

Answer: A


NEW QUESTION # 46
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. Create a Cloud Build build config file with separate cloud builder steps to compile and 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. Add RUN commands in the Dockerfile to execute unit and integration tests.

Answer: A


NEW QUESTION # 47
You are using the Cloud Client Library to upload an image in your application to Cloud Storage. Users of the application report that occasionally the upload does not complete and the client library reports an HTTP 504 Gateway Timeout error. You want to make the application more resilient to errors. What changes to the application should you make?

  • A. Create a queue for the object and inform the users that the application will try again in 10 minutes.
  • B. Design a retry button in the application and ask users to click if the error occurs.
  • C. Write an exponential backoff process around the client library call.
  • D. Write a one-second wait time backoff process around the client library call.

Answer: C


NEW QUESTION # 48
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?

  • A. Deploy the website on Cloud Functions and use traffic splitting.
  • B. Deploy the website on App Engine and use traffic splitting.
  • C. Deploy the website on App Engine as three separate services.
  • D. Deploy the website on Cloud Functions as three separate functions.

Answer: B

Explanation:
Explanation/Reference: https://cloud.google.com/appengine/docs/standard/python/splitting-traffic


NEW QUESTION # 49
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?

  • A. Upload your application to an App Engine environment.
  • B. Create a Compute Engine instance with Apache web server installed. Configure Apache web server to host the application.
  • C. Upload your application to Cloud Storage.
  • D. Containerize your application first. Deploy this container to Google Kubernetes Engine (GKE) and assign an external IP address to the GKE pod hosting the application.

Answer: C

Explanation:
Reference: https://cloud.google.com/storage/docs/hosting-static-website


NEW QUESTION # 50
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. Create a build trigger on a Git branch name pattern. Use a Git branch naming convention for new releases.
  • B. Commit your source code to a second Cloud Source Repositories repository with a second Cloud Build trigger. Use this repository for new releases only.
  • C. Manually trigger the build for new releases.
  • D. Create a build trigger on a Git tag pattern. Use a Git tag convention for new releases.

Answer: A

Explanation:
Reference: https://docs.docker.com/docker-hub/builds/


NEW QUESTION # 51
You recently deployed a Go application on Google Kubernetes Engine (GKE). The operations team has noticed that the application's CPU usage is high even when there is low production traffic. The operations team has asked you to optimize your application's CPU resource consumption. You want to determine which Go functions consume the largest amount of CPU. What should you do?

  • A. Connect to your GKE nodes using SSH. Run the top command on the shell to extract the CPU utilization of your application.
  • B. Deploy a Fluent Bit daemonset on the GKE cluster to log data in Cloud Logging. Analyze the logs to get insights into your application code's performance.
  • C. Create a custom dashboard in Cloud Monitoring to evaluate the CPU performance metrics of your application.
  • D. Modify your Go application to capture profiling data. Analyze the CPU metrics of your application in flame graphs in Profiler.

Answer: D

Explanation:
Explanation
https://cloud.google.com/profiler/docs/about-profiler
Cloud Profiler is a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications. It attributes that information to the source code that generated it, helping you identify the parts of your application that are consuming the most resources, and otherwise illuminating your applications performance characteristics.
https://cloud.google.com/profiler/docs


NEW QUESTION # 52
You are a SaaS provider deploying dedicated blogging software to customers in your Google Kubernetes Engine (GKE) cluster. You want to configure a secure multi-tenant platform to ensure that each customer has access to only their own blog and can't affect the workloads of other customers. What should you do?

  • A. Use GKE Audit Logging to identify malicious containers and delete them on discovery.
  • B. Deploy a namespace per tenant and use Network Policies in each blog deployment.
  • C. Build a custom image of the blogging software and use Binary Authorization to prevent untrusted image deployments.
  • D. Enable Application-layer Secrets on the GKE cluster to protect the cluster.

Answer: B


NEW QUESTION # 53
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?

  • A. Deploy the website on Cloud Functions and use traffic splitting.
  • B. Deploy the website on App Engine and use traffic splitting.
  • C. Deploy the website on App Engine as three separate services.
  • D. Deploy the website on Cloud Functions as three separate functions.

Answer: B

Explanation:
Reference: https://cloud.google.com/appengine/docs/standard/python/splitting-traffic


NEW QUESTION # 54
Your team detected a spike of errors in an application running on Cloud Run in your production project. The application is configured to read messages from Pub/Sub topic A, process the messages, and write the messages to topic B.
You want to conduct tests to identify the cause of the errors. You can use a set of mock messages for testing. What should you do?

  • A. Use the Google Cloud console to write mock messages to topic A. Change the logging level in the application to DEBUG or INFO, and then analyze the logs.
  • B. Deploy the Pub/Sub emulator on your local machine. Point the production application to your local Pub/Sub topics. Write mock messages to topic A, and then analyze the logs.
  • C. Deploy the Pub/Sub and Cloud Run emulators on your local machine. Deploy the application locally, and change the logging level in the application to DEBUG or INFO. Write mock messages to topic A, and then analyze the logs.
  • D. Use the gcloud CLI to write mock messages to topic A. Change the logging level in the application to DEBUG or INFO, and then analyze the logs.

Answer: C


NEW QUESTION # 55
You are developing a new application that has the following design requirements:
Creation and changes to the application infrastructure are versioned and auditable.
The application and deployment infrastructure uses Google-managed services as much as possible.
The application runs on a serverless compute platform.
How should you design the application's architecture?

  • A. 1. Deploy the application infrastructure using gcloud commands.
    2. Use Cloud Build to define a continuous integration pipeline for changes to the application source code.
    3. Configure a pipeline step to pull the application source code from a Git repository, and create a containerized application.
    4. Deploy the new container on Cloud Run as a pipeline step.
  • B. 1. Store the application and infrastructure source code in a Git repository.
    2. Use Cloud Build to deploy the application infrastructure with Terraform.
    3. Deploy the application to a Cloud Function as a pipeline step.
  • C. 1. Deploy Jenkins from the Google Cloud Marketplace, and define a continuous integration pipeline in Jenkins.
    2. Configure a pipeline step to pull the application source code from a Git repository.
    3. Deploy the application source code to App Engine as a pipeline step.
  • D. 1. Create a continuous integration pipeline on Cloud Build, and configure the pipeline to deploy the application infrastructure using Deployment Manager templates.
    2. Configure a pipeline step to create a container with the latest application source code.
    3. Deploy the container to a Compute Engine instance as a pipeline step.

Answer: A

Explanation:
Reference: https://cloud.google.com/docs/ci-cd


NEW QUESTION # 56
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?

  • A. Use nested WITH statements to combine the tables.
  • B. Use the JOIN operator in SQL to combine the tables.
  • C. Use the UNION operator in SQL to combine the tables.
  • D. Use the UNION ALL operator in SQL to combine the tables.

Answer: C

Explanation:
Reference: https://www.techonthenet.com/sql/union_all.php


NEW QUESTION # 57
You are trying to connect to your Google Kubernetes Engine (GKE) cluster using kubectl from Cloud Shell.
You have deployed your GKE cluster with a public endpoint. From Cloud Shell, you run the following command:

You notice that the kubectl commands time out without returning an error message. What is the most likely cause of this issue?

  • A. Your user account does not have privileges to interact with the cluster using kubectl.
  • B. A VPC firewall is blocking access to the cluster's endpoint.
  • C. The Cloud Shell is not part of the same VPC as the GKE cluster.
  • D. Your Cloud Shell external IP address is not part of the authorized networks of the cluster.

Answer: D

Explanation:
Explanation
https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#cloud_shell If you want to use Cloud Shell to access the cluster, you must add the public IP address of your Cloud Shell to the cluster's list of authorized networks.


NEW QUESTION # 58
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?

  • A. gcloud compute scp --project "my-gcp-project" --recurse ~/local-scripts/ gcpinstance- name:~/server-scripts/ --zone "us-east1-b"
  • B. gsutil cp --project "my-gcp-project" -R ~/local-scripts/ gcp-instance-name:~/ server-scripts/ --zone "us-east1-b"
  • C. gsutil cp --project "my-gcp-project" -r ~/local-scripts/ gcp-instance-name:~/ server-scripts/ --zone "us-east1-b"
  • D. gcloud compute mv --project "my-gcp-project" --recurse ~/local-scripts/ gcpinstance- name:~/server-scripts/ --zone "us-east1-b"

Answer: A

Explanation:
Reference: https://cloud.google.com/sdk/gcloud/reference/compute/copy-files


NEW QUESTION # 59
......


Google Professional-Cloud-Developer certification exam is designed to test the knowledge and skills of individuals who develop and deploy applications in the Google Cloud Platform (GCP) environment. Professional-Cloud-Developer exam is a part of the Google Cloud Certification Program, which offers certifications for different roles in the cloud computing industry. The Professional-Cloud-Developer certification exam is intended for developers who have experience working with GCP and are proficient in at least one programming language.

 

Authentic Best resources for Professional-Cloud-Developer Online Practice Exam: https://lead2pass.troytecdumps.com/Professional-Cloud-Developer-troytec-exam-dumps.html