AI Intermediate · 22% practice allocation

AI Intermediate: Azure AI Foundry & Azure OpenAI Practice Questions

5 free sample questions from the Azure AI Foundry & Azure OpenAI domain, with answers and explanations. The full AI Intermediate bank has 963 questions across 5 domains. Questions follow the AI Intermediate course content.

1.

A compliance team at a financial institution is reviewing their Azure OpenAI Content Safety configuration. Their content filtering policy must block all 'Violence' content at severity level 2 (medium) and above, while allowing 'Hate' content at severity levels 0–2 to pass (only blocking at level 3). The engineer configures a custom content filter. Later, a test prompt containing borderline violent language at severity level 2 is sent and is NOT blocked. Which is the MOST likely cause?

  • A. The content filter was created but not associated with the Azure OpenAI deployment✓ Correct
  • B. The 'Violence' category is not configurable in custom filters and always uses the default medium threshold
  • C. Severity level 2 corresponds to 'low' severity in the Azure Content Safety scale, which is below the configured threshold
  • D. The custom content filter applies only to the completions endpoint, not the chat completions endpoint
Explanation

The most common operational mistake is creating a custom content filter policy but never assigning it to the specific Azure OpenAI deployment. The deployment then keeps using the default filter, which would explain why severity 2 violent content passes through. Severity level 2 in Azure AI Content Safety maps to 'medium', not 'low'; low is level 1, so the claim that level 2 is 'low' is incorrect. The 'Violence' category IS configurable in Azure OpenAI content filters. It is one of the four standard harm categories (Hate, Violence, Sexual, Self-Harm) whose thresholds can be adjusted. Content filters apply to both the completions and chat completions endpoints, so there is no endpoint-based limit on where a filter applies.

2.

A company builds a Prompt Flow evaluation flow to measure the quality of their RAG chatbot. They want to assess whether the model's generated answers are grounded in the retrieved source documents (i.e., no hallucinated facts). Which evaluation metric is MOST appropriate for this requirement?

  • A. F1 Score against a ground-truth answer set
  • B. Fluency
  • C. Groundedness✓ Correct
  • D. Coherence
Explanation

Groundedness is a built-in evaluation metric in Azure AI Foundry / Prompt Flow. It measures whether a model's response is factually supported by the context documents it was given, which makes it the right metric for catching hallucinations in a RAG pipeline. Fluency measures how grammatical and natural the response sounds, which has nothing to do with factual grounding. Coherence measures how logically consistent and readable the response is, but it doesn't check whether the facts come from the source documents. F1 Score measures token overlap between the generated answer and a reference answer. It is a lexical similarity metric and can't tell whether the facts came from the retrieved context or were hallucinated.

3.

A developer at Adatum Corporation is using the Azure OpenAI completions endpoint (legacy, /completions) for a text generation task. Their manager asks them to migrate to the chat completions endpoint (/chat/completions) used by GPT-4o. What is the MOST significant structural change required in the API request?

  • A. Rename the 'engine' parameter to 'model' in the request body, since chat completions routes requests by model name rather than deployment
  • B. Add an 'api-version' query parameter to the request URL, which the legacy completions endpoint never required
  • C. Replace the single 'prompt' string parameter with a 'messages' array containing role-content objects (e.g., system, user, assistant)✓ Correct
  • D. Switch from JSON request bodies to multipart form-data encoding so each message role is sent as its own separate form field
Explanation

The basic structural difference between the legacy completions API and the chat completions API is the input format. Completions takes a single 'prompt' string. Chat completions takes a 'messages' array of objects, each with a 'role' ('system', 'user', 'assistant') and 'content'. This format carries multi-turn conversation context. The 'engine' vs. 'model' naming is a real legacy distinction, but it is a minor field-name change, not the most significant structural change. Both Azure OpenAI endpoints require the 'api-version' query parameter, so it is not unique to chat completions. Both endpoints use JSON request bodies; no form-data encoding is involved.

4.

A financial services company uses Azure OpenAI on your data to ground a GPT-4o deployment on a corpus of internal regulatory documents stored in Azure AI Search. Users report that the model occasionally references outdated policy sections that have been removed from the index. Which TWO actions would MOST effectively resolve this issue? (Select TWO)

  • A. Switch the deployment from GPT-4o to the o1 reasoning model so it can detect and ignore outdated policy sections in retrieved chunks
  • B. Increase the Azure OpenAI deployment's tokens-per-minute quota so larger context windows can include the latest policy sections
  • C. Re-index the Azure AI Search index to ensure deleted documents are purged from the search index✓ Correct
  • D. Enable semantic ranking in Azure AI Search so older document chunks are deprioritized below newer policy content
  • E. Configure a scheduled indexer run in Azure AI Search so the index stays synchronized with the source document store✓ Correct
Explanation

The root cause is stale data in the Azure AI Search index. Re-indexing removes documents that have been deleted from the source. A scheduled indexer run keeps the index continuously synchronized with the document store as changes happen. Raising the tokens-per-minute quota is wrong because quota affects throughput, not document freshness. Switching to the o1 model is wrong because a different model does not fix the underlying data staleness. Enabling semantic ranking is wrong because it only reorders results by relevance and does not remove deleted or outdated documents from the index.

5.

An enterprise is evaluating Azure AI Content Safety for their public-facing generative AI chatbot. A safety engineer asks: when Content Safety returns a severity score for a harm category, what does a severity level of 0 indicate?

  • A. The content was not analyzed because it exceeded the maximum input length for the text API
  • B. The content is safe with no detected instances of that harm category✓ Correct
  • C. The content matched a custom blocklist term and was filtered before severity was scored
  • D. The severity classifier failed to score it, so the result should be treated as unknown
Explanation

Azure AI Content Safety returns severity levels on a 0–6 scale (0, 2, 4, 6). A severity of 0 means no harmful content was found in that category, so the content is considered safe on that dimension. Exceeding the maximum input length is wrong because length problems return errors, not a severity of 0. A blocklist match is wrong because blocklist matches are reported separately from severity scores. A classifier failure is wrong because a severity of 0 is a valid, meaningful result, not an error condition.

Test yourself across every AI Intermediate domain

The free AI Intermediate practice test mixes about 20 questions weighted like the exam. The full 963-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Azure AI Foundry & Azure OpenAI study guide (AI Intermediate) →

Other AI Intermediate domains

← All AI Intermediate study resources