0
0
MLOpsdevops~10 mins

Why automated retraining keeps models fresh in MLOps - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to schedule automated retraining using a cron job.

MLOps
0 0 * * * [1] retrain_model.sh
Drag options to blanks, or click blank then click option'
Astart
Bbash
Cexecute
Drun
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'run' or 'execute' which are not shell commands.
Omitting the interpreter command.
2fill in blank
medium

Complete the code to load new training data from the correct directory.

MLOps
data = load_data('[1]/new_data.csv')
Drag options to blanks, or click blank then click option'
A/data
B/old_data
C/archive
D/backup
Attempts:
3 left
💡 Hint
Common Mistakes
Using old or backup folders which do not have fresh data.
Incorrect file paths causing file not found errors.
3fill in blank
hard

Fix the error in the retraining function call to use the correct parameter name.

MLOps
retrain_model([1]=data)
Drag options to blanks, or click blank then click option'
Atrain_data
Bdata
Cinput_data
Ddataset
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect parameter names causing runtime errors.
Passing data without specifying the correct parameter.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that filters fresh data and squares values.

MLOps
{item: item[1]2 for item in dataset if item [2] 10}
Drag options to blanks, or click blank then click option'
A**
B%
C>
D+
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong operators causing syntax errors.
Filtering with incorrect comparison operators.
5fill in blank
hard

Fill all three blanks to build a dictionary of uppercase keys, values, and filter condition.

MLOps
result = { [1]: [2] for [3], v in data.items() if v > 0}
Drag options to blanks, or click blank then click option'
Ak.upper()
Bv
Ck
Ditem
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong variable names causing errors.
Not applying uppercase to keys.