Courseiva

CCNA Ml Model Lifecycle And Operations Questions

40 questions · Ml Model Lifecycle And Operations topic · All types, answers revealed

1
MCQeasy

You need to monitor the data drift of a model deployed in Azure ML. What is the first step you must take?

A.Configure Application Insights
B.Run a manual evaluation script
C.Create a Data Drift Monitor
D.Enable Azure Monitor logs
AnswerC

A Data Drift Monitor must exist before drift can be detected; creating it defines the baseline dataset, target dataset and schedule. Without this monitor resource, Azure ML has no comparison to evaluate, so it is the prerequisite first step.

Why this answer

In Azure Machine Learning, data drift detection is a first-class feature that requires you to create a Data Drift Monitor on a deployed model endpoint or dataset. The monitor defines the baseline dataset, target dataset, features to track, and the drift metric (e.g., population stability index) and schedule. Only after the monitor exists can alerts and metrics be surfaced.

Exam trap

AI-300 often tests the misconception that generic monitoring tools (Application Insights, Azure Monitor) provide drift detection — candidates must recognize that Data Drift Monitor is a distinct Azure ML feature that must be explicitly created.

How to eliminate wrong answers

Option A is wrong because Application Insights collects telemetry like request latency and exceptions, not statistical drift between feature distributions. Option B is wrong because a manual evaluation script is a custom workaround, not the required first step, and it does not integrate with Azure ML's drift UI or alerting. Option D is wrong because Azure Monitor logs are a downstream sink for metrics and logs; enabling them does not create drift detection by itself.

2
Multi-Selecthard

Which THREE metrics can be logged during training to track performance in Azure ML?

Select 3 answers
A.Model accuracy.
B.Compute instance IP address.
C.Custom metrics.
D.Workspace subscription ID.
E.Training loss.
AnswersA, C, E

Model accuracy is a numeric metric you log via mlflow.log_metric or Run.log during training, letting Azure ML record and chart it per epoch. It satisfies the requirement to track performance, appearing in the run's metrics tab alongside other logged values.

Why this answer

Model accuracy (A) is a standard evaluation metric that can be logged during training via mlflow.log_metric or Run.log in Azure ML to track how well the model predicts correct labels. Custom metrics (C) are explicitly supported through the Azure ML SDK and MLflow APIs, allowing you to log any domain-specific numeric value (e.g., F1 score, AUC, business KPIs) with log_metric or log_row. Training loss (E) is a core optimization metric that is routinely logged per epoch or step to monitor convergence and detect overfitting.

The unmarked options do not belong because a compute instance IP address (B) is infrastructure metadata, not a performance metric, and a workspace subscription ID (D) is an Azure resource identifier used for billing and access control, not a training performance measurement.

Exam trap

AI-300 often tests whether candidates can distinguish performance metrics (accuracy, loss, custom) from infrastructure identifiers (IP, subscription ID) that are never logged as training metrics.

3
Multi-Selectmedium

You are configuring a CI/CD pipeline for model deployment. Which THREE actions must you perform to ensure model traceability?

Select 3 answers
A.Use a shared local folder for model artifacts
B.Register the model in the Azure ML Model Registry with versioning
C.Add experiment tags to the model artifact
D.Delete all training logs after deployment
E.Store the training script hash in the model properties
AnswersB, C, E

Registering the model in the Azure ML Model Registry with versioning assigns each artefact an immutable identifier and lineage record. This satisfies the stem's traceability requirement, letting any deployed endpoint be mapped back to the exact registered model version used in the pipeline.

Why this answer

Option B is correct because registering the model in the Azure ML Model Registry with versioning creates an immutable, uniquely identifiable record (name:version) that links each deployed artifact to its exact lineage, enabling rollback and audit. Option C is correct because adding experiment tags to the model artifact attaches metadata such as run ID, dataset version, and git commit, which are queryable and provide the contextual provenance needed to trace a model back to its training experiment. Option E is correct because storing the training script hash in the model properties creates a cryptographic fingerprint that proves which exact code produced the model, ensuring reproducibility and detecting any drift between the deployed model and its source code.

Option A is not appropriate because a shared local folder is not versioned, not immutable, and not accessible across pipeline agents, so it cannot guarantee traceability. Option D is incorrect because deleting training logs destroys the audit trail and provenance evidence required for traceability.

4
MCQmedium

You are deploying a model via a Managed Online Endpoint. You want to implement a Canary deployment where 10% of traffic is sent to a new model version. How do you configure this?

A.Configure the 'traffic' parameter in the 'az ml online-endpoint update' command.
B.Modify the 'inference_config.json' file to include weights.
C.Create two endpoints and use an Azure Load Balancer.
D.Set the 'replica_count' to 10% of total capacity.
AnswerA

The traffic parameter splits request percentages across endpoint deployments, so setting it to 10 for the new version and 90 for the existing one produces the required canary ratio. Updating via az ml online-endpoint update applies the split without redeploying, satisfying the 10% routing constraint.

Why this answer

You use the 'update' command on the endpoint to set the 'traffic' parameter, distributing weights across deployment names.

5
Multi-Selecthard

Which THREE items are captured in the experiment lineage in Azure Machine Learning?

Select 3 answers
A.Hardware manufacturer.
B.Training code/snapshot.
C.Used datasets.
D.Environment definition.
E.Number of team members.
AnswersB, C, D

Training code snapshots are recorded in experiment lineage because Azure Machine Learning captures the code state at run submission, satisfying the requirement to track reproducibility of each experiment. The snapshot preserves the exact script version executed, so lineage links a run's outputs to the specific code that produced them.

Why this answer

In Azure Machine Learning, experiment lineage (reproducibility tracking) records the artifacts needed to reproduce a run: option B, the training code/snapshot, is captured because Azure ML stores a snapshot of the script/notebook submitted for the run in the experiment's output/artifact store. Option C, the used datasets, is captured because each run logs the input dataset references (name/version or datastore path) so the exact data used can be traced. Option D, the environment definition, is captured because the run records the Azure ML environment (Docker image, conda/pip dependencies, and environment version/hash) that executed the training.

Option A, hardware manufacturer, is not tracked as lineage — Azure ML logs the compute SKU/size and node information, not the physical hardware vendor. Option E, number of team members, is not part of experiment lineage; it is workspace/identity metadata unrelated to run reproducibility.

6
Multi-Selecteasy

Which TWO resources are created inside an Azure Machine Learning workspace?

Select 2 answers
A.External website.
B.Compute cluster.
C.Azure Active Directory.
D.Office 365 tenant.
E.Datastore.
AnswersB, E

A compute cluster is provisioned as a child resource within the Azure Machine Learning workspace, sharing its resource group and managed identity. It provides the scalable training and inference compute that workspace jobs target, unlike standalone Azure VMs created outside the workspace boundary.

Why this answer

Option B (Compute cluster) is correct because an Azure Machine Learning workspace hosts managed compute resources such as compute clusters (AmlCompute), which are used to run training pipelines and jobs and are created as child resources of the workspace. Option E (Datastore) is correct because a datastore is a workspace-level resource that stores connection information to Azure storage services (Blob, File, Data Lake, SQL) so experiments can access data without embedding credentials. Option A (External website) is not a workspace resource; a workspace does not create or manage public websites.

Option C (Azure Active Directory) is incorrect because Microsoft Entra ID (Azure AD) is a tenant-level identity service that exists independently and is only associated with the workspace for authentication, not created inside it. Option D (Office 365 tenant) is incorrect because an Office 365 tenant is a separate Microsoft 365 organizational boundary unrelated to Azure Machine Learning workspace resources.

7
MCQeasy

Your team needs to share a model across different workspaces. What is the most efficient way to achieve this in Azure Machine Learning?

A.Export the model as a pickle file and upload to each workspace.
B.Duplicate the workspace storage account.
C.Re-train the model in every workspace.
D.Use a shared Azure Machine Learning Registry.
AnswerD

A Microsoft Entra ID-backed Azure Machine Learning Registry stores models once at the tenant level, so workspaces in different regions or subscriptions consume the same versioned artefact by reference rather than copying it, directly satisfying the cross-workspace sharing requirement with minimal duplication.

Why this answer

Using a shared Azure Machine Learning Registry is the most efficient way to share a model across different workspaces because it provides a centralized, versioned repository for models, components, and environments that can be accessed by multiple workspaces with proper access control. It eliminates duplication and ensures consistency.

Exam trap

AI-300 often tests the misconception that sharing models requires manual export/import or workspace duplication, but the correct answer is the centralized registry, which candidates may overlook if they are not familiar with its cross-workspace capabilities.

How to eliminate wrong answers

Option A is wrong because exporting a pickle file and uploading it to each workspace is manual, error-prone, and does not provide versioning or lineage tracking, and pickle files may have compatibility issues. Option B is wrong because duplicating the workspace storage account is not a supported or efficient method for sharing models and can lead to data inconsistency and security risks. Option C is wrong because re-training the model in every workspace is inefficient, costly, and may produce different results due to data or parameter variations, defeating the purpose of sharing.

8
MCQmedium

You are an MLOps engineer at a financial services company. Your team trains a fraud detection model weekly using an Azure Machine Learning pipeline. Compliance requires that every model registered in the workspace is traceable to the exact training run, dataset version, and code commit that produced it. You need to ensure this lineage is automatically captured for every registered model without manual documentation. What should you do?

A.Store the training script and a CSV of metrics in the workspace's default datastore and reference the folder path in the model description field.
B.Create a Git tag in the repository after each pipeline run and name the registered model using the tag value so engineers can correlate them later.
C.Register the model using the output of the training pipeline step so Azure Machine Learning automatically records the run ID, dataset asset, and job context as model metadata.
D.Enable diagnostic settings on the Azure Machine Learning workspace and route all logs to a Log Analytics workspace for long-term retention.
AnswerC

Registering a model directly from a pipeline step's output (for example, via the model output of a command job or the register_model step) causes Azure Machine Learning to attach the originating job ID, the input data assets, and the environment to the model's metadata. This gives automatic, auditable lineage without manual logging, satisfying the compliance requirement.

Why this answer

Model lineage in Azure Machine Learning is captured automatically when a model is registered as the output of a job or pipeline step, because the service records the run ID, data assets, environment, and job context as model properties. Manual documentation, diagnostic logs, or naming conventions do not create that enforced association, so they cannot guarantee audit-ready traceability.

Exam trap

The trap here is assuming that logging or naming conventions create lineage, when only registering the model from the producing job output records run, data, and code context automatically.

9
Multi-Selecteasy

Which TWO types of compute can be used for training in Azure Machine Learning?

Select 2 answers
A.Key Vault.
B.Compute Cluster.
C.Compute Instance.
D.Web App.
E.Azure SQL.
AnswersB, C

Compute Cluster provisions scalable, multi-node CPU or GPU capacity that queues and distributes training jobs across nodes, then scales down when idle. This satisfies the stem's training requirement because clusters are purpose-built for parallel, long-running job execution rather than interactive authoring.

Why this answer

Compute Cluster (B) is correct because it is Azure Machine Learning's managed, scalable multi-node compute target designed specifically for training and batch scoring jobs, supporting autoscaling and GPU/CPU SKUs. Compute Instance (C) is also correct because it is a managed single-node cloud workstation that can run training scripts and notebooks interactively, making it suitable for development and smaller training workloads. Key Vault (A) is a secrets-management service, not a compute resource, so it cannot train models.

Web App (D) is a PaaS hosting service for web applications, and Azure SQL (E) is a managed relational database, neither of which provides the compute environment for ML training.

10
MCQeasy

What is the primary purpose of a 'Labeling Project' in Azure Machine Learning?

A.To facilitate manual data annotation for supervised learning.
B.To automatically version datasets.
C.To monitor model deployment drift.
D.To define model evaluation metrics.
AnswerA

A Labeling Project provisions a managed annotation workspace where human labellers apply text, image or bounding-box tags to unlabelled datasets, producing ground-truth targets that supervised training requires. This directly fulfils the manual data annotation purpose named in the stem.

Why this answer

A Labeling Project in Azure Machine Learning is designed to facilitate manual data annotation for supervised learning. It provides a workspace where human labelers (or ML-assisted labeling) tag images, text, or other data to create labeled datasets for training. It does not version datasets, monitor drift, or define evaluation metrics.

Exam trap

AI-300 often tests whether candidates confuse Labeling Projects (manual annotation for supervised learning) with dataset versioning, drift monitoring, or metric definition features.

How to eliminate wrong answers

Option B is wrong because dataset versioning is handled by Azure ML Datasets and their versioning mechanism, not by Labeling Projects. Option C is wrong because model deployment drift monitoring is handled by Azure ML's model monitoring and data drift detection features, not labeling projects. Option D is wrong because model evaluation metrics are defined in training scripts or evaluation pipelines, not in a Labeling Project.

11
MCQeasy

Which Azure Machine Learning resource provides a pre-configured environment for development?

A.Inference Cluster.
B.Compute Instance.
C.Compute Cluster.
D.Managed Endpoint.
AnswerB

A Compute Instance is a single-user, pre-configured VM with notebooks, SDKs and frameworks already installed. It satisfies the development-environment requirement directly, unlike compute clusters, which are provisioned for scalable training and batch workloads rather than interactive authoring.

Why this answer

A 'Compute Instance' is a managed, cloud-based development environment that comes pre-installed with the Azure ML SDK, Jupyter, and other tools.

12
MCQeasy

What is the 'Workspace' in Azure Machine Learning?

A.A specific model deployment.
B.A virtual machine for training.
C.A storage container for datasets.
D.The top-level resource for managing all ML assets.
AnswerD

The workspace is the top-level Azure resource that groups all machine learning assets — experiments, compute, datasets, models and endpoints — under one manageable boundary. This satisfies the stem by defining the container within which every other ML artefact is created, tracked and governed.

Why this answer

The Workspace is the top-level resource for Azure Machine Learning, providing a centralized place to manage all artifacts, computes, and jobs.

13
Multi-Selectmedium

You are preparing a model for deployment. Which THREE items should you include in the model package?

Select 3 answers
A.Training dataset.
B.Pipeline definition.
C.Model weights (pickle/onnx).
D.Inference script (score.py).
E.Environment file (conda.yaml).
AnswersC, D, E

Serialised weights in pickle or ONNX format carry the learned parameters that define the trained model's behaviour. Including them satisfies the packaging requirement, since the inference script alone cannot produce predictions without the numeric weights loaded into the model architecture.

Why this answer

The model package must contain the serialized model artifact itself, so option C (Model weights in pickle/onnx format) is correct because this is the trained artifact that will be loaded to produce predictions. Option D (Inference script, score.py) is correct because the deployment service needs an entry point that defines init() and run() to load the model and handle scoring requests. Option E (Environment file, conda.yaml) is correct because it declares the exact Python and library dependencies required to recreate the runtime environment so the model executes consistently.

Option A (Training dataset) is not included because the package is for inference, not retraining, and shipping raw training data is unnecessary and often a privacy/compliance risk. Option B (Pipeline definition) is not included because a pipeline describes the training/retraining workflow, not the deployable scoring artifact.

14
MCQeasy

What is the benefit of using 'Azure Machine Learning Datasets' (or Data Assets) over raw storage paths?

A.They convert data to Parquet format.
B.They provide versioning and lineage tracking.
C.They automatically remove duplicate records.
D.They are faster to read.
AnswerB

Versioning and lineage tracking let you pin a specific data snapshot to each model run, so experiments remain reproducible when underlying files change. This directly satisfies the stem's benefit over raw storage paths, which offer no immutable reference or audit trail of which data trained a given model.

Why this answer

Data Assets allow for versioning, lineage tracking, and simplified usage across different compute targets.

15
Multi-Selecthard

You are managing model lifecycle security. Which THREE actions are recommended to secure your ML models?

Select 3 answers
A.Allow all traffic in NSGs.
B.Make all Datastores public.
C.Store secrets in Azure Key Vault.
D.Use Azure Role-Based Access Control (RBAC).
E.Use private endpoints for workspace access.
AnswersC, D, E

Azure Key Vault stores secrets, keys and certificates in a hardware-protected, access-controlled vault, so model credentials and API keys never appear in code or notebooks. This removes hardcoded secrets from the ML lifecycle, satisfying the requirement to secure models against credential exposure.

Why this answer

Option C is correct because storing secrets (storage account keys, connection strings, service principal credentials) in Azure Key Vault keeps them out of notebooks, scripts, and source control, and lets the workspace retrieve them via its managed identity rather than hard-coded values. Option D is correct because Azure RBAC enforces least-privilege access to the workspace, compute, datastores, and models, ensuring only authorized identities can read, train, deploy, or manage ML assets. Option E is correct because private endpoints place the workspace and its associated resources (such as storage, Key Vault, and container registry) on a private IP within your VNet, removing public internet exposure and blocking exfiltration.

Option A is not recommended because allowing all traffic in NSGs defeats network segmentation and exposes the workspace to unauthorized access. Option B is not recommended because making datastores public exposes training data and model artifacts to anonymous or unauthenticated access, violating data-protection requirements.

16
MCQeasy

Which service allows you to track ML models and their associated artifacts?

A.Azure Container Registry.
B.Azure Key Vault.
C.Azure Data Lake.
D.Azure Model Registry.
AnswerD

Azure Machine Learning's model registry provides versioned tracking of models and their associated artifacts, such as metrics, tags and lineage metadata. It satisfies the stem's requirement to track ML models and their artefacts by recording each version against the workspace, enabling reproducibility and audit. Note that Microsoft Entra ID governs access, not tracking.

Why this answer

The 'Azure Machine Learning Model Registry' is specifically designed to store, version, and manage models.

17
MCQeasy

What is the purpose of a 'Datastore' in Azure Machine Learning?

A.To manage connectivity to storage services.
B.To store model weights.
C.To track model versions.
D.To process data in memory.
AnswerA

A datastore stores the connection information for an Azure storage service, so compute can access data without embedding credentials in scripts. It satisfies the scenario's need to manage connectivity to storage services, abstracting account keys and paths behind a registered, reusable reference.

Why this answer

In Azure Machine Learning, a Datastore is an abstraction that stores connection information to Azure storage services (Blob, File, Data Lake, SQL, etc.). It lets you reference storage by name in AML without hardcoding credentials or paths. Datastores manage connectivity, not model weights, versioning, or in-memory processing.

Exam trap

AI-300 often tests the confusion between Datastores (connectivity) and the Model Registry (versioning) — candidates pick 'track model versions' because both sound like metadata services.

How to eliminate wrong answers

Option B is wrong because model weights are stored as model artifacts in the workspace or a registered model, not in a Datastore. Option C is wrong because model version tracking is handled by the Model Registry, not Datastores. Option D is wrong because in-memory data processing is done by compute targets (e.g., compute clusters, inference clusters), not Datastores.

18
Multi-Selecteasy

Which TWO actions can you perform in the Azure Machine Learning studio?

Select 2 answers
A.Modify global azure subscriptions.
B.Manage office 365 users.
C.View run history.
D.Configure networking in the tenant.
E.Register a new dataset.
AnswersC, E

The studio's experiments and jobs views expose each run's metrics, logs, and outputs, letting you inspect and compare historical executions. Viewing run history is therefore a supported studio action, satisfying the question's requirement for capabilities available in the Azure Machine Learning studio interface.

Why this answer

Option C (View run history) is correct because the Azure Machine Learning studio provides an Experiments and Runs interface where you can inspect each run's metrics, logs, and outputs for tracking and comparison. Option E (Register a new dataset) is correct because the studio's Data section (Datastores/Datasets) lets you create and register datasets from datastores, local files, or web URLs for reuse in experiments and pipelines. Options A (Modify global azure subscriptions) and D (Configure networking in the tenant) are incorrect because subscription-level and tenant-wide networking settings are managed in the Azure portal or Microsoft Entra admin center, not in the ML studio.

Option B (Manage office 365 users) is incorrect because Office 365 user administration is handled through the Microsoft 365 admin center, not Azure Machine Learning studio.

19
Multi-Selecthard

You are troubleshooting a deployment. Which THREE logs are most helpful to check?

Select 3 answers
A.Deployment status logs.
B.Application output logs (stdout).
C.User browser logs.
D.Container build logs.
E.Azure billing logs.
AnswersA, B, D

Deployment status logs expose the provisioning outcome of each resource operation, showing whether the ARM or Bicep deployment succeeded, failed, or was skipped, and the exact error code returned. This directly satisfies the stem's troubleshooting constraint by pinpointing which deployment stage failed rather than merely reporting runtime behaviour.

Why this answer

Deployment status logs (A) are essential because they show the orchestration-level events and errors from the deployment controller, such as failed rollouts, image pull errors, or readiness probe failures, directly indicating why the deployment did not succeed. Application output logs (B), typically captured from stdout/stderr, reveal runtime errors, exceptions, and startup failures inside the deployed containers that would not appear in orchestration logs. Container build logs (D) are critical when the failure originates during image construction, showing failed build steps, dependency errors, or Dockerfile issues before the image ever reaches the deployment stage.

User browser logs (C) reflect client-side rendering or network issues and are not authoritative for server-side deployment failures, while Azure billing logs (E) only track cost and usage data and provide no diagnostic value for a failed deployment.

20
MCQhard

You are using MLflow to track experiments in Azure Machine Learning. You need to log a custom metric that is calculated every 100 iterations. Which MLflow function should you use?

A.'mlflow.log_metric()'.
B.'mlflow.set_tag()'.
C.'mlflow.log_artifact()'.
D.'mlflow.log_param()'.
AnswerA

`mlflow.log_metric()` records a single scalar value against the current run at the step you specify, so calling it every 100 iterations logs each sampled value with its iteration number. This satisfies the stem's requirement to capture a custom metric calculated periodically rather than continuously.

Why this answer

The 'mlflow.log_metric' function is used to log key-value pairs of metrics, which can be called within the training loop.

21
MCQmedium

You need to ensure that training data is encrypted at rest in the Blob Storage linked to your Azure Machine Learning workspace. How do you ensure this?

A.Configure the training script to encrypt files.
B.Enable encryption at the storage account level.
C.Use SSL/TLS for all communication.
D.Use an encrypted VM for training.
AnswerB

Storage account-level encryption applies Microsoft-managed keys to all blobs, tables, queues and files at rest, transparently and by default. Enabling it satisfies the at-rest encryption requirement for the workspace-linked Blob Storage, covering training data without per-blob configuration.

Why this answer

Azure Storage accounts support Storage Service Encryption (SSE) by default. You can also use Customer-Managed Keys (CMK) for additional control.

22
MCQhard

You are implementing a retraining trigger for a demand forecasting model. You want to trigger a pipeline execution only when the drift metric for the 'Price' feature exceeds a predefined threshold. Which service should you integrate with Azure Machine Learning?

A.Azure Batch schedules.
B.Azure Data Factory triggers.
C.Azure Monitor alerts on logs.
D.Azure Event Grid and Logic Apps.
AnswerD

Azure Event Grid routes the drift event emitted by Azure Machine Learning to Logic Apps, which evaluates the 'Price' threshold and triggers the pipeline. This event-driven integration fires only on threshold breach, unlike scheduled retraining.

Why this answer

Azure Machine Learning Data Drift Monitors can be configured to emit events to Azure Event Grid, which can then trigger an Azure Logic App or Azure Function to start the pipeline.

23
MCQmedium

You are creating a 'Pipeline' and want to share a dataset across multiple steps. What is the most efficient way to access this data?

A.Download the data to each step's local directory.
B.Use a 'Dataset' input object that mounts the storage.
C.Pass the file path as a string argument.
D.Copy the data between steps.
AnswerB

Mounting via a Dataset input object lets every pipeline step read the same registered data directly from storage, avoiding repeated downloads or copies between steps. This satisfies the efficiency constraint by referencing one shared, versioned dataset rather than duplicating data per step.

Why this answer

You should define the dataset as an 'Input' to the pipeline or use a 'Dataset' object that can be mounted by the compute for each step.

24
MCQmedium

You are configuring a 'Managed Online Endpoint' for production. You want to ensure high availability. What should you configure?

A.Use 'LowPriority' compute.
B.Set the 'instance_count' to at least 2.
C.Set the 'instance_count' to 1.
D.Enable 'Auto-scaling' only.
AnswerB

Setting instance_count to at least 2 provisions multiple replicas behind the endpoint, so a single node or replica failure does not take the service offline. This satisfies the high-availability requirement for the production Managed Online Endpoint.

Why this answer

To ensure high availability, you should configure the 'instance_count' to be greater than 1, spanning multiple availability zones if supported.

25
MCQmedium

You need to ensure that your model inference code has access to the latest secret keys without hardcoding them. What is the recommended integration?

A.Store keys as environment variables in the Dockerfile.
B.Use the workspace Key Vault to store and retrieve secrets.
C.Use a configuration file on the VM.
D.Pass them as arguments to the 'init()' function.
AnswerB

Storing secrets in the workspace-linked Key Vault lets inference code fetch them at runtime via the Key Vault SDK or Microsoft Entra ID-backed managed identity, so no credentials sit in source. This directly satisfies the no-hardcoding constraint while ensuring the latest rotated secret version is retrieved.

Why this answer

You should integrate your scoring script with Azure Key Vault using the workspace 'get_default_keyvault()' function to retrieve secrets at runtime.

26
Multi-Selectmedium

You are optimizing your Azure ML pipeline performance. Which THREE steps should you take to reduce execution time?

Select 3 answers
A.Increase the number of workspaces.
B.Use smaller compute clusters for everything.
C.Mount datasets instead of downloading them.
D.Enable step run reuse.
E.Use 'ParallelRunStep' for batch processing.
AnswersC, D, E

Mounting datasets exposes Azure Blob storage as a FUSE-based virtual filesystem, so compute nodes stream only the bytes each training run actually reads rather than copying the full dataset locally first. This directly satisfies the stem's execution-time constraint by eliminating the download-and-wait phase before training begins.

Why this answer

Option C is correct because mounting a dataset exposes it as a FUSE-based virtual filesystem (e.g., /mnt/azureml/...) so the compute target reads only the files it needs on demand, avoiding the full download-and-copy overhead that inflates startup and I/O time. Option D is correct because enabling step run reuse lets Azure ML skip re-executing a pipeline step when its code, inputs, parameters, and environment are unchanged, returning the cached output and eliminating redundant compute. Option E is correct because ParallelRunStep partitions a batch workload across multiple nodes/processes of the cluster and runs them concurrently, cutting wall-clock time for large-scale scoring or data processing.

Option A is not appropriate because adding workspaces only multiplies management boundaries and does not speed up a single pipeline's execution. Option B is not appropriate because undersized clusters for every step cause throttling, longer runtimes, and possible out-of-memory failures rather than faster execution.

Exam trap

AI-300 often tests the misconception that 'more compute equals faster pipelines' — candidates pick 'smaller clusters' or 'more workspaces' instead of recognizing that data movement, caching, and parallelism are the real levers.

27
MCQhard

You are implementing a custom container for model training. You need to push the image to the 'Azure Container Registry' (ACR) linked to your workspace. What is the correct command?

A.'docker build' and 'docker push' to the ACR URL.
B.'az ml environment create --custom'.
C.'az container create'.
D.'az ml model deploy --image'.
AnswerA

A custom training image must first be built locally with 'docker build', then tagged with the workspace's ACR login server URL and uploaded using 'docker push'. This places the image where the compute target can pull it.

Why this answer

The standard approach is 'docker build' followed by 'docker push' to the ACR URL, ensuring authentication via 'az acr login'.

28
MCQmedium

You are building an Azure Machine Learning pipeline. You need to ensure that the pipeline components are reusable and versioned independently. What should you use?

A.Azure ML Datasets
B.Azure ML Pipelines Steps
C.Azure ML Components
D.Azure Container Registry images
AnswerC

Azure ML Components define each pipeline step as a self-contained, versioned artefact with declared inputs, outputs and environments, so steps can be registered, reused and versioned independently across pipelines. This directly satisfies the stem's reusability and independent versioning constraint, unlike monolithic pipeline scripts or inline command jobs.

Why this answer

Azure ML components allow for independent versioning and reusability across different pipelines.

29
MCQeasy

You are moving a model from a local environment to Azure Machine Learning. Which file is required to define the entry script for the model inference?

A.'inference_config.json'.
B.'model.pkl'.
C.'environment.yml'.
D.'score.py'.
AnswerD

The score.py file is the mandatory entry script that Azure Machine Learning invokes at inference time; it must contain the init() and run() functions that load the model and return predictions, satisfying the requirement to define the entry script for model inference.

Why this answer

The entry script (often named 'score.py') is required to define 'init()' and 'run()' functions for the deployment.

30
MCQhard

You are automating model registration using the Azure ML CLI. You need to ensure the registration only happens if the model accuracy is above 0.9. How do you implement this condition?

A.Use the 'condition' parameter in the 'model create' command.
B.Use an 'Azure Function' to trigger registration.
C.Configure a 'ValidationThreshold' in the registry.
D.Implement logic in the pipeline to gate the registration step.
AnswerD

The CLI registers whatever model artefact you submit, so the accuracy threshold must be evaluated before that call. Gating the registration step inside the pipeline lets the run compare the logged metric against 0.9 and skip registration when it fails.

Why this answer

You must include logic in your pipeline or script to evaluate the metric (e.g., via a 'PythonScriptStep') and only call the 'az ml model create' command if the condition is met.

31
MCQeasy

You are an MLOps engineer preparing to retrain a demand forecasting model on a schedule. The training data resides in an Azure Machine Learning datastore backed by Azure Blob Storage. You need the training job to run automatically every night at 02:00 UTC without manual intervention. What should you create?

A.A pipeline parameter named schedule_time that the pipeline reads at runtime to decide whether to start training.
B.A schedule attached to the training pipeline that uses a cron expression for 02:00 UTC and is enabled.
C.A compute cluster with autoscaling enabled so that nodes are available whenever the training job is submitted.
D.A registered model version with a tag indicating the desired retraining interval for the operations team to follow.
AnswerB

Azure Machine Learning schedules let you run pipelines or jobs on a recurring cadence defined by a cron expression. Creating and enabling a schedule with the appropriate cron string automates the nightly run at 02:00 UTC with no manual step, which is exactly the requirement.

Why this answer

Recurring, unattended execution in Azure Machine Learning is delivered by schedules, which bind a cron or recurrence definition to a pipeline or job. Once the schedule is enabled, the service launches the run at the specified time, so the nightly 02:00 UTC retraining happens without human action. Parameters, compute settings, and model tags cannot initiate runs on their own.

Exam trap

The trap here is confusing configuration objects that influence a run, such as parameters or autoscaling compute, with the schedule object that actually starts runs on a timetable.

32
MCQmedium

You have an automated model training pipeline that is failing intermittently due to compute availability. What should you configure to ensure the pipeline is more resilient?

A.Increase the 'max_nodes' of the cluster.
B.Set the 'allow_reuse' parameter to True.
C.Use 'LowPriority' compute.
D.Configure 'retry' settings for the step.
AnswerD

Retry settings re-run a failed pipeline step automatically after transient errors, so intermittent compute unavailability does not abort the whole run. This directly satisfies the resilience requirement by absorbing temporary capacity failures without manual intervention.

Why this answer

You should configure 'retry' settings in the 'PipelineStep' definition to handle transient compute errors.

33
MCQhard

You are deploying a model that requires a high-memory compute for inference. You are using a 'Managed Online Endpoint'. Where do you specify the instance type for this deployment?

A.In the 'Endpoint' YAML file.
B.In the 'Environment' definition.
C.In the 'Deployment' YAML file under 'instance_type'.
D.In the 'Workspace' settings.
AnswerC

For a Managed Online Endpoint, the compute instance type is declared in the deployment YAML under the instance_type property, which provisions the high-memory VM size required for inference. The endpoint itself only defines the scoring interface.

Why this answer

The instance type is defined in the 'Deployment' configuration object, typically in the 'instance_type' field.

34
MCQmedium

You are configuring a batch scoring job. You need to ensure that the job processes data in parallel to reduce completion time. What property should you adjust in the 'ParallelRunConfig'?

A.Change the 'output_action' to 'append_row'.
B.Adjust 'process_count_per_node' and 'node_count'.
C.Enable 'distributed_training'.
D.Set 'min_nodes' to 1.
AnswerB

Scaling parallelism requires tuning both `node_count` (cluster nodes) and `process_count_per_node` (processes per node); their product sets total concurrent workers. Increasing either alone caps throughput, so adjusting both satisfies the stem's requirement to reduce batch scoring completion time through genuine parallel processing.

Why this answer

The 'node_count' and 'process_count_per_node' are the key parameters in 'ParallelRunConfig' that dictate the degree of parallelism.

35
MCQmedium

You are defining an Azure Machine Learning environment for a training job. The environment requires a specific set of Python libraries. What is the best practice for defining these dependencies?

A.Define dependencies in a 'conda.yaml' file.
B.Hardcode pip install commands in the training script.
C.Install libraries via a startup script in the compute cluster.
D.Pre-install them on the virtual machine image.
AnswerA

A conda.yaml file declaratively pins Python packages, their versions and channel sources, which Azure Machine Learning builds into a reproducible environment image. This satisfies the requirement for a specific, consistent set of Python libraries across training runs, rather than relying on ad-hoc pip installs that risk drift.

Why this answer

Using a 'conda.yaml' file is the best practice for managing reproducible Python environments in Azure ML.

36
Multi-Selecthard

You need to implement a retraining trigger based on performance degradation. Which TWO metrics should you monitor to decide when to retrain?

Select 2 answers
A.CPU usage of the inference cluster
B.Network latency
C.Number of active users
D.Model prediction precision
E.Model prediction accuracy
AnswersD, E

Precision measures the proportion of positive predictions that are actually correct, so a sustained drop signals the model is degrading on the positive class. Monitoring it alongside recall directly satisfies the stem's requirement to detect performance degradation and trigger retraining, rather than tracking infrastructure or data-drift signals alone.

Why this answer

Options D and E are correct because retraining triggers based on performance degradation must directly measure how well the model's predictions match ground truth: model prediction precision (D) captures the proportion of positive predictions that are actually correct, and model prediction accuracy (E) captures the overall fraction of correct predictions, both of which decline when the model drifts or degrades. Monitoring these model-quality metrics lets you set thresholds (e.g., accuracy drops below 90% or precision falls by 5%) that signal when retraining is warranted. Option A (CPU usage of the inference cluster) is an infrastructure resource metric that reflects load or scaling needs, not model correctness.

Option B (network latency) measures communication delay and says nothing about prediction quality. Option C (number of active users) is a traffic/usage metric that may correlate with load but does not indicate whether the model's predictions have degraded.

Exam trap

AI-300 often tests the confusion between infrastructure health metrics and model quality metrics — candidates must recognize that retraining decisions require monitoring prediction quality (precision, accuracy, recall, F1), not system resource usage.

37
Multi-Selectmedium

You are responsible for monitoring a deployed model on an Azure Machine Learning managed online endpoint. The model's input feature distribution has drifted from the training baseline, and you need to detect this automatically and act on it. Which two actions should you take? (Choose two.)

Select 2 answers
A.Set the deployment's request timeout to a lower value so that anomalous requests fail fast and are excluded from metrics.
B.Re-register the model with a higher version number so the monitoring system recognizes it as the current production model.
C.Create a model monitor in Azure Machine Learning that computes a drift metric against a reference dataset and set an alert when the threshold is exceeded.
D.Increase the deployment's instance count so that the endpoint can absorb the additional inference traffic caused by drift.
E.Enable model data collection on the endpoint deployment so inference request and response payloads are logged to a storage location.
AnswersC, E

A model monitor evaluates production data against a reference dataset on a schedule and can raise alerts or trigger actions when drift crosses a configured threshold. This provides the automatic detection and notification the scenario requires, complementing data collection by turning raw payloads into actionable drift signals.

Why this answer

Automatic drift detection requires two things working together: collecting live inference data from the deployment and configuring a model monitor that compares that data to a reference dataset and raises alerts past a threshold. Together they detect distribution change and notify the team. Scaling, timeout tuning, and version bumps do not create drift signals.

Exam trap

The trap here is assuming operational tuning such as scaling or timeout changes contributes to drift detection, when only data collection plus a configured monitor with a reference dataset does.

38
MCQhard

You manage a managed online endpoint in Azure Machine Learning that serves a recommendation model. The model was trained months ago, and you now need to deploy a new version trained on recent data with zero downtime. You must be able to send a small percentage of live traffic to the new version to validate it before full rollout. What should you do?

A.Delete the existing deployment, create a new deployment with the updated model, and set the endpoint's traffic allocation to 100 percent on the new deployment.
B.Add a second deployment to the same endpoint with the new model, then update the endpoint's traffic weights so the new deployment receives a small percentage of requests.
C.Create a new managed online endpoint for the updated model and have clients switch their base URL to the new endpoint after you finish testing.
D.Redeploy the existing deployment in place with the new model artifact and set the deployment's instance count to double during the update.
AnswerB

Managed online endpoints support multiple deployments behind one scoring URI. Adding a new deployment keeps the existing one serving, so there is no downtime. Setting traffic weights, for example 10 percent to the new deployment and 90 percent to the old, enables controlled canary validation before you shift all traffic.

Why this answer

Managed online endpoints decouple the stable scoring URI from the deployments behind it. By adding a second deployment and adjusting traffic weights, you keep the current model serving while a small share of requests exercises the new model, achieving zero-downtime canary validation. Replacing, deleting, or duplicating endpoints breaks either availability or the controlled traffic split.

Exam trap

The trap here is treating an in-place deployment update as safe, when only multiple deployments with traffic weights allow gradual, zero-downtime validation.

39
Multi-Selectmedium

Which THREE security features are essential for a production Azure ML deployment?

Select 3 answers
A.Key Vault integration.
B.Managed Identity.
C.Open inbound ports in NSG.
D.Virtual Network (VNet).
E.Public IP exposure.
AnswersA, B, D

Key Vault integration stores secrets, keys and connection strings outside code and configuration files, letting the workspace and compute retrieve them through managed identities. This prevents credential exposure in scripts or logs, a baseline requirement for production deployments.

Why this answer

Key Vault integration (A) is essential because it securely stores and centrally manages secrets, keys, and certificates used by the Azure ML workspace, compute, and endpoints, keeping credentials out of code and configuration files. Managed Identity (B) is essential because it gives the workspace and its compute resources an automatically managed identity in Microsoft Entra ID, enabling passwordless, least-privilege access to Key Vault, Storage, and ACR without embedding credentials. Virtual Network (VNet) (D) is essential because it provides network isolation for the workspace, compute clusters/instances, and private endpoints, restricting traffic to approved subnets and preventing exposure over the public internet.

Opening inbound ports in the NSG (C) is not a security feature but a weakening of the perimeter, since production workloads should minimize inbound exposure and instead use private endpoints or Azure Bastion/JIT access. Public IP exposure (E) is not a security feature either, as assigning public IPs increases the attack surface and contradicts the private-networking posture expected in production.

40
Multi-Selecthard

Which THREE components are required to define a 'Managed Online Deployment'?

Select 3 answers
A.A GPU compute instance.
B.An environment definition.
C.An inference script.
D.A registered model.
E.A training dataset.
AnswersB, C, D

A managed online deployment requires an environment definition specifying the Docker image and dependencies, ensuring the scoring container has the correct runtime. Without it, the deployment cannot resolve the execution context, so it is one of the three mandatory components.

Why this answer

A Managed Online Deployment in Azure Machine Learning requires an environment definition (B), which specifies the Docker image and dependencies (e.g., conda.yaml) used to build the scoring container. It also requires an inference script (C), typically score.py, that defines the init() and run() functions to load the model and handle scoring requests. A registered model (D) is also required, since the deployment must reference a model asset (by name and version) from the workspace registry to serve predictions.

A GPU compute instance (A) is not mandatory because managed online endpoints can run on CPU SKUs, and a training dataset (E) is irrelevant to inference-time deployment.

Ready to test yourself?

Try a timed practice session using only Ml Model Lifecycle And Operations questions.