Professional Cloud Data Engineer

professional-cloud-data-engineer

Advanced

Gauge your current knowledge

Practice test preview

Defining data sources and sinks

...

Sample Question

A data engineering team is migrating a legacy data ingestion pipeline to Google Cloud Managed Service for Apache Kafka. They need to enforce strict schema validation to prevent malformed data from breaking downstream structured sinks. The team has the following requirements for the new pipeline: * Support for a formal schema definition format natively integrated with the Managed Service for Apache Kafka schema registry. * Ensure that consumer applications configured with updated schemas can still read data produced with older schema versions. * Implement a production-ready schema deployment strategy that prevents unexpected schema changes during runtime. Which architecture and configuration strategy should the team implement?

  • Use Apache Avro for data serialization. Configure the schema registry subject with forwards-compatibility rules. Pre-register all schema updates through a CI/CD pipeline and disable schema auto-registration in the producer clients.
  • Use JSON Schema for data serialization. Configure the schema registry subject with backwards-compatibility rules. Pre-register all schema updates through a CI/CD pipeline and disable schema auto-registration in the producer clients.
  • Use Apache Avro for data serialization. Configure the schema registry subject with backwards-compatibility rules. Pre-register all schema updates through a CI/CD pipeline and disable schema auto-registration in the producer clients.
  • Use Protocol Buffers (Protobuf) for data serialization. Configure the schema registry subject with backwards-compatibility rules. Enable schema auto-registration in the producer clients to ensure new fields are immediately available to downstream sinks.
View the answer & explanation →