Google's Professional Cloud Developer Your team develops services that run on Google Kubernetes Engine. Your team's code is stored in Cloud Source Repositories. You need to quickly identify bugs in the code before it is deployed to production. You want to invest in automation to improve developer feedback and make the process as efficient as possible.What should you do?
#121
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your team is developing an application in Google Cloud that executes with user identities maintained by Cloud Identity. Each of your application's users will have an associated Pub/Sub topic to which messages are published, and a Pub/Sub subscription where the same user will retrieve published messages. You need to ensure that only authorized users can publish and subscribe to their own specific Pub/Sub topic and subscription. What should you do?
#122
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are evaluating developer tools to help drive Google Kubernetes Engine adoption and integration with your development environment, which includes VS Code and IntelliJ. What should you do?
#123
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are developing an ecommerce web application that uses App Engine standard environment and Memorystore for Redis. When a user logs into the app, the application caches the user's information (e.g., session, name, address, preferences), which is stored for quick retrieval during checkout.While testing your application in a browser, you get a 502 Bad Gateway error. You have determined that the application is not connecting to Memorystore. What is the reason for this error?
#124
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your team develops services that run on Google Cloud. You need to build a data processing service and will use Cloud Functions. The data to be processed by the function is sensitive. You need to ensure that invocations can only happen from authorized services and follow Google-recommended best practices for securing functions. What should you do?
#125
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are deploying your applications on Compute Engine. One of your Compute Engine instances failed to launch. What should you do? (Choose two.) E. Check whether network traffic to or from your instance is being dropped.
#126
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your web application is deployed to the corporate intranet. You need to migrate the web application to Google Cloud. The web application must be available only to company employees and accessible to employees as they travel. You need to ensure the security and accessibility of the web application while minimizing application changes. What should you do?
#127
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You have an application that uses an HTTP Cloud Function to process user activity from both desktop browser and mobile application clients. This function will serve as the endpoint for all metric submissions using HTTP POST.Due to legacy restrictions, the function must be mapped to a domain that is separate from the domain requested by users on web or mobile sessions. The domain for the Cloud Function is https://fn.example.com. Desktop and mobile clients use the domain https://www.example.com. You need to add a header to the function'sHTTP response so that only those browser and mobile sessions can submit metrics to the Cloud Function. Which response header should you add?
#128
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer You have an HTTP Cloud Function that is called via POST. Each submission's request body has a flat, unnested JSON structure containing numeric and text data. After the Cloud Function completes, the collected data should be immediately available for ongoing and complex analytics by many users in parallel. How should you persist the submissions?
#129
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your security team is auditing all deployed applications running in Google Kubernetes Engine. After completing the audit, your team discovers that some of the applications send traffic within the cluster in clear text. You need to ensure that all application traffic is encrypted as quickly as possible while minimizing changes to your applications and maintaining support from Google. What should you do?
#130
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You migrated some of your applications to Google Cloud. You are using a legacy monitoring platform deployed on-premises for both on-premises and cloud- deployed applications. You discover that your notification system is responding slowly to time-critical problems in the cloud applications. What should you do?
#131
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer You recently deployed your application in Google Kubernetes Engine, and now need to release a new version of your application. You need the ability to instantly roll back to the previous version in case there are issues with the new version. Which deployment model should you use?
#132
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer You developed a JavaScript web application that needs to access Google Drive's API and obtain permission from users to store files in their Google Drives. You need to select an authorization approach for your application. What should you do?
#133
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer You manage an ecommerce application that processes purchases from customers who can subsequently cancel or change those purchases. You discover that order volumes are highly variable and the backend order-processing system can only process one request at a time. You want to ensure seamless performance for customers regardless of usage volume. It is crucial that customers' order update requests are performed in the sequence in which they were generated. What should you do?
#134
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your company needs a database solution that stores customer purchase history and meets the following requirements:✑ Customers can query their purchase immediately after submission.✑ Purchases can be sorted on a variety of fields.✑ Distinct record formats can be stored at the same time.Which storage option satisfies these requirements?
#135
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You recently developed a new service on Cloud Run. The new service authenticates using a custom service and then writes transactional information to a CloudSpanner database. You need to verify that your application can support up to 5,000 read and 1,000 write transactions per second while identifying any bottlenecks that occur. Your test infrastructure must be able to autoscale. What should you do?
#136
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are using Cloud Build for your CI/CD pipeline to complete several tasks, including copying certain files to Compute Engine virtual machines. Your pipeline requires a flat file that is generated in one builder in the pipeline to be accessible by subsequent builders in the same pipeline. How should you store the file so that all the builders in the pipeline can access it?
#137
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your company’s development teams want to use various open source operating systems in their Docker builds. When images are created in published containers in your company’s environment, you need to scan them for Common Vulnerabilities and Exposures (CVEs). The scanning process must not impact software development agility. You want to use managed services where possible. What should you do?
#138
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are configuring a continuous integration pipeline using Cloud Build to automate the deployment of new container images to Google Kubernetes Engine (GKE). The pipeline builds the application from its source code, runs unit and integration tests in separate steps, and pushes the container to Container Registry. The application runs on a Python web server.The Dockerfile is as follows:FROM python:3.7-alpine -COPY . /app -WORKDIR /app -RUN pip install -r requirements.txtCMD [ "gunicorn", "-w 4", "main:app" ]You notice that Cloud Build runs are taking longer than expected to complete. You want to decrease the build time. What should you do? (Choose two.) E. Store application source code on Cloud Storage, and configure the pipeline to use gsutil to download the source code.
#139
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are building a CI/CD pipeline that consists of a version control system, Cloud Build, and Container Registry. Each time a new tag is pushed to the repository, a Cloud Build job is triggered, which runs unit tests on the new code builds a new Docker container image, and pushes it into Container Registry. The last step of your pipeline should deploy the new container to your production Google Kubernetes Engine (GKE) cluster. You need to select a tool and deployment strategy that meets the following requirements:• Zero downtime is incurred• Testing is fully automated• Allows for testing before being rolled out to users• Can quickly rollback if neededWhat should you do?
#140
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your operations team has asked you to create a script that lists the Cloud Bigtable, Memorystore, and Cloud SQL databases running within a project. The script should allow users to submit a filter expression to limit the results presented. How should you retrieve the data?
#141
Answer: D✅ Correct❌ Incorrect
Google's Professional Cloud Developer You need to deploy a new European version of a website hosted on Google Kubernetes Engine. The current and new websites must be accessed via the same HTTP(S) load balancer's external IP address, but have different domain names. What should you do?
#142
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are developing a single-player mobile game backend that has unpredictable traffic patterns as users interact with the game throughout the day and night. You want to optimize costs by ensuring that you have enough resources to handle requests, but minimize over-provisioning. You also want the system to handle traffic spikes efficiently. Which compute platform should you use?
#143
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer 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?
#144
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your company’s product team has a new requirement based on customer demand to autoscale your stateless and distributed service running in a Google Kubernetes Engine (GKE) duster. You want to find a solution that minimizes changes because this feature will go live in two weeks. What should you do?
#145
Answer: C✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your application is composed of a set of loosely coupled services orchestrated by code executed on Compute Engine. You want your application to easily bring up new Compute Engine instances that find and use a specific version of a service. How should this be configured?
#146
Answer: A✅ Correct❌ Incorrect
Google's Professional Cloud Developer You are developing a microservice-based application that will run on Google Kubernetes Engine (GKE). Some of the services need to access different Google Cloud APIs. How should you set up authentication of these services in the cluster following Google-recommended best practices? (Choose two.) E. Use gcloud to bind the Kubernetes service account and the Google service account using roles/iam.workloadIdentity.
#147
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer Your development team has been tasked with maintaining a .NET legacy application. The application incurs occasional changes and was recently updated. Your goal is to ensure that the application provides consistent results while moving through the CI/CD pipeline from environment to environment. You want to minimize the cost of deployment while making sure that external factors and dependencies between hosting environments are not problematic. Containers are not yet approved in your organization. What should you do?
#148
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer The new version of your containerized application has been tested and is ready to deploy to production on Google Kubernetes Engine. You were not able to fully load-test the new version in pre-production environments, and you need to make sure that it does not have performance problems once deployed. Your deployment must be automated. What should you do?
#149
Answer: B✅ Correct❌ Incorrect
Google's Professional Cloud Developer Users are complaining that your Cloud Run-hosted website responds too slowly during traffic spikes. You want to provide a better user experience during traffic peaks. What should you do?