You are updating the code for a subscriber to a Pub/Sub feed. You are concerned that upon deployment the subscriber may erroneously acknowledge messages, leading to message loss. Your subscriber is not set up to retain acknowledged messages. What should you do to ensure that you can recover from errors after deployment?
A) Set up the Pub/Sub emulator on your local machine. Validate the behavior of your new subscriber logic before deploying it to production.
B) Create a Pub/Sub snapshot before deploying new subscriber code. Use a Seek operation to re-deliver messages that became available after the snapshot was created.
C) Use Cloud Build for your deployment. If an error occurs after deployment, use a Seek operation to locate a timestamp logged by Cloud Build at the start of the deployment.
D) Enable dead-lettering on the Pub/Sub topic to capture messages that aren't successfully acknowledged. If an error occurs after deployment, re-deliver any messages captured by the dead-letter queue.
Correct Answer:
Verified
Q155: You work for a financial institution that
Q156: You are designing a pipeline that publishes
Q157: You work for a mid-sized enterprise that
Q158: MJTelco Case Study Company Overview MJTelco is
Q159: You want to process payment transactions in
Q161: You work for a bank. You have
Q162: How would you query specific partitions in
Q163: You need to copy millions of sensitive
Q164: Which of the following statements about Legacy
Q165: What are two methods that can be
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents