nerdexam
GoogleGoogle

PROFESSIONAL-MACHINE-LEARNING-ENGINEER · Question #2

PROFESSIONAL-MACHINE-LEARNING-ENGINEER Question #2: Real Exam Question with Answer & Explanation

Sign in or unlock PROFESSIONAL-MACHINE-LEARNING-ENGINEER to reveal the answer and full explanation for question #2. The question stem and answer options stay visible for context.

Submitted by renata2k· Apr 18, 2026ML pipeline operationalization

Question

You trained a text classification model. You have the following SignatureDefs: You started a TensorFlow-serving component server and tried to send an HTTP request to get a prediction using: headers = {"content-type": "application/json"} json_response = requests.post('http: //localhost:8501/v1/models/text_model:predict', data=data, headers=headers) What is the correct way to write the predict request?

Options

  • Adata = json.dumps({"signature_name": "seving_default", "instances" [[`ab', `bc', `cd']]})
  • Bdata = json.dumps({"signature_name": "serving_default", "instances" [[`a', `b', `c', `d', `e', `f']]})
  • Cdata = json.dumps({"signature_name": "serving_default", "instances" [[`a', `b', `c'], [`d', `e', `f']]})
  • Ddata = json.dumps({"signature_name": "serving_default", "instances" [[`a', `b'], [`c', `d'], [`e', `f']]})

Unlock PROFESSIONAL-MACHINE-LEARNING-ENGINEER to see the answer

You've previewed enough free PROFESSIONAL-MACHINE-LEARNING-ENGINEER questions. Unlock PROFESSIONAL-MACHINE-LEARNING-ENGINEER for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#TensorFlow Serving#Prediction API#JSON Request Format#Text Model Input
Full PROFESSIONAL-MACHINE-LEARNING-ENGINEER PracticeBrowse All PROFESSIONAL-MACHINE-LEARNING-ENGINEER Questions