You are designing a basket abandonment system for an ecommerce company. The system will send a message to a user based on these rules: * No interaction by the user on the site for 1 hour * Has added more than $30 worth of products to the basket * Has not completed a transaction You use Google Cloud Dataflow to process the data and decide if a message should be sent. How should you design the pipeline?
Correct Answer: B
Professional-Data-Engineer Exam Question 97
You are a head of BI at a large enterprise company with multiple business units that each have different priorities and budgets. You use on-demand pricing for BigQuery with a quota of 2K concurrent on-demand slots per project. Users at your organization sometimes don't get slots to execute their query and you need to correct this. You'd like to avoid introducing new projects to your account. What should you do?
Your infrastructure team has set up an interconnect link between Google Cloud and the on-premises network. You are designing a high-throughput streaming pipeline to ingest data in streaming from an Apache Kafka cluster hosted on-premises. You want to store the data in BigQuery, with as minima! latency as possible. What should you do?
Correct Answer: C
Here's a detailed breakdown of why this solution is optimal and why others fall short: Why Option C is the Best Solution: Kafka Connect Bridge:This bridge acts as a reliable and scalable conduit between your on-premises Kafka cluster and Google Cloud's Pub/Sub messaging service. It handles the complexities of securely transferring data over the interconnect link. Pub/Sub as a Buffer:Pub/Sub serves as a highly scalable buffer, decoupling the Kafka producer from the Dataflow consumer. This is crucial for handling fluctuations in message volume and ensuring smooth data flow even during spikes. Custom Dataflow Pipeline:Writing a custom Dataflow pipeline gives you the flexibility to implement any necessary transformations or enrichments to the data before it's written to BigQuery. This is often required in real-world streaming scenarios. Minimal Latency:By using Pub/Sub as a buffer and Dataflow for efficient processing, you minimize the latency between the data being produced in Kafka and being available for querying in BigQuery. Why Other Options Are Not Ideal: Option A:Using a proxy host introduces an additional point of failure and can create a bottleneck, especially with high-throughput streaming. Option B:While Google-provided Dataflow templates can be helpful, they might lack the customization needed for specific transformations or handling complex data structures. Option D:Dataflow doesn't natively connect to on-premises Kafka clusters. Directly reading from Kafka would require complex networking configurations and could lead to performance issues. Additional Considerations: Schema Management:Ensure that the schema of the data being produced in Kafka is compatible with the schema expected in BigQuery. Consider using tools like Schema Registry for schema evolution management. Monitoring:Set up robust monitoring and alerting to detect any issues in the pipeline, such as message backlogs or processing errors. By following Option C, you leverage the strengths of Kafka Connect, Pub/Sub, and Dataflow to create a high- throughput, low-latency streaming pipeline that seamlessly integrates your on-premises Kafka data with BigQuery.
Professional-Data-Engineer Exam Question 99
Which software libraries are supported by Cloud Machine Learning Engine?
Correct Answer: C
Cloud ML Engine mainly does two things: Enables you to train machine learning models at scale by running TensorFlow training applications in the cloud. Hosts those trained models for you in the cloud so that you can use them to get predictions about new data. Reference: https://cloud.google.com/ml-engine/docs/technical-overview#what_it_does
Professional-Data-Engineer Exam Question 100
Your company's data platform ingests CSV file dumps of booking and user profile data from upstream sources into Cloud Storage. The data analyst team wants to join these datasets on the email field available in both the datasets to perform analysis. However, personally identifiable information (PII) should not be accessible to the analysts. You need to de-identify the email field in both the datasets before loading them into BigQuery for analysts. What should you do?
Correct Answer: B
Cloud DLP is a service that helps you discover, classify, and protect your sensitive data. It supports various de-identification techniques, such as masking, redaction, tokenization, and encryption. Format-preserving encryption (FPE) with FFX is a technique that encrypts sensitive data while preserving its original format and length. This allows you to join the encrypted data on the same field without revealing the actual values. FPE with FFX also supports partial encryption, which means you can encrypt only a portion of the data, such as the domain name of an email address. By using Cloud DLP to de-identify the email field with FPE with FFX, you can ensure that the analysts can join the booking and user profile data on the email field without accessing the PII. You can create a pipeline to de-identify the email field by usingrecordTransformations in Cloud DLP, which allows you to specify the fields and the de-identification transformations to apply to them. You can then load the de-identified data into a BigQuery table for analysis. References: De-identify sensitive data | Cloud Data Loss Prevention Documentation Format-preserving encryption with FFX | Cloud Data Loss Prevention Documentation De-identify and re-identify data with the Cloud DLP API De-identify data in a pipeline