[Apr-2026] Practice Google Professional-Cloud-Developer exam. Online Exam Practice Tests with detailed explanations! Pass Professional-Cloud-Developer with confidence! [Q112-Q129]

Share

Practice Cloud Developer Professional-Cloud-Developer exam. Online Exam Practice Tests with detailed explanations! Pass Professional-Cloud-Developer with confidence!

Professional-Cloud-Developer - Google Certified Professional - Cloud Developer Practice Tests 2026 | RealExamFree

NEW QUESTION # 112
You are writing a Compute Engine hosted application in project A that needs to securely authenticate to a Cloud Pub/Sub topic in project B.
What should you do?

  • A. Configure the instances with a service account owned by project A. Add the service account as a publisher on the topic.
  • B. Configure the instances with a service account owned by project B. Add the service account as a Cloud Pub/Sub publisher to project A.
  • C. Configure Application Default Credentials to use the private key of a service account owned by project A. Add the service account as a publisher on the topic
  • D. Configure Application Default Credentials to use the private key of a service account owned by project B. Add the service account as a Cloud Pub/Sub publisher to project A.

Answer: A

Explanation:
https://cloud.google.com/pubsub/docs/access-control
"For example, suppose a service account in Cloud Project A wants to publish messages to a topic in Cloud Project B.
You could accomplish this by granting the service account Edit permission in Cloud Project B"


NEW QUESTION # 113
Case Study 1 - HipLocal
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.
Which service should HipLocal use for their public APIs?

  • A. Cloud Endpoints
  • B. Cloud Armor
  • C. Cloud Functions
  • D. Shielded Virtual Machines

Answer: A

Explanation:
Google Cloud Endpoints is a distributed API management system that provides an API console, hosting, logging, monitoring, and other features to help you create, deploy, and manage APIs on a large scale.


NEW QUESTION # 114
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 Jenkins deployed via the Google Cloud Platform Marketplace, configured to watch for source code commits.
  • B. Use a Compute Engine virtual machine instance with an open source continuous integration tool, configured to watch for source code commits.
  • C. Use Cloud Build with a trigger configured for each source code commit.
  • D. 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.

Answer: C

Explanation:
https://cloud.google.com/build/docs/automating-builds/create-manage-triggers#:~:text=A%20Cloud%20Build%2


NEW QUESTION # 115
Which of the following iPhones support using Memoji?

  • A. iPhone 6s
  • B. iPhone 8
  • C. iPhone 7
  • D. iPhone X

Answer: D

Explanation:
Explanation/Reference: https://www.quora.com/Does-Memoji-work-on-all-devices-updated-to-iOS-12


NEW QUESTION # 116
What requirements are needed for iCloud to automatically back up an iOS device each day? (Choose two.)

  • A. The device has two-factor authentication turned on.
  • B. The device's screen is locked.
  • C. The device is updated to latest iOS.
  • D. The device is connected to a power source.
  • E. The device is powered off.

Answer: B,D

Explanation:
Explanation/Reference:
Reference: https://support.apple.com/en-us/HT203977


NEW QUESTION # 117
You have a mixture of packaged and internally developed applications hosted on a Compute Engine instance that is running Linux. These applications write log records as text in local files.
You want the logs to be written to Cloud Logging. What should you do?

  • A. Install a Google version of fluentd on the Compute Engine instance.
  • B. Using cron, schedule a job to copy the log files to Cloud Storage once a day.
  • C. Pipe the content of the files to the Linux Syslog daemon.
  • D. Install a Google version of collectd on the Compute Engine instance.

Answer: A

Explanation:
https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent
The Ops Agent is the primary agent for collecting telemetry from your Compute Engine instances.
Combining logging and metrics into a single agent, the Ops Agent uses Fluent Bit for logs, which supports high-throughput logging, and the OpenTelemetry Collector for metrics.


NEW QUESTION # 118
You configured your Compute Engine instance group to scale automatically according to overall CPU usage.
However, your application's response latency increases sharply before the cluster has finished adding up instances. You want to provide a more consistent latency experience for your end users by changing the configuration of the instance group autoscaler.
Which two configuration changes should you make? (Choose two.)

  • A. Add the label "AUTOSCALE" to the instance group template.
  • B. Decrease the target CPU usage for the instance group autoscaler.
  • C. Increase the target CPU usage for the instance group autoscaler.
  • D. Remove the health-check for individual VMs in the instance group.
  • E. Decrease the cool-down period for instances added to the group.

Answer: A,C

Explanation:
Explanation


NEW QUESTION # 119
You have containerized a legacy application that stores its configuration on an NFS share. You need to deploy this application to Google Kubernetes Engine (GKE) and do not want the application serving traffic until after the configuration has been retrieved. What should you do?

  • A. Add a startup script to the GKE instance group to mount the NFS share at node startup. Copy the configuration files into the container, and start the service using an ENTRYPOINT script.
  • B. Use the COPY statement in the Dockerfile to load the configuration into the container image. Verify that the configuration is available, and start the service using an ENTRYPOINT script.
  • C. Create a PersistentVolumeClaim on the GKE cluster. Access the configuration files from the volume, and start the service using an ENTRYPOINT script.
  • D. Use the gsutil utility to copy files from within the Docker container at startup, and start the service using an ENTRYPOINT script.

Answer: A

Explanation:
Reference: https://cloud.google.com/compute/docs/instances/startup-scripts/linux


NEW QUESTION # 120
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 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.
  • C. 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.
  • D. 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.

Answer: B

Explanation:
https://cloud.google.com/pubsub/docs/emulator


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

  • A. Request additional Compute Engine quota in the GCP Console.
  • B. Request additional GKE quota is the GCP Console.
  • C. Decouple services in the cluster, and rewrite new clusters to function with fewer cores.
  • D. Open a support case to request additional GKE quotA.

Answer: B


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

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

Answer: A


NEW QUESTION # 123
You have containerized a legacy application that stores its configuration on an NFS share. You need to deploy this application to Google Kubernetes Engine (GKE) and do not want the application serving traffic until after the configuration has been retrieved. What should you do?

  • A. Create a PersistentVolumeClaim on the GKE cluster. Access the configuration files from the volume, and start the service using an ENTRYPOINT script.
  • B. Add a startup script to the GKE instance group to mount the NFS share at node startup. Copy the configuration files into the container, and start the service using an ENTRYPOINT script.
  • C. Use the COPY statement in the Dockerfile to load the configuration into the container image.
    Verify that the configuration is available, and start the service using an ENTRYPOINT script.
  • D. Use the gsutil utility to copy files from within the Docker container at startup, and start the service using an ENTRYPOINT script.

Answer: A

Explanation:
https://cloud.google.com/kubernetes-engine/docs/concepts/persistent-volumes


NEW QUESTION # 124
Your App Engine standard configuration is as follows:
service: production
instance_class: B1
You want to limit the application to 5 instances. Which code snippet should you include in your configuration?

  • A. basic_scaling:max_instances: 5idle_timeout: 10m
  • B. basic_scaling:instances: 5min_pending_latency: 30ms
  • C. manual_scaling:instances: 5min_pending_latency: 30ms
  • D. manual_scaling:max_instances: 5idle_timeout: 10m

Answer: B


NEW QUESTION # 125
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. Add a startup probe.
  • C. Add a readiness probe.
  • D. Increase the initial delay for the liveness probe.

Answer: D

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


NEW QUESTION # 126
Your team is developing an ecommerce platform for your company. Users will log in to the website and add items to their shopping cart. Users will be automatically logged out after 30 minutes of inactivity. When users log back in, their shopping cart should be saved. How should you store users' session and shopping cart information while following Google-recommended best practices?

  • A. Store the session information in Memorystore for Redis or Memorystore for Memcached, and store the shopping cart information in Firestore.
  • B. Store the shopping cart information in a file on Cloud Storage where the filename is the SESSION ID.
  • C. Store the session information in Pub/Sub, and store the shopping cart information in Cloud SQL.
  • D. Store the session and shopping cart information in a MySQL database running on multiple Compute Engine instances.

Answer: A


NEW QUESTION # 127
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 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.
  • B. Create a Cron job that runs the following command every 24 hours: gcloud builds submit.
  • C. Create a build trigger that runs the build file in response to a repository code being pushed to the development branch.
  • D. Create a webhook build trigger that runs the build file in response to HTTP POST calls to the webhook URL.

Answer: C

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 # 128
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 initial delay for the liveness probe.
  • B. Increase the CPU limit for the container.
  • C. Add a startup probe.
  • D. Add a readiness probe.

Answer: C

Explanation:
https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup- probes/#define-startup-probes The kubelet uses startup probes to know when a container application has started. If such a probe is configured, it disables liveness and readiness checks until it succeeds, making sure those probes don't interfere with the application startup. This can be used to adopt liveness checks on slow starting containers, avoiding them getting killed by the kubelet before they are up and running.


NEW QUESTION # 129
......

Get instant access to Professional-Cloud-Developer practice exam questions: https://drive.google.com/open?id=1LNjPLFW4jBxhYTtz10GRD42ImpqlheEl

The best Professional-Cloud-Developer exam study material and preparation tool is here: https://www.realexamfree.com/Professional-Cloud-Developer-real-exam-dumps.html