CERTIFIED-MACHINE-LEARNING-PROFESSIONAL · Question #34
CERTIFIED-MACHINE-LEARNING-PROFESSIONAL Question #34: Real Exam Question with Answer & Explanation
The correct answer is D: Replace list with webhooks in the endpoint URL. Option D is correct because the MLflow Model Registry Webhooks REST API uses /webhooks - not /list - as the correct path segment in the endpoint URL for retrieving webhook information. Using /list points to a non-existent or incorrect endpoint, causing the request to fail even if
Question
A machine learning engineer wants to view all of the active MLflow Model Registry Webhooks for a specific model. They are using the following code block: Which of the following changes does the machine learning engineer need to make to this code block so it will successfully accomplish the task?
Options
- AThere are no necessary changes
- BReplace list with view in the endpoint URL
- CReplace POST with GET in the call to http request
- DReplace list with webhooks in the endpoint URL
- EReplace POST with PUT in the call to http request
Explanation
Option D is correct because the MLflow Model Registry Webhooks REST API uses /webhooks - not /list - as the correct path segment in the endpoint URL for retrieving webhook information. Using /list points to a non-existent or incorrect endpoint, causing the request to fail even if all other parameters are valid.
Option A is wrong because the code clearly has an incorrect endpoint URL that must be fixed. Option B is wrong because view is not a valid endpoint segment in the MLflow Webhooks API - swapping list for view simply replaces one invalid path with another. Option C is wrong because POST is the correct HTTP method for this API call; the Databricks MLflow REST API uses POST (not GET) for webhook operations, including retrieval. Option E is wrong because PUT is used for updating resources, not for reading/viewing them.
Memory tip: Think of the endpoint as asking the API "give me the webhooks" - the noun you want back is the noun in the URL. list sounds like an action (verb), but REST APIs typically use the resource name (webhooks) in the path, not a verb describing what you want to do with it.
Community Discussion
No community discussion yet for this question.