|
| 1 | +### YamlMime:ModuleUnit |
| 2 | +uid: learn.wwl.foundry-sdk.knowledge-check |
| 3 | +title: Knowledge check |
| 4 | +metadata: |
| 5 | + title: Knowledge check |
| 6 | + description: Check your understanding of the Microsoft Foundry SDK. |
| 7 | + author: ivorb |
| 8 | + ms.author: berryivor |
| 9 | + ms.date: 02/20/2026 |
| 10 | + ms.topic: unit |
| 11 | + ai-usage: ai-generated |
| 12 | + ms.collection: |
| 13 | + - wwl-ai-copilot |
| 14 | +durationInMinutes: 5 |
| 15 | +quiz: |
| 16 | + title: Check your knowledge |
| 17 | + questions: |
| 18 | + - content: What is the primary purpose of the project client in the Microsoft Foundry SDK? |
| 19 | + choices: |
| 20 | + - content: To generate AI responses using the Responses API |
| 21 | + isCorrect: false |
| 22 | + explanation: Incorrect. The OpenAI-compatible client is used to generate AI responses. |
| 23 | + - content: To access Foundry-native operations like listing connections and managing project properties |
| 24 | + isCorrect: true |
| 25 | + explanation: Correct. The project client provides access to Foundry-native operations that don't have OpenAI equivalents. |
| 26 | + - content: To deploy new AI models to the project |
| 27 | + isCorrect: false |
| 28 | + explanation: Incorrect. Model deployment is done through the Foundry portal, not the SDK. |
| 29 | + - content: Which method do you use to generate responses with the Responses API? |
| 30 | + choices: |
| 31 | + - content: client.chat.completions.create() |
| 32 | + isCorrect: false |
| 33 | + explanation: Incorrect. This is the older chat completions API method. |
| 34 | + - content: client.responses.create() |
| 35 | + isCorrect: true |
| 36 | + explanation: Correct. The Responses API uses the responses.create() method. |
| 37 | + - content: client.generate.response() |
| 38 | + isCorrect: false |
| 39 | + explanation: Incorrect. This method doesn't exist in the SDK. |
| 40 | + - content: What does the previous_response_id parameter do in the Responses API? |
| 41 | + choices: |
| 42 | + - content: It links responses together to maintain conversation context |
| 43 | + isCorrect: true |
| 44 | + explanation: Correct. The previous_response_id parameter maintains conversation context across multiple API calls. |
| 45 | + - content: It retrieves an older response from the database |
| 46 | + isCorrect: false |
| 47 | + explanation: Incorrect. Use the responses.retrieve() method to retrieve previous responses. |
| 48 | + - content: It deletes previous responses to save storage space |
| 49 | + isCorrect: false |
| 50 | + explanation: Incorrect. The parameter doesn't delete responses. |
| 51 | + - content: Which package must you install to use the Microsoft Foundry SDK in Python? |
| 52 | + choices: |
| 53 | + - content: Package `azure-foundry` |
| 54 | + isCorrect: false |
| 55 | + explanation: Incorrect. This package doesn't exist. |
| 56 | + - content: Package `azure-ai-projects` |
| 57 | + isCorrect: true |
| 58 | + explanation: Correct. The `azure-ai-projects` package provides the Microsoft Foundry SDK for Python. |
| 59 | + - content: Package `microsoft-foundry-sdk` |
| 60 | + isCorrect: false |
| 61 | + explanation: Incorrect. This package doesn't exist. |
| 62 | + - content: What advantage does the Responses API offer over traditional chat completions? |
| 63 | + choices: |
| 64 | + - content: It works only with Azure OpenAI models |
| 65 | + isCorrect: false |
| 66 | + explanation: Incorrect. The Responses API works with both Azure OpenAI and Foundry direct models. |
| 67 | + - content: It provides stateful, multi-turn conversation support |
| 68 | + isCorrect: true |
| 69 | + explanation: Correct. The Responses API maintains conversation context and provides stateful interactions. |
| 70 | + - content: It requires less authentication configuration |
| 71 | + isCorrect: false |
| 72 | + explanation: Incorrect. Both APIs require the same authentication approach. |
0 commit comments