nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #291

PROFESSIONAL-CLOUD-DEVELOPER Question #291: Real Exam Question with Answer & Explanation

The correct answer is B: Configure the sender application to publish the outgoing emails in a message to a Pub/Sub topic.. 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

Designing highly scalable, available, and reliable cloud-native applications

Question

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?

Options

  • AIncrease the Cloud Function's timeout to nine minutes.
  • BConfigure the sender application to publish the outgoing emails in a message to a Pub/Sub topic.
  • CConfigure the sender application to write emails to Memorystore and then trigger the Cloud
  • DConfigure the sender application to retry the execution of the Cloud Function every one second if

Explanation

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.

Topics

#Pub/Sub#Asynchronous Messaging#Reliable Messaging#Error Handling

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER PracticeBrowse All PROFESSIONAL-CLOUD-DEVELOPER Questions