Home / DP-100: Designing and Implementing a Data Science Solution on Azure / Mock exam
DP-100: Designing and Implementing a Data Science Solution on Azure Exam-style mock test

DP-100 Azure Data Scientist Practice Exams|Practice test

Full explanations Exam format Pass line 70%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Design and Prepare a Machine Learning Solution
A data scientist at a global investment bank is provisioning a new Azure Machine Learning workspace to train fraud-detection models on transaction data. The security team requires that every associated resource created alongside the workspace exist before any experiments run. Which set of Azure resources is automatically provisioned together with the Azure Machine Learning workspace?
✓A storage account, a key vault, an Application Insights instance, and a container registry
Correct. When a workspace is created, Azure also provisions a storage account (default datastore), a key vault (secrets), an Application Insights instance (telemetry), and optionally a container registry for environment images.
・A storage account, an Azure SQL Database, a key vault, and a Log Analytics workspace
Incorrect. An Azure SQL Database and a Log Analytics workspace are not among the resources automatically created with an Azure Machine Learning workspace.
・A compute cluster, a storage account, an event hub, and a key vault
Incorrect. Compute clusters are created separately by the user; an event hub is never provisioned automatically with the workspace.
・A key vault, a Synapse Analytics pool, a container registry, and an Application Insights instance
Incorrect. A Synapse Analytics pool is never auto-provisioned with the workspace, even though key vault and Application Insights are.
Explanation
Creating an Azure Machine Learning workspace automatically provisions a linked storage account, key vault, and Application Insights instance, plus a container registry when needed for environment builds. SQL databases, Synapse pools, event hubs, and compute clusters are not part of that automatic set.
Example2 · Explore Data and Train Models
A data scientist at a global retail bank is performing exploratory data analysis on a 40 GB credit-card transactions dataset registered as an Azure Machine Learning data asset. They want to profile distributions, missing values, and correlations interactively inside an Azure ML notebook running on a compute instance before any training. Which approach best supports this interactive EDA task?
・Submit a non-interactive command job that writes summary statistics to a text file, then download it.
Incorrect. A command job runs non-interactively and is not suited to the iterative, visual exploration that EDA requires.
✓Load the registered data asset into a pandas DataFrame on the compute instance and plot the distributions directly and interactively.
Correct. Loading the registered asset into a DataFrame on the compute instance lets the scientist explore interactively.
・Run an AutoML classification job and read the data guardrails section of the output.
Incorrect. AutoML data guardrails inspect only a few issues and require launching a training run, which is not interactive EDA.
・Deploy the dataset to a managed online endpoint and query it with sample requests.
Incorrect. Online endpoints serve model inference requests and are unrelated to exploring raw data.
Explanation
Interactive EDA is done by loading a data asset into a DataFrame on a compute instance and using pandas/Spark plus plotting libraries. Jobs and endpoints are for non-interactive training and serving.
Example3 · Prepare a Model for Deployment
A data scientist at a global retail bank trained a credit-default classifier in an Azure Machine Learning job that used autologging. They now want the trained artifact tracked as a named, versioned asset in the workspace so it can be referenced later for deployment. Using the Azure ML Python SDK v2, which approach registers the model from the completed job's outputs?
✓Call ml_client.models.create_or_update( Model( path='azureml://jobs/<job_name>/outputs/artifacts/paths/model/', name='credit-default', type=AssetTypes.MLFLOW_MODEL ) )
Correct. Passing a Model asset whose path points at the job's output artifacts URI to models.create_or_update registers it as a named, versioned MLflow model in the workspace.
・Rename the local pickle file manually
Incorrect. Renaming local files does not create a workspace asset and gives no lineage, so the model cannot be referenced for deployment.
・Set the AZUREML_MODEL_NAME variable on the cluster
Incorrect. There is no AZUREML_MODEL_NAME variable that auto-registers artifacts; registration is an explicit action against the models client.
・Add a tags block and resubmit
Incorrect. Tags are optional metadata and resubmitting the job does not register the model; registration is a separate call.
Explanation
In SDK v2 you register a trained model by creating a Model asset that references the job output URI and calling models.create_or_update. This produces a named, versioned, lineage-tracked asset usable by endpoints.
Example4 · Deploy and Retrain a Model
A hospital radiology team has deployed a pneumonia-detection model to an Azure Machine Learning managed online endpoint. Governance requires that any statistically significant shift between the chest X-ray feature distributions seen in production and the training baseline be detected and surfaced automatically. Which Azure Machine Learning capability should the data scientist configure to meet this requirement?
✓A Model Data Collector on the deployment plus a model monitoring job that computes data drift against the training baseline
Correct. Enabling data collection on the deployment logs production inference inputs, and an Azure Machine Learning model monitoring job compares those collected features against the training baseline to detect data drift.
・An Application Insights availability test that pings the scoring URI and alerts on high latency
Incorrect. An availability test measures endpoint uptime and latency, not shifts in the statistical distribution of input features.
・A scheduled Azure Machine Learning command job that retrains the model nightly on the newest images regardless of any distribution shift
Incorrect. Blind nightly retraining does not detect drift; it also risks degrading the model and wastes compute when no shift has occurred.
・An autoscale rule on the endpoint deployment that adds instances when CPU utilization is high
Incorrect. Autoscaling addresses throughput and capacity, not changes in the input data distribution.
Explanation
Data drift is detected by collecting production inputs and comparing them to a baseline dataset. Azure Machine Learning model monitoring consumes data captured by the Model Data Collector and computes drift metrics against the training data.
Example5 · Design and Prepare a Machine Learning Solution
A retail bank is provisioning its first Azure Machine Learning workspace to build a loan default model. The architect asks which dependent resource the workspace uses to track run metrics, logs, and telemetry. Which Azure resource serves this purpose?
・An Azure Storage account that keeps output files
Incorrect. The storage account holds files and data, but it does not track run metrics or telemetry.
✓An Application Insights resource logging the run metrics and telemetry
Correct. Application Insights is provisioned with the workspace to log run metrics and telemetry.
・An Azure Key Vault that stores the team's secrets, keys, and connection strings
Incorrect. Key Vault secures credentials and keys, not experiment metrics or telemetry.
・An Azure Container Registry that holds the built training container images
Incorrect. Container Registry stores built images and does not record run metrics or telemetry.
Explanation
When an Azure ML workspace is created, Application Insights is the dependent resource used to monitor and log metrics, while Storage, Key Vault, and Container Registry each serve other roles.
Example6 · Design and Prepare a Machine Learning Solution
A data scientist at a credit-card issuer needs an interactive Jupyter environment for one person to explore fraud features and prototype notebooks. Which Azure ML compute option best fits this single-user interactive work?
・A compute cluster that scales its nodes up and down for jobs
Incorrect. A compute cluster targets queued training jobs, not interactive single-user notebooks.
✓A single-user compute instance dedicated to one developer's interactive notebook authoring and prototyping
Correct. A single-user compute instance is a managed box ideal for one developer's interactive notebook authoring and prototyping.
・An attached AKS cluster sized for real-time scoring and inference endpoints
Incorrect. Attached AKS is meant for hosting inference endpoints, not interactive authoring.
・A serverless Spark pool reserved for distributed data wrangling and prep
Incorrect. Serverless Spark suits distributed data prep, not routine notebook prototyping.
Explanation
Compute instances are managed, single-user workstations built for interactive development, whereas clusters, AKS, and Spark address training, inference, and distributed data tasks respectively.
Example7 · Design and Prepare a Machine Learning Solution
A logistics company is standing up its first Azure Machine Learning workspace to build a delivery-ETA model. During workspace creation, which associated Azure resource is used to store trained model files, job outputs, and uploaded training data for the workspace?
✓An Azure Storage account holding data files
Correct. The default Azure Storage account linked to the workspace holds uploaded data, job outputs, logs, and registered model artifacts.
・An Azure Key Vault instance
Incorrect. Key Vault stores the workspace secrets, connection strings, and credentials rather than data files or model artifacts produced by jobs.
・An Azure Container Registry instance
Incorrect. Azure Container Registry stores the Docker images built from environments, not the model files, datasets, or job output blobs.
・An Application Insights telemetry resource
Incorrect. Application Insights collects workspace telemetry and monitoring metrics and does not persist training data or model artifacts at all.
Explanation
Creating a workspace provisions four associated resources: a Storage account, Key Vault, Container Registry, and Application Insights. The Storage account is the backing store for data assets, job outputs, and model artifacts.
Example8 · Design and Prepare a Machine Learning Solution
A data scientist must run frequent, interactive exploratory analysis in Jupyter against a few gigabytes of sensor telemetry from factory machines. The analysis sessions are short and the workstation should be dedicated to one person and stopped when idle to control cost. Which Azure Machine Learning compute target best fits this requirement?
✓A compute instance
Correct. A compute instance is a single-user managed VM ideal for interactive notebook development and can be stopped when idle to avoid charges.
・A permanently running four-node cluster
Incorrect. A compute cluster targets scaled-out batch training jobs, and keeping a four-node minimum running continuously would waste money on idle interactive work.
・An attached Kubernetes Service cluster
Incorrect. An attached Kubernetes Service cluster is designed for hosting real-time inference endpoints in production, not for interactive notebook exploration by a single user.
・A serverless attached Spark pool
Incorrect. A serverless attached Spark pool is meant for distributed data wrangling at large scale, which is excessive for a few gigabytes of interactive analysis.
Explanation
Compute instances are managed single-user development workstations optimized for interactive notebook work. They can be stopped when idle, making them the cost-appropriate choice for short exploratory sessions.
Example9 · Design and Prepare a Machine Learning Solution
A manufacturing analytics team trains a predictive maintenance model nightly on a full year of vibration data. The training job is submitted in batch and must automatically scale out across several nodes and then release all compute when it finishes. Which compute target should be configured for this job?
✓A compute cluster that scales to zero when idle
Correct. A compute cluster auto-scales nodes up for a batch training job and can scale back to zero when idle, releasing compute and cost.
・A compute instance sized for a single large virtual machine instead
Incorrect. A compute instance is a single always-on VM for interactive work and cannot auto-scale across multiple nodes for a distributed batch job.
・A local Docker runtime on a laptop
Incorrect. A local Docker runtime on a laptop cannot scale out across nodes and is unsuitable for an unattended nightly job over a year of data.
・A Kubernetes inference cluster attached to the workspace for serving
Incorrect. A Kubernetes inference cluster is intended for serving real-time predictions, not for running scheduled multi-node training workloads.
Explanation
Compute clusters provide on-demand, auto-scaling multi-node compute for batch training jobs and scale to zero when idle. This matches a scheduled, scale-out nightly training workload.
Example10 · Design and Prepare a Machine Learning Solution
A data scientist at a B2B SaaS analytics vendor is creating the first Azure Machine Learning workspace to train customer-churn models. The security team requires that model artifacts, logs, metrics, and snapshots all land in storage the company already owns, and they must be able to audit every write. Which resource is automatically provisioned with the workspace and used by default to persist these run outputs?
・An Azure Kubernetes Service cluster that the workspace auto-creates to store run outputs
Incorrect. AKS is an optional inference compute target you attach yourself; it is not auto-created to store run outputs.
✓An Azure Storage account set as the default datastore
Correct. A workspace provisions a Storage account registered as workspaceblobstore, the default datastore for snapshots, logs, and outputs.
・An Azure SQL Database that the workspace writes each metric into row by row
Incorrect. Azure SQL Database is not a dependent resource of a workspace, and metrics are tracked by MLflow, not SQL rows.
・An Azure Cognitive Search index that the workspace populates with its training artifacts
Incorrect. Cognitive Search is unrelated to workspace provisioning and does not hold training run outputs.
Explanation
Creating an Azure ML workspace automatically provisions dependent resources including a Storage account, Key Vault, Application Insights, and a container registry. The Storage account is registered as the default datastore (workspaceblobstore) where snapshots, logs, and job outputs are persisted.
Example11 · Design and Prepare a Machine Learning Solution
A gaming studio runs nightly batch retraining of a player-retention model on about 40 GB of event data. Jobs run only a few hours each night, cost must track actual use, and the team wants the cluster to drop to zero nodes when idle but scale out for the batch window. Which compute target should they configure in Azure Machine Learning?
・A single always-on compute instance that the whole team shares for the nightly runs
Incorrect. A compute instance is a single-user dev workstation, not a scalable multi-node batch training target for the team.
✓A compute cluster scaling from zero nodes and autoscaling up for the batch
Correct. A compute cluster scales to a 0-node minimum when idle and autoscales up for the nightly batch, so cost tracks usage.
・An attached Azure Databricks workspace kept running continuously for the nightly batch
Incorrect. Keeping Databricks running continuously defeats the cost-to-usage requirement and adds unnecessary platform overhead.
・A serverless inference endpoint that the batch job calls repeatedly through the night
Incorrect. Inference endpoints serve predictions online; they are not a training compute target for batch retraining.
Explanation
Compute clusters are the standard managed training target in Azure ML: they autoscale between a minimum (often 0) and maximum node count, so you pay only when jobs run. Compute instances are single-user dev boxes and endpoints are for serving, not batch training.
Example12 · Design and Prepare a Machine Learning Solution
A national energy regulator is standing up its first Azure Machine Learning workspace to forecast grid demand. The data science lead wants the provisioning to automatically create the four default dependent resources that an Azure ML workspace relies on. Which set of resources is automatically provisioned alongside the workspace when none are specified?
✓A Storage account, a Key Vault, a Container Registry, and Application Insights
Correct. A new workspace provisions a Storage account for data and artifacts, a Key Vault for secrets, a Container Registry for environment images, and Application Insights for telemetry.
・Azure Synapse Analytics, Azure Data Lake, Azure Event Hubs, and the Azure Monitor service
Incorrect. Synapse, Data Lake, Event Hubs, and Monitor are useful data services but are not the default resources created with a workspace.
・Azure SQL Database, Azure Cosmos DB, Azure Functions, and a Log Analytics workspace
Incorrect. SQL Database, Cosmos DB, Functions, and Log Analytics are unrelated services that the workspace does not automatically create on provisioning.
・Azure Databricks, Azure Container Instances, Azure Batch, and DevOps
Incorrect. Databricks, Container Instances, Batch, and DevOps are separate offerings and are never auto-created as the workspace's default dependencies.
Explanation
When you create an Azure Machine Learning workspace, Azure automatically provisions a linked Storage account, Key Vault, Container Registry, and Application Insights instance. These four resources back storage, secrets, environment images, and monitoring respectively.
Example13 · Design and Prepare a Machine Learning Solution
A municipal water utility needs an Azure ML compute target to run nightly batch training jobs that start on a schedule and must scale down to zero nodes when idle to minimize cost to taxpayers. The team wants a managed, fully provisioned cluster rather than an always-on single VM. Which compute target should they choose?
・A compute instance, because it gives each data scientist a persistent single-node development box
Incorrect. A compute instance is a persistent single-node workstation for development and does not scale down to zero for batch training.
✓A compute cluster, because it auto-scales between a minimum and maximum node count and can idle to zero
Correct. An Azure ML compute cluster auto-scales nodes between configured minimums and maximums, scaling to zero when idle, which suits scheduled batch training.
・An attached Azure Kubernetes Service cluster, because it is primarily intended for driving interactive notebook authoring sessions for data scientists
Incorrect. Attached AKS clusters are oriented toward production inference endpoints, not interactive notebook authoring as stated.
・A serverless Spark pool, because it is the only target that supports scheduled training submissions
Incorrect. Serverless Spark is used for interactive and batch Spark data wrangling and is not the only target that accepts scheduled training jobs.
Explanation
Compute clusters are the standard managed target for training jobs because they elastically scale nodes and can idle down to zero. Compute instances are for development, while AKS targets production inference.
Example14 · Design and Prepare a Machine Learning Solution
A data science team at an insurance firm is building a claims-fraud model and wants a centrally governed Azure resource that stores experiments, registered models, environments, and compute, and that links to a storage account, key vault, and container registry. Which Azure Machine Learning resource should they provision first as the top-level container for all of this?
✓An Azure Machine Learning workspace
Correct. The workspace is the top-level resource that holds experiments, models, environments, and compute, and it is associated with an automatically provisioned storage account, key vault, and container registry.
・An Azure Machine Learning compute cluster
Incorrect. A compute cluster only provides scalable training compute; it is created inside a workspace and does not contain models, datastores, or environments.
・An Azure datastore resource
Incorrect. A datastore stores only the connection details to an external data service and lives inside a workspace rather than containing it.
・An Azure Machine Learning online endpoint
Incorrect. An online endpoint hosts a deployed model for real-time scoring and is a child resource that cannot act as the central container for all assets.
Explanation
The Azure Machine Learning workspace is the foundational resource that all other assets belong to. When created it is linked to a storage account, key vault, and container registry that provide its backing services.
Example15 · Design and Prepare a Machine Learning Solution
A travel-pricing team runs many short, interactive debugging sessions in notebooks throughout the day and wants a single-node, VM-like compute attached to one data scientist that they can start and stop on demand without provisioning a multi-node cluster. Which Azure Machine Learning compute target best fits this interactive workflow?
✓A single-node managed compute instance for one scientist
Correct. A compute instance is a managed single-node workstation assigned to one user for interactive development in notebooks, and it can be started and stopped as needed.
・A multi-node autoscaling compute cluster
Incorrect. A compute cluster is designed for queued, non-interactive training jobs that scale across multiple nodes rather than persistent interactive notebook sessions.
・An attached Kubernetes inferencing cluster
Incorrect. An attached Azure Kubernetes Service cluster is intended for production inferencing deployments, not interactive development work.
・A serverless Spark wrangling pool
Incorrect. A serverless Spark pool targets distributed data wrangling jobs and is not meant to serve as a personal interactive notebook workstation.
Explanation
Compute instances are managed, single-user development workstations ideal for interactive notebook work. Compute clusters and AKS serve batch training and inferencing respectively.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)