Path8.Mod1.b - Intro to DevOps Principles for ML - Trigger with Azure ML Events Flashcards

Augmented learning: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-use-event-grid?view=azureml-api-2

1
Q

The Microsoft.MachineLearningServices.<Event Types> for Azure Machine Learning in EventGrid that’s raised when an ML Experiment completes

A

RunCompleted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The Microsoft.MachineLearningServices.<Event Types> for Azure Machine Learning in EventGrid that’s raised when an ML Model is registered to a workspace

A

ModelRegistered

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The Microsoft.MachineLearningServices.<Event Types> for Azure Machine Learning in EventGrid that’s raised when an Inference Service Deployment is completed

A

ModelDeployed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The Microsoft.MachineLearningServices.<Event Types> for Azure Machine Learning in EventGrid that’s raised when a data drift detection job for two datasets is completed

A

DatasetDriftDetected

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The Microsoft.MachineLearningServices.<Event Types> for Azure Machine Learning in EventGrid that’s raised when a run status changed

A

RunStatusChanged

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Permissions necessary to use Event Grid and to subcribe to ML Events with your Azure ML Workspace

A

Like most anything, you need Contributor or Owner

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Tools used for subscribing to ML Events

A

Azure Portal, Powershell or Azure CLI

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

TEWs ET PO Ig FC

Five Best Practices for consuming ML Events

A
  • Check the Topic of the Message to ensure it’s coming from the expected Workspace
  • Check the EventType to ensure it’s one you can process
  • Check etag and sequencer fields to ensure processing order (messages can arrive out of order)
  • Ignore fields you don’t understand (new features will break you otherwise)
  • Failed or cancelled ML operations will not trigger an Event; consider this when developing your event handlers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

F LA EH DFP GW (AZ-900)

Options for Event Handler implementation

A
  • Azure Functions
  • Azure Logic Apps
  • Azure Event Hubs
  • Azure Data Factory Pipeline
  • Generic webhooks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

CLI code for subscribing to an ML Event
- What --endpoint and --endpoint-type represent
- Two datapoints the --source-resource-id needs
- The one datapoint the --endpoint needs

A
  • --endpoint and --endpoint-type indicate the Event Handling mechanism
  • The EventGrid subscription needs
    – name
    – source (source-resource-id)
    – endpoint type
    – endpoint
    – included-event-types: the events you want to subscribe the handler to
    – Has optional filter by subject start string
  • --source-resource-id needs subscription ID and Workspace name
  • --endpoint needs subscription ID
// Select the Azure subscription that contains the workspace
az account set --subscription "<name or ID of the subscription>"

// Subscribe to the machine learning workspace. This uses EventHub
az eventgrid event-subscription create 
  --name {eventGridFilterName} 
	--source-resource-id /subscriptions/{subId}/resourceGroups/{RG}/providers/Microsoft.MachineLearningServices/workspaces/{wsName} 
	--endpoint-type eventhub 
	--endpoint /subscriptions/{SubID}/resourceGroups/TestRG/providers/Microsoft.EventHub/namespaces/n1/eventhubs/EH1 
	--included-event-types Microsoft.MachineLearningServices.ModelRegistered 
	--subject-begins-with "models/mymodelname"
How well did you know this?
1
Not at all
2
3
4
5
Perfectly