Your GKE cluster has an application that processes high volumes of real-time data and uses Cloud Pub/Sub for message queuing. You want to guarantee strict message ordering. How would you accomplish this?
Choose an answer
Tap an option to check your answer.
Correct answer: Enable message ordering in Pub/Sub and deploy a subscriber that can handle ordered messages in GKE..
Why this is the answer
*Explanation: To guarantee strict message ordering in a GKE cluster with Cloud Pub/Sub, the best approach is to **Enable message ordering in Pub/Sub and deploy a subscriber that can handle ordered messages in GKE** (Option A. . This ensures that messages are processed in the correct order as they arrive in Pub/Sub. Options B, C, and D introduce unnecessary complexity or rely on application-specific logic for ordering. Option E (using Cloud Logging and a Cloud Function) is not designed for message ordering and is not the recommended approach.*
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed