exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 264 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 264
Topic #: 1
[All Professional Cloud Developer Questions]

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
kapara
Highly Voted 10 months, 1 week ago
Selected Answer: A
fully automate == terraform. and new separate env == new project therefore i vote A.
upvoted 5 times
pico
4 months, 3 weeks ago
I would say D: A and C (Terraform): While Terraform is a powerful tool, it introduces additional complexity compared to using gcloud commands directly. Terraform is better suited for managing large-scale infrastructure, not just deploying a single Cloud Run revision. Adding gcloud commands to a Cloud Build script is much easier and faster than using terraform
upvoted 1 times
...
pico
4 months, 3 weeks ago
I meant C
upvoted 1 times
...
...
pico
Most Recent 4 months, 3 weeks ago
Selected Answer: D
Why other options are not as efficient: A and C (Terraform): While Terraform is a powerful tool, it introduces additional complexity compared to using gcloud commands directly. Terraform is better suited for managing large-scale infrastructure, not just deploying a single Cloud Run revision. B (Terraform with traffic splitting): Similar to options A and C, using Terraform for this task adds unnecessary complexity. Traffic splitting can be easily configured using gcloud commands.
upvoted 1 times
...
Kadhem
10 months, 1 week ago
Selected Answer: C
C is simpler thant A!
upvoted 1 times
kapara
10 months, 1 week ago
you right, but the part of the requirements is "You want to *fully automate* the creation of the testing environment"
upvoted 5 times
Kadhem
10 months ago
oh you right, i didn't make attention for this detail.
upvoted 1 times
...
...
...
wanrltw
10 months, 2 weeks ago
A is correct https://cloud.google.com/docs/terraform/resource-management/managing-infrastructure-as-code
upvoted 2 times
...
imiu
11 months ago
Selected Answer: A
https://cloud.google.com/docs/terraform/best-practices-for-terraform
upvoted 1 times
...
vmst
11 months, 2 weeks ago
Selected Answer: A
A is correct
upvoted 1 times
...
xiaofeng_0226
11 months, 3 weeks ago
Selected Answer: A
A is correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago