Google Cloud Professional Cloud Developer — Question 259

You are defining your system tests for an application running in Cloud Run in a Google Cloud project. You need to create a testing environment that is isolated from the production environment. You want to fully automate the creation of the testing environment with the least amount of effort and execute automated tests. What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because it creates a completely new Google Cloud project for testing, ensuring complete isolation from production. Options B and D deploy within the same project, which does not achieve the required isolation, while option C uses gcloud commands instead of Terraform, which is not as automated or efficient for setting up infrastructure.