AI-103 Implement Generative AI And Agentic Solutions Practice Question
You are implementing a tool call in a Prompt Flow. The tool needs to interact with an external REST API. What is the recommended way to manage the API credentials securely?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Use an Azure AI Foundry Connection of type Custom
Azure AI Foundry Connections securely store secrets for tool access.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Pass the key as a parameter in the input prompt
Why it's wrong here
This exposes the key in logs.
- ✗
Hardcode the API key in the Prompt Flow code
Why it's wrong here
Hardcoding secrets is a security vulnerability.
- ✗
Use an environment variable in the flow definition
Why it's wrong here
Environment variables are not the designated secure store in Foundry.
- ✓
Use an Azure AI Foundry Connection of type Custom
Why this is correct
Connections store secrets securely.
About these practice questions
Courseiva writes every AI-103 question from scratch — 510 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official Microsoft exam blueprint
This AI-103 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-103 exam.