Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
To ensure all messages written to a Cloud Pub/Sub topic adhere to a standard structure during the ingestion process, what is the best practice?
A
Implement a data quality function within a Cloud Function to reformat the message as necessary before it is consumed from a subscription.
B
Define a schema and associate it with a topic at the time of the topic's creation.
C
Utilize a data quality function in a Cloud Function to verify the message structure upon writing to Cloud Pub/Sub.
D
Establish a schema and link it to a subscription during the subscription's creation.