Google Cloud Associate Cloud Engineer — Question 213
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?
Answer options
- 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.
Correct answer: A
Explanation
The correct answer is A because Cloud Run is specifically designed to handle containerized applications, allowing for seamless deployment of Docker images with necessary configuration updates. Options B and C are incorrect as Cloud Functions are not suited for complex microservices architectures, while option D does not involve utilizing the CI/CD pipeline, which is crucial for efficient deployment.