You manage an Azure Machine learning workspace.
You build a custom model you must log with Mlftow. The custom model includes the following:
* The model is not natively supported by Mlflow.
* The model cannot be serialized in Pickle format.
* The model source code is complex.
* The Python library tor the model must be packaged with the model.
You need to create a custom model flavor to enable logging with ML. flow.
What should you use?
Answer : A
You manage an Azure Machine learning workspace named workspace1.
You must develop Python SDK v2 code to add a compute instance to workspace1. The code must import all required modules and call the constructor of the Compute instance class.
You need to add the instantiated compute instance to workspace 1.
What should you use?
Answer : C
You use the Azure Machine learning SDK v2 tor Python and notebooks to tram a model. You use Python code to create a compute target, an environment, and a taring script. You need to prepare information to submit a training job.
Which class should you use?
Answer : B
You manage an Azure Machine Learning workspace named Workspace1.
You plan to create a pipeline in the Azure Machine Learning Studio designer. The pipeline must include a custom component You need to ensure the custom component can be used in the pipeline. What should you do first.
Answer : A
A product team is building a customer support assistant that must respond consistently across multiple channels.
Early testing shows that small wording changes in prompts cause large differences in tone and factual accuracy.
The team needs prompts that are reliable, reusable, and adaptable across multiple use cases without retraining the underlying model.
You need to design prompts that improve response quality while remaining flexible for future changes.
Which two actions should you perform? Each correct answer presents part of the solution. (Choose two.)
Answer : B, C
B and C provide the strongest architecture for reusable and predictable prompts. Separating persistent application instructions from dynamic user input establishes a clear instruction hierarchy. The stable portion of the prompt can define application behavior while channel-specific or request-specific content remains variable. This reduces coupling between user wording and the behavioral rules of the assistant and makes the prompt easier to reuse, version, test, and modify.
The system prompt should establish the model's role, behavioral boundaries, tone, communication style, response format, and other persistent rules. Microsoft specifically describes system messages as high-priority instructions used to define an assistant's role and boundaries and to set tone and communication style.
Fine-tuning for every conversational variation is unnecessarily expensive and contradicts the requirement to remain adaptable without retraining. Increasing temperature increases randomness and therefore works against consistent responses. Although repeating important instructions can sometimes mitigate recency effects, Microsoft treats this as an optional prompt-engineering technique to experiment with, not the primary architectural technique for producing reusable prompts.
Study Guide Reference: Design and implement a GenAIOps infrastructure --- design and develop prompts, prompt management, prompt variants, system instructions, and reusable prompt structures.
===============
You manage an Azure Machine Learning workspace
You build an Azure Machine Learning pipeline for image classification by using custom components. You need to define the interface, metadata, and code to execute components from a Python function. Which function should you use?
Answer : D
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals.
You work in Microsoft Foundry with a prompt flow.
You must manually evaluate prompts and compare results across prompt variants.
You need to capture the inputs, outputs, token usage, and latencies for each flow run for the evaluation.
Solution: Configure Azure Monitor to collect logs from the workspace. Use the logs to perform prompt evaluation.
Does the solution meet the goal?
Answer : B
Azure Monitor is valuable for production observability, but it is not the appropriate mechanism for the stated development-time requirement: manually inspecting individual prompt-flow executions and comparing prompt variants with their inputs, outputs, token consumption, and latency.
Prompt flow provides purpose-built run outputs and tracing. Microsoft documents that after a flow execution, the Outputs experience exposes detailed flow inputs and outputs. When tracing is enabled, the Trace view provides execution duration and token information and lets the developer expand individual steps to inspect their inputs and execution details.
Prompt flow also directly supports variants and batch/evaluation runs. Multiple variants can be executed and compared, while the run details expose per-test-case inputs, outputs, token counts, duration, and evaluation results. Microsoft explicitly states that multiple runs can be selected to compare their metrics and outputs.
Azure Monitor/Application Insights can collect operational metrics such as token consumption and flow or node latency for deployed applications, but that telemetry is primarily intended for monitoring and troubleshooting rather than the interactive prompt-variant evaluation workflow described here.
Therefore, the proposed solution does not meet the goal.
Study Guide Reference: Implement generative AI quality assurance and observability --- prompt evaluation, tracing, debugging, token consumption, latency, and prompt-variant comparison.
===============