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

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

You manage a microservice-based ecommerce platform on Google Cloud that sends confirmation emails to a third-party email service provider using a Cloud Function. Your company just launched a marketing campaign, and some customers are reporting that they have not received order confirmation emails. You discover that the services triggering the Cloud Function are receiving HTTP 500 errors. You need to change the way emails are handled to minimize email loss. What should you do?

  • A. Increase the Cloud Function's timeout to nine minutes.
  • B. Configure the sender application to publish the outgoing emails in a message to a Pub/Sub topic. Update the Cloud Function configuration to consume the Pub/Sub queue.
  • C. Configure the sender application to write emails to Memorystore and then trigger the Cloud Function. When the function is triggered, it reads the email details from Memorystore and sends them to the email service.
  • D. Configure the sender application to retry the execution of the Cloud Function every one second if a request fails.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
plutonians123
4 months, 4 weeks ago
Selected Answer: B
This is a robust and scalable approach. By decoupling the email sending process using Pub/Sub, you introduce a queueing mechanism. This ensures that even if the Cloud Function encounters an issue, the email messages are not lost but remain in the queue. Additionally, Pub/Sub can handle high throughput and provides retry mechanisms.
upvoted 3 times
...
MoanaMacknzy
5 months, 1 week ago
Selected Answer: B
B is the right answer
upvoted 1 times
...
diegodoal
5 months, 2 weeks ago
Selected Answer: B
B. With pub sub you can scale the load of sending emails to the Cloud Function. Also can configure exponential backoff if errors arise in the third party service and ensure the email is delivered
upvoted 1 times
...
vspringe
5 months, 2 weeks ago
B. the most effective solution would be B. - using Pub/Sub to queue email messages and having the Cloud Function process these messages is a robust, scalable, and reliable way to handle email sending in your ecommerce platform, especially during high load conditions.
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