Google Associate Cloud Engineer Question 130
Select 3Google Cloud PlatformYou are tasked with deploying a new version of a containerized web application on Google Cloud Run. The application needs to be accessible via a custom domain and requires a specific region due to latency concerns. Which steps should you take to ensure a successful deployment?
- A
- Deploy the new version of the application to Cloud Run and configure the custom domain in the Cloud Run console.
- B
- Deploy the application to the 'us-central1' region and use Google Cloud DNS to set up a custom domain.
- C
- Use the gcloud run deploy command with the --region flag to specify the desired region.
- D
- Create a new Cloud Run service and manually update the DNS records to point to the service URL.
- E
- Set up managed SSL certificates in the Cloud Run console for the custom domain.
Show answer and explanation
Correct answers: A, C, E
Explanation
Deploying a Cloud Run application with custom domain requirements involves deploying the application, specifying the region using the gcloud command, and configuring the custom domain with managed SSL certificates. These steps ensure that the application is deployed in the desired region and is accessible securely via the custom domain.
- A. Correct.
Option 1 is correct because deploying the new version and setting up the custom domain in Cloud Run is a standard process.
- B. Incorrect.
Option 2 is incorrect because the choice of region should be based on specific requirements, and Cloud DNS is not mentioned as an essential step in the deployment process.
- C. Correct.
Option 3 is correct because using the --region flag with the gcloud run deploy command allows you to specify the deployment region.
- D. Incorrect.
Option 4 is incorrect because it suggests manual DNS updates, which are not necessary when Cloud Run provides managed domain mappings.
- E. Correct.
Option 5 is correct because setting up managed SSL certificates is necessary for securing the custom domain.