Courseiva

CCNA Mlops Infrastructure Questions

38 questions · Mlops Infrastructure topic · All types, answers revealed

1
MCQeasy

Which Azure feature is used to define infrastructure as code for your Azure ML workspace?

A.Azure Portal
B.Azure Bicep
C.PowerShell
D.Azure CLI
AnswerB

Bicep is a declarative language for deploying Azure infrastructure.

Why this answer

Azure Bicep is the recommended tool for defining and deploying Azure resources as code.

2
MCQhard

Your team uses a custom Docker image for training. You need to update the image in the Azure Container Registry (ACR). What is the recommended workflow to ensure Azure ML picks up the latest version?

A.Modify the storage account permissions
B.Restart the compute cluster
C.Update the image tag and refresh the Environment
D.Delete and recreate the workspace
AnswerC

Azure ML environments rely on tags; refreshing the environment definition ensures the latest image is used.

Why this answer

Updating the image tag and updating the environment definition in Azure ML forces the system to pull the new version.

3
Multi-Selectmedium

Which TWO of the following can be used to manage Azure ML assets like environments and models?

Select 2 answers
A.Azure Monitor
B.Azure Logic Apps
C.Azure CLI v2
D.Azure ML Studio
E.Power BI
AnswersC, D

Provides command-line management.

Why this answer

The Azure ML Studio UI and the CLI v2 are both primary interfaces for asset management.

4
MCQhard

A training job is consuming too much disk space on a compute cluster. What can you do to provide more persistent scratch space?

A.Mount a Datastore as a mount point
B.Use a smaller Docker container
C.Increase the OS disk size of the VM
D.Change the experiment name
AnswerA

Mounting a Datastore provides external storage that can be used for large datasets or scratch space.

Why this answer

Mounting a Datastore or using Azure Files provides persistent, shared scratch space accessible by the compute cluster.

5
MCQeasy

In Azure ML, what is a 'Component'?

A.A storage account
B.A reusable pipeline step
C.A user role
D.A physical server
AnswerB

Components are modular, reusable steps in an ML pipeline.

Why this answer

A component is a reusable, versioned building block for an ML pipeline.

6
Multi-Selecteasy

Which TWO of the following are benefits of using Azure ML Environments?

Select 2 answers
A.Network traffic filtering
B.Consistent software dependencies
C.Database optimization
D.Versioning of software stacks
E.Automatic scaling
AnswersB, D

Ensures reproducibility.

Why this answer

Environments ensure reproducibility and simplify dependency management across environments.

7
MCQmedium

You need to ensure that a training script running on Azure ML has access to secrets (like API keys) without hardcoding them in the script. What should you use?

A.Azure Key Vault
B.Environment variables in the Dockerfile
C.Local configuration files
D.Hardcoding in the script
AnswerA

Key Vault stores secrets securely and allows the workspace to retrieve them at runtime.

Why this answer

Azure Key Vault is integrated with Azure ML to securely manage and inject secrets into training jobs.

8
MCQmedium

You need to attach an existing Azure Kubernetes Service (AKS) cluster to your Azure ML workspace for model inference. Which credential type is required to establish this connection?

A.SAS Token
B.Managed Identity
C.Azure Active Directory B2C
D.Service Principal
AnswerD

Azure ML requires a Service Principal to manage and interact with the Kubernetes API on the attached cluster.

Why this answer

The Service Principal is the standard method for managing identity-based access for AKS clusters attached to Azure ML.

9
MCQmedium

You need to orchestrate a series of ML steps (Data prep, Training, Evaluation). Which Azure ML feature is specifically designed for this?

A.Notebooks
B.Azure ML Pipelines
C.Batch endpoints
D.AutoML
AnswerB

Pipelines are the standard for chaining ML tasks.

Why this answer

Azure ML Pipelines allow you to string together components into a workflow.

10
MCQeasy

You are setting up an Azure Machine Learning workspace and need to ensure that the workspace is not accessible from the public internet. Which networking feature should you configure?

A.Azure Bastion
B.Application Gateway
C.Private Endpoint
D.Service Tags
AnswerC

A Private Endpoint provides a private IP address for the workspace, blocking public access.

Why this answer

A Private Endpoint allows you to access your workspace securely via a private IP address within your virtual network.

11
MCQeasy

What is the purpose of the Azure ML 'Model Registry'?

A.Managing network access
B.Calculating accuracy metrics
C.Executing training jobs
D.Storing model version history
AnswerD

The registry keeps track of models, versions, and lineage.

Why this answer

The Registry manages versioning and metadata of trained models.

12
MCQeasy

What is the primary function of an Azure ML 'Datastore'?

A.Connection to storage services
B.Experiment tracking
C.Model registry
D.Compute resource management
AnswerA

Datastores act as a bridge to underlying storage, keeping credentials abstract.

Why this answer

Datastores are abstractions to securely connect to underlying data storage services like Blob storage or Data Lake.

13
Multi-Selecteasy

Which TWO of the following storage types can be registered as an Azure ML Datastore?

Select 2 answers
A.Azure App Service
B.Azure Blob Storage
C.Azure Data Lake Storage Gen2
D.Azure Active Directory
E.Azure Bot Service
AnswersB, C

Standard datastore.

Why this answer

Azure Blob Storage and Azure Data Lake Storage Gen2 are both standard datastore types.

14
Multi-Selecteasy

Which THREE of the following are types of Azure ML endpoints?

Select 3 answers
A.Network endpoint
B.Database endpoint
C.Batch endpoint
D.Web service (legacy)
E.Managed online endpoint
AnswersC, D, E

Standard batch inference endpoint.

Why this answer

Managed online, batch, and web service (legacy) represent the main endpoint categories.

15
MCQhard

You are experiencing latency issues with a model deployed on a Managed Online Endpoint. What is the first thing you should check?

A.Application Insights logs
B.The Azure ML workspace name
C.The subscription limit
D.The storage account size
AnswerA

Logs provide granular detail on request processing times and potential bottlenecks.

Why this answer

Reviewing logs in Application Insights identifies performance bottlenecks and latency issues.

16
Multi-Selectmedium

Which TWO of the following are benefits of using the Azure ML CLI v2 for your MLOps pipelines?

Select 2 answers
A.Native integration with CI/CD tools
B.Automatic model training
C.No need for Python
D.Built-in model visualization
E.Declarative YAML configurations
AnswersA, E

Designed for automation in DevOps/GitHub.

Why this answer

CLI v2 enables YAML-based infrastructure-as-code and better cross-platform support.

17
MCQeasy

You need to monitor the health of your deployed Azure ML models. Which service is integrated directly with Azure ML to provide automated metrics and logging?

A.Azure Event Grid
B.Azure Application Insights
C.Azure Policy
D.Azure Data Factory
AnswerB

Application Insights collects telemetry and performance metrics from deployed endpoints.

Why this answer

Azure Application Insights is the native service for monitoring logs, metrics, and telemetry from deployed model endpoints.

18
MCQmedium

You are using GitHub Actions. You want to authenticate to Azure without using hardcoded credentials. What should you use?

A.SSH keys
B.OIDC
C.Azure Storage keys
D.User name and password
AnswerB

OIDC allows GitHub Actions to assume an Azure identity without secrets.

Why this answer

OIDC (OpenID Connect) is the secure way for GitHub Actions to authenticate to Azure.

19
MCQmedium

You want to track your model experiments and compare their performance metrics. Which Azure ML feature provides this capability?

A.Environments
B.Model Registry
C.Compute targets
D.Experiments
AnswerD

Experiments are the standard container for tracking and comparing ML runs.

Why this answer

The Experiments and Run History in Azure ML automatically log and compare metrics across different runs.

20
MCQeasy

When configuring a compute instance, which setting allows you to automatically stop the instance during periods of inactivity?

A.Provisioning timeout
B.Idle shutdown
C.Auto-scaling
D.Priority based scheduling
AnswerB

Idle shutdown provides automated cost management based on inactivity.

Why this answer

Idle shutdown automatically turns off the compute instance when no active processes are detected, saving costs.

21
MCQmedium

You want to automate the deployment of a model using GitHub Actions. Which file format is standard for defining the Azure ML CLI v2 deployment configuration?

B.XML
C.Bicep
D.YAML
AnswerD

CLI v2 utilizes YAML configuration files for defining infrastructure as code.

Why this answer

Azure ML CLI v2 uses YAML files to define configurations for jobs, endpoints, and deployments.

22
Multi-Selecthard

Which THREE of the following are key components of a robust MLOps strategy in Azure?

Select 3 answers
A.Manual model testing
B.Automated CI/CD pipelines
C.Version control for code and models
D.Using only local workstations
E.Automated model monitoring
AnswersB, C, E

Essential for deployment speed and consistency.

Why this answer

Version control, automated pipelines, and model monitoring are pillars of MLOps.

23
MCQmedium

You are creating a CI/CD pipeline in Azure DevOps. Which extension is essential to integrate Azure ML tasks into your build/release pipeline?

A.Visual Studio Code extension
B.Terraform extension
C.Azure Machine Learning extension
D.Kubernetes extension
AnswerC

This extension enables native tasks like model registration, training runs, and deployment.

Why this answer

The Azure Machine Learning extension provides the necessary tasks to interact with the Azure ML CLI from DevOps pipelines.

24
MCQmedium

You are setting up an MLOps pipeline and need to ensure that only approved models are deployed. Which feature should you use?

A.Model Registry statuses
B.Data labeling
C.Compute targets
D.Auto-scaling
AnswerA

Registry statuses allow you to control and gate which versions move to production.

Why this answer

Model tagging and status (e.g., 'Production', 'Staging') in the Model Registry allow for governance and gates.

25
MCQhard

A data scientist needs to access data in an Azure Data Lake Storage Gen2 account from Azure ML. You need to ensure the workspace uses the most secure method to access this data. What should you configure?

A.Shared Key
B.User-Assigned Managed Identity
C.Public Access
D.Account SAS
AnswerB

Managed identities provide secure, secret-less authentication to Azure resources.

Why this answer

Using a User-Assigned Managed Identity allows the Azure ML workspace to authenticate with the storage account without storing keys.

26
Multi-Selecthard

Which TWO of the following are required to secure an Azure ML workspace using a Private Link?

Select 2 answers
A.Public IP address
B.A Virtual Network (VNet)
C.Private Endpoint
D.Data Factory instance
E.Azure Active Directory B2C
AnswersB, C

Required to host the private endpoint.

Why this answer

A Private Endpoint and a specific VNet configuration are core to the Private Link setup.

27
MCQhard

You are managing a multi-workspace environment. You need to restrict the ability to create new compute clusters to only specific users. Where should you apply this control?

A.Azure RBAC on the Workspace
B.Network Security Group
C.Azure Storage Access Policies
D.Azure ML Datastore configuration
AnswerA

Azure RBAC allows for granular permissions, specifically who can manage compute clusters.

Why this answer

RBAC (Role-Based Access Control) at the workspace level determines which users can interact with compute resources.

28
MCQhard

You need to prevent data egress from your Azure ML environment. What configuration is required?

A.Enable public access
B.Use a public load balancer
C.Create a new resource group
D.Managed VNet and egress locks
AnswerD

Managed VNets allow for granular control over network traffic, including blocking egress.

Why this answer

A workspace with no public IP and a managed virtual network with egress controls prevents unauthorized data movement.

29
MCQeasy

What is the primary benefit of using Azure ML compute clusters instead of compute instances for training?

A.Support for multiple nodes
B.Clusters have more RAM per node
C.Instances are deprecated
D.Cost is always lower
AnswerA

Compute clusters support multi-node scaling for distributed training.

Why this answer

Compute clusters are designed for distributed, scalable training across multiple nodes.

30
MCQhard

You need to debug a training job that is failing inside a specific Docker container. What is the best way to investigate?

A.Delete the datastore
B.Use the Azure ML SDK to download the container image
C.Use 'az ml job stream' to view logs
D.Submit a new training job without parameters
AnswerC

Streaming logs provides real-time visibility into the containerized process.

Why this answer

The standard approach is to use 'az ml job stream' to view logs or access the compute node via SSH if enabled.

31
MCQeasy

Which component in an Azure ML pipeline definition is responsible for specifying the runtime environment, including Python packages and Conda dependencies?

A.Compute Target
B.Datastore
C.Component
D.Environment
AnswerD

The Environment defines the software configuration, packages, and Docker image for the execution.

Why this answer

The Environment object defines the software stack, including dependencies and Docker images, needed for a job.

32
MCQhard

A pipeline step fails because it cannot find a file in the datastore. What is the most likely cause?

A.The workspace is too large
B.The compute cluster is off
C.Incorrect path definition in the component
D.The subscription is expired
AnswerC

Pipeline components must accurately reference paths within the mounted datastore.

Why this answer

The mount path or the relative path defined in the pipeline step component configuration is likely incorrect.

33
MCQmedium

You are deploying a model as a real-time endpoint. You want to ensure the deployment can handle sudden spikes in traffic. Which scaling configuration should you enable?

A.Auto-scaling
B.Static node count
C.Batch deployment
D.Pre-warmed instances
E.None of the above
AnswerA

Auto-scaling dynamically adjusts resources based on defined metrics like CPU utilization.

Why this answer

Auto-scaling allows the endpoint to dynamically adjust node count based on CPU/Memory usage.

34
Multi-Selecteasy

Which THREE of the following are valid compute targets for Azure Machine Learning training?

Select 3 answers
A.Compute Cluster
B.Attached Kubernetes Cluster
C.Compute Instance
D.Azure Function
E.SQL Database
AnswersA, B, C

Valid training target.

Why this answer

Azure ML supports Compute Instances, Compute Clusters, and attached Kubernetes clusters for training.

35
Multi-Selectmedium

Which THREE of the following represent lifecycle stages of an ML model in Azure ML?

Select 3 answers
A.Training
B.Data Cleaning
C.Registration
D.Deployment
E.Policy Enforcement
AnswersA, C, D

The model generation phase.

Why this answer

Training, Registration, and Deployment are sequential stages in the model lifecycle.

36
Multi-Selecthard

Which THREE of the following are common reasons for a model deployment to fail on a Managed Online Endpoint?

Select 3 answers
A.Missing Python dependencies
B.Incorrect storage account name
C.Insufficient quota for the VM SKU
D.Errors in the scoring script
E.Slow internet connection
AnswersA, C, D

Causes runtime import errors.

Why this answer

Invalid scoring scripts, missing dependencies in the environment, and insufficient resource limits are frequent causes.

37
Multi-Selectmedium

Which THREE factors influence the cost of an Azure ML Compute Cluster?

Select 3 answers
A.Idle time before shutdown
B.Minimum number of nodes
C.Workspace name
D.Number of users
E.VM SKU (size/type)
AnswersA, B, E

Reduces cost during inactivity.

Why this answer

VM SKU, node count, and idle time settings directly impact spending.

38
MCQhard

Your Azure ML training job fails with an 'Out of Memory' error on a GPU cluster. You need to ensure the job runs successfully without modifying the model code. What should you do?

A.Increase the idle time for the compute cluster
B.Enable auto-scale to zero
C.Change the VM size to one with higher memory
D.Update the workspace storage account
AnswerC

Selecting a VM SKU with more RAM and GPU memory resolves OOM errors.

Why this answer

Scaling up to a VM size with more RAM or GPU memory is the most direct way to resolve OOM issues in training jobs.

Ready to test yourself?

Try a timed practice session using only Mlops Infrastructure questions.