
Answer-first summary for fast verification
Answer: Using Cloud Build, execute Terraform scripts to create a new Google Cloud project and a Cloud Run instance of your application in the Google Cloud project.
To achieve an isolated testing environment with full automation and minimal effort, creating a new Google Cloud project ensures complete separation from production. Using Terraform (Option A) via Cloud Build allows infrastructure-as-code, streamlining the creation of both the project and Cloud Run instance in a single automated workflow. Options B and D use traffic splitting within the same project, which does not provide true isolation. Option C uses gcloud commands, which may require more imperative scripting steps (e.g., project creation, API enabling) compared to Terraform's declarative approach, making A the most efficient choice.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can you create an isolated testing environment for a Cloud Run application in Google Cloud with full automation and minimal effort to execute automated tests?
A
Using Cloud Build, execute Terraform scripts to create a new Google Cloud project and a Cloud Run instance of your application in the Google Cloud project.
B
Using Cloud Build, execute a Terraform script to deploy a new Cloud Run revision in the existing Google Cloud project. Use traffic splitting to send traffic to your test environment.
C
Using Cloud Build, execute gcloud commands to create a new Google Cloud project and a Cloud Run instance of your application in the Google Cloud project.
D
Using Cloud Build, execute gcloud commands to deploy a new Cloud Run revision in the existing Google Cloud project. Use traffic splitting to send traffic to your test environment.
No comments yet.