0
0
MLOpsdevops~20 mins

Pipeline scheduling and triggers in MLOps - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Pipeline Trigger Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding pipeline trigger types

Which pipeline trigger type will start a pipeline automatically when new code is pushed to the main branch?

AWebhook trigger
BScheduled trigger
CManual trigger
DPull request trigger
Attempts:
2 left
💡 Hint

Think about what happens immediately after code changes are pushed.

💻 Command Output
intermediate
2:00remaining
Output of a cron schedule in pipeline config

Given this cron schedule in a pipeline YAML config, what is the next run time if today is Monday 10:00 AM?

schedule: '0 12 * * 1'
AToday at 12:00 PM
BNext Monday at 12:00 PM
CTomorrow at 12:00 PM
DToday at 10:00 AM
Attempts:
2 left
💡 Hint

Check what the cron expression means: minute hour day month weekday.

🔀 Workflow
advanced
2:00remaining
Pipeline trigger order with multiple triggers

A pipeline has both a scheduled trigger set for daily 2 AM and a webhook trigger on code push. If code is pushed at 1:50 AM, which triggers will start the pipeline and in what order?

AOnly webhook trigger starts pipeline immediately at 1:50 AM
BScheduled trigger runs at 2 AM, webhook ignored
CWebhook trigger starts pipeline at 1:50 AM, then scheduled trigger runs again at 2 AM
DPipeline runs only once at 2 AM combining both triggers
Attempts:
2 left
💡 Hint

Consider if triggers are independent or if one cancels the other.

Troubleshoot
advanced
2:00remaining
Troubleshooting pipeline not triggering on code push

A pipeline with a webhook trigger does not start when code is pushed. Which is the most likely cause?

AThe code push was to a branch not monitored by the webhook
BThe pipeline is scheduled to run only at midnight
CThe pipeline YAML file has syntax errors
DThe webhook URL is incorrect or missing in the code repository settings
Attempts:
2 left
💡 Hint

Check the connection between the code repository and the pipeline system.

Best Practice
expert
2:00remaining
Best practice for combining scheduled and event triggers

What is the best practice when configuring a pipeline with both scheduled and event-based triggers to avoid redundant runs?

ADisable one trigger type to avoid any overlap
BUse a flag file or state check in the pipeline to skip runs if recent event-triggered run occurred
CSet both triggers to run at the exact same time
DIgnore redundancy; pipelines can run multiple times without issues
Attempts:
2 left
💡 Hint

Think about how to prevent running the same work twice unnecessarily.