Google Cloud Professional Cloud Developer — Question 262

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?

Answer options

Correct answer: B

Explanation

Option B is correct because using Pub/Sub allows for reliable message delivery, ensuring that emails are queued and processed even if the Cloud Function encounters errors. The other options either do not address the issue of email loss effectively or introduce unnecessary complexity without improving reliability.