Google's Professional Cloud Developer You are a developer at a social media company. The company runs their social media website on-premises and uses MySQL as a backend to store user profiles and user posts. Your company plans to migrate to Google Cloud, and your learn will migrate user profile information to Firestore. You are tasked with designing the Firestore collections. What should you do?
#271
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your team recently deployed an application on Google Kubernetes Engine (GKE). You are monitoring your application and want to be alerted when the average memory consumption of your containers is under 20% or above 80%. How should you configure the alerts?
#272
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You manage a microservice-based ecommerce platform on Google Cloud that sends confirmation emails to a third-party email service provider using a Cloud Function. Your company just launched a marketing campaign, and some customers are reporting that they have not received order confirmation emails. You discover that the services triggering the Cloud Function are receiving HTTP 500 errors. You need to change the way emails are handled to minimize email loss. What should you do?
#273
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You have a web application that publishes messages to Pub/Sub. You plan to build new versions of the application locally and need to quickly test Pub/Sub integration for each new build. How should you configure local testing?
#274
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You recently developed an application that monitors a large number of stock prices. You need to configure Pub/Sub to receive a high volume messages and update the current stock price in a single large in-memory database. A downstream service needs the most up-to-date prices in the in-memory database to perform stock trading transactions. Each message contains three pieces or information:• Stock symbol• Stock price• Timestamp for the updateHow should you set up your Pub/Sub subscription?
#275
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your team has created an application that is hosted on a Google Kubemetes Engine (GKE) cluster. You need to connect the application to a legacy REST service that is deployed in two GKE clusters in two different regions. You want to connect your application to the legacy service in a way that is resilient and requires the fewest number of steps. You also want to be able to run probe-based health checks on the legacy service on a separate port. How should you set up the connection? (Choose two.) E. Configure the legacy service's firewall to allow health checks originating from the Traffic Director control plane.
#276
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer 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 function is consuming the most CPU and memory resources. What should you do?
#277
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer You recently deployed an application to GKE where Pods are writing files to a Compute Engine persistent disk. You have created a PersistentVolumeClaim (PVC) and a PersistentVolume (PV) object on Kubernetes for the disk, and you reference the PVC in the deployment manifest file.You recently expanded the size of the persistent disk because the application has used up almost all of the disk space. You have logged on to one of the Pods, and you notice that the disk expansion is not visible in the container file system. What should you do?
#278
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer You work for an ecommerce company. You are designing a new Orders API that will be exposed through Apigee. In your Apigee organization, you created two new environments named orders-test and orders-prod. You plan to use unique URLs named test.lnk-42.com/api/v1/orders and Ink-42.com/api/v1/orders for each environment. You need to ensure that each environment only uses the assigned URL. What should you do?
#279
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are developing an application that uses microservices architecture that includes Cloud Run, Bigtable, and Pub/Sub. You want to conduct the testing and debugging process as quickly as possible to create a minimally viable product with minimal cost. What should you do?
#280
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are a lead developer at an organization that recently integrated several Google Cloud services. These services are located within Virtual Private Cloud (VPC) environments that are secured with VPC Service Controls and Private Service Connect endpoints. Developers across your organization use different operating systems, development frameworks, and integrated development environments (IDEs). You need to recommend a developer environment that will ensure consistency in the developer process and improve the overall developer experience. You want this solution to:• Enforce consistent security controls.• Have access to Google Cloud resources and applications within the VPC.• Allow the installation of custom tools and utilities on the development environments.What solution should you recommend?
#281
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are preparing to conduct a load test on your Cloud Run service by using JMeter. You need to orchestrate the steps and services to use for an effective load test and analysis. You want to follow Google-recommended practices. What should you do?
#282
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are designing a Node.js-based mobile news feed application that stores data on Google Cloud. You need to select the application's database. You want the database to have zonal resiliency out of the box, low latency responses, ACID compliance, an optional middle tier, semi-structured data storage, and network-partition-tolerant and offline-mode client libraries. What should you do?
#283
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are developing an application component to capture user behavior data and stream the data to BigQuery. You plan to use the BigQuery Storage Write API. You need to ensure that the data that arrives in BigQuery does not have any duplicates. You want to use the simplest operational method to achieve this. What should you do?
#284
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You maintain a popular mobile game deployed on Google Cloud services that include Firebase, Firestore, and Cloud Functions. Recently, the game experienced a surge in usage, and the application encountered HTTP 429 RESOURCE_EXHAUSTED errors when accessing the Firestore API. The application has now stabilized. You want to quickly fix this issue because your company has a marketing campaign next week and you expect another surge in usage. What should you do?
#285
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are developing a mobile application that allows users to create and manage to-do lists. Your application has the following requirements:• Store and synchronize data between different mobile devices.• Support offline access.• Provide real-time updates on each user's device.You need to implement a database solution while minimizing operational effort. Which approach should you use?
#286
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer You manage an application deployed on GKE clusters across multiple environments. You are using Cloud Build to run user acceptance testing (UAT) tests. You have integrated Cloud Build with Artifact Analysis, and enabled the Binary Authorization API in all Google Cloud projects hosting your environments. You want only container images that have passed certain automated UAT tests to be deployed to the production environment. You have already created an attestor. What should you do next?
#287
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer You work for a company that operates an ecommerce website. You are developing a new integration that will manage all order fulfillment steps after orders are placed. You have created multiple Cloud Functions to process each order. You need to orchestrate the execution of the functions, using the output of each function to determine the flow. You want to minimize the latency of this process. What should you do?
#288
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are currently pushing container images to Artifact Registry and deploying a containerized microservices application to GKE. After deploying the application, you notice that the services do not behave as expected. You use the kubectl get pods command to inspect the state of the application Pods, and discover that one of the Pods has a state of CrashLoopBackoff. How should you troubleshoot the Pod?
#289
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer You use Cloud Build to build and test container images prior to deploying them to Cloud Run. Your images are stored in Artifact Registry. You need to ensure that only container images that have passed testing are deployed. You want to minimize operational overhead. What should you do?
#290
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are developing a scalable web application for internal users. Your organization uses Google Workspace. You need to set up authentication to the application for the users, and then deploy the application on Google Cloud. You plan to use cloud-native features, and you want to minimize infrastructure management effort. What should you do? (Choose two.) E. Configure Identity Aware Proxy, and grant the roles/iap.tunnelResourceAccessor IAM role to the users that need to access the application.
#291
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You work for an ecommerce company, and you are responsible for deploying and managing multiple APIs. The operations team wants to review the traffic patterns in the orders-prod and users-prod environments. These are the only environments in the store-prod environment group. You want to follow Google-recommended practices. What should you do?
#292
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are migrating a containerized application to Cloud Run. You plan to use Cloud Build to build your container image and push it to Artifact Registry, and you plan to use Cloud Deploy to deploy the image to production. You need to ensure that only secure images are deployed to production. What should you do?
#293
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your team uses Cloud Storage for a video and image application that was recently migrated to Google Cloud. Following a viral surge, users are reporting application instability, coinciding with a 10x increase in HTTP 429 error codes from Cloud Storage APIs. You need to resolve the errors and establish a long-term solution. You want to ensure that the application remains stable if the load increases again in the future. What should you do?
#294
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are developing a container build pipeline for an application hosted on GKE. You have the following requirements:• Only images that are created using your build pipeline should be deployed on your GKE cluster.• All code and build artifacts should remain within your environment and protected from data exfiltration.How should you build the pipeline?
#295
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are a developer at a company that operates an ecommerce website. The website stores the customer order data in a Cloud SQL for PostgreSQL database. Data scientists on the marketing team access this data to run their reports. Every time they run these reports, the website's performance is negatively affected. You want to provide access to up-to-date customer order datasets without affecting your website. What should you do?
#296
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are developing a web application by using Cloud Run and Cloud Storage. You are notified of a production issue that you need to troubleshoot immediately. You need to implement a workaround that requires you to execute a script on a Git repository. Your corporate laptop is unavailable but you have your personal computer. You can use your corporate credentials to access the required Git repository and Google Cloud resources. You want to fix the issue as quickly and efficiently as possible while minimizing additional cost. What should you do?
#297
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are using App Engine and Cloud SQL for PostgreSQL to develop an application. You want to test your application code locally before deploying new application versions to the development environment that is shared with other developers. You need to set up your App Engine local development environment to test your application while keeping all traffic to Cloud SQL instances encrypted and authenticated to Cloud IAM and PostgreSQL. What should you do before starting the local development server?
#298
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are developing a public web application on Cloud Run. You expose the Cloud Run service directly with its public IP address. You are now running a load test to ensure that your application is resilient against high traffic loads. You notice that your application performs as expected when you initiate light traffic. However, when you generate high loads, your web server runs slowly and returns error messages. How should you troubleshoot this issue?
#299
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are developing a new image processing application that needs to handle various tasks, such as resizing, cropping, and watermarking images. You also need to monitor the workflow and ensure that it scales efficiently when there are large volumes of images. You want to automate the image processing tasks and workflow monitoring with the least effort. What should you do?