# AI-102 — Question 402

**Type:** hot_area
**Topics:** azure, openai, code, csharp, embedding

## Question

You have an Azure subscription that is linked to a Microsoft Entra tenant. The subscription ID is x1xx11x1-x111-xxxx-xxxx-x1111xxx1x1 and the tenant ID is 1y1y1yyy-1y1y-1y1y-yy11-y1y1y11111y1.

The subscription contains an Azure OpenAI resource named OpenAI1 that has a primary API key of 1111a111a11a111aaa11a11a1a11a11aa. OpenAI1 has a deployment named embeddings1 that uses the text-embedding-ada-002 model.

You need to query OpenAI and retrieve embeddings for text input.

How should you complete the code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

## Correct Answer

_See scenario._

---
Source: https://hiexam.net/q/microsoft/AI-102/402  
Practice (tracked): https://hiexam.net/study/AI-102/practice