Professional-Cloud-Developer Professional Cloud Developer

Loading demo links...

Showing 13–15 of 15 questions

Question 13

You are designing an application that uses a microservices architecture. You are planning to deploy the application in the cloud and on-premises. You want to make sure the application can scale up on demand and also use managed services as much as possible. What should you do?

Select an option, then click Submit answer.

  • Deploy open source Istio in a multi-cluster deployment on multiple Google Kubernetes Engine (GKE) clusters managed by Anthos.

  • Create a GKE cluster in each environment with Anthos, and use Cloud Run for Anthos to deploy your application to each cluster.

  • Install a GKE cluster in each environment with Anthos, and use Cloud Build to create a Deployment for your application in each cluster.

  • Create a GKE cluster in the cloud and install open-source Kubernetes on-premises. Use an external load balancer service to distribute traffic across the two environments.

Question 14

You recently migrated a monolithic application to Google Cloud by breaking it down into microservices. One of the microservices is deployed using Cloud Functions. 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?

Select an option, then click Submit answer.

  • Leave the original Cloud Function as-is and deploy a second Cloud Function with the new API. Use a load balancer to distribute calls between the versions.

  • Leave the original Cloud Function as-is and deploy a second Cloud Function that includes only the changed API. Calls are automatically routed to the correct function.

  • Leave the original Cloud Function as-is and deploy a second Cloud Function with the new API. Use Cloud Endpoints to provide an API gateway that exposes a versioned API.

  • Re-deploy the Cloud Function after making code changes to support the new API. Requests for both versions of the API are fulfilled based on a version identifier included in the call.

Question 15

You are porting an existing Apache/MySQL/PHP application stack from a single machine to Google

Kubernetes Engine. You need to determine how to containerize the application. Your approach should follow Google-recommended best practices for availability. What should you do?

Select an option, then click Submit answer.

  • Package each component in a separate container. Implement readiness and liveness probes.

  • Package the application in a single container. Use a process management tool to manage each component.

  • Package each component in a separate container. Use a script to orchestrate the launch of the components.

  • Package the application in a single container. Use a bash script as an entrypoint to the container, and then spawn each component as a background job.