Databricks Machine Learning Associate exam dumps

Databricks Machine Learning Associate practice question 648 of 656

Databricks Certified Machine Learning Associate. Associate level, Databricks. Free question with the correct answer and a full explanation.

Databricks Machine Learning Associate Question 648

Select 3

You are tasked with deploying a machine learning model for real-time inference using Databricks. After deploying the model as a REST API endpoint, which of the following steps is required to query the model for predictions?

  1. A

    Send an HTTP POST request to the endpoint with the input data in JSON format.

  2. B

    Send an HTTP GET request to the endpoint to retrieve the model's training data.

  3. C

    Authenticate the request using the Databricks personal access token.

  4. D

    Send the model's feature schema along with the input data in the request payload.

  5. E

    Include the Content-Type header as 'application/json' in the request.

Show answer and explanation

Correct answers: A, C, E

Explanation

To query a deployed machine learning model in Databricks for real-time inference, you send an HTTP POST request to the endpoint with the input data in JSON format. The request must include proper authentication (e.g., a Databricks personal access token) and the 'Content-Type' header set to 'application/json' to ensure the payload is correctly processed. GET requests and feature schema are not required for this process.

  • A. Correct.

    Correct. To query the deployed model for predictions, you need to send an HTTP POST request with the input data in JSON format to the endpoint.

  • B. Incorrect.

    Incorrect. GET requests are not used for querying models for predictions; they are typically used for retrieving static resources or information.

  • C. Correct.

    Correct. Authentication is required to access the Databricks model endpoint, and a personal access token is commonly used for this purpose.

  • D. Incorrect.

    Incorrect. The feature schema is not required in the request payload when querying a deployed model for predictions. Only the input data in the correct format is needed.

  • E. Correct.

    Correct. Specifying the Content-Type header as 'application/json' ensures that the server correctly interprets the input data format in the request.

Timed practice exam

Take a Databricks Machine Learning Associate practice test under exam conditions

48 questions in 90 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam