Win IT Exam with Last Dumps 2025


Google Professional-Cloud-Developer Exam

Page 38/38
Viewing Questions 371 375 out of 375 Questions
100.00%

Question 371
You are tasked with using C++ to build and deploy a microservice for an application hosted on Google Cloud. The code needs to be containerized and use several custom software libraries that your team has built. You want to minimize maintenance of the application’s underlying infrastructure. How should you deploy the microservice?
A. Use Cloud Run functions to deploy the microservice.
B. Use Cloud Build to create the container, and deploy it on Cloud Run.
C. Use Cloud Shell to containerize your microservice, and deploy it on GKE Standard.
D. Use Cloud Shell to containerize your microservice, and deploy it on a Container-Optimized OS Compute Engine instance.

Question 372
You are a developer that works for a local concert venue. Customers use your company’s website to purchase tickets for events. You need to provide customers with immediate confirmation when a selected seat has been reserved. How should you design the ticket ordering process?
A. Upload the seat reservation to a Cloud Storage bucket, which triggers an event to the backend service that processes the seat reservation.
B. Submit the seat reservation in an HTTP POST request to an Application Load Balancer. Configure the Application Load Balancer to distribute the request to the backend service that processes the seat reservation.
C. Add the seat reservation to a Cloud Tasks queue, which triggers Workflows to process the seat reservation.
D. Publish the seat reservation to a Pub/Sub topic. Configure the backend service to subscribe to the topic to process the seat reservation.

Question 373
You recently deployed an API to process hotel room requests. You need to enforce a quota on incoming API requests that allows no more than 1000 API search requests by each customer for every successful booking by that customer. You want the quota to reset every 24 hours. You want to prioritize the speed of the API over allowing exactly 1000 searches for every booking. What should you do?
A. Configure an Apigee Quota policy with the Synchronous setting set to false. Reset the quota on every booking or when 24 hours have passed.
B. Store a query counter in a Firestore document that uses the customer ID as the key. Reset the counter to zero when a booking occurs or 24 hours have passed. Deny a search request if the user’s counter is over 1000.
C. Store a query counter in memory that counts the number of search requests by each customer. Reset the counter to zero when a booking occurs or 24 hours have passed. Deny a search request if the user’s counter is over 1000.
D. In BigQuery, store a table row for each search and booking request along with the customer ID and current time. Query the table for the number of prior search and booking requests made in the last 24 hours. Deny the search request if the number of prior search requests is 1000 times more than the number of prior booking requests.

Question 374
You are building an application that will store frequently accessed data in a Memorystore for Redis Cluster instance. You would like to make the application resilient to network issues. You need to ensure that the application handles client disconnections from a Redis instance gracefully to minimize disruption and ensure stability of the application. What should you do?
A. Immediately terminate the application instance upon detecting a Redis disconnection to force a restart, and wait for clients to reconnect to the cache as soon as the application becomes available.
B. Configure the Redis client to reconnect after a fixed delay of 60 seconds.
C. Use Memorystore’s automatic failover mechanisms to make the Redis cache available in a secondary zone.
D. Implement exponential backoff with a jitter when reconnecting after a disconnection. Configure client-side caching to serve data during brief outages.

Question 375
You have an application running in Cloud Run that validates bucket names based on your organization’s compliance rule. You want the Cloud Run application to receive a notification as quickly as possible each time a new Cloud Storage bucket is created, and send an alert to the project owner if the bucket name is not in compliance. You need to configure the notification while following Google-recommended practices. What should you do?
A. Create a log-based metric with an alerting policy that sends a notification using the webhook to the Cloud Run endpoint.
B. Configure an Eventarc trigger using the storage.buckets.create filter that sends a notification to the Cloud Run endpoint.
C. Configure a log-based alerting policy using the storage.buckets.create filter in the audit logs that sends a notification to the Cloud Run webhook.
D. Configure a log-based alerting policy using the storage.buckets.create filter in the audit logs that sends a notification to a Pub/Sub topic that is pushed to the Cloud Run service.




Premium Version