Microsoft Azure AI Engineer Associate AI-102 Practice Question

You deployed a gpt-35-turbo model in Azure OpenAI through Azure AI Foundry. From a backend service you issue a POST request to the endpoint https://myresource.openai.azure.com/openai/deployments/gpt-35-turbo/chat/completions?api-version=2023-07-01-preview.%5CnWhich request body correctly submits a prompt that asks the model to return a Python function and makes the response deterministic across repeated calls?

  • { "inputs": "Write a Python function that multiplies two numbers. Return only the code.", "top_p": 1 }

  • { "messages": [ {"role": "system", "content": "You are a helpful assistant that writes Python code."}, {"role": "user", "content": "Write a Python function that multiplies two numbers. Return only the code enclosed in triple backticks."} ], "temperature": 0 }

  • { "prompt": "Write a Python function that multiplies two numbers. Return only the code.", "temperature": 0 }

  • { "text": "Write a Python function that multiplies two numbers.", "sampling_temperature": 0 }

Microsoft Azure AI Engineer Associate AI-102
Implement generative AI solutions
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot