Real Google Professional-Cloud-Developer Exam Questions Study Guide
Updated and Accurate Professional-Cloud-Developer Questions for passing the exam Quickly
To become a Google Certified Professional - Cloud Developer, candidates must pass the Professional-Cloud-Developer exam, which is a comprehensive test of their knowledge of GCP services and the best practices for developing applications on the platform. Professional-Cloud-Developer exam is designed to assess a candidate's ability to build and manage scalable, reliable, and secure applications that meet business objectives. Professional-Cloud-Developer exam is also designed to test a candidate's ability to use GCP tools and services to optimize application performance and manage application resources.
Google Professional-Cloud-Developer certification is highly valued in the industry and is recognized globally as a testament to the candidate's expertise in developing applications on the Google Cloud Platform. It provides a competitive edge to the candidate in the job market and opens up new career opportunities in cloud-native application development. Besides, the certification also helps the candidate gain credibility among peers and clients, demonstrating their commitment to staying up-to-date with the latest industry trends and best practices in cloud-native application development.
NEW QUESTION # 13
You work for an organization that manages an online ecommerce website. Your company plans to expand across the world; however, the estore currently serves one specific region. You need to select a SQL database and configure a schema that will scale as your organization grows. You want to create a table that stores all customer transactions and ensure that the customer (CustomerId) and the transaction (TransactionId) are unique. What should you do?
- A. Create a Cloud Spanner table that has TransactionId and CustomerId configured as primary keys. Use an incremental number for the TransactionId.
- B. Create a Cloud SQL table that has TransactionId and CustomerId configured as primary keys. Use an incremental number for the TransactionId.
- C. Create a Cloud SQL table that has TransactionId and CustomerId configured as primary keys. Use a random string (UUID) for the Transactionid.
- D. Create a Cloud Spanner table that has TransactionId and CustomerId configured as primary keys. Use a random string (UUID) for the TransactionId.
Answer: D
NEW QUESTION # 14
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:
Reference: https://cloud.google.com/appengine/docs/standard/python/splitting-traffic
NEW QUESTION # 15
Your application is controlled by a managed instance group. You want to share a large read-only data set between all the instances in the managed instance group. You want to ensure that each instance can start quickly and can access the data set via its filesystem with very low latency. You also want to minimize the total cost of the solution.
What should you do?
- A. Move the data to a Cloud Storage bucket, and copy the data to the boot disk of the instance via a startup script.
- B. Move the data to a Compute Engine persistent disk, and attach the disk in read-only mode to multiple Compute Engine virtual machine instances.
- C. Move the data to a Compute Engine persistent disk, take a snapshot, create multiple disks from the snapshot, and attach each disk to its own instance.
- D. Move the data to a Cloud Storage bucket, and mount the bucket on the filesystem using Cloud Storage FUSE.
Answer: B
NEW QUESTION # 16
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. 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: A
Explanation:
Explanation
https://cloud.google.com/kubernetes-engine/docs/concepts/workload-identity
NEW QUESTION # 17
You are designing a chat room application that will host multiple rooms and retain the message history for each room. You have selected Firestore as your database. How should you represent the data in Firestore?
- A. Create a collection for the rooms. For each room, create a collection that contains a document for each message

- B. Create a collection for the rooms. For each room, create a document that contains a collection for documents, each of which contains a message.

- C. Create a collection for the rooms. For each room, create a document that lists the contents of the messages

- D. Create a collection for the rooms, and create a document for each room. Create a separate collection for messages, with one document per message. Each room's document contains a list of references to the messages.

Answer: B
Explanation:
Explanation
https://firebase.google.com/docs/firestore/data-model#hierarchical-data
NEW QUESTION # 18
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. Migrate your data stored in Hadoop to BigQuery. Change your jobs to source their information from BigQuery instead of the on-premises Hadoop environment.
- B. 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.
- C. 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.
- D. 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.
Answer: D
NEW QUESTION # 19
You are developing an application that will allow clients to download a file from your website for a specific period of time. How should you design the application to complete this task while following Google-recommended best practices?
- A. Generate the HTTP cookies with time expiration specified. If the time is valid, copy the file from the Cloud Storage bucket, and make the file available for the client to download.
- B. Create a temporary Cloud Storage bucket with time expiration specified, and give download permissions to the bucket. Copy the file, and send it to the client.
- C. Configure the application to send the file to the client as an email attachment.
- D. Generate and assign a Cloud Storage-signed URL for the file. Make the URL available for the client to download.
Answer: D
NEW QUESTION # 20
In order to meet their business requirements, how should HipLocal store their application state?
- A. Put a memcache layer in front of MySQL.
- B. Move the state storage to Cloud Spanner.
- C. Replace the MySQL instance with Cloud SQL.
- D. Use local SSDs to store state.
Answer: A
NEW QUESTION # 21
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. Commit your source code to a second Cloud Source Repositories repository with a second Cloud Build trigger. Use this repository for new releases only.
- B. Create a build trigger on a Git tag pattern. Use a Git tag convention for new releases.
- C. Create a build trigger on a Git branch name pattern. Use a Git branch naming convention for new releases.
- D. Manually trigger the build for new releases.
Answer: C
Explanation:
Reference: https://docs.docker.com/docker-hub/builds/
NEW QUESTION # 22
For this question refer to the HipLocal case study.
HipLocal wants to reduce the latency of their services for users in global locations. They have created read replicas of their database in locations where their users reside and configured their service to read traffic using those replicas. How should they further reduce latency for all database interactions with the least amount of effort?
- A. Migrate the database to Firestore in Datastore mode and use it to serve all global user traffic.
- B. Migrate the database to Bigtable and use it to serve all global user traffic.
- C. Migrate the services to Google Kubernetes Engine and use a load balancer service to better scale the application.
- D. Migrate the database to Cloud Spanner and use it to serve all global user traffic.
Answer: C
NEW QUESTION # 23
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?
- A. Create a CloudSQL instance on one project. Create Compute engine instances in a different project.
Create a VPN between these two projects to allow internal access to CloudSQL. - B. Create a role in Cloud SQL that allows access to the database from external instances, and assign the Compute Engine instances to that role.
- C. Whitelist a project to access Cloud SQL, and add Compute Engine instances in the whitelisted project.
- D. Enable private IP for the Cloud SQL instance.
Answer: B
Explanation:
Reference: https://cloud.google.com/sql/docs/mysql/connect-external-app
NEW QUESTION # 24
Your teammate has asked you to review the code below, which is adding a credit to an account balance in Cloud Datastore.
Which improvement should you suggest your teammate make?
- A. Get the entity with an ancestor query.
- B. Use a strongly consistent transactional database.
- C. Get and put the entity in a transaction.
- D. Don't return the account entity from the function.
Answer: A
Explanation:
Explanation/Reference:
NEW QUESTION # 25
You are porting an existing Apache/MySQL/PHP application stack from a single machine to Google Kubernetes Engine. You need to determine how to containerize the application. Your approach should follow Google-recommended best practices for availability. What should you do?
- A. Package each component in a separate container. Use a script to orchestrate the launch of the components.
- B. Package the application in a single container. Use a process management tool to manage each component.
- C. Package the application in a single container. Use a bash script as an entrypoint to the container, and then spawn each component as a background job.
- D. Package each component in a separate container. Implement readiness and liveness probes.
Answer: D
Explanation:
Explanation
https://cloud.google.com/blog/products/containers-kubernetes/7-best-practices-for-building-containers
https://cloud.google.com/architecture/best-practices-for-building-containers
"classic Apache/MySQL/PHP stack: you might be tempted to run all the components in a single container.
However, the best practice is to use two or three different containers: one for Apache, one for MySQL, and potentially one for PHP if you are running PHP-FPM."
NEW QUESTION # 26
Your teammate has asked you to review the code below, which is adding a credit to an account balance in Cloud Datastore. Which improvement should you suggest your teammate make?
- A. Get the entity with an ancestor query.
- B. Use a strongly consistent transactional database.
- C. Get and put the entity in a transaction.
- D. Don't return the account entity from the function.
Answer: A
NEW QUESTION # 27
Which database should HipLocal use for storing user activity?
- A. Cloud SQL
- B. Cloud Datastore
- C. BigQuery
- D. Cloud Spanner
Answer: C
NEW QUESTION # 28
The development teams in your company want to manage resources from their local environments. You have been asked to enable developer access to each team's Google Cloud projects. You want to maximize efficiency while following Google-recommended best practices. What should you do?
- A. Add the users to their projects, assign the relevant roles to the users, and then provide the users with each relevant Project Number.
- B. Add the users to their projects, assign the relevant roles to the users, and then provide the users with each relevant Project ID.
- C. Create groups, add the users to their groups, assign the relevant roles to the groups, and then provide the users with each relevant Project ID.
- D. Create groups, add the users to their groups, assign the relevant roles to the groups, and then provide the users with each relevant Project Number.
Answer: C
NEW QUESTION # 29
You are developing an internal application that will allow employees to organize community events within your company. You deployed your application on a single Compute Engine instance. Your company uses Google Workspace (formerly G Suite), and you need to ensure that the company employees can authenticate to the application from anywhere. What should you do?
- A. Add a public IP address to your instance, and restrict access to the instance using firewall rules. Allow your company's proxy as the only source IP address.
- B. Set up a VPN tunnel between your company network and your instance's VPC location on Google Cloud. Configure the required firewall rules and routing information to both the on-premises and Google Cloud networks.
- C. Add a public IP address to your instance, and allow traffic from the internet. Generate a random hash, and create a subdomain that includes this hash and points to your instance. Distribute this DNS address to your company's employees.
- D. Add an HTTP(S) load balancer in front of the instance, and set up Identity-Aware Proxy (IAP).
Configure the IAP settings to allow your company domain to access the website.
Answer: D
Explanation:
Explanation
https://cloud.google.com/blog/topics/developers-practitioners/control-access-your-web-sites-identity-aware-prox
NEW QUESTION # 30
You want to re-architect a monolithic application so that it follows a microservices model. You want to accomplish this efficiently while minimizing the impact of this change to the business.
Which approach should you take?
- A. Deploy the application to Compute Engine and turn on autoscaling.
- B. Refactor the monolithic application with appropriate microservices in a single effort and deploy it.
- C. Replace the application's features with appropriate microservices in phases.
- D. Build a new application with the appropriate microservices separate from the monolith and replace it when it is complete.
Answer: B
Explanation:
Explanation/Reference: https://cloud.google.com/solutions/migrating-a-monolithic-app-to-microservices-gke
NEW QUESTION # 31
Your teammate has asked you to review the code below, which is adding a credit to an account balance in Cloud Datastore. Which improvement should you suggest your teammate make?
- A. Get the entity with an ancestor query.
- B. Use a strongly consistent transactional database.
- C. Get and put the entity in a transaction.
- D. Don't return the account entity from the function.
Answer: A
NEW QUESTION # 32
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?
- A. Build a custom cloud builder image and reference the image in your build steps.
- B. Download the binary from the internet during the build process.
- C. Ask to have the binary added to the Cloud Build environment by filing a feature request against the Cloud Build public Issue Tracker.
- D. Include the binary in your Cloud Source Repositories repository and reference it in your build scripts.
Answer: A
NEW QUESTION # 33
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. Increase the CPU limit for the container.
- B. Increase the initial delay for the liveness probe.
- C. Add a startup probe.
- D. Add a readiness probe.
Answer: B
Explanation:
Explanation
https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-
NEW QUESTION # 34
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. Change the application to accept images directly and store them in the database that stores other user information.
- B. 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.
- C. Change the application to create signed URLs for Cloud Storage. Transfer these signed URLs to the client application to upload images to Cloud Storage.
- D. 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.
Answer: C
Explanation:
Reference:
https://cloud.google.com/blog/products/storage-data-transfer/uploading-images-directly-to-cloud-storage-by-using-signed-url
NEW QUESTION # 35
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 Google Kubernetes Engine for automated deployments.
- B. Use a large Google Compute Engine cluster for deployments.
- C. Use Google App Engine services.
- D. Use Knative to build and deploy serverless applications.
- E. Use serverless Google Cloud Functions.
Answer: D,E
Explanation:
Explanation
NEW QUESTION # 36
You want to view the memory usage of your application deployed on Compute Engine. What should you do?
- A. Install the Stackdriver Client Library.
- B. Use the Google Cloud Platform Console.
- C. Install the Stackdriver Monitoring Agent.
- D. Use the Stackdriver Metrics Explorer.
Answer: D
NEW QUESTION # 37
......
Prepare Important Exam with Professional-Cloud-Developer Exam Dumps: https://testking.guidetorrent.com/Professional-Cloud-Developer-dumps-questions.html