Google Associate Cloud Engineer Question 127
Select 3Google Cloud PlatformYou have developed a containerized application and want to deploy it to Google Cloud Run. Which steps should you follow to successfully deploy your application?
- A
Build the container image and push it to Google Container Registry.
- B
Create a Kubernetes cluster using Google Kubernetes Engine.
- C
Use the gcloud run deploy command to deploy your application to Cloud Run.
- D
Configure a Cloud Load Balancer to route traffic to your Cloud Run service.
- E
Ensure your Cloud Run service is set to public access for internet traffic.
Show answer and explanation
Correct answers: A, C, E
Explanation
Deploying a Cloud Run application involves building your application's container image and pushing it to a container registry like Google Container Registry. You then use the gcloud run deploy command to deploy the application to Cloud Run. Finally, setting your Cloud Run service to public access enables internet traffic to reach your service. Unlike other Google Cloud Platform services like Google Kubernetes Engine, Cloud Run abstracts infrastructure details, so manual load balancer configuration is not required.
- A. Correct.
Correct. Before deploying a Cloud Run service, you need to have your application container image stored in a container registry like Google Container Registry.
- B. Incorrect.
Incorrect. Creating a Kubernetes cluster is not necessary for deploying to Cloud Run, as Cloud Run abstracts the underlying infrastructure.
- C. Correct.
Correct. The gcloud run deploy command is used to deploy an application to Cloud Run from the container image.
- D. Incorrect.
Incorrect. Cloud Run automatically handles traffic routing and load balancing, so manual configuration of a Cloud Load Balancer is not required.
- E. Correct.
Correct. To allow access from the internet, your Cloud Run service needs to be set to public access.