0
0
MLOpsdevops~10 mins

Online vs offline feature stores in MLOps - Interactive Practice

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

Complete the code to specify the type of feature store used for real-time predictions.

MLOps
feature_store_type = "[1]"  # Used for serving features in real-time
Drag options to blanks, or click blank then click option'
Aoffline
Barchive
Conline
Dbatch
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing offline because it stores features, but it is for batch use.
2fill in blank
medium

Complete the code to specify the feature store used for training machine learning models.

MLOps
training_feature_store = "[1]"  # Used for batch processing and model training
Drag options to blanks, or click blank then click option'
Astreaming
Bonline
Creal-time
Doffline
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing online with offline because both store features.
3fill in blank
hard

Fix the error in the code by choosing the correct feature store type for low latency access.

MLOps
def get_feature_store(store_type):
    if store_type == "[1]":
        return "Low latency access for predictions"
    else:
        return "Batch access for training"
Drag options to blanks, or click blank then click option'
Aoffline
Bonline
Cbatch
Darchive
Attempts:
3 left
💡 Hint
Common Mistakes
Using offline instead of online for low latency.
4fill in blank
hard

Fill both blanks to create a dictionary mapping feature store types to their main use cases.

MLOps
feature_store_usage = {
    "[1]": "Used for batch training",
    "[2]": "Used for real-time serving"
}
Drag options to blanks, or click blank then click option'
Aoffline
Bonline
Carchive
Dstreaming
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up offline and online in the dictionary.
5fill in blank
hard

Fill all three blanks to complete the code that checks feature store latency and usage.

MLOps
def check_store(store):
    latency = store.get_latency()
    if latency [1] 10:
        usage = "[2]"
    else:
        usage = "[3]"
    return usage
Drag options to blanks, or click blank then click option'
A<=
Bonline
Coffline
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong comparison operator or swapping online/offline usage.