Interview preparation
AI-103 and Azure fundamentals interview questions
161 questions from 39 topics, each with a model answer. Many include the follow-up an interviewer is likely to ask next. Use the mock interview to practise thinking on your feet.
Mock interview
Nimbus plays the interviewer. Answer out loud, then compare with the model answer.
Choose Models and Foundry Services for the Task
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why not use the biggest model for everything?
Model answer
It costs more, it's slower, and most jobs don't need it. I'd start with the smallest model that passes my test set, and only move up when it fails. A labelling job on a small language model can cost a fraction of the same job on a reasoning model.
Intermediate When do you pick a Foundry Tool instead of a model?
Model answer
When the job is fixed and well defined: extract fields from invoices, transcribe speech, detect PII, translate text. The tool gives a predictable output shape and price, and there's no prompt to maintain. I'd use a model when the task needs reasoning, or custom output that the tool can't give.
Experienced developer How do you compare two candidate models fairly?
Model answer
I build a test set from real inputs with expected answers, run both models with the same prompt, and score with evaluators for quality, plus cost and latency. The catalog's quality index is a starting point, but my data decides. I also check the model card for input types, context window, region and deployment type, because a great model I can't deploy in my region is no use.
Scenario A bank needs to summarise 200,000 emails a night, answer a few hard legal questions a day and read scanned cheques. What do you choose?
Model answer
Three different things. A small or mini model for the email summaries, because volume is high and the task is narrow. A reasoning model for the legal questions, because they're few and hard. Content Understanding for the cheques, because it reads documents into fields without prompt work.
Retrieval, Indexing and Agent Memory Choices
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between knowledge and memory for an agent?
Model answer
Knowledge is what's true for everyone, like the refund policy, and it comes from a knowledge base or search index. Memory is what the agent learned about one person, like "she's vegetarian". Knowledge is curated by the company. Memory is built from conversations and scoped to the user.
Intermediate Why hybrid search for a policy assistant?
Model answer
Keyword search is great for exact terms like "PCI-07" or a part number, and vector search is great when the user words it differently from the document. Hybrid runs both and merges the lists, so I get both kinds of hit. Adding the semantic ranker then orders the top results by meaning.
Experienced developer How do you decide between an indexer and pushing documents yourself?
Model answer
If the data lives in a supported source such as Blob Storage, SQL or Cosmos DB, an indexer handles scheduling, change tracking and skills for me. I'd push through the API when the data comes from my own app and needs near real-time updates, or the source isn't supported.
Scenario Users complain the agent forgets their allergies, and sometimes quotes a retired policy. What do you change?
Model answer
Two separate fixes. For allergies, I'd turn on user profile memory scoped to the signed-in user. For the retired policy, I'd fix the index: a scheduled indexer that notices deletions, and metadata such as effective date so retrieval can filter. Memory can't fix stale knowledge, and a fresh index can't remember a person.
Foundry Infrastructure and Deployment Options
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between a Foundry resource and a project?
Model answer
The resource is the Azure resource that owns the deployments, keys, networking and identity. A project is a workspace inside it for one team or app, with its own agents, files and access. I'd create one resource per environment and boundary, and projects for the teams that share it.
Intermediate When do you choose the standard agent setup?
Model answer
When I need to control where agent data lives: customer-managed keys, private networking, retention rules or audit. It puts threads in my Cosmos DB, files in my Storage account and vectors in my Azure AI Search. The basic setup is quicker and fine for prototypes or low-risk data.
Experienced developer A customer says data must not leave the EU. Which deployment type?
Model answer
Data Zone Standard, or Data Zone Provisioned if I need reserved capacity. Global deployments may process requests in any region. A regional Standard deployment would also keep data in one geography, but Data Zone gives better capacity and the EU residency they asked for. I'd also check that the model I want is offered in that zone.
Scenario Marketing wants 50,000 product descriptions rewritten by morning. Chat traffic is steady all day. How do you deploy?
Model answer
Two deployments. Provisioned or Standard for the steady chat traffic. Global Batch for the overnight job, because it's cheaper and the 24-hour window is fine. Batch also keeps that job from using up the chat deployment's quota.
Configure Model and Agent Deployments
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why does your code use a deployment name and not the model name?
Model answer
Because the deployment is what I configure in Foundry: version, capacity, guardrail. If I need a newer model, I change the deployment, and the code keeps working. The name is a stable handle.
Intermediate What does the version upgrade policy do?
Model answer
It controls what happens when a new default version comes out. With no auto upgrade, my deployment stays pinned until the version retires. With the other options, Azure moves it to the new default on a schedule. I pin for regulated apps and re-run my evaluations before changing.
Experienced developer Walk me through rolling out a new agent prompt safely.
Model answer
I create a new agent version with the changed instructions, test that version against my evaluation set in a dev project, and only then point production at it. If users report problems, I switch the active version back to the previous one. Versions are kept, so nothing is lost.
Scenario A model version is being retired in 60 days and your app depends on its exact wording. What do you do?
Model answer
I'd deploy the replacement version next to the old one under a new deployment name, run my test set against both, adjust prompts where scores drop, then switch traffic with a percentage rollout and finally delete the old deployment. I wouldn't wait for the forced upgrade date.
CI/CD for Foundry Projects
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why does the pipeline use workload identity federation instead of a client secret?
Model answer
A secret can leak, expire and needs rotating. With federation, GitHub proves who the job is with a short-lived OIDC token, and Azure trusts that because I set up a federated credential for that repo and branch. There's nothing stored to steal.
Intermediate What do you version-control for an agent project?
Model answer
The Bicep for the resource, projects and deployments, the agent definition with its instructions and tool list, the evaluation dataset and thresholds, and the pipeline file. Anything that changes behaviour belongs in Git, so a review shows exactly what changed.
Experienced developer How do you stop a prompt change that makes answers worse?
Model answer
I add an evaluation step to the pipeline that runs a fixed test set through evaluators such as groundedness and relevance, and fails the job under a threshold. Promotion to test and prod depends on that step passing, and prod also needs a manual approval from a protected environment.
Scenario Dev, test and prod must be isolated, but the same definition must run in each. How?
Model answer
One Bicep template with parameters per environment, deployed into separate Foundry projects or resources with their own RBAC and networking. The agent definition is the same file. Only parameters such as model capacity, endpoints and connection names differ.
Quotas, Rate Limits, Scaling and Cost
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What does an HTTP 429 from a model endpoint mean?
Model answer
I've gone over the tokens-per-minute or requests-per-minute limit for that deployment. The retry-after header says how long to wait. The fix is to back off and retry, or to give the deployment more capacity.
Intermediate How do you split quota between deployments?
Model answer
Quota is per subscription, model, deployment type and region. Each deployment gets a slice of it, so giving one deployment more leaves less for others. I'd give production the larger slice, keep a small one for tests, and delete unused deployments to release quota.
Experienced developer When would you choose provisioned throughput with spillover?
Model answer
When the base load is steady and high enough that reserved PTUs are cheaper than pay-per-token, and the app needs steady latency. I size the PTUs for the base load, not the peak, and enable spillover so peak requests go to a standard deployment instead of failing.
Scenario Costs doubled after a feature launch and nobody knows why. What do you check?
Model answer
Token metrics per deployment and per project in Azure Monitor and cost analysis, to find which deployment grew. Then the prompts: long system messages, large retrieved context, and loops of tool calls. I'd cut context, cache the stable prefix, move easy tasks to a smaller model, and set a token budget with alerts so the next jump is seen early.
Monitor Models, Agents and Search Indexes
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What would you look at first when users say answers got worse?
Model answer
I'd look at the continuous evaluation scores, mostly groundedness and relevance, and whether anything changed recently: a model version, a prompt, or the indexed content. The traces for a bad answer show what was retrieved and what the model saw.
Intermediate How do traces help you debug an agent?
Model answer
A trace shows each step in order: the user message, the model call with token counts, each tool call with its arguments, approvals, and the final answer. I can see that a bad answer came from an empty retrieval result, not from the model, for example.
Experienced developer Groundedness dropped from 4.6 to 3.4 after a policy update. How do you find the cause?
Model answer
I'd check the search index first. Did the nightly indexer fail, are the new policy documents missing, or are old and new versions both indexed? Then I'd compare traces of failing answers for their retrieved passages. If retrieval is fine, I'd test the prompt and the model version. Index problems are the most common cause.
Scenario Search is fast in the morning and slow at 3 PM. What do you check and change?
Model answer
Search latency and throttled queries in the metrics at that hour. If queries are throttled, I'd add replicas, because replicas serve queries. If the index is too large for the partitions, I'd add partitions. I'd also look at query shape, such as large top values or heavy semantic ranking.
Secure Foundry: Managed Identity, Keyless Auth and Private Networking
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why is keyless authentication better than an API key?
Model answer
A key is a secret that can leak, be shared and never expire. An Entra ID token is short-lived, tied to an identity I can audit, and access comes from a role I can remove. With a managed identity there's no secret in code or config at all.
Intermediate What do you do to a Foundry resource so keys no longer work?
Model answer
Set disableLocalAuth to true, from the portal's resource settings or with az resource update. After that, only Entra ID tokens are accepted. I'd first make sure every caller is using DefaultAzureCredential with the right role, or they'll start getting 401 and 403 errors.
Experienced developer A private endpoint is created, but the app in the VNet still resolves the public IP. Why?
Model answer
The private DNS zone isn't linked to the VNet, or the zone group isn't attached to the endpoint, so the name still resolves to the public address. I'd create the privatelink zones for the Foundry resource (cognitiveservices and openai and services.ai domains), link them to the VNet and check the A records.
Scenario An app runs in a web app and needs to call a model and read a blob. How do you give it access?
Model answer
Turn on the web app's managed identity, give it Foundry User on the resource and Storage Blob Data Reader on the storage account, and let the code use DefaultAzureCredential. No keys, and each permission is scoped to what the app needs.
Content Filters, Guardrails and Risk Detection
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between a jailbreak and an indirect attack?
Model answer
A jailbreak is the user typing instructions to make the model ignore its rules. An indirect attack hides those instructions in content the model reads, such as a web page, an email or a tool result. The user may be innocent and still trigger it.
Intermediate Why do agents need controls at the tool call and tool response points?
Model answer
Because agents act. A tool response from the web can carry hidden instructions, and a tool call could carry data it shouldn't send. Checking only user input and final output misses those two steps in the middle.
Experienced developer How do you choose between annotate and block?
Model answer
I'd annotate first for a new control, so I can see what it would catch without hurting users, then review a sample and move to block once the false positive rate is acceptable. High-severity categories and prompt attacks go to block from day one.
Scenario A support agent browses vendor web pages and then emails refunds. What guardrail do you build?
Model answer
Block indirect attacks at tool response, block jailbreaks at user input, filter harm categories at input and output, and add a PII control at output. Then I'd attach it to the agent, and add human approval for the refund tool, because filters reduce risk but don't replace approval.
Safety Evaluations, Tracing and Auditing
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What does an evaluator do?
Model answer
It scores a response. For example, groundedness checks if the answer is supported by the retrieved text, and a safety evaluator checks for harmful content. I run them on a test set or on live samples, and I get a score and a short reason for each row.
Intermediate Why run red teaming if you already evaluate on a test set?
Model answer
A test set has the questions I thought of. Red teaming searches for the ones I didn't: jailbreaks, encoded prompts, multi-turn pressure. It gives an attack success rate I can lower by adding controls, then scan again.
Experienced developer What should an audit trail for an agent contain?
Model answer
Who asked, what the model saw, which documents were retrieved, every tool call with arguments, guardrail results, any human approval with the approver and time, and the model, agent and prompt versions. With tracing in Application Insights, a retention period and restricted access, an auditor can replay why a refund happened.
Scenario Compliance asks you to prove the loan agent doesn't give unfair advice. What do you present?
Model answer
Evaluation runs on a representative test set with fairness-related and safety evaluators, the red team report, the guardrail settings, and sampled traces with approvals. I'd also show the process: evaluators in the pipeline gate, so a regression blocks release. Evidence over time matters more than a single run.
Govern Agent Behavior: Oversight, Constraints and Tool Access
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why isn't "never delete customers" in the prompt enough?
Model answer
A prompt is a request to the model, and the model can be tricked or can make a mistake. If the delete tool isn't on the allowed list, the agent can't call it, whatever the prompt says. Real limits are enforced outside the model.
Intermediate Which actions should need human approval?
Model answer
Anything hard to undo or with real cost: refunds, payments, deleting data, sending external email, changing permissions. Read-only lookups usually don't need it. I'd start strict, and relax approval for a tool once its traces show it's safe.
Experienced developer How do you give an agent access to a database without giving it too much?
Model answer
Give the agent its own identity and grant a role limited to the needed tables, preferably read-only. Expose the access as a narrow tool such as lookup_order, not a general SQL tool. Add a tool call guardrail, log calls in traces, and restrict network egress so it can only reach that service.
Scenario An agent was tricked by a web page into emailing data to an unknown address. What controls would have stopped it?
Model answer
An indirect attack control at tool response, an approval step on the send-email tool, an allow list of recipient domains in the tool itself, and network egress limits. Any one of these helps, and together they layer.
Deploy and Call Models from Your App
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why does my app pass a deployment name and not a model name?
Model answer
The deployment is the thing that exists in your resource. It points to one model, one version, one deployment type and a slice of quota. If the app used the model name, you could never change the model behind it without editing code.
Intermediate How do you pick between a large model and a small one?
Model answer
I start from the task. Hard, multistep or long-document work goes to a large or reasoning model. Simple, high-volume work such as labelling goes to a small model. Then I test both on my own examples, because a small model that passes is much cheaper.
Experienced developer How should an app authenticate to a Foundry project from Azure?
Model answer
With a managed identity and Microsoft Entra ID. I enable the identity on the host, give it a Foundry role such as Foundry User on the resource, and use DefaultAzureCredential, so there is no key in code or configuration.
Scenario A call fails with DeploymentNotFound but the model is deployed. What do you check?
Model answer
I check the model parameter first. It must be the deployment name I chose, which might be support-chat, not gpt-4.1-mini. Then I check the endpoint is for the right project and the deployment is in that resource.
Retrieval-Augmented Generation (RAG) in an App
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What problem does RAG solve?
Model answer
A model only knows what it was trained on, so it guesses about your private or recent content. RAG fetches the right pieces of your own documents first and gives them to the model, so the answer comes from them and can carry a citation.
Intermediate Why use hybrid search instead of vectors alone?
Model answer
Vectors find meaning, so a paraphrased question matches. They can miss exact codes such as a part number. Keywords catch those. Hybrid runs both and merges the results, which handles both kinds of question.
Experienced developer Retrieval looks right but answers are still poor. Where do you look?
Model answer
I check chunking first, because bad boundaries lose context. Then the embedding model, which must be the same for ingestion and queries. Then top-k and ranking, then the prompt, and finally I score groundedness and relevance on a test set instead of guessing.
Scenario The policy changes every week. Should we fine-tune?
Model answer
No. I would keep the policy in an index and refresh it, so the answers change when the documents do. Fine-tuning is slow, costs more and is not a reliable way to add facts.
Workflows, Tool-Augmented Flows and Multistep Reasoning
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why not put everything in one prompt?
Model answer
One big prompt hides where things go wrong. If classification, lookup and writing are separate steps, I can test each one, trace each one and fix the one that fails.
Intermediate What is the difference between JSON mode and structured outputs?
Model answer
JSON mode promises valid JSON, but the keys are the model's choice. Structured outputs with a strict schema promise the exact keys and types, so my code can parse the result without guessing.
Experienced developer How do you handle a flaky tool inside a flow?
Model answer
I set a timeout, retry a limited number of times, and then take a defined fallback such as marking the item for human review. The later steps must respect that fallback, and the verify step must refuse to send anything built without the facts.
Scenario A claims flow sent a wrong warranty date. What do you add?
Model answer
A verify step that compares the draft with the tool result before sending, for example that the date in the text equals the date the tool returned. If it doesn't match, the flow holds the claim.
Evaluate Models and Apps: Groundedness, Relevance and Safety
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What does groundedness measure?
Model answer
Whether the answer is backed by the context the app supplied. If the answer says something the documents never said, groundedness drops.
Intermediate Why use a fixed dataset for evaluation?
Model answer
So the comparison is fair. If I change the prompt and run the same rows through the same evaluators, any change in score comes from my change and not from different questions.
Experienced developer Groundedness is high on average but customers complain. What now?
Model answer
Averages hide rows. I look at the lowest rows, read why they failed, and check whether the test set matches real traffic. I also add cases the documents can't answer, and run safety evaluators separately because they measure different things.
Scenario The model started promising vouchers that don't exist. How do you catch that before release?
Model answer
I add that case to the evaluation set with the real context, run groundedness, and see a very low score for the row. Then I fix the instructions or retrieval and run the same dataset again to prove the score recovered.
Foundry SDKs and Connectors
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What is a connection in Foundry?
Model answer
It is a saved link from the project to another resource, like Azure AI Search, with its address and how to sign in. The app asks the project for it by name, so the address and the secret stay out of the code.
Intermediate How does the same code run on a laptop and in Azure?
Model answer
I create the client with DefaultAzureCredential. On the laptop it uses my signed-in account. In Azure it uses the managed identity of the host. The code doesn't change and holds no key.
Experienced developer What do you do when the SDK call returns 403?
Model answer
I check the role assignment for the identity on the Foundry resource and, for a connection, on the target resource too. For example the project identity needs Search Index Data Reader on the search service. Then I confirm the endpoint is for the right project.
Scenario A teammate pasted a key into code to reach Azure AI Search. What do you change?
Model answer
I create a project connection to the search service with Microsoft Entra ID authentication, assign the right role, and change the code to read the connection by name and sign in with DefaultAzureCredential. Then I rotate the key that leaked.
Design an Agent: Role, Goals, Threads and Tool Schemas
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What is the difference between a model and an agent?
Model answer
A model answers a prompt. An agent is a model with instructions, tools and a conversation, so it can look things up, take actions and keep track of the chat.
Intermediate How do you stop an agent inventing an order number?
Model answer
I define the function with order_id as a required, strict parameter, and the instructions say to ask the customer if the number is missing. The model then asks instead of filling in a made-up value.
Experienced developer What goes in instructions and what goes in the tool description?
Model answer
Instructions hold the role, goal, tone, rules and escalation. The tool description tells the model when and why to call that tool, and parameter descriptions explain each argument. The model reads both, so I keep each focused.
Scenario An agent change made answers worse. How do you recover?
Model answer
Each save is a version, so I point the application back to the previous version while I investigate, and I run the evaluation set against both to see what changed.
Agents with Retrieval, Function Calling and Memory
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Who runs a function when an agent calls it?
Model answer
Your code does. The model only asks, for example "call get_order_status with ORD-1042". Your app runs it, then sends the result back so the model can write the answer.
Intermediate When do you pick file search and when Azure AI Search?
Model answer
File search suits documents given to the agent or a conversation, such as an uploaded contract. Azure AI Search suits a curated index the company maintains, with hybrid search and ranking.
Experienced developer How do you stop memory leaking between customers?
Model answer
I scope the memory store per user, with the user ID as the scope key, so searches and updates only touch that user's items. I also set a retention period and keep an eye on what it stores.
Scenario The agent must also call a partner API. What are the options?
Model answer
If the partner publishes an OpenAPI spec, I add an OpenAPI tool. If they run an MCP server, I add an MCP tool and decide which of its tools are allowed and whether approval is required. For my own logic, a function.
Multi-Agent Orchestration
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why use several agents instead of one?
Model answer
Each agent gets a narrow job, short instructions and only the tools it needs. That makes each easier to test and less likely to pick the wrong tool than one agent that does everything.
Intermediate When is concurrent better than sequential?
Model answer
When the tasks don't depend on each other. Billing and delivery checks can run at the same time, and the total time is about the slower one. If the second task needs the first one's output, it has to be sequential.
Experienced developer What are the risks of group chat and Magentic?
Model answer
They're the least predictable, use the most model calls and take the longest. I set a maximum number of rounds, log every turn, and use them only when I can't write the steps in advance.
Scenario A customer was charged twice and the order never arrived. Which pattern?
Model answer
Concurrent is a good fit if a billing agent and a delivery agent can investigate independently and a writer merges the notes. If triage must first decide who should handle it, handoff fits.
Autonomous Agents with Safeguards and Approvals
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why not let the agent do everything itself?
Model answer
Reading an order is harmless, but sending money isn't. A model can misunderstand a message, so for actions with real impact I want a person to say yes first.
Intermediate What is the difference between an approval and a hard limit?
Model answer
An approval asks a person to decide a judgement call, and the person can say yes. A hard limit is code that refuses outright, such as a refund over ₹20,000 going to finance, so nobody can approve it by mistake.
Experienced developer How do you design the levels of autonomy?
Model answer
I classify tools by impact. Read-only tools run freely. Reversible, low-value writes can run with limits and logging. High-impact or irreversible writes require approval. Anything beyond policy is blocked in code. I also cap steps, time and cost per run.
Scenario An auditor asks who approved a refund last Tuesday. How do you answer?
Model answer
From the trace. It records the tool call, the arguments, the approval request and the decision with the approver and time. That's why I log approvals, not just the final result.
Monitor, Evaluate and Debug Agents
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why not just read the agent's final answer?
Model answer
The answer can sound right while the agent did something wrong on the way, like calling a tool with a made-up order number. Agent evaluators look at the whole run, including the tool calls.
Intermediate What do the three main agent evaluators check?
Model answer
Intent resolution checks it understood the goal, tool call accuracy checks the tools and arguments it used, and task adherence checks it kept to its instructions and scope.
Experienced developer How do you turn failing runs into improvements?
Model answer
I group failures by cause. If many runs invent an argument, I tighten the schema and instructions. If an agent claims an action without a tool call, I add the missing tool and require approval. Then I rerun the same dataset to prove the fix and add the cases to the test set.
Scenario An agent is live. How do you notice it getting worse?
Model answer
I run continuous evaluation on a sample of real conversations, watch the scores and failure rates on a dashboard, and set an alert on a drop. I also trace slow or failing runs in Application Insights to debug them.
Prompt Engineering, Parameters and Self-Critique
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What does temperature do?
Model answer
It controls how adventurous the wording is. Near 0 the model picks the most likely words and the answer is steady. Higher, the answers vary more, which is nice for ideas and risky for facts.
Intermediate A reply stops mid-sentence. What do you check?
Model answer
The response status. If it says incomplete because of max output tokens, the cap was too low. I raise it, or I ask for a shorter answer in the instructions.
Experienced developer How do you design a self-critique loop?
Model answer
I draft with the normal prompt, then ask the model to check the draft against a short checklist and list problems, then revise once with those problems. I limit it to one or two rounds, and I evaluate whether it really improves the score, because it costs extra calls.
Scenario Product descriptions vary wildly and sometimes get the warranty wrong. What do you change?
Model answer
I lower the temperature, add a worked example in the instructions that shows the format and the warranty line, state the length, and add a verification step that compares the warranty with the product data.
Tracing, Token Analytics and Latency
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What is a trace?
Model answer
It's the story of one run, step by step. Each step, like a model call or a tool call, is a span with how long it took and, for models, how many tokens it used.
Intermediate How do you find the slowest step of an agent run?
Model answer
I open the trace and compare span durations. In the example the tool call took 940 ms and the model calls 610 ms and 590 ms, so the tool is the first thing I would look at.
Experienced developer How do you get token usage per model?
Model answer
Model spans record input and output token counts and the model name. I query those attributes in Application Insights with KQL, summarising by model and operation, and compare p50 and p95 latency too.
Scenario Compliance says no personal data may be stored in telemetry. What do you check?
Model answer
That message content recording is off, so spans keep timings, token counts and names but not prompts or answers. I also check retention and who can read the Application Insights data.
Orchestrate Multiple Models and Rules Engines
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why not use the biggest model for everything?
Model answer
It's slower and costs more, and for simple questions it gives no better answer. A lookup table answers store hours perfectly for free.
Intermediate How does a cascade work?
Model answer
The request goes to rules first. If no rule fits, a small model tries. If it's unsure or the task is hard, the request goes to the large model. Each step is cheaper than the next, and most requests stop early.
Experienced developer What are the risks of routing?
Model answer
Misrouting a hard request to a weak model lowers quality, and routing logic is another thing to test. I evaluate each route on its own and the whole path together, set confidence thresholds for escalation, and watch traces for requests that bounce between models.
Scenario Reviews must be labelled at 100,000 an hour, but a few are sarcastic and confuse the small model. What do you do?
Model answer
I keep the small model for the volume, have it return a confidence or a label I can check, and escalate low-confidence reviews to a larger model. I measure how many escalate and whether accuracy improves.
Generate and Edit Images
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner How do you change only the sky in a photo with a gpt-image model?
Model answer
I call the image edit operation with the photo, a prompt that describes the new sky and a mask. The mask is a PNG the same size as the photo, and the sky area is transparent. Only that area can change.
Interviewer follows up
What if I leave the mask out?
You
Then the prompt is the only guide, and the model can redraw other parts too. I'd add the mask and set input fidelity to high.
Intermediate A designer wants a logo with no background. What do you set?
Model answer
I set the output format to PNG and the background to transparent. JPEG can't hold transparency, and WEBP isn't supported for output here.
Experienced developer How would you control cost for a banner tool that makes many variations?
Model answer
I'd use low quality for drafts and n up to 10 per request, and only render the chosen draft at high quality. I'd also set a token budget on the project and a guardrail on the deployment.
Scenario The app tries to read a URL from the response and gets nothing. Why?
Model answer
gpt-image models return base64 data only. I'd decode the b64_json value, save it as a file or upload it to Blob Storage, and share that link.
Generate and Edit Video
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why can't a web page wait for a Sora 2 video in one request?
Model answer
Video generation takes a while. The service returns a job with an ID, and my app polls the status until it's completed, then downloads the file.
Intermediate Your create call fails when you add a product photo as a reference. What do you check?
Model answer
I check that the image has exactly the same width and height as the video size, and that nobody's face is in it. Both rules cause a 400 error.
Experienced developer The client likes a video but wants warmer light. How do you handle it?
Model answer
I remix the finished video by its ID with one clear change in the prompt. A fresh generation could change everything, and a prompt with many changes drifts away from the original.
Scenario Sora 2 is in preview. How does that change your design?
Model answer
I wouldn't promise it for a customer-facing launch without a fallback. I'd keep limits and regions in configuration, check the Learn page before releases, and store finished videos in my own storage.
Multimodal Image Understanding: Captions, Alt Text and Visual Q&A
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What changes between a short caption and a detailed one?
Model answer
Only the prompt. The same model and the same photo give one sentence or a full description depending on what I ask for, so I put the length and the style in the instructions.
Intermediate How do you stop a model from guessing about a photo?
Model answer
I tell it to answer only from what's visible and to say it can't tell otherwise. I also keep the temperature low and test with questions the photo can't answer.
Experienced developer What goes into good alt text instructions?
Model answer
Purpose first, short, meaningful text in the picture read out, no "image of", and empty alt for decorative images. For charts and diagrams I produce a separate extended description.
Scenario Small printed text on parcel labels keeps being misread. What do you try?
Model answer
I switch detail from low or auto to high so the model sees more of the image. If it still fails, I'd crop to the label first or use Content Understanding with a field for the label text.
Content Understanding for Images and Video
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why use Content Understanding instead of asking a chat model to describe a photo?
Model answer
A chat model's reply can have a different shape each time. An analyzer returns the same named fields with confidence scores, so a database or workflow can use them directly.
Intermediate Which field methods work for images and video?
Model answer
Generate and classify. Extract reads values that are written in a document, so it's for document analyzers. Classify picks one value from a list I give it.
Experienced developer A 12-minute training video must be searchable by topic. How do you set that up?
Model answer
I'd use a video analyzer with segmentation on and a short description of how to split it. Each segment returns its own fields, key frames and transcript lines, which I index in Azure AI Search with the time range.
Scenario When would you look at pro mode?
Model answer
When the job needs reasoning across several inputs or checking against reference data, not just reading one file. I'd confirm on Microsoft Learn which content types support it first, because availability changes.
Responsible AI for Images and Video
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What is a prompt injection through an image?
Model answer
Someone writes instructions in a picture, like a sticky note in a photo, and the model reads them and obeys. The user never typed anything bad, so a normal input filter won't see it.
Intermediate How do you defend against it?
Model answer
In layers. I read the image text and scan it with Prompt Shields, I tell the model that image text is data, and I put the risky tool, like a refund, behind human approval with least privilege.
Experienced developer A marketing team wants every ad checked for competitor logos. Is that a content filter job?
Model answer
No. Harm categories don't know our brand rules. I'd build a custom analyzer with classify fields like BrandUsage and Watermark, and my code rejects, fixes or routes to a reviewer based on the result and its confidence.
Scenario A moderation score comes back at Violence 4 and your threshold is 6. What happens?
Model answer
The content passes under that setting. The threshold is my policy decision, so for a children's app I'd lower it and test with real examples before launch.
Extract Entities, Summaries and Structured JSON
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between JSON mode and structured outputs?
Model answer
JSON mode makes sure the reply parses as JSON, nothing more. The keys can be anything, and some can be missing. Structured outputs take a JSON schema and make the reply match it. With strict true, every field is required and extra fields aren't allowed, so my code can rely on the shape.
Intermediate When would you pick Azure Language over a model for extraction?
Model answer
When the categories are standard and I want the same output for the same input, at volume and a low price. Named entities, PII and summaries come back with a fixed shape and confidence scores. I'd pick a model when I need my own fields or a free-form judgment.
Experienced developer A compliance summary keeps leaving out the deadline and control ID. How do you fix it?
Model answer
I'd write a developer message with the reader's role, a checklist of required items, a short glossary, and one worked example that shows "Not stated" for missing items. Then temperature 0 and an evaluation on a few dozen real documents. Only if that can't hold the format would I look at fine-tuning.
Scenario Three teams want the same four fields from 100,000 contracts a month. What do you build?
Model answer
I'd label a few hundred contracts and train a custom NER model in Azure Language, because the fields repeat and the volume is high. It's cheaper and steadier than prompting a large model every time. For the odd contract with unusual wording I'd keep a model with a strict schema as a fallback.
Sentiment, Tone and Sensitive Content Detection
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What do opinion mining results give you that plain sentiment doesn't?
Model answer
The target. Plain sentiment says a review is mixed. Opinion mining says the room and staff were positive and the breakfast and wifi were negative, so I know what to fix.
Intermediate Sentiment analysis calls a sarcastic message positive. What do you do?
Model answer
I keep sentiment for cheap, steady scores at volume and add a model call for tone. I'd use a JSON schema with an enum like neutral, polite, frustrated, sarcastic, and an escalate flag, then only send the messages that matter to that call.
Experienced developer How do you decide what Content Safety blocks?
Model answer
It returns a severity per category and I compare it with a threshold I choose per category and per place. A kids' app might block at 2, an internal tool at 4 or 6. In Foundry I'd set the same thing in a guardrail so the deployment enforces it without my code calling the API.
Scenario An agent summarises vendor emails. How do you stop a hidden instruction in one of them?
Model answer
I'd run Prompt Shields with the email passed as a document before the agent sees it, or use a guardrail with the indirect attack control on tool responses. Then I'd limit the agent's tools, so even a missed attack can't do much.
Translate Text with Translator or a Language Model
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner How do you translate one message into three languages?
Model answer
One call to Azure Translator with three target languages. I leave the source out so it detects it, and I get all three translations back together.
Intermediate Translator keeps translating our product name. What do you do?
Model answer
I add a dynamic dictionary entry in the request for that name, so it stays as written. If the whole domain has terms like that, I'd train a Custom Translator model on our own sentence pairs instead.
Experienced developer How do you choose between Translator and a model for translation?
Model answer
I compare cost, consistency and tone. Translator is quick, cheap per character and gives the same output each time. A model follows tone and format rules but costs more and can vary, so I'd run an evaluation on real messages and check term accuracy and tone before I'd trust it.
Scenario A bank wants formal Hindi letters that keep numbers as digits. What's your design?
Model answer
A model deployment with instructions for formal tone, digits and the product name in English, temperature 0, and an evaluation set of real letters checked by a native reviewer. I'd keep Translator as the cheap path for messages where tone doesn't matter.
Speech to Text and Text to Speech for Agents
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner How does a voice agent work?
Model answer
Speech to text turns what the caller says into text. The model or agent reads it and writes an answer. Text to speech turns the answer into audio and plays it back. Each of the three pieces can be swapped on its own.
Intermediate Speech recognition keeps mishearing two drug names. What do you try?
Model answer
A phrase list with those two names. It needs no data and no training, and it boosts those words. If it's hundreds of terms or the audio is noisy, I'd train custom speech on related text or labelled audio.
Experienced developer When do you move from the Speech SDK loop to Voice Live?
Model answer
When latency and natural turn-taking matter, like a phone line. Voice Live handles speech in, the model or agent and speech out over one connection, with noise suppression, echo cancellation and end-of-turn detection, so I'm not stitching three calls together and handling interruptions myself.
Scenario Callers say the agent sounds rushed when it reads times and codes. What do you change?
Model answer
I'd send the reply as SSML instead of plain text: a break before the time, a slightly slower prosody rate for it, and say-as for codes. The words don't change, only the delivery.
Speech Translation and Reasoning over Audio
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner How do you show Hindi callers' words in English and Tamil?
Model answer
Speech translation. I set the spoken language to hi-IN and add en and ta as targets. One recognition pass returns text in both, and with a voice name set it can speak the translation too.
Intermediate When is a transcript not enough?
Model answer
When the answer depends on how it was said. A transcript keeps the words and drops tone, pace, laughter and background sounds. For "was the caller frustrated at the start?" I'd send the audio to an audio-capable model.
Experienced developer Why do you get a 400 when you send input_audio to gpt-4.1-mini?
Model answer
That deployment only takes text and images. Audio input needs an audio-capable model like gpt-4o-audio-preview, or I transcribe with Speech first and send the text.
Scenario Support wants transcripts in four languages for 10,000 calls a week. Do you use an audio model?
Model answer
No. Speech translation gives transcripts and the four languages at lower cost and with predictable output. I'd use an audio model on a smaller sample where supervisors ask about tone, because it costs more per minute.
Ingest and Index Content for RAG
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What does an indexer do in Azure AI Search?
Model answer
It pulls content from a data source, optionally enriches it with a skillset, and writes the result into a search index. You schedule it or run it on demand, and for blobs it only re-reads files that changed.
Intermediate Why are chunks stored as separate search documents in a RAG index?
Model answer
A model can only read a limited amount of context, and a whole 200-page PDF is a poor search result. Chunks are small enough to rank, embed and cite precisely, and the parent key links each one back to the file.
Interviewer follows up
How do you produce one search document per chunk?
You
Add a Text Split skill, then use an index projection in the skillset so each chunk is written as its own document with a parent_id.
Experienced developer Scanned PDFs in your container return no results. What do you check?
Model answer
Whether the skillset has an OCR skill and whether the indexer's imageAction is generateNormalizedImages. Without images the OCR skill has nothing to read. I'd also check the indexer's execution history for warnings, then reset and rerun after the fix.
Scenario You changed the chunk size in the Text Split skill, but the index still shows the old chunks. Why?
Model answer
The indexer remembers which blobs it has processed, so unchanged files are skipped. I'd reset the indexer so it reprocesses every document, or turn on enrichment caching to avoid paying again for skills whose inputs didn't change.
Architecture & design How would you design ingestion for 40,000 PDFs, scans and call recordings?
Model answer
Put PDFs and scans in Blob Storage and index them with a skillset that has OCR, Text Split and embeddings, using the search service's managed identity and a schedule. For recordings I'd analyse them with Content Understanding or Azure Speech first and index the transcripts, because indexers don't transcribe audio themselves.
Semantic, Hybrid and Vector Search
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What is the difference between keyword and vector search?
Model answer
Keyword search matches the exact tokens in the query, so "cab" never finds "taxi". Vector search turns the query and the documents into embeddings and finds the closest meaning, so it handles synonyms and paraphrases.
Intermediate Why is hybrid search often better than vector search alone?
Model answer
Vector search can blur exact identifiers such as part numbers or error codes, and keyword search misses synonyms. Hybrid runs both and merges the two lists with RRF, so a document that does well in either, or in both, rises to the top.
Interviewer follows up
Why are hybrid scores small numbers?
You
They're RRF scores, each term being 1 divided by a constant plus a rank, so they look like 0.03 and aren't comparable with BM25 or similarity scores.
Experienced developer What does the semantic ranker do, and what can't it do?
Model answer
It takes at most the top 50 results from the first stage, rereads them with a language model, reorders them with a reranker score from 0 to 4 and can add captions and answers. It can't retrieve a document the first stage didn't return, and it only reads the text fields in the semantic configuration.
Scenario A semantic query returns an error about a configuration. What do you check?
Model answer
Whether the index has a semantic configuration, whether the request names it with semanticConfiguration (or a default is set), and whether the semantic ranker is enabled on the service plan. Then I'd make sure the configuration points at real text fields.
Architecture & design How would you configure retrieval for an HR policy agent?
Model answer
A hybrid query over a chunk text field and a vector field, with the vectorizer matching the embedding model used at indexing, then the semantic ranker over the top results, with a filter for department or country applied first. I'd test recall and groundedness on a set of real questions before choosing k and any weights.
Enrich Content with Built-in and Custom Skills
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What is a skillset?
Model answer
A list of skills that run on each document during indexing. Each skill reads something from the document, such as text or an image, and adds a new piece of information, such as the text found by OCR or a masked copy with personal data removed.
Intermediate Your PII Detection skill runs but the index has no masked text. What's wrong?
Model answer
Skill outputs live in the enrichment tree. They only reach the index when an output field mapping, or an index projection for chunks, points at an index field. I'd add the mapping, make sure the index has a matching field, then reset and rerun the indexer.
Interviewer follows up
Which text should you index if raw phone numbers mustn't be searchable?
You
The masked output, not the original content field. Chunk and embed the masked text so the raw values never reach the index.
Experienced developer When would you write a custom Web API skill instead of using a built-in one?
Model answer
When I need logic no built-in skill has: looking up an internal product code, calling a private classifier, or using a third-party embedding model. The skill is an HTTPS endpoint, usually a Function, that takes a batch of records and returns the same record IDs with data, errors and warnings.
Scenario A custom skill times out on large batches. What do you change?
Model answer
Lower the batch size so each call does less work, raise the timeout within the allowed range, and make the function faster or scale it out. I'd also return warnings for records that fail instead of failing the whole batch, and check the indexer's execution history.
Architecture & design How do you decide between the Content Understanding skill and plain Text Split with OCR?
Model answer
If the documents have tables, sections and figures that matter, the Content Understanding skill chunks along that layout and describes figures, which keeps rows and headings together. For simple prose, OCR plus Text Split is cheaper and enough. I'd compare retrieval quality on real questions before paying for the richer option.
Connect Retrieval Pipelines to Agents and Workflows
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Why give an agent a knowledge base instead of letting the model answer on its own?
Model answer
A model only knows what it was trained on and what's in the prompt. A knowledge base lets the agent look up your current company content and answer from it, with citations you can check.
Intermediate What is the difference between minimal, low and medium retrieval reasoning effort?
Model answer
Minimal skips model planning and sends the question to the sources as it is, so it's fastest and cheapest. Low and medium use a chat model to break the question into subqueries and choose sources, with medium doing more of that work. They cost more tokens and add latency, but handle multi-part questions better.
Interviewer follows up
Which setting needs a model deployment?
You
Low and medium, for planning. Answer synthesis also needs a model, whatever the effort.
Experienced developer The agent's knowledge base call returns 403. What do you check?
Model answer
The identity the tool authenticates as. With a project connection it's the project's managed identity, so I'd confirm it has Search Index Data Reader on the search service, that the connection audience is the search endpoint, and that network rules allow the call.
Scenario The agent invents a refund rule that isn't in your policies. How do you stop it?
Model answer
Ground it on the knowledge base, write instructions that say to answer only from retrieved passages, cite them and admit when nothing relevant came back, and evaluate groundedness on a test set. If retrieval returns nothing useful, fix the index first, not the prompt.
Architecture & design How do you make sure users only see documents they're allowed to see?
Model answer
Use sources that carry access control information and have the knowledge base run queries under the caller's Microsoft Entra identity where supported, so permissions are enforced at query time. For custom indexes I'd store security groups on each chunk and filter on them.
Extract Documents with Content Understanding
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What does Content Understanding give you that plain OCR doesn't?
Model answer
OCR gives you text. Content Understanding gives you structure and meaning: clean Markdown with tables and figure descriptions, plus named fields such as total or claim number, each with a confidence score and where it was found.
Intermediate When do you use extract, classify and generate for a field?
Model answer
Extract for values that are written in the document, like an invoice number. Classify when the answer must be one of a fixed list, such as the type of claim. Generate when the value isn't written anywhere and the model has to produce it, like a short summary.
Interviewer follows up
Why prefer extract over generate when both could work?
You
Extract stays tied to the text on the page, so it's more predictable and easier to verify with its source. Generate can paraphrase or invent.
Experienced developer A handwritten policy number comes back with confidence 0.61. What do you do?
Model answer
I set a threshold for the field, say 0.8, and route anything below it to a person for review instead of trusting it. I'd also check the source location so the reviewer sees the exact spot, and measure how often the low-confidence fields were actually wrong.
Scenario Your analyzer creation fails with a model deployment error. What's missing?
Model answer
The default model deployments for the resource. Content Understanding needs a chat model and an embedding model deployed on the Foundry resource, mapped as defaults, and the analyzer's models section has to name them.
Architecture & design How do Content Understanding and Azure AI Search work together for RAG?
Model answer
Content Understanding converts each file to layout-aware Markdown with figure descriptions, and Search indexes it. You can analyse first and index the Markdown, or use the Content Understanding skill inside the indexer's skillset. The same analyzer can also produce fields to drive a workflow.