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 216 discussion

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

Your team is developing unit tests for Cloud Function code. The code is stored in a Cloud Source Repositories repository. You are responsible for implementing the tests. Only a specific service account has the necessary permissions to deploy the code to Cloud Functions. You want to ensure that the code cannot be deployed without first passing the tests. How should you configure the unit testing process?

  • A. Configure Cloud Build to deploy the Cloud Function. If the code passes the tests, a deployment approval is sent to you.
  • B. Configure Cloud Build to deploy the Cloud Function, using the specific service account as the build agent. Run the unit tests after successful deployment.
  • C. Configure Cloud Build to run the unit tests. If the code passes the tests, the developer deploys the Cloud Function.
  • D. Configure Cloud Build to run the unit tests, using the specific service account as the build agent. If the code passes the tests, Cloud Build deploys the Cloud Function.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
__rajan__
3 months, 1 week ago
Selected Answer: D
D is correct.
upvoted 1 times
...
purushi
4 months, 3 weeks ago
Selected Answer: D
Correct answer is D. First run unit tests and if all pass then deploy as Cloud Func.
upvoted 1 times
...
Pime13
10 months, 1 week ago
Selected Answer: D
i made a midtake, it's d
upvoted 1 times
...
Pime13
10 months, 2 weeks ago
Selected Answer: B
b) first run test and then deploy
upvoted 1 times
Pime13
10 months, 1 week ago
typo, D
upvoted 1 times
...
...
omermahgoub
11 months, 1 week ago
Selected Answer: D
D. Configure Cloud Build to run the unit tests, using the specific service account as the build agent. If the code passes the tests, Cloud Build deploys the Cloud Function. This ensures that only the specific service account, which has the necessary permissions, is able to deploy the code after it has passed the unit tests. The developer does not need to worry about deploying the code, and the code cannot be deployed without passing the tests.
upvoted 1 times
...
telp
11 months, 3 weeks ago
Selected Answer: D
Answer D
upvoted 1 times
...
sharath25
1 year ago
Selected Answer: D
option D
upvoted 1 times
...
zellck
1 year ago
Selected Answer: D
D is the answer.
upvoted 1 times
...
TNT87
1 year ago
Selected Answer: D
Answer D
upvoted 2 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