[Q106-Q131] Exam Passing Guarantee Feb 19, 2024 Professional-Cloud-Developer Exam with Accurate Quastions!

Share

Exam Passing Guarantee Feb 19, 2024 Professional-Cloud-Developer Exam with Accurate Quastions!

Test Engine to Practice Test for Professional-Cloud-Developer Valid and Updated Dumps

NEW QUESTION # 106
You have an application running on Google Kubernetes Engine (GKE). The application is currently using a logging library and is outputting to standard output You need to export the logs to Cloud Logging, and you need the logs to include metadata about each request. You want to use the simplest method to accomplish this. What should you do?

  • A. Update your application to output logs in CSV format, and add the necessary metadata to the CSV.
  • B. Install the Fluent Bit agent on each of your GKE nodes, and have the agent export all logs from /var/ log.
  • C. Change your application s logging library to the Cloud Logging library and configure your application to export logs to Cloud Logging
  • D. Update your application to output logs in JSON format, and add the necessary metadata to the JSON

Answer: A


NEW QUESTION # 107
Your development team has been tasked with maintaining a .NET legacy application. The application incurs occasional changes and was recently updated. Your goal is to ensure that the application provides consistent results while moving through the CI/CD pipeline from environment to environment. You want to minimize the cost of deployment while making sure that external factors and dependencies between hosting environments are not problematic. Containers are not yet approved in your organization. What should you do?

  • A. Rewrite the application using .NET Core, and deploy to Cloud Run. Use revisions to separate the environments.
  • B. Use Cloud Build to deploy the application as a new Compute Engine image for each build. Use this image in each environment.
  • C. Deploy the application using MS Web Deploy, and make sure to always use the latest, patched MS Windows Server base image in Compute Engine.
  • D. Use Cloud Build to package the application, and deploy to a Google Kubernetes Engine cluster. Use namespaces to separate the environments.

Answer: B

Explanation:
https://cloud.google.com/architecture/modernization-path-dotnet-applications-google-cloud#phase_1_rehost_in_the_cloud
https://cloud.google.com/architecture/modernization-path-dotnet-applications-google-cloud


NEW QUESTION # 108
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 apps
Which API architecture should you use?

  • A. SOAP-based APIs
  • B. MQTT for APIs
  • C. gRPC-based APIs
  • D. RESTful APIs

Answer: D

Explanation:
Explanation/Reference: https://www.devteam.space/blog/how-to-build-restful-api-for-your-mobile-app/


NEW QUESTION # 109
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 Many Requests" status code.
How should you handle this error?

  • A. Add a cache-control header to the objects.
  • B. Request a quota increase from the GCP Console.
  • C. Change the storage class of the Cloud Storage bucket to Multi-regional.
  • D. Retry the request with a truncated exponential backoff strategy.

Answer: D

Explanation:
Reference: https://developers.google.com/gmail/api/v1/reference/quota


NEW QUESTION # 110
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 Cloud Functions as three separate functions.
  • C. Deploy the website on App Engine and use traffic splitting.
  • D. Deploy the website on App Engine as three separate services.

Answer: C

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


NEW QUESTION # 111
You are monitoring a web application that is written in Go and deployed in Google Kubernetes Engine. You notice an increase in CPU and memory utilization. You need to determine which source code is consuming the most CPU and memory resources. What should you do?

  • A. Create a Cloud Logging query that gathers the web application's logs. Write a Python script that calculates the difference between the timestamps from the beginning and the end of the application's longest functions to identity time-intensive functions.
  • B. Import the Cloud Profiler package into your application, and initialize the Profiler agent. Review the generated flame graph in the Google Cloud console to identify time-intensive functions.
  • C. Import OpenTelemetry and Trace export packages into your application, and create the trace provider.
    Review the latency data for your application on the Trace overview page, and identify where bottlenecks are occurring.
  • D. Download, install, and start the Snapshot Debugger agent in your VM. Take debug snapshots of the functions that take the longest time. Review the call stack frame, and identify the local variables at that level in the stack.

Answer: B


NEW QUESTION # 112
You have decided to migrate your Compute Engine application to Google Kubernetes Engine. You need to build a container image and push it to Artifact Registry using Cloud Build. What should you do? (Choose two.) A) Run gcloud builds submit in the directory that contains the application source code.
B)
Run gcloud run deploy app-name --image gcr.io/$PROJECT_ID/app-name in the directory that contains the application source code.
C)
Run gcloud container images add-tag gcr.io/$PROJECT_ID/app-name gcr.io/$PROJECT_ID/app-name:latest in the directory that contains the application source code.
D)
In the application source directory, create a file named cloudbuild.yaml that contains the following contents:

E)
In the application source directory, create a file named cloudbuild.yaml that contains the following contents:

  • A. Option E
  • B. Option D
  • C. Option C
  • D. Option B
  • E. Option A

Answer: B,E

Explanation:
https://cloud.google.com/sdk/gcloud/reference/builds/submit
https://cloud.google.com/artifact-registry/docs/configure-cloud-build


NEW QUESTION # 113
You are evaluating developer tools to help drive Google Kubernetes Engine adoption and integration with your development environment, which includes VS Code and IntelliJ. What should you do?

  • A. Use Cloud Shell to manage your infrastructure and applications from the command line.
  • B. Use Cloud Code to develop applications.
  • C. Use a Cloud Notebook instance to ingest and process data and deploy models.
  • D. Use the Cloud Shell integrated Code Editor to edit code and configuration files.

Answer: B


NEW QUESTION # 114
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 Many Requests" status code.
How should you handle this error?

  • A. Add a cache-control header to the objects.
  • B. Request a quota increase from the GCP Console.
  • C. Change the storage class of the Cloud Storage bucket to Multi-regional.
  • D. Retry the request with a truncated exponential backoff strategy.

Answer: D

Explanation:
Explanation/Reference: https://developers.google.com/gmail/api/v1/reference/quota


NEW QUESTION # 115
Case Study
Company Overview
HipLocal is a community application designed to facilitate communication between people in close proximity. It is used for event planning and organizing sporting events, and for businesses to connect with their local communities. HipLocal launched recently in a few neighborhoods in Dallas and is rapidly growing into a global phenomenon. Its unique style of hyper-local community communication and business outreach is in demand around the world.
Executive Statement
We are the number one local community app; it's time to take our local community services global. Our venture capital investors want to see rapid growth and the same great experience for new local and virtual communities that come online, whether their members are 10 or 10000 miles away from each other.
Solution Concept
HipLocal wants to expand their existing service, with updated functionality, in new regions to better serve their global customers. They want to hire and train a new team to support these regions in their time zones. They will need to ensure that the application scales smoothly and provides clear uptime data.
Existing Technical Environment
HipLocal's environment is a mix of on-premises hardware and infrastructure running in Google Cloud Platform.
The HipLocal team understands their application well, but has limited experience in global scale applications.
Their existing technical environment is as follows:
* Existing APIs run on Compute Engine virtual machine instances hosted in GCP.
* State is stored in a single instance MySQL database in GCP.
* Data is exported to an on-premises Teradata/Vertica data warehouse.
* Data analytics is performed in an on-premises Hadoop environment.
* The application has no logging.
* There are basic indicators of uptime; alerts are frequently fired when the APIs are unresponsive.
Business Requirements
HipLocal's investors want to expand their footprint and support the increase in demand they are seeing. Their requirements are:
* Expand availability of the application to new regions.
* Increase the number of concurrent users that can be supported.
* Ensure a consistent experience for users when they travel to different regions.
* Obtain user activity metrics to better understand how to monetize their product.
* Ensure compliance with regulations in the new regions (for example, GDPR).
* Reduce infrastructure management time and cost.
* Adopt the Google-recommended practices for cloud computing.
Technical Requirements
* The application and backend must provide usage metrics and monitoring.
* APIs require strong authentication and authorization.
* Logging must be increased, and data should be stored in a cloud analytics platform.
* Move to serverless architecture to facilitate elastic scaling.
* Provide authorized access to internal apps in a secure manner.
HipLocal wants to reduce the number of on-call engineers and eliminate manual scaling.
Which two services should they choose? (Choose two.)

  • A. Use Knative to build and deploy serverless applications.
  • B. Use Google App Engine services.
  • C. Use a large Google Compute Engine cluster for deployments.
  • D. Use serverless Google Cloud Functions.
  • E. Use Google Kubernetes Engine for automated deployments.

Answer: A,D

Explanation:
Explanation


NEW QUESTION # 116
You want to migrate an on-premises container running in Knative to Google Cloud. You need to make sure that the migration doesn't affect your application's deployment strategy, and you want to use a fully managed service. Which Google Cloud service should you use to deploy your container?

  • A. App Engine flexible environment
  • B. Cloud Run
  • C. Google Kubernetes Engine
  • D. Compute Engine

Answer: B

Explanation:
https://cloud.google.com/blog/products/serverless/knative-based-cloud-run-services-are-ga


NEW QUESTION # 117
Your company needs a database solution that stores customer purchase history and meets the following requirements:
Customers can query their purchase immediately after submission.
Purchases can be sorted on a variety of fields.
Distinct record formats can be stored at the same time.
Which storage option satisfies these requirements?

  • A. Cloud SQL using a SQL SELECT statement
  • B. Firestore in Native mode
  • C. Cloud Storage using an object read
  • D. Firestore in Datastore mode using a global query

Answer: B


NEW QUESTION # 118
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. gcloud services test -o output.json gs://my-bucket
  • B. gcloud compute scp example-instance:~/test-data -o output.json gs://my-bucket
  • C. gsutil perfdiag -o output.json gs://my-bucket
  • D. gsutil test -o output.json gs://my-bucket

Answer: C


NEW QUESTION # 119
You need to migrate an internal file upload API with an enforced 500-MB file size limit to App Engine.
What should you do?

  • A. Use CPanel to upload files.
  • B. Use signed URLs to upload files.
  • C. Use FTP to upload files.
  • D. Change the API to be a multipart file upload API.

Answer: B

Explanation:
Reference:
https://wiki.christophchamp.com/index.php?title=Google_Cloud_Platform
Topic 1, HipLocal Case Study
Company Overview
HipLocal is a community application designed to facilitate communication between people in close proximity. It is used for event planning and organizing sporting events, and for businesses to connect with their local communities. HipLocal launched recently in a few neighborhoods in Dallas and is rapidly growing into a global phenomenon. Its unique style of hyper-local community communication and business outreach is in demand around the world.
Executive statement
We are the number one local community app; it's time to take our local community services global. Our venture capital investors want to see rapid growth and the same great experience for new local and virtual communities that come online, whether their members are 10 or 10,000 miles away from each other.
Solution concept
HipLocal wants to expand their existing service, with updated functionality, in new regions to better serve their global customers. They want to hire and train a new team to support these regions in their time zones. They will need to ensure that the application scales smoothly and provides clear uptime data.
Existing technical environment
HipLocal's environment is a mix of on-premises hardware and infrastructure running in Google Cloud Platform. The HipLocal team understands their application well but has limited experience in global scale applications. Their existing technical environment is as follows:
* Existing APIs run on Compute Engine virtual machine instances hosted in GCP
* State is stored in a single instance MySQL database in GCP
* Data is exported to an on-premises Teradata/Vertica data warehouse
* Data analytics is performed in an on-premises Hadoop environment
* The application has no logging
* There are basic indicators of uptime; alerts are frequently fired when the APIs are unresponsive Business Requirements HipLocal's investors want to expand their footprint and support the increase in demand they are seeing. Their requirements are:
* Expand availability of the application to new regions
* Increase the number of concurrent users that can be supported
* Ensure a consistent experience for users when they travel to different regions
* Obtain user activity metrics to better understand how to monetize their product
* Ensure compliance with regulations in the new regions (for example, GDPR)
* Reduce infrastructure management time and cost
* Adopt the Google-recommended practices for cloud computing
Technical Requirements
* The application and backend must provide usage metrics and monitoring
* APIs require strong authentication and authorization
* Logging must be increased, and data should be stored in a cloud analytics platform
* Move to serverless architecture to facilitate elastic scaling
* Provide authorized access to internal apps in a secure manner


NEW QUESTION # 120
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 with type: LoadBalancer.
  • C. Configure a GKE Ingress resource with type: LoadBalancer.
  • D. Configure a GKE Service resource.

Answer: A


NEW QUESTION # 121
For this question, refer to the HipLocal case study.
A recent security audit discovers that HipLocal's database credentials for their Compute Engine-hosted MySQL databases are stored in plain text on persistent disks. HipLocal needs to reduce the risk of these credentials being stolen. What should they do?

  • A. Create a service account and download its key. Use the key to authenticate to Cloud Key Management Service (KMS) to obtain a key used to decrypt the database credentials.
  • B. Create a service account and download its key. Use the key to authenticate to Cloud Key Management Service (KMS) to obtain the database credentials.
  • C. Grant the roles/secretmanager.secretAccessor role to the Compute Engine service account. Store and access the database credentials with the Secret Manager API.
  • D. Create a service account and grant it the roles/iam.serviceAccountUser role. Impersonate as this account and authenticate using the Cloud SQL Proxy.

Answer: C

Explanation:
Explanation
https://cloud.google.com/secret-manager/docs/overview


NEW QUESTION # 122
From the following, select the best description of cosmetic condition that would be included in good case notes.

  • A. Big ding; probably dropped or thrown
  • B. Badly dinged in addition to crack
  • C. Significant dent in lower right corner suggests impact
  • D. Case is dented like it was dropped

Answer: C


NEW QUESTION # 123
You have a container deployed on Google Kubernetes Engine. The container can sometimes be slow to launch, so you have implemented a liveness probe. You notice that the liveness probe occasionally fails on launch. What should you do?

  • A. Add a readiness probe.
  • B. Increase the initial delay for the liveness probe.
  • C. Add a startup probe.
  • D. Increase the CPU limit for the container.

Answer: B

Explanation:
Explanation
https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-


NEW QUESTION # 124
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 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.
  • 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 table for each department in the Master dataset. Give employees access to the specific table for their department.
  • D. 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.

Answer: B


NEW QUESTION # 125
Which service should HipLocal use to enable access to internal apps?

  • A. Virtual Private Cloud
  • B. Cloud Identity-Aware Proxy
  • C. Cloud VPN
  • D. Cloud Armor

Answer: B


NEW QUESTION # 126
You have a container deployed on Google Kubernetes Engine. The container can sometimes be slow to launch, so you have implemented a liveness probe. You notice that the liveness probe occasionally fails on launch. What should you do?

  • A. Add a readiness probe.
  • B. Increase the initial delay for the liveness probe.
  • C. Add a startup probe.
  • D. Increase the CPU limit for the container.

Answer: B

Explanation:
https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes


NEW QUESTION # 127
You are planning to deploy your application in a Google Kubernetes Engine (GKE) cluster. Your application can scale horizontally, and each instance of your application needs to have a stable network identity and its own persistent disk.
Which GKE object should you use?

  • A. Deployment
  • B. ReplicaSet
  • C. StatefulSet
  • D. ReplicaController

Answer: C

Explanation:
Reference:
https://livebook.manning.com/book/kubernetes-in-action/chapter-10/46


NEW QUESTION # 128
Your team is developing a Cloud Function triggered by Cloud Storage Events. You want to accelerate testing and development of your Cloud Function while following Google-recommended best practices. What should you do?

  • A. Install the Functions Frameworks library, and configure the Cloud Function on localhost. Make a copy of the function, and make edits to the new version Test the new version using cur1.
  • B. Make a copy of the Cloud Function, and rewrite the code to be HTTP-triggered Edit and test the new version by triggering the HTTP endpoint. Send mock requests to the new function to evaluate the functionality.
  • C. Make a copy of the Cloud Function in the Google Cloud Console Use the Cloud console's in-line editor to make source code changes to the new function Modify your web application to call the new function and test the new version in production.
  • D. Create a new Cloud Function that is triggered when Cloud Audit Logs detects the cloudfunctions. functions. sourceCodeSet operation in the original Cloud Function Send mock

Answer: A

Explanation:
requests to the new function to evaluate the functionality.


NEW QUESTION # 129
Your application is logging to Stackdriver. You want to get the count of all requests on all /api/alpha/* endpoints.
What should you do?

  • A. Export the logs to Cloud Storage and count lines matching /api/alphA.
  • B. Add a Stackdriver counter metric for endpoint:/api/alpha/*.
  • C. Export the logs to Cloud Pub/Sub and count lines matching /api/alphA.
  • D. Add a Stackdriver counter metric for path:/api/alpha/.

Answer: A


NEW QUESTION # 130
You are creating and running containers across different projects in Google Cloud. The application you are developing needs to access Google Cloud services from within Google Kubernetes Engine (GKE).
What should you do?

  • A. Use a Google service account to run the Pod with Workload Identity.
  • B. Assign a Google service account to the GKE nodes.
  • C. Use a Google service account with GKE role-based access control (RBAC).
  • D. Store the Google service account credentials as a Kubernetes Secret.

Answer: A

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


NEW QUESTION # 131
......

Exam Questions for Professional-Cloud-Developer Updated Versions With Test Engine: https://www.updatedumps.com/Google/Professional-Cloud-Developer-updated-exam-dumps.html

Pass Professional-Cloud-Developer Exam with Updated Professional-Cloud-Developer Exam Dumps PDF: https://drive.google.com/open?id=1zyOOnEpFblSE3BgZe-2KIYUO6ON89Eas