Google's Professional Cloud Developer Your application stores customers’ content in a Cloud Storage bucket, with each object being encrypted with the customer's encryption key. The key for each object in Cloud Storage is entered into your application by the customer. You discover that your application is receiving an HTTP 4xx error when reading the object from Cloud Storage. What is a possible cause of this error?
#241
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You have two Google Cloud projects, named Project A and Project B. You need to create a Cloud Function in Project A that saves the output in a Cloud Storage bucket in Project B. You want to follow the principle of least privilege. What should you do?
#242
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer A governmental regulation was recently passed that affects your application. For compliance purposes, you are now required to send a duplicate of specific application logs from your application’s project to a project that is restricted to the security team. What should you do?
#243
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You plan to deploy a new Go application to Cloud Run. The source code is stored in Cloud Source Repositories. You need to configure a fully managed, automated, continuous deployment pipeline that runs when a source code commit is made. You want to use the simplest deployment solution. What should you do?
#244
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your team has created an application that is hosted on a Google Kubernetes 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 target service in a way that is resilient. You also want to be able to run 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.
#245
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You have an application running in a production Google Kubernetes Engine (GKE) cluster. You use Cloud Deploy to automatically deploy your application to your production GKE cluster. As part of your development process, you are planning to make frequent changes to the application’s source code and need to select the tools to test the changes before pushing them to your remote source code repository. Your toolset must meet the following requirements:• Test frequent local changes automatically.• Local deployment emulates production deployment.Which tools should you use to test building and running a container on your laptop using minimal resources?
#246
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are deploying a Python application to Cloud Run using Cloud Source Repositories and Cloud Build. The Cloud Build pipeline is shown below:You want to optimize deployment times and avoid unnecessary steps. What should you do?
#247
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are developing an event-driven application. You have created a topic to receive messages sent to Pub/Sub. You want those messages to be processed in real time. You need the application to be independent from any other system and only incur costs when new messages arrive. How should you configure the architecture?
#248
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer You have an application running on Google Kubernetes Engine (GKE). The application is currently using a logging library and is outputting to standard output. You need to export the logs to Cloud Logging, and you need the logs to include metadata about each request. You want to use the simplest method to accomplish this. What should you do?
#249
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are working on a new application that is deployed on Cloud Run and uses Cloud Functions. Each time new features are added, new Cloud Functions and Cloud Run services are deployed. You use ENV variables to keep track of the services and enable interservice communication, but the maintenance of the ENV variables has become difficult. You want to implement dynamic discovery in a scalable way. What should you do?
#250
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You work for a financial services company that has a container-first approach. Your team develops microservices applications. A Cloud Build pipeline creates the container image, runs regression tests, and publishes the image to Artifact Registry. You need to ensure that only containers that have passed the regression tests are deployed to Google Kubernetes Engine (GKE) clusters. You have already enabled Binary Authorization on the GKE clusters. What should you do next?
#251
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are reviewing and updating your Cloud Build steps to adhere to best practices. Currently, your build steps include:1. Pull the source code from a source repository.2. Build a container image3. Upload the built image to Artifact Registry.You need to add a step to perform a vulnerability scan of the built container image, and you want the results of the scan to be available to your deployment pipeline running in Google Cloud. You want to minimize changes that could disrupt other teams’ processes. What should you do?
#252
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are developing an online gaming platform as a microservices application on Google Kubernetes Engine (GKE). Users on social media are complaining about long loading times for certain URL requests to the application. You need to investigate performance bottlenecks in the application and identify which HTTP requests have a significantly high latency span in user requests. What should you do?
#253
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer You need to load-test a set of REST API endpoints that are deployed to Cloud Run. The API responds to HTTP POST requests. Your load tests must meet the following requirements:• Load is initiated from multiple parallel threads.• User traffic to the API originates from multiple source IP addresses.• Load can be scaled up using additional test instances.You want to follow Google-recommended best practices. How should you configure the load testing?
#254
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your team is creating a serverless web application on Cloud Run. The application needs to access images stored in a private Cloud Storage bucket. You want to give the application Identity and Access Management (IAM) permission to access the images in the bucket, while also securing the services using Google-recommended best practices. What should you do?
#255
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are using Cloud Run to host a global ecommerce web application. Your company’s design team is creating a new color scheme for the web app. You have been tasked with determining whether the new color scheme will increase sales. You want to conduct testing on live production traffic. How should you design the study?
#256
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are a developer at a large corporation. You manage three Google Kubernetes Engine clusters on Google Cloud. Your team’s developers need to switch from one cluster to another regularly without losing access to their preferred development tools. You want to configure access to these multiple clusters while following Google-recommended best practices. What should you do?
#257
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are a lead developer working on a new retail system that runs on Cloud Run and Firestore. A web UI requirement is for the user to be able to browse through all products. A few months after go-live, you notice that Cloud Run instances are terminated with HTTP 500: Container instances are exceeding memory limits errors during busy times. This error coincides with spikes in the number of Firestore queries.You need to prevent Cloud Run from crashing and decrease the number of Firestore queries. You want to use a solution that optimizes system performance. What should you do?
#258
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are a developer at a large organization. Your team uses Git for source code management (SCM). You want to ensure that your team follows Google-recommended best practices to manage code to drive higher rates of software delivery. Which SCM process should your team use?
#259
Answer: D✅ 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 want to quickly test Pub/Sub integration for each new build. How should you configure local testing?
#260
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your ecommerce application receives external requests and forwards them to third-party API services for credit card processing, shipping, and inventory management as shown in the diagram.Your customers are reporting that your application is running slowly at unpredictable times. The application doesn’t report any metrics. You need to determine the cause of the inconsistent performance. What should you do?
#261
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are developing a new application. You want the application to be triggered only when a given file is updated in your Cloud Storage bucket. Your trigger might change, so your process must support different types of triggers. You want the configuration to be simple so that multiple team members can update the triggers in the future. What should you do?
#262
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are defining your system tests for an application running in Cloud Run in a Google Cloud project. You need to create a testing environment that is isolated from the production environment. You want to fully automate the creation of the testing environment with the least amount of effort and execute automated tests. What should you do?
#263
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are a cluster administrator for Google Kubernetes Engine (GKE). Your organization’s clusters are enrolled in a release channel. You need to be informed of relevant events that affect your GKE clusters, such as available upgrades and security bulletins. What should you do?
#264
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer 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 do not want to maintain the underlying infrastructure of the application. How should you deploy the microservice?
#265
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You need to containerize a web application that will be hosted on Google Cloud behind a global load balancer with SSL certificates. You don’t have the time to develop authentication at the application level, and you want to offload SSL encryption and management from your application. You want to configure the architecture using managed services where possible. What should you do?
#266
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer You manage a system that runs on stateless Compute Engine VMs and Cloud Run instances. Cloud Run is connected to a VPC, and the ingress setting is set to Internal. You want to schedule tasks on Cloud Run. You create a service account and grant it the roles/run.invoker Identity and Access Management (IAM) role. When you create a schedule and test it, a 403 Permission Denied error is returned in Cloud Logging. What should you do?
#267
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer You work on an application that relies on Cloud Spanner as its main datastore. New application features have occasionally caused performance regressions. You want to prevent performance issues by running an automated performance test with Cloud Build for each commit made. If multiple commits are made at the same time, the tests might run concurrently. What should you do?
#268
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your company's security team uses Identity and Access Management (IAM) to track which users have access to which resources. You need to create a version control system that can integrate with your security team's processes. You want your solution to support fast release cycles and frequent merges to your main branch to minimize merge conflicts. What should you do?
#269
Answer: C✅ 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 messages and update the current stock price in an 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?