Courseiva
Implement generative AI solutionsmediumMultiple ChoiceObjective-mapped

AI-102 Implement generative AI solutions Practice Question

Your organization uses Azure OpenAI Service to generate code snippets. You want to log all user prompts and model responses for auditing purposes. What should you configure?

⚠ Common exam trap

Many candidates confuse Azure API Management's logging capabilities with Azure OpenAI's native diagnostic logging, assuming you need a separate gateway to capture request/response data, when in fact the service's own diagnostic settings provide this out-of-the-box.

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

Enable diagnostic settings in Azure OpenAI Service to send logs to a Log Analytics workspace.

Azure OpenAI Service's diagnostic settings allow you to stream platform logs—including user prompts and model responses—to a Log Analytics workspace. This is the native, built-in mechanism for capturing and analyzing request/response data for auditing, without needing additional services or custom middleware.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use Azure API Management to log requests and responses.

    Why it's wrong here

    Azure API Management functions as a gateway for managing and securing APIs, but it lacks the native integration required to capture the payload contents of Azure OpenAI Service model telemetry. While you would use this service to enforce rate limits or transform requests in an API lifecycle scenario, it does not provide the built-in auditing mechanism needed to log specific prompt and response data for compliance requirements.

  • Store logs in Azure Key Vault.

    Why it's wrong here

    Key Vault is for managing secrets, not for storing logs.

  • Enable diagnostic settings in Azure OpenAI Service to send logs to a Log Analytics workspace.

    Why this is correct

    Diagnostic settings capture API call logs including prompts and completions for auditing.

  • Use Azure AI Search to index the prompts and responses.

    Why it's wrong here

    Azure AI Search is for search indexing, not logging.

About these practice questions

Courseiva writes every AI-102 question from scratch — 945 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 →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.