Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Professional Machine Learning Engineer Exam - Topic 10 Question 58 Discussion

Posted by Beckie on Jan 09, 2023 at 11:52 PM

You have been asked to productionize a proof-of-concept ML model built using Keras. The model was trained in a Jupyter notebook on a data scientist's local machine. The notebook contains a cell that performs data validation and a cell that performs model analysis. You need to orchestrate the steps contained in the notebook and automate the execution of these steps for weekly retraining. You expect much more training data in the future. You want your solution to take advantage of managed services while minimizing cost. What should you do?

Suggested Answer: D

Get Premium Professional Machine Learning Engineer Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
34 comments · newest first
DE
Denna 12 months ago
D is interesting, but Airflow feels like overkill for this.
AN
An 1 year ago
C could work, but managing Spark jobs seems like a hassle.
CA
Carry 1 year ago
Wait, can we really automate everything with TFX? Sounds too good to be true!
RA
Raul 1 year ago
I think A is too costly for what we need.
CA
Carman 1 year ago
B is definitely the way to go for TFX and Vertex AI!
AL
Aliza 1 year ago
I vaguely recall something about scheduling with Cloud Scheduler, but I'm not convinced that A is the best approach for productionizing a model. It feels a bit too manual.
VI
Vincent 1 year ago
I practiced a similar question where we had to automate model retraining, and I think using Cloud Composer with Airflow could be a solid option, so D is appealing.
JE
Jesusita 1 year ago
I'm not entirely sure, but I feel like using Apache Spark could be overkill for this task. C seems like it might complicate things unnecessarily.
MA
Marcelle 1 year ago
I remember we discussed the importance of using managed services for scalability and cost-effectiveness, so I think B might be the right choice with TFX and Vertex AI.
JO
Joesph 1 year ago
Hmm, I'm a bit unsure about this one. I'll need to think through the key functions of Automated Change Management to determine the correct answers.
KE
Kenneth 1 year ago
Ugh, I'm a little unsure about this. Sprint duration is something we covered, but I'm having trouble remembering all the details. I'll have to think it through carefully.
CA
Caitlin 1 year ago
No problem, I've got this. The question is clear, and I know the module details, so I'm confident I can get this right.
SH
Sherita 1 year ago
Definitely seems like a 'True' answer - taking on work you're not qualified for is an ethics violation.
DO
Dorothy 1 year ago
I hope the exam doesn't ask us to 'productionize' a model using a typewriter and a fax machine. That would be a real challenge!
TR
Tracey 1 year ago
If this were a recipe, I'd say 'add a dash of TFX and a sprinkle of Vertex AI Pipelines for the perfect ML automation solution'.
SA
Sanda 1 year ago
Option A sounds like the easiest solution, but I'm worried about the cost of running a Notebooks instance on a large machine type. Managed services could be more cost-effective in the long run.
CA
Cathrine 1 year ago
↳ replying to Sanda
D) Extract the steps contained in the Jupyter notebook as Python scripts, wrap each script in an Apache Airflow BashOperator, and run the resulting directed acyclic graph (DAG) in Cloud Composer.
MA
Maia 1 year ago
↳ replying to Sanda
A) That's true, cost is definitely a concern. But using managed services like Vertex AI Pipelines could be more cost-effective in the long run.
WI
Willie 1 year ago
↳ replying to Sanda
B) Write the code as a TensorFlow Extended (TFX) pipeline orchestrated with Vertex AI Pipelines. Use standard TFX components for data validation and model analysis, and use Vertex AI Pipelines for model retraining.
LE
Leigha 1 year ago
↳ replying to Sanda
A) Move the Jupyter notebook to a Notebooks instance on the largest N2 machine type, and schedule the execution of the steps in the Notebooks instance using Cloud Scheduler.
KA
Kati 2 years ago
I'm not sure about option C. Rewriting the code as a Spark job might be overkill for this use case, and it might add unnecessary complexity.
AL
Alaine 1 year ago
↳ replying to Kati
D) Extract the steps contained in the Jupyter notebook as Python scripts, wrap each script in an Apache Airflow BashOperator, and run the resulting directed acyclic graph (DAG) in Cloud Composer.
AL
Alison 1 year ago
↳ replying to Kati
B) Write the code as a TensorFlow Extended (TFX) pipeline orchestrated with Vertex AI Pipelines. Use standard TFX components for data validation and model analysis, and use Vertex AI Pipelines for model retraining.
NI
Nickolas 1 year ago
↳ replying to Kati
A) Move the Jupyter notebook to a Notebooks instance on the largest N2 machine type, and schedule the execution of the steps in the Notebooks instance using Cloud Scheduler.
GO
Goldie 2 years ago
Option D looks interesting too. Airflow could provide a flexible way to orchestrate the different steps, and it's a popular tool in the industry.
NI
Nieves 1 year ago
↳ replying to Goldie
Option D looks interesting too. Airflow could provide a flexible way to orchestrate the different steps, and it's a popular tool in the industry.
AF
Afton 1 year ago
↳ replying to Goldie
D) Extract the steps contained in the Jupyter notebook as Python scripts, wrap each script in an Apache Airflow BashOperator, and run the resulting directed acyclic graph (DAG) in Cloud Composer.
DO
Donte 1 year ago
↳ replying to Goldie
B) Write the code as a TensorFlow Extended (TFX) pipeline orchestrated with Vertex AI Pipelines. Use standard TFX components for data validation and model analysis, and use Vertex AI Pipelines for model retraining.
NI
Nichelle 2 years ago
I'm not sure about option B. I think option D could also work well by using Apache Airflow to orchestrate the steps in the Python scripts.
AN
Antonette 2 years ago
I agree with Jade. Option B seems like the most scalable and cost-effective solution for productionizing the ML model.
JA
Jade 2 years ago
I think option B is the best choice because using TFX pipeline with Vertex AI Pipelines will help automate the steps and handle the increasing amount of training data efficiently.
WI
Wilford 2 years ago
I'm leaning towards option B. Using TFX and Vertex AI Pipelines seems like a good way to take advantage of managed services and scale the solution as the data grows.
GL
Glen 2 years ago
↳ replying to Wilford
I agree, using managed services like TFX and Vertex AI Pipelines will definitely help with scalability and cost-effectiveness in the long run.
FL
Floyd 2 years ago
↳ replying to Wilford
Option B sounds like a solid choice. TFX and Vertex AI Pipelines can handle the increased data and automate the process efficiently.
0/2000 characters

Save Cancel