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

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

You are a developer working on an internal application for payroll processing. You are building a component of the application that allows an employee to submit a timesheet, which then initiates several steps:

• An email is sent to the employee and manager, notifying them that the timesheet was submitted.
• A timesheet is sent to payroll processing for the vendor's API.
• A timesheet is sent to the data warehouse for headcount planning.

These steps are not dependent on each other and can be completed in any order. New steps are being considered and will be implemented by different development teams. Each development team will implement the error handling specific to their step. What should you do?

  • A. Deploy a Cloud Function for each step that calls the corresponding downstream system to complete the required action.
  • B. Create a Pub/Sub topic for each step. Create a subscription for each downstream development team to subscribe to their step's topic.
  • C. Create a Pub/Sub topic for timesheet submissions. Create a subscription for each downstream development team to subscribe to the topic.
  • D. Create a timesheet microservice deployed to Google Kubernetes Engine. The microservice calls each downstream step and waits for a successful response before calling the next step.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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__
7 months, 1 week ago
Selected Answer: C
Pub/Sub is a messaging service that allows you to decouple microservices and other applications. It is a good choice for this use case because it is scalable, reliable, and easy to use.
upvoted 1 times
...
purushi
8 months, 3 weeks ago
Selected Answer: C
This is a tricky question. The context is in developing team developing the application. So C is the best fit. After the development, when the application is running then each timesheet submit event can publish 3 events/messages so that 3 independent microservices for each operation can kick in parallel and perform the tasks.
upvoted 1 times
...
omermahgoub
1 year, 3 months ago
Selected Answer: C
C is correct
upvoted 1 times
...
TNT87
1 year, 4 months ago
Answer C
upvoted 3 times
...
zellck
1 year, 4 months ago
Selected Answer: C
C is the answer.
upvoted 2 times
...
sharath25
1 year, 4 months ago
Selected Answer: C
option c
upvoted 1 times
...
kisswd
1 year, 4 months ago
Selected Answer: C
One to many pattern, C is correct
upvoted 3 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