Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
To prevent message loss due to erroneous acknowledgments after deploying updated subscriber code for a Pub/Sub feed, which strategy should you implement?
A
Utilize Cloud Build for deployment, and refer to a timestamp logged by Cloud Build at the deployment's start if issues arise.
B
Enable dead-lettering on the Pub/Sub topic to catch unacknowledged messages, and resend any messages caught by the dead-letter queue if errors occur.
C
Before deploying new subscriber code, create a Pub/Sub snapshot and employ a Seek operation to resend messages that became available post-snapshot if errors are encountered.
D
Test the new subscriber logic on the Pub/Sub emulator locally before moving it to production.