☎  076 959 6407✉  support@quizcrazepro.co.za
Learn. Practice. Build your future.
BlogHelpContact
G

Google Professional Machine Learning Engineer

280 Questions120 Minutes70% Passing Score▣ Updated: Sep 2026

Question 22 of 280

Single answer
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?
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']] )
Correct Answer: D

data = json.dumps( signature_name: serving_default, instances [['a', 'b'], ['c', 'd'], ['e', 'f']] )

Explanation

The correct answer is highlighted above. Review the wording carefully, then use the next question to continue building your understanding of Google certification topics.

About this practice exam

Review 280 Google questions with answers and explanations. Use the navigation to move through the exam at your own pace.