Get Ready with Professional-Cloud-Developer Exam Dumps (2023)
Realistic Professional-Cloud-Developer Dumps are Available for Instant Access
NEW QUESTION # 85
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. RESTful APIs
- D. gRPC-based APIs
Answer: C
Explanation:
Reference:
https://www.devteam.space/blog/how-to-build-restful-api-for-your-mobile-app/
NEW QUESTION # 86
Your company stores their source code in a Cloud Source Repositories repository. Your company wants to build and test their code on each source code commit to the repository and requires a solution that is managed and has minimal operations overhead.
Which method should they use?
- A. Use Cloud Build with a trigger configured for each source code commit.
- B. Use a Compute Engine virtual machine instance with an open source continuous integration tool, configured to watch for source code commits.
- C. Use a source code commit trigger to push a message to a Cloud Pub/Sub topic that triggers an App Engine service to build the source code.
- D. Use Jenkins deployed via the Google Cloud Platform Marketplace, configured to watch for source code commits.
Answer: A
NEW QUESTION # 87
You are developing a new web application using Cloud Run and committing code to Cloud Source Repositories. You want to deploy new code in the most efficient way possible. You have already created a Cloud Build YAML file that builds a container and runs the following command: gcloud run deploy. What should you do next?
- A. Create a webhook build trigger that runs the build file in response to HTTP POST calls to the webhook URL.
- B. Create a Pub/Sub topic to be notified when code is pushed to the repository. Create a Pub/Sub trigger that runs the build file when an event is published to the topic.
- C. Create a Cron job that runs the following command every 24 hours: gcloud builds submit.
- D. Create a build trigger that runs the build file in response to a repository code being pushed to the development branch.
Answer: D
Explanation:
Explanation
https://cloud.google.com/build/docs/triggers
Cloud Build uses build triggers to enable CI/CD automation. You can configure triggers to listen for incoming events, such as when a new commit is pushed to a repository or when a pull request is initiated, and then automatically execute a build when new events come in. You can also configure triggers to build code on any changes to your source repository or only on changes that match certain criteria.
NEW QUESTION # 88
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. Deploy a namespace per tenant and use Network Policies in each blog deployment.
- B. Enable Application-layer Secrets on the GKE cluster to protect the cluster.
- C. Build a custom image of the blogging software and use Binary Authorization to prevent untrusted image deployments.
- D. Use GKE Audit Logging to identify malicious containers and delete them on discovery.
Answer: A
Explanation:
Reference: https://cloud.google.com/kubernetes-engine/docs/concepts/multitenancy-overview
NEW QUESTION # 89
Select the statement that appropriately sets customer expectations when fixing an issue.
- A. "Repairing this component is easy. We never fail to do it in less than four hours."
- B. "I promise to have the product ready by midday tomorrow."
- C. "Our courier always delivers on time."
- D. "We currently do not have that part in stock. I can call you as soon as the part arrives."
Answer: D
NEW QUESTION # 90
You need to redesign the ingestion of audit events from your authentication service to allow it to handle a large increase in traffic. Currently, the audit service and the authentication system run in the same Compute Engine virtual machine. You plan to use the following Google Cloud tools in the new architecture:
Multiple Compute Engine machines, each running an instance of the authentication service Multiple Compute Engine machines, each running an instance of the audit service Pub/Sub to send the events from the authentication services.
How should you set up the topics and subscriptions to ensure that the system can handle a large volume of messages and can scale efficiently?
- A. Create one Pub/Sub topic. Create one pull subscription to allow the audit services to share the messages.
- B. Create one Pub/Sub topic. Create one push subscription with the endpoint pointing to a load balancer in front of the audit services.
- C. Create one Pub/Sub topic per authentication service. Create one pull subscription per topic to be used by one audit service.
- D. Create one Pub/Sub topic. Create one pull subscription per audit service instance to allow the services to share the messages.
- E. Create one Pub/Sub topic per authentication service. Create one push subscription per topic, with the endpoint pointing to one audit service.
Answer: C
NEW QUESTION # 91
You are writing from a Go application to a Cloud Spanner database. You want to optimize your application's performance using Google-recommended best practices. What should you do?
- A. Write to Cloud Spanner using a third-party HTTP client library.
- B. Write to Cloud Spanner using Cloud Client Libraries.
- C. Write to Cloud Spanner using Google API Client Libraries
- D. Write to Cloud Spanner using a custom gRPC client library.
Answer: B
Explanation:
Explanation
https://cloud.google.com/apis/docs/cloud-client-libraries
"Cloud Client Libraries are the recommended option for accessing Cloud APIs programmatically, where available. Cloud Client Libraries use the latest client library models"
https://cloud.google.com/apis/docs/client-libraries-explained
https://cloud.google.com/go/docs/reference
NEW QUESTION # 92
You are developing a single-player mobile game backend that has unpredictable traffic patterns as users interact with the game throughout the day and night. You want to optimize costs by ensuring that you have enough resources to handle requests, but minimize over-provisioning. You also want the system to handle traffic spikes efficiently. Which compute platform should you use?
- A. Compute Engine with managed instance groups
- B. Compute Engine with unmanaged instance groups
- C. Cloud Run
- D. Google Kubernetes Engine using cluster autoscaling
Answer: C
NEW QUESTION # 93
The new version of your containerized application has been tested and is ready to deploy to production on Google Kubernetes Engine. You were not able to fully load-test the new version in pre-production environments, and you need to make sure that it does not have performance problems once deployed. Your deployment must be automated. What should you do?
- A. Deploy the application via a continuous delivery pipeline using blue/green deployments. Use Cloud Monitoring to look for performance issues, and launch fully when the metrics support it.
- B. Deploy the application using kubectl and set the spec.updateStrategv.type to RollingUpdate. Use Cloud Monitoring to look for performance issues, and run the kubectl rollback command if there are any issues.
- C. Use Cloud Load Balancing to slowly ramp up traffic between versions. Use Cloud Monitoring to look for performance issues.
- D. Deploy the application via a continuous delivery pipeline using canary deployments. Use Cloud Monitoring to look for performance issues. and ramp up traffic as the metrics support it.
Answer: A
Explanation:
Explanation
https://cloud.google.com/architecture/implementing-deployment-and-testing-strategies-on-gke#perform_a_blueg
NEW QUESTION # 94
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 - 1 GB in size. You want to minimize their infrastructure operations overhead for this feature.
What should you do?
- A. 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.
- 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. Change the application to accept images directly and store them in the database that stores other user information.
Answer: B
Explanation:
Explanation/Reference: https://cloud.google.com/blog/products/storage-data-transfer/uploading-images-directly-to-cloud- storage-by-using-signed-url
NEW QUESTION # 95
Laura is performing a visual inspection of an embedded battery. What kinds of cosmetic issues should she look for? (Choose two.)
- A. Apple product serial number
- B. IATA complice label
- C. QR Code
- D. Scratches
- E. UPC Code
- F. Apple logo
- G. Dents or dot imprints
Answer: D,G
Explanation:
Explanation/Reference: https://docplayer.net/50514766-Embedded-battery-safety.html
NEW QUESTION # 96
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. Configure the appropriate service accounts, and use Workload Identity to run the pods.
- B. Store the application credentials using Cloud Key Management Service, and retrieve them whenever a database connection is made.
- C. Configure the appropriate routing rules, and use a VPC-native cluster to directly connect to the database.
- D. Store the application credentials as Kubernetes Secrets, and expose them as environment variables.
Answer: A
Explanation:
Explanation
https://cloud.google.com/kubernetes-engine/docs/concepts/workload-identity
NEW QUESTION # 97
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
Answer: B
Explanation:
Explanation/Reference: https://medium.com/google-cloud/stackdriver-monitoring-automation-part-3-uptime-checks-
476b8507f59c
NEW QUESTION # 98
Your company is planning to migrate their on-premises Hadoop environment to the cloud. Increasing storage cost and maintenance of data stored in HDFS is a major concern for your company. You also want to make minimal changes to existing data analytics jobs and existing architecture. How should you proceed with the migration?
- A. Create a Cloud Dataproc cluster on Google Cloud Platform, and then migrate your Hadoop environment to the new Cloud Dataproc cluster. Move your HDFS data into larger HDD disks to save on storage costs.
- B. Create a Cloud Dataproc cluster on Google Cloud Platform, and then migrate your Hadoop code objects to the new cluster. Move your data to Cloud Storage and leverage the Cloud Dataproc connector to run jobs on that data.
- C. Migrate your data stored in Hadoop to BigQuery. Change your jobs to source their information from BigQuery instead of the on-premises Hadoop environment.
- D. Create Compute Engine instances with HDD instead of SSD to save costs. Then perform a full migration of your existing environment into the new one in Compute Engine instances.
Answer: B
NEW QUESTION # 99
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. 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.
- 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. Upload your application to an App Engine environment.
Answer: C
Explanation:
Explanation/Reference: https://cloud.google.com/storage/docs/hosting-static-website
NEW QUESTION # 100
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 - 1 GB in size. You want to minimize their infrastructure operations overhead for this feature. What should you do?
- A. 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.
- 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. Change the application to accept images directly and store them in the database that stores other user information.
Answer: B
Explanation:
Explanation/Reference: https://cloud.google.com/blog/products/storage-data-transfer/uploading-images-directly-to-cloud- storage-by-using-signed-url
NEW QUESTION # 101
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?
- A. Set the Deployment strategy to Recreate with maxSurge set to 1, maxUnavailable set to 0.
- B. Set the Deployment strategy to RollingUpdate with maxSurge set to 1, maxUnavailable set to 0.
- C. Set the Deployment strategy to Recreate with maxSurge set to 0, maxUnavailable set to 1.
- D. Set the Deployment strategy to RollingUpdate with maxSurge set to 0, maxUnavailable set to 1.
Answer: A
NEW QUESTION # 102
HipLocal's APIs are showing occasional failures, but they cannot find a pattern. They want to collect some metrics to help them troubleshoot.
What should they do?
- A. Take frequent snapshots of all of the VMs.
- B. Install the Stackdriver Logging agent on the VMs.
- C. Install the Stackdriver Monitoring agent on the VMs.
- D. Use Stackdriver Trace to look for performance bottlenecks.
Answer: C
NEW QUESTION # 103
You are building a new API. You want to minimize the cost of storing and reduce the latency of serving images.
Which architecture should you use?
- A. Compute Engine backed by Persistent Disk
- B. Transfer Appliance backed by Cloud Filestore
- C. App Engine backed by Cloud Storage
- D. Cloud Content Delivery Network (CDN) backed by Cloud Storage
Answer: A
NEW QUESTION # 104
You are load testing your server application. During the first 30 seconds, you observe that a previously inactive Cloud Storage bucket is now servicing 2000 write requests per second and 7500 read requests per second.
Your application is now receiving intermittent 5xx and 429 HTTP responses from the Cloud Storage JSON API as the demand escalates. You want to decrease the failed responses from the Cloud Storage API.
What should you do?
- A. Distribute the uploads across a large number of individual storage buckets.
- B. Limit the upload rate from your application clients so that the dormant bucket's peak request rate is reached more gradually.
- C. Pass the HTTP response codes back to clients that are invoking the uploads from your application.
- D. Use the XML API instead of the JSON API for interfacing with Cloud Storage.
Answer: A
Explanation:
Reference:
https://cloud.google.com/storage/docs/request-rate
NEW QUESTION # 105
......
Download Exam Professional-Cloud-Developer Practice Test Questions with 100% Verified Answers: https://www.dumpstests.com/Professional-Cloud-Developer-latest-test-dumps.html
Share Latest Professional-Cloud-DeveloperTest Practice Test Questions, Exam Dumps: https://drive.google.com/open?id=1yKOCdf77e-8BZb3pv7rJjqskwHTV7l4h