Free Certification Practice Questions

GOOGLE-PROFESSIONAL-CLOUD-DEVELOPER

Loading…
Google's Professional Cloud Developer You are designing a deployment technique for your new applications on Google Cloud. As part of your deployment planning, you want to use live traffic to gather performance metrics for both new and existing applications. You need to test against the full production load prior to launch. What should you do?
#91
Google's Professional Cloud Developer You support an application that uses the Cloud Storage API. You review the logs and discover multiple HTTP 503 Service Unavailable error responses from theAPI. Your application logs the error and does not take any further action. You want to implement Google-recommended retry logic to improve success rates.Which approach should you take?
#92
Google's Professional Cloud Developer You need to redesign the ingestion of audit events from your authentication service to allow it to handle a large increase in traffic. Currently, the audit service and the authentication system run in the same Compute Engine virtual machine. You plan to use the following Google Cloud tools in the new architecture:✑ Multiple Compute Engine machines, each running an instance of the authentication service✑ Multiple Compute Engine machines, each running an instance of the audit service✑ Pub/Sub to send the events from the authentication services.How should you set up the topics and subscriptions to ensure that the system can handle a large volume of messages and can scale efficiently? E. Create one Pub/Sub topic per authentication service. Create one push subscription per topic, with the endpoint pointing to one audit service.
#93
Google's Professional Cloud Developer You are developing a marquee stateless web application that will run on Google Cloud. The rate of the incoming user traffic is expected to be unpredictable, with no traffic on some days and large spikes on other days. You need the application to automatically scale up and down, and you need to minimize the cost associated with running the application. What should you do?
#94
Google's Professional Cloud Developer You have written a Cloud Function that accesses other Google Cloud resources. You want to secure the environment using the principle of least privilege. What should you do?
#95
Google's Professional Cloud Developer You are a SaaS provider deploying dedicated blogging software to customers in your Google Kubernetes Engine (GKE) cluster. You want to configure a secure multi-tenant platform to ensure that each customer has access to only their own blog and can't affect the workloads of other customers. What should you do?
#96
Google's Professional Cloud Developer You have decided to migrate your Compute Engine application to Google Kubernetes Engine. You need to build a container image and push it to Artifact Registry using Cloud Build. What should you do? (Choose two.) E. In the application source directory, create a file named cloudbuild.yaml that contains the following contents:
#97
Google's Professional Cloud Developer You are developing an internal application that will allow employees to organize community events within your company. You deployed your application on a single Compute Engine instance. Your company uses Google Workspace (formerly G Suite), and you need to ensure that the company employees can authenticate to the application from anywhere. What should you do?
#98
Google's Professional Cloud Developer Your development team is using Cloud Build to promote a Node.js application built on App Engine from your staging environment to production. The application relies on several directories of photos stored in a Cloud Storage bucket named webphotos-staging in the staging environment. After the promotion, these photos must be available in a Cloud Storage bucket named webphotos-prod in the production environment. You want to automate the process where possible. What should you do?
#99
Google's Professional Cloud Developer You are developing a web application that will be accessible over both HTTP and HTTPS and will run on Compute Engine instances. On occasion, you will need to SSH from your remote laptop into one of the Compute Engine instances to conduct maintenance on the app. How should you configure the instances while following Google-recommended best practices?
#100
Google's Professional Cloud Developer 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?
#101
Google's Professional Cloud Developer You want to create `fully baked` or `golden` Compute Engine images for your application. You need to bootstrap your application to connect to the appropriate database according to the environment the application is running on (test, staging, production). What should you do?
#102
Google's Professional Cloud Developer You are developing a microservice-based application that will be deployed on a Google Kubernetes Engine cluster. The application needs to read and write to aSpanner database. You want to follow security best practices while minimizing code changes. How should you configure your application to retrieve Spanner credentials?
#103
Google's Professional Cloud Developer You are deploying your application on a Compute Engine instance that communicates with Cloud SQL. You will use Cloud SQL Proxy to allow your application to communicate to the database using the service account associated with the application's instance. You want to follow the Google-recommended best practice of providing minimum access for the role assigned to the service account. What should you do?
#104
Google's Professional Cloud Developer Your team develops stateless services that run on Google Kubernetes Engine (GKE). You need to deploy a new service that will only be accessed by other services running in the GKE cluster. The service will need to scale as quickly as possible to respond to changing load. What should you do?
#105
Google's Professional Cloud Developer You recently migrated a monolithic application to Google Cloud by breaking it down into microservices. One of the microservices is deployed using CloudFunctions. As you modernize the application, you make a change to the API of the service that is backward-incompatible. You need to support both existing callers who use the original API and new callers who use the new API. What should you do?
#106
Google's Professional Cloud Developer You are developing an application that will allow users to read and post comments on news articles. You want to configure your application to store and display user-submitted comments using Firestore. How should you design the schema to support an unknown number of comments and articles?
#107
Google's Professional Cloud Developer You recently developed an application. You need to call the Cloud Storage API from a ComputeEngine instance that doesn't have a public IP address. What should you do?
#108
Google's Professional Cloud Developer You are a developer working with the CI/CD team to troubleshoot a new feature that your team introduced. The CI/CD team used HashiCorp Packer to create a new Compute Engine image from your development branch. The image was successfully built, but is not booting up. You need to investigate the issue with the CI/CD team. What should you do?
#109
Google's Professional Cloud Developer You manage an application that runs in a Compute Engine instance. You also have multiple backend services executing in stand-alone Docker containers running in Compute Engine instances. The Compute Engine instances supporting the backend services are scaled by managed instance groups in multiple regions. You want your calling application to be loosely coupled. You need to be able to invoke distinct service implementations that are chosen based on the value of an HTTP header found in the request. Which Google Cloud feature should you use to invoke the backend services?
#110
Google's Professional Cloud Developer 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?
#111
Google's Professional Cloud Developer You are designing a resource-sharing policy for applications used by different teams in a Google Kubernetes Engine cluster. You need to ensure that all applications can access the resources needed to run. What should you do? (Choose two.) E. Use the Anthos Policy Controller to enforce label annotations on all namespaces. Use taints and tolerations to allow resource sharing for namespaces.
#112
Google's Professional Cloud Developer You are developing a new application that has the following design requirements:✑ Creation and changes to the application infrastructure are versioned and auditable.✑ The application and deployment infrastructure uses Google-managed services as much as possible.✑ The application runs on a serverless compute platform.How should you design the application's architecture?
#113
Google's Professional Cloud Developer You are creating and running containers across different projects in Google Cloud. The application you are developing needs to access Google Cloud services from within Google Kubernetes Engine (GKE). What should you do?
#114
Google's Professional Cloud Developer 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?
#115
Google's Professional Cloud Developer Your team is developing a new application using a PostgreSQL database and Cloud Run. You are responsible for ensuring that all traffic is kept private on GoogleCloud. You want to use managed services and follow Google-recommended best practices. What should you do?
#116
Google's Professional Cloud Developer You are developing an application that will allow clients to download a file from your website for a specific period of time. How should you design the application to complete this task while following Google-recommended best practices?
#117
Google's Professional Cloud Developer Your development team has been asked to refactor an existing monolithic application into a set of composable microservices. Which design aspects should you implement for the new application? (Choose two.) E. Implement a versioning scheme to permit future changes that could be incompatible with the current interface.
#118
Google's Professional Cloud Developer You deployed a new application to Google Kubernetes Engine and are experiencing some performance degradation. Your logs are being written to CloudLogging, and you are using a Prometheus sidecar model for capturing metrics. You need to correlate the metrics and data from the logs to troubleshoot the performance issue and send real-time alerts while minimizing costs. What should you do?
#119
Google's Professional Cloud Developer You have been tasked with planning the migration of your company's application from on-premises to Google Cloud. Your company's monolithic application is an ecommerce website. The application will be migrated to microservices deployed on Google Cloud in stages. The majority of your company's revenue is generated through online sales, so it is important to minimize risk during the migration. You need to prioritize features and select the first functionality to migrate. What should you do?
#120