Google Associate Cloud Engineer Question 126
Select 3Google Cloud PlatformYou have developed a containerized application and want to deploy it using Google Cloud Run. The application needs to be accessible publicly over HTTPS and should automatically scale based on incoming traffic. Which of the following steps must you perform to achieve this deployment?
- A
Build the container image and push it to Google Container Registry.
- B
Configure a VPC network to allow HTTP traffic.
- C
Deploy the container image to Cloud Run and set the service to allow unauthenticated invocations.
- D
Set up a Cloud Load Balancer to manage incoming traffic.
- E
Enable the Cloud Run API in your Google Cloud project.
Show answer and explanation
Correct answers: A, C, E
Explanation
To deploy a containerized application on Google Cloud Run, you need to first build the container image and store it in a repository such as Google Container Registry. Then, you must enable the Cloud Run API on your project to use Cloud Run services. Deploying the application involves setting the service to allow unauthenticated invocations to make the application publicly accessible. Cloud Run automatically handles scaling and does not require additional load balancers or VPC configurations for basic HTTP traffic management.
- A. Correct.
Building the container image and pushing it to Google Container Registry is a necessary step before deploying it to Cloud Run.
- B. Incorrect.
Configuring a VPC network is not required for Cloud Run to allow HTTP traffic as Cloud Run manages networking for you.
- C. Correct.
Deploying the container image to Cloud Run and allowing unauthenticated invocations is necessary to make the application publicly accessible.
- D. Incorrect.
A Cloud Load Balancer is not required for Cloud Run services, as Cloud Run automatically manages incoming traffic.
- E. Correct.
Enabling the Cloud Run API is required to deploy and manage services on Cloud Run.