The correct answer is that the code interpreter tool does not support visualization libraries. This is because Azure AI Foundry’s code interpreter operates in a sandboxed Python environment intentionally stripped of resource-intensive packages like Matplotlib, Seaborn, or Plotly to maintain security and performance, so any attempt to generate plots will fail with import or runtime errors. On the AI-102 exam, this tests your understanding of the tool’s sandbox limitations versus its intended use for data manipulation and file generation—a common trap is assuming the interpreter mirrors a full local Python environment. To remember this, think “code interpreter is for code, not charts”; if a question mentions plotting, visualize the missing libraries as the root cause.
AI-102 Plan and manage an Azure AI solution Practice Question
This AI-102 practice question tests your understanding of plan and manage an azure ai solution. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Exhibit
"Azure AI Foundry agent definition:\n{ \"name\": \"customer-support-agent\", \"instructions\": \"Respond to customer queries...\", \"tools\": [{\"type\": \"code_interpreter\"}]}"
Refer to the exhibit. A developer creates an agent in Azure AI Foundry with a code_interpreter tool. The agent is supposed to generate plots but returns errors. What is the most likely cause?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue: "most likely"
Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The code interpreter tool does not support visualization libraries
The code_interpreter tool in Azure AI Foundry is designed for executing Python code in a sandboxed environment, but it does not include or support visualization libraries such as Matplotlib, Seaborn, or Plotly. Therefore, any attempt to generate plots using these libraries will result in errors, making option C the correct answer.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
✗
The instructions are too generic
Why it's wrong here
Instructions are not the cause of plotting errors.
The code interpreter tool does not support visualization libraries
Why this is correct
Code interpreter has limited capabilities; plotting may require additional configuration.
Clue confirmation
The clue word "most likely" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
✗
The agent name is invalid
Why it's wrong here
Agent name is valid.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates assume the code_interpreter tool supports all common Python libraries, including visualization ones, because it is based on Python, but Azure AI Foundry intentionally restricts the environment to prevent security risks and resource abuse.
Detailed technical explanation
How to think about this question
The code_interpreter tool runs Python in a restricted environment with a predefined set of allowed libraries, typically limited to data manipulation and basic I/O (e.g., pandas, numpy, json). Visualization libraries like Matplotlib require GUI backends or file output capabilities that are not available in this sandbox. In real-world scenarios, developers must use alternative approaches such as generating plot data as CSV or JSON and rendering it externally, or using Azure's built-in charting capabilities.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Plan and manage an Azure AI solution — This question tests Plan and manage an Azure AI solution — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: The code interpreter tool does not support visualization libraries — The code_interpreter tool in Azure AI Foundry is designed for executing Python code in a sandboxed environment, but it does not include or support visualization libraries such as Matplotlib, Seaborn, or Plotly. Therefore, any attempt to generate plots using these libraries will result in errors, making option C the correct answer.
What should I do if I get this AI-102 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
This AI-102 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-102 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.