hiexam
microsoft · AI-102 · Q291 · code_completion · azure_openai, sdk_usage, code_completion

You have an Azure subscription that contains an Azure OpenAI resource named AI1. You plan to develop a console app tha…

You have an Azure subscription that contains an Azure OpenAI resource named AI1. You plan to develop a console app that will answer user questions. You need to call AI1 and output the results to the console. How should you complete the code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
OpenAIClient client =
    new OpenAIClient(new Uri(endpoint), new AzureKeyCredential(key));
Response<Completions> response =
    client.{{slot1}}("{{slot2}}", {{slot3}});

Console.WriteLine({{slot4}});
Correct slot values

Answer hidden

Unlock AI-102

First 5 questions of every exam are free. Unlock the rest.

Includes
  • · All — questions
  • · Verified answers + AI explanations
  • · Spaced-repetition mistake notebook
  • · Phone, tablet, laptop sync

One-time payment. Doesn't auto-renew. · Already paid? Sign in