First 50 of 200 questions. Each one lists the choices, the correct answer, and an explanation. The checker at the top of this page saves progress in this browser when it is available.
Continue in the practice tool above to load more questions, 50 at a time.
Question 1Design and implement an MLOps infrastructure
A team needs one top-level Azure resource that holds models, environments, compute, and pipelines together. Which resource should you create?
- A compute cluster in the team's resource group
- An Application Insights instance for each model
- A model registry in each project subscription
- An Azure Machine Learning workspace Correct answer.
Explanation
The workspace is the top-level container in which models, environments, components, datastores, compute, and pipelines are created and shared. MLOps automation targets the workspace, so assets and jobs scoped to it can be versioned and referenced consistently.
Question 2Design and implement an MLOps infrastructure
You need a training cluster that can scale down to zero nodes when idle and grow to at most 10 nodes when jobs are queued. Which setting combination meets this?
- Maximum 0 nodes with autoscaling disabled
- Minimum 0 nodes and maximum 10 nodes Correct answer.
- Minimum 10 nodes and maximum 0 nodes
- Idle time of 0 seconds with 10 fixed nodes
Explanation
Autoscaling is bounded by the minimum and maximum node counts: a minimum of 0 lets the cluster release all nodes when no jobs are queued, and a maximum of 10 caps growth. Idle scale-down settings only control when nodes are released, not whether the cluster can shrink to zero.
Question 3Design and implement an MLOps infrastructure
A data scientist needs a persistent, single-node development environment with notebooks inside the workspace. Which compute target should you provision?
- Serverless compute for batch scoring
- A compute instance Correct answer.
- A compute cluster with four dedicated nodes
- A Kubernetes cluster attached to the workspace
Explanation
A compute instance is a managed, single-node virtual machine intended for interactive authoring, notebooks, and development work. It stays available for the assigned user rather than being created per job.
Question 4Design and implement an MLOps infrastructure
You create a datastore that authenticates to a storage account with an account key. Where does the platform keep that credential?
- In the environment image as a build argument
- In the datastore YAML committed to source control
- In a blob in the workspace's default container
- In the workspace's associated Azure Key Vault Correct answer.
Explanation
Secrets referenced by a datastore are stored in the Azure Key Vault associated with the workspace, and the datastore record holds only a reference to that secret. This keeps credentials out of code, YAML, and images.
Question 5Design and implement an MLOps infrastructure
Why should a custom environment be registered with an explicit version instead of relying on a floating latest tag?
- So the environment can skip private endpoint rules
- So compute clusters can autoscale without idle time
- So the exact dependency set is pinned for every run Correct answer.
- So the image builds faster on the first job run
Explanation
Environments are versioned assets, and a job that references a specific version resolves to the same dependency set every time it runs. That is what makes a run reproducible when a base image or package dependency changes later.
Question 6Design and implement an MLOps infrastructure
What does registering a trained model in the workspace model registry accomplish?
- It trains the model on a recurring schedule
- It exposes the model through an anonymous public URL
- It converts the model artifacts to ONNX format
- It assigns a versioned name that deployments reference Correct answer.
Explanation
Registration stores the model artifacts under a name and version so that deployments, pipelines, and downstream jobs reference an immutable asset. Each new registration of the same name creates the next version.
Question 7Design and implement an MLOps infrastructure
Which object defines a recurring trigger for a published pipeline in Azure Machine Learning?
- An endpoint deployment
- An environment version
- A datastore
- A schedule Correct answer.
Explanation
A schedule binds a pipeline to a recurrence or cron expression and can be enabled or disabled independently of the pipeline definition. It is the object that submits the pipeline automatically.
Question 8Design and implement an MLOps infrastructure
Training code running on workspace compute must read data from a storage account without any credential appearing in code or configuration. What should you configure?
- A shared access signature pasted into the training script
- The storage account key stored in the environment file
- A workspace managed identity with a data-reader role Correct answer.
- Anonymous public read access on the data container
Explanation
A managed identity gives the compute an identity in Microsoft Entra ID, and a role assignment on the storage account authorizes data access without any secret being handled by the code. Authorization is then performed through that identity at runtime.
Question 9Design and implement an MLOps infrastructure
You want to send 10 percent of live inference traffic to a new model version while the current version serves the remaining 90 percent. Which approach fits?
- Deploy the model to a second endpoint and use DNS round robin between them
- Reduce the endpoint to a single instance while testing
- Switch the endpoint's authentication mode from key to token
- Route 10 percent of endpoint traffic to a new deployment Correct answer.
Explanation
A managed online endpoint can host several deployments and distributes traffic among them by weight, so a small percentage can be directed to the new model. This provides a controlled canary rollout that can be adjusted or reversed without redeploying.
Question 10Design and implement an MLOps infrastructure
Your pipeline must register a new model version only when its accuracy on a holdout set beats the current production model. What should you add?
- An evaluation step that gates the registration job Correct answer.
- An autoscale rule on the training cluster
- A schedule that runs evaluation after registration
- A canary deployment on the batch endpoint
Explanation
The gate must run before registration, so the evaluation step produces the metric and the registration job is made conditional on that output. This keeps unqualified models out of the registry and prevents them from being deployed.
Question 11Design and implement an MLOps infrastructure
A managed online deployment must absorb bursty request volumes and release capacity when traffic falls. Which configuration provides this?
- An autoscale rule with minimum and maximum instance counts Correct answer.
- The endpoint's traffic weights across deployments
- The model's registered version number
- The cluster's idle seconds before scale-down
Explanation
Online deployments scale by instance count, driven by autoscale rules that watch metrics such as CPU utilization within a minimum and maximum range. The minimum keeps baseline capacity while the maximum caps cost during spikes.
Question 12Design and implement an MLOps infrastructure
Which workload is best served by a batch endpoint rather than an online endpoint?
- Streaming inference from an event hub
- Interactive testing inside a notebook
- Sub-second scoring for a mobile app
- Scheduled scoring of a large file of records Correct answer.
Explanation
Batch endpoints run long-lived scoring jobs over files or folders and write results to a specified output, which suits large scheduled scoring runs. Online endpoints are optimized for low-latency single-request inference.
Question 13Design and implement an MLOps infrastructure
Logging from MLflow in a script that runs on your machine should appear as a run in the workspace. What must the script be given?
- A registered component version identifier
- A batch deployment for the script
- An attached inference cluster
- A tracking URI that points at the workspace Correct answer.
Explanation
MLflow writes metrics, parameters, and artifacts to the tracking URI it is configured with, so pointing it at the workspace routes those records into the workspace's experiment tracking. Authentication is then handled by the caller's credentials.
Question 14Design and implement an MLOps infrastructure
A training pipeline must run whenever a new data file lands in a storage container. Which mechanism should you implement?
- A cron schedule that runs every minute
- A longer idle timeout on the cluster
- A canary deployment on the scoring endpoint
- An Event Grid trigger that submits the pipeline Correct answer.
Explanation
A blob-created event from the storage account can be delivered through Event Grid to a handler that submits the pipeline, which reacts to the data arrival itself. This avoids both polling and wasted runs when no new data exists.
Question 15Design and implement an MLOps infrastructure
The same data-preparation logic must be reused across several pipelines and versioned on its own. What should you create?
- A copy of the script in every pipeline
- A dedicated compute cluster per script
- A registered component with typed inputs and outputs Correct answer.
- A separate workspace for each pipeline
Explanation
A component packages code, environment, and interface into a versioned asset with typed inputs and outputs, so pipelines reference the same logic and pick up updates only when the component version changes. Copies of scripts drift apart over time.
Question 16Design and implement an MLOps infrastructure
Which capability notifies you that production input distributions have shifted away from the training baseline?
- Compute cluster autoscale activity logs
- A model monitoring signal for data drift Correct answer.
- Endpoint traffic mirroring between deployments
- A comparison of model registry versions
Explanation
Model monitoring compares production inputs against a baseline and raises a data drift signal when distributions diverge, which often precedes accuracy loss. It is set up on the deployment or model and runs on a schedule.
Question 17Design and implement an MLOps infrastructure
A custom model needs OS-level packages installed when the deployment image is built. Where should this be declared?
- In the endpoint's primary and secondary keys
- In the environment definition the deployment references Correct answer.
- In the deployment's traffic weight percentages
- In the model's registered tag values
Explanation
The environment definition carries the base image, conda or pip dependencies, and Docker build steps, so packages installed at image build time belong there. The deployment references an environment version, and the built image inherits those instructions.
Question 18Design and implement an MLOps infrastructure
Two teams work in separate workspaces and must consume the same model and environment assets. What should you use?
- A workspace registry that both workspaces can use Correct answer.
- A single datastore in the first workspace
- A YAML export of each asset sent by email
- A shared compute cluster in the first workspace
Explanation
A registry is a top-level asset store that holds models, environments, and components for consumption across many workspaces in the organization. Teams share curated versions instead of copying files between workspaces.
Question 19Design and implement an MLOps infrastructure
Which model artifact can be deployed to a managed online endpoint without writing a scoring script?
- An MLflow model with a logged signature Correct answer.
- A SavedModel directory without metadata
- A pickle file without an input example
- A zip archive of training CSVs
Explanation
An MLflow model that includes a signature describes its expected inputs and outputs, so the platform can generate the inference entry point automatically. Without that metadata the deployment needs an explicit scoring script.
Question 20Design and implement an MLOps infrastructure
A managed online endpoint serves blue at 90 percent and green at 10 percent. Green starts returning server errors, and you want it to stop serving requests while keeping its configuration for later. What should you do?
- Rotate the endpoint's primary and secondary keys
- Scale the blue deployment to one instance
- Set the green deployment's traffic weight to 0 Correct answer.
- Delete the green deployment and recreate it later
Explanation
Traffic is allocated by weight, so a weight of 0 removes the deployment from serving while keeping its image, environment, and settings intact. Re-enabling it later is a single weight change rather than a full redeploy.
Question 21Design and implement an MLOps infrastructure
You want an auditable record of pipeline changes and the ability to rebuild any previously released pipeline. What should the CI process rely on?
- Pipeline definitions stored in Git and deployed by the pipeline Correct answer.
- A manual export of the workspace every quarter
- Screenshots of each pipeline graph in a wiki
- A list of pipeline run IDs kept in a spreadsheet
Explanation
Keeping pipeline definitions as code in a repository gives each change a reviewed commit and lets CI recreate the exact released definition. Run IDs and exports describe history but cannot rebuild a definition.
Question 22Design and implement an MLOps infrastructure
A workspace must block outbound data exfiltration from its compute while still reaching an approved private storage account. Which configuration should you apply?
- Key-based datastore authentication over the public internet
- A managed virtual network with outbound rules limited to approved targets Correct answer.
- Public network access with an IP allowlist on the workspace
- A compute instance with a public IP and no network security group
Explanation
A managed virtual network places compute in an isolated network where outbound rules restrict egress to approved destinations, and private endpoints let the workspace reach storage without public exposure. Together these prevent data from leaving to unapproved endpoints.
Question 23Design and implement an MLOps infrastructure
You want to measure how a candidate deployment performs on real request payloads without changing what clients receive. Which feature should you use?
- Enabling data collection on the endpoint
- Enabling mirrored traffic on the candidate deployment Correct answer.
- Deploying the candidate to a batch endpoint
- Setting the candidate's traffic weight to 50 percent
Explanation
Mirrored traffic sends a copy of live requests to the candidate deployment and discards its responses, so clients still get answers from the production deployment. You obtain realistic latency and error data for the candidate with zero user impact.
Question 24Design and implement an MLOps infrastructure
Training features must be computed once, joined point-in-time correctly for training, and served with low latency at inference. Which design supports this?
- A datastore per feature plus a nightly CSV export
- A feature store with feature sets and materialization Correct answer.
- A notebook that rebuilds the feature table each night
- One registered model per feature column
Explanation
A feature store keeps feature definitions in feature sets and materializes them into an offline store for point-in-time correct training joins and an online store for low-latency serving. This prevents training and serving code from computing the same feature differently.
Question 25Design and implement an MLOps infrastructure
Training runs on low-priority nodes keep failing partway through when capacity is reclaimed. Which design makes the pipeline reliable?
- Write checkpoints to a datastore so runs can resume Correct answer.
- Disable autoscaling and pin the node count
- Increase the idle timeout so nodes are never released
- Send all training traffic to a canary deployment
Explanation
Low-priority nodes can be preempted at any time, so the workload must assume interruption and persist progress to durable storage. Restarted runs then resume from the last checkpoint instead of starting over.
Question 26Design and implement an MLOps infrastructure
Which declarative template format can deploy an Azure Machine Learning workspace and its dependent resources repeatably across environments?
- A run history JSON document
- An MLflow model signature
- Bicep Correct answer.
- A Conda environment YAML file
Explanation
Bicep is an infrastructure-as-code language that declares Azure Resource Manager resources, including a workspace, storage account, key vault, and container registry. Conda files, model signatures, and run histories describe runtime dependencies or metadata rather than deployable Azure resources.
Question 27Design and implement an MLOps infrastructure
A development compute instance is often left running overnight. Which configuration stops it automatically after a period with no interactive activity?
- Idle shutdown after a set number of minutes Correct answer.
- A quota increase for the subscription
- Auto-scaling with a minimum node count of zero
- Low-priority scheduling with preemption
Explanation
A compute instance supports an idle shutdown setting that stops the instance after a configured period without activity, which prevents unnecessary charges. Auto-scaling applies to compute clusters, preemption applies to low-priority jobs, and quota changes affect subscription limits.
Question 28Design and implement an MLOps infrastructure
Where should the connection details for an Azure Storage account be defined so that Azure Machine Learning jobs can reference the storage by a friendly name?
- In a workspace datastore Correct answer.
- In a model's version tags
- In a job's metric log
- In the environment's Conda dependencies
Explanation
A datastore stores connection information for an Azure Storage account and exposes it to jobs through a workspace-scoped name. Environments, model tags, and metrics are unrelated to storage connection configuration.
Question 29Design and implement an MLOps infrastructure
Which Azure Machine Learning CLI v2 command submits a command job defined in a YAML specification file?
- az ml job show --name nightly-train
- az ml job list --workspace-name mlw-prod
- az ml job create --file job.yml Correct answer.
- az ml job stream --name nightly-train
Explanation
The `az ml job create` command accepts a YAML job definition through the `--file` parameter and submits it to the workspace. The other commands list, display, or stream an existing job rather than create one.
Question 30Design and implement an MLOps infrastructure
A GitHub Actions workflow must submit jobs to an Azure Machine Learning workspace without storing a client secret in the repository. Which authentication approach should you use?
- A workspace primary key stored in a workflow variable
- A federated credential trusting GitHub's OIDC provider Correct answer.
- The subscription's built-in administrator account
- Anonymous access enabled on the workspace endpoint
Explanation
Workload identity federation lets GitHub Actions exchange a short-lived OIDC token for an Azure access token, so no long-lived secret is stored. Workspace keys are secrets, anonymous access is not an appropriate or generally available option, and built-in administrator credentials are not used for automated workspace authentication.
Question 31Design and implement an MLOps infrastructure
A custom environment is built from a Dockerfile stored alongside the project. Which section of the environment YAML specifies where the Dockerfile and its build context are located?
- `build` Correct answer.
- `conda_file`
- `tags`
- `inference_config`
Explanation
The `build` section of an environment definition specifies the build context path and the Dockerfile path used to build the image. The `conda_file` section lists packages, `inference_config` describes deployment behavior, and `tags` are metadata.
Question 32Design and implement an MLOps infrastructure
In an Azure Machine Learning pipeline YAML, a second step needs a file that the first step wrote as a named output. How should the second step reference that file?
- Embed the storage account key in the downstream step's command
- Reference it with `${{parent.jobs.step1.outputs.model}}` Correct answer.
- Create a separate datastore for each step's output folder
- Read the upstream step's run history and copy the file manually
Explanation
Pipeline expressions expose an upstream step's named output through the `parent.jobs` hierarchy, and Azure Machine Learning resolves that reference to the output location. This wiring avoids manual copying and does not require storage credentials in the command.
Question 33Design and implement an MLOps infrastructure
Which workspace configuration sends resource and audit logs to Azure Monitor so they can be queried and retained?
- A diagnostic setting routing logs to Log Analytics Correct answer.
- A compute cluster auto-scaling policy with a maximum node count
- A data drift monitor configured with a training baseline
- A model registry tag applied to each model version
Explanation
A diagnostic setting on the workspace routes platform logs and metrics to destinations such as a Log Analytics workspace for querying and retention. Drift monitors, autoscaling policies, and model tags serve different purposes.
Question 34Design and implement an MLOps infrastructure
A training pipeline must always read the curated dataset version that was approved for the current release. How should the pipeline reference the data asset?
- By the datastore connection string alone, omitting the asset name
- By the storage account's public blob URL without a version
- By asset name and version, such as azureml:curated_data:3 Correct answer.
- By a relative path on the compute node's local disk
Explanation
Referencing a data asset by name and version pins the pipeline to the approved immutable snapshot, such as `azureml:curated_data:3`. An unversioned URL, a connection string without an asset name, or a local path does not guarantee which data contents are used.
Question 35Design and implement an MLOps infrastructure
Which property of an Azure Machine Learning command job specifies the local source directory that is snapshotted and made available to the running script?
- `compute`
- `environment`
- `limits`
- `code` Correct answer.
Explanation
The `code` property points to the source directory that Azure Machine Learning captures and mounts for the job, which supports reproducibility. The `environment` property defines dependencies, `compute` selects the target, and `limits` controls runtime constraints.
Question 36Design and implement an MLOps infrastructure
A pipeline step produces a large model file that the next step reads on the same compute target. Which output mode avoids an explicit copy to the datastore before the next step reads it?
- `copy` output mode
- `rw_mount` output mode Correct answer.
- `upload` output mode
- `download` output mode
Explanation
The `rw_mount` output mode exposes the output location through a read-write mount, so the step writes to the mounted path without a separate upload operation. The `upload` mode explicitly copies output to the datastore, and `download` is not the output-side mode that avoids that copy.
Question 37Design and implement an MLOps infrastructure
Which reference to a container base image best ensures that rebuilding an environment yields the same image content over time?
- A base image pinned by its SHA-256 digest Correct answer.
- A tag such as latest so the newest base is always used
- A Dockerfile that installs the newest packages at build time
- A conda file that lists packages without version pins
Explanation
A digest uniquely identifies an immutable image manifest, so the same base content is pulled on every rebuild. Mutable tags, unpinned packages, and build-time installation of the newest packages all allow content to change between builds.
Question 38Design and implement an MLOps infrastructure
A pipeline references a component that other teams update frequently. Which reference prevents their updates from silently changing your pipeline's behavior?
- `azureml:data_prep:2` Correct answer.
- `azureml:data_prep@latest`
- `azureml:data_prep`
- A local file path to the component's source folder
Explanation
A registered component reference that includes an explicit version pins the pipeline to that immutable component definition. A name-only reference resolves to the latest version, and a local source path does not use a governed registered version.
Question 39Implement machine learning model lifecycle and operations
You register a model named churn-model in an Azure Machine Learning workspace, and a model with that name already exists. What is the result of the new registration?
- A new model named churn-model-2 is created automatically.
- The registration fails with a name conflict error.
- A new version of churn-model is created with an incremented version number. Correct answer.
- The existing registration is overwritten and keeps its version number.
Explanation
The model registry treats a model name as a container and each registration under that name as an immutable version. Registering again with the same name adds the next version and leaves earlier versions intact, so old deployments keep working.
Question 40Implement machine learning model lifecycle and operations
Which setting connects an MLflow experiment run to an Azure Machine Learning workspace?
- The AZUREML_WORKSPACE_ID environment variable
- MLFLOW_REGISTRY_URI set to the workspace artifact store
- MLFLOW_TRACKING_URI set to the workspace tracking URI Correct answer.
- An AZUREML_DATAREFERENCE pointing to a workspace datastore
Explanation
MLflow clients send metrics, parameters, and artifacts to the URI in MLFLOW_TRACKING_URI. Pointing that variable at the workspace's Azure ML tracking URI makes runs appear in the workspace's experiments.
Question 41Implement machine learning model lifecycle and operations
An application must return predictions within 100 milliseconds per request for interactive users. Which Azure Machine Learning hosting option should serve the model?
- A batch endpoint
- A batch endpoint with a mini-batch size of one
- A command job on a compute cluster
- A managed online endpoint Correct answer.
Explanation
Online endpoints keep a model resident in a container behind an HTTPS scoring URI and respond synchronously, which suits low-latency interactive calls. Batch endpoints run asynchronous jobs over datasets and are not designed for per-request latency targets.
Question 42Implement machine learning model lifecycle and operations
You want 5 percent of live requests to reach a new deployment while the current deployment serves the rest. What should you configure on the online endpoint?
- A rollback rule on the new deployment
- Traffic allocation that assigns 5 percent to the new deployment and 95 percent to the existing one Correct answer.
- A mirroring policy between the two deployments
- An autoscale rule that limits the new deployment to 5 percent of instances
Explanation
An online endpoint routes requests across its deployments according to per-deployment traffic percentages. Setting 5 and 95 implements a canary release without changing client URLs.
Question 43Implement machine learning model lifecycle and operations
A client application must authenticate to a managed online endpoint by using a credential that expires automatically after a short period. Which authentication method should it use?
- Key-based authentication with the endpoint primary key
- Token-based authentication with a Microsoft Entra ID token Correct answer.
- A workspace connection secret stored in Azure Key Vault
- A shared access signature issued by the workspace storage account
Explanation
Endpoints can require either keys or tokens. Keys are static credentials that remain valid until regenerated, whereas tokens are short-lived Microsoft Entra ID credentials suited to automatic expiry.
Question 44Implement machine learning model lifecycle and operations
What does an Azure Machine Learning environment define for a model deployment?
- The number of instances and autoscale rules for the endpoint
- The runtime image and dependencies used to run the scoring script Correct answer.
- The model version and traffic percentage for the deployment
- The TCP port and hostname of the scoring container
Explanation
An environment captures the base image, Python packages, and environment variables needed to execute code. Deployments bind a model, a scoring script, and an environment together so the container is reproducible.
Question 45Implement machine learning model lifecycle and operations
Which Azure CLI command creates a new deployment on a managed online endpoint from a YAML specification?
- az ml endpoint create
- az ml job create
- az ml model deploy
- az ml online-deployment create Correct answer.
Explanation
The Azure ML CLI v2 groups endpoint resources under online-endpoint and online-deployment commands. The deployment create command accepts a YAML file that describes the model, environment, scoring script, and instance settings.
Question 46Implement machine learning model lifecycle and operations
In the scoring script used by a managed online endpoint, which function is invoked to load the model when the container starts?
- predict(data)
- score(data)
- init() Correct answer.
- run(data)
Explanation
The init function runs once when the container starts and is the place to load the model into memory. The run function is then called for each request to produce predictions.
Question 47Implement machine learning model lifecycle and operations
You want Azure ML model monitoring to compare production inference data against the training dataset. Which configuration element supplies the reference distribution?
- An alert email action group
- A baseline dataset for the data drift signal Correct answer.
- The endpoint traffic allocation
- The deployment environment version
Explanation
The data drift signal compares the recent production data with a baseline dataset that represents the training distribution. The baseline is a required input for the drift calculation.
Question 48Implement machine learning model lifecycle and operations
Which setting must be enabled on a managed online deployment so that Azure ML model monitoring can analyze the data sent to it?
- Token authentication on the endpoint
- Data collection on the deployment Correct answer.
- A batch endpoint with a default deployment
- Autoscaling on the endpoint
Explanation
Model monitoring for online endpoints relies on inference data captured by the model data collector. Enabling data collection stores request and response payloads that monitoring signals later analyze.
Question 49Implement machine learning model lifecycle and operations
You need to view request latency and failed request traces for a managed online endpoint. What should you enable?
- A model data collector with a 100 percent sampling rate
- An Event Grid subscription on the workspace
- Application Insights integration for the endpoint Correct answer.
- Diagnostic settings that send job logs to a storage account
Explanation
Managed online endpoints emit request metrics and traces to Application Insights when integration is enabled. That telemetry supports latency charts and failed request investigation in the Azure portal.
Question 50Implement machine learning model lifecycle and operations
You must run a retraining pipeline every Monday at 02:00 UTC. What should you create?
- A compute cluster with a minimum of one node
- An event-driven trigger on the workspace blob container
- A deployment with a traffic rule
- A job schedule with a cron expression for Monday 02:00 UTC Correct answer.
Explanation
Azure ML schedules run jobs or pipelines on a recurrence defined by a cron expression. A weekly cron entry targeting Monday 02:00 UTC produces the required cadence.