QuestionQ10

Deploying and implementing a cloud solution

Your team is running an on-premises ecommerce application. The application contains a complex set of microservices written in Python, and each microservice is running on Docker containers. Configurations are injected by using environment variables. You need to deploy your current application to a serverless Google Cloud cloud solution. What should you do?

  • A Use your existing CI/CD pipeline. Use the generated Docker images and deploy them to Cloud Run. Update the configurations and the required endpoints.
  • B Use your existing continuous integration and delivery (CI/CD) pipeline. Use the generated Docker images and deploy them to Cloud Function. Use the same configuration as on-premises.
  • C Use the existing codebase and deploy each service as a separate Cloud Function. Update the configurations and the required endpoints.
  • D Use your existing codebase and deploy each service as a separate Cloud Run. Use the same configurations as on-premises.
Explanation

Cloud Run is the serverless container platform for microservices. Reusing the existing CI/CD pipeline and Docker images minimizes effort. Configurations (environment variables, endpoints) must be updated to work with Cloud Run's stateless, container-native model. Cloud Functions is unsuitable for complex multi-service architectures.

Community Discussion

No comments yet. Be the first to start the discussion!