Courseiva

CCNA Containerized Ai Workloads Questions

42 of 117 questions · Page 2/2 · Containerized Ai Workloads topic · Answers revealed

76
MCQmedium

You are managing multiple containerized AI models in AKS. You want to implement a service mesh to handle traffic splitting and mTLS. Which tool should you integrate?

A.Calico.
B.Azure Application Gateway Ingress Controller (AGIC).
C.Istio.
D.Azure Load Balancer.
AnswerC

Istio provides the traffic splitting and mTLS required.

Why this answer

Istio is the standard service mesh supported for AKS to provide traffic management and security.

77
MCQmedium

Your containerized AI application needs to access sensitive API keys. What is the most secure way to provide these to your application in Azure Container Apps?

A.Store them in environment variables in the YAML file.
B.Hardcode them in the application code.
C.Store them in a sidecar container.
D.Use Azure Key Vault references.
AnswerD

Key Vault references keep secrets out of the configuration and inject them at runtime.

Why this answer

Azure Key Vault references allow secrets to be injected securely into the container environment.

78
MCQmedium

You are running an AI inference workload in an Azure Kubernetes Service (AKS) cluster. The pods require access to an Azure Machine Learning workspace data store via managed identity without storing credentials in code. Which Kubernetes feature should you configure?

A.Azure CNI Overlay
B.Kubernetes Secrets CSI driver
C.Node-level Managed Identity
D.Azure AD Workload Identity
AnswerD

Azure AD Workload Identity integrates Kubernetes service accounts with Azure AD managed identities securely.

Why this answer

Azure AD Workload Identity enables Kubernetes service accounts to securely connect to Azure cloud resources using Azure AD managed identities.

79
MCQmedium

You are optimizing an AI model container image size. Which technique is most effective for reducing the footprint of an image based on a large Python deep learning framework?

A.Implement multi-stage Docker builds.
B.Enable ACR Georeplication.
C.Store model weights as image layers.
D.Use the 'latest' tag for all base images.
AnswerA

This discards build-time compilers and source code, significantly shrinking the image.

Why this answer

Multi-stage builds allow you to keep only the runtime dependencies in the final image, excluding build-time tools.

80
MCQmedium

You are troubleshooting an AI inference container in Azure Container Apps that fails to start because it cannot pull the base image from Azure Container Registry. Authentication fails with an unauthorized error. What is the recommended way to grant the Container App access to ACR?

A.Hardcode the admin username and password into environment variables
B.Configure a system-assigned managed identity on the Container App and assign the AcrPull role on ACR
C.Expose the ACR endpoint publicly without authentication
D.Attach an Azure Storage Account SAS token to the container environment
AnswerB

Managed identities eliminate stored credentials and securely authenticate Container Apps to ACR.

Why this answer

Enabling a managed identity on the Container App and granting it the AcrPull role on the Azure Container Registry is the secure, modern authentication approach.

81
MCQmedium

You are deploying a distributed PyTorch training job across multiple nodes in an Azure Kubernetes Service (AKS) cluster. Which mechanism should you use to facilitate high-speed, low-latency inter-node communication required for gradient synchronization?

A.Kubenet basic networking with dynamic NAT
B.Node placement with GPU-optimized VM series (such as NDm A100 v4) and InfiniBand support
C.Azure Application Gateway Ingress Controller (AGIC)
D.Standard Azure CNI with Network Policies enabled
AnswerB

Using specialized GPU VMs equipped with SR-IOV and InfiniBand provides the high throughput needed for distributed gradient sync.

Why this answer

Distributed deep learning frameworks require low-latency networks; InfiniBand or high-performance SR-IOV enabled GPU VMs (like ND-series) with MPI are standard. In AKS, Azure CNI with appropriate networking and node selection enables high-performance setups.

82
MCQeasy

You have an AI model container that takes 10 seconds to load weights into memory upon startup. Users report HTTP 503 errors immediately after deployment because traffic is routed to the container before it is ready. Which probe should you configure?

A.Liveness probe
B.Startup probe
C.Resource quota probe
D.TCP socket probe
AnswerB

A startup probe tells the orchestrator that the application is still initializing, preventing premature traffic routing.

Why this answer

A startup probe in Kubernetes or Container Apps delays liveness and readiness checks until the application has fully initialized.

83
MCQeasy

Your data science team pushes container images to Azure Container Registry (ACR). You need to ensure that every image pushed is automatically scanned for known vulnerabilities before being deployed to production. Which ACR feature should you enable?

A.Microsoft Defender for Cloud vulnerability scanning
B.ACR Tasks
C.Azure Policy geo-replication rules
D.Content Trust signing
AnswerA

Defender for Cloud scans images pushed to ACR for Common Vulnerabilities and Exposures (CVEs).

Why this answer

Microsoft Defender for Cloud integrates with ACR to provide vulnerability scanning for container images upon push or import.

84
MCQhard

You are deploying an AI model to AKS that requires a specific kernel module. What is the recommended strategy to ensure the node has this module?

A.Use a privileged InitContainer to load the module.
B.Ask Microsoft support to update the kernel.
C.Modify the AKS cluster configuration file.
D.Include the module in the Docker image.
AnswerA

A privileged DaemonSet or InitContainer can load kernel modules if permissions allow.

Why this answer

Using a Custom Node Image or a DaemonSet to load the module is the standard way to handle kernel dependencies.

85
Multi-Selecthard

Which THREE of the following are benefits of using ACR Tasks for containerized AI workloads?

Select 3 answers
A.Automatic scaling of the registry.
B.Triggering builds on base image updates.
C.Automated image building from source code.
D.Multi-step build tasks.
E.Direct deployment to Azure SQL.
AnswersB, C, D

Keeps AI images patched automatically.

Why this answer

ACR Tasks automate builds, secure workflows, and integrate with source control triggers.

86
MCQhard

You are optimizing a large language model container inference deployment on AKS using GPU-enabled nodes (NC-series). The inference server experiences frequent out-of-memory errors on the GPU device itself during high context lengths. Which Kubernetes configuration metric should you monitor and alert on?

A.container_memory_working_set_bytes via kubelet
B.container_cpu_cfs_throttled_periods_total
C.node_net_bytes_total
D.container_gpu_memory_used_bytes via NVIDIA DCGM Exporter
AnswerD

NVIDIA DCGM exporter tracks GPU-specific memory consumption metrics directly.

Why this answer

Monitoring NVIDIA GPU memory usage via DCGM (Data Center GPU Manager) metrics in Prometheus/Grafana is critical for detecting GPU out-of-memory errors.

87
MCQeasy

You need to store sensitive database connection strings and AI API keys used by containerized applications running in Azure Container Apps. Which feature should you use to securely store and reference these values?

A.A standard DNS TXT record
B.Container App Secrets
C.Azure Storage account public blob container
D.Plain text Dockerfile ENV directives
AnswerB

Container App secrets securely store sensitive data that can be referenced as environment variables.

Why this answer

Azure Container Apps supports built-in secrets management, allowing secure storage and referencing of sensitive configuration data.

88
MCQeasy

Which command-line interface tool is used to deploy and manage container images directly to Azure Container Registry?

A.helm.
B.docker build.
C.az acr.
D.kubectl.
AnswerC

az acr is the Azure CLI module for ACR.

Why this answer

The Azure CLI (az acr) is the standard tool for managing ACR resources.

89
MCQmedium

You are managing an AKS cluster and need to ensure that GPU driver updates do not disrupt running AI inference workloads. Which AKS feature helps manage GPU operator lifecycle and driver installation?

A.Azure Bastion host extension
B.Azure Policy for Kubernetes
C.NVIDIA GPU Operator installed via Helm
D.Container Insights agent upgrade
AnswerC

The NVIDIA GPU Operator manages GPU drivers, CUDA software, and device plugins automatically on Kubernetes.

Why this answer

AKS supports automated GPU driver installation and management using GPU-optimized node image SKUs and the NVIDIA GPU Operator.

90
MCQhard

You are configuring an Azure Container Apps environment with a custom Virtual Network. Your AI containers need to securely connect to an Azure SQL Database that is secured behind a private endpoint. Which configuration is required on the Container Apps environment?

A.Use an external Azure Application Gateway in front of the container apps
B.Deploy the Container Apps environment into a custom VNet with workload profile subnets
C.Enable Azure Bastion on the subnet
D.Configure IP restriction rules on the ingress controller
AnswerB

Integrating Azure Container Apps into a custom VNet allows resolution and routing to private endpoints.

Why this answer

To communicate with private endpoints within a VNet, Azure Container Apps must be deployed within a custom virtual network with a dedicated subnet.

91
MCQhard

You are deploying a high-performance AI model in AKS. You need to ensure the container has access to the underlying host's NVIDIA GPU. What must be configured in the Pod spec?

A.Mount the host path '/dev/nvidia0'.
B.Use an InitContainer to install the driver.
C.Set 'privileged: true' in the security context.
D.Define a Resource Request for 'nvidia.com/gpu'.
AnswerD

This resource request is required for the NVIDIA device plugin to assign a GPU to the pod.

Why this answer

The pod must request 'nvidia.com/gpu' resources to ensure the scheduler places it on a GPU node and mounts the drivers.

92
MCQmedium

You are setting up auto-scaling for a containerized AI web app in Azure Container Apps. You want to scale based on the number of concurrent HTTP requests. Which scaler do you use?

A.Azure Service Bus scaler.
B.HTTP scaler.
C.CPU usage scaler.
D.Memory usage scaler.
AnswerB

The HTTP scaler allows scaling based on request concurrency.

Why this answer

The 'http' scaler in KEDA (integrated in ACA) is specifically designed to scale based on HTTP traffic.

93
MCQhard

You notice that your AKS pods are stuck in 'ContainerCreating' state. You check the events and see 'FailedMount'. What is the most likely cause?

A.The node is out of CPU resources.
B.The container crashed immediately.
C.The container image is too large.
D.The associated Persistent Volume Claim (PVC) is missing or cannot be bound.
AnswerD

FailedMount is the standard error when a volume cannot be mounted.

Why this answer

FailedMount typically occurs when a requested volume (like a PVC or Secret) cannot be attached or accessed.

94
Multi-Selecteasy

Which TWO of the following are valid ways to authenticate an AKS cluster to an Azure Container Registry?

Select 2 answers
A.Azure Managed Identity.
B.Azure Active Directory Service Principal.
C.Azure Monitor.
D.Hardcoded Docker config file.
E.Azure Policy.
AnswersA, B

Preferred modern method.

Why this answer

Managed Identity and Service Principals are the two standard ways for AKS to authenticate to ACR.

95
Multi-Selectmedium

Which TWO of the following features help manage traffic to containerized applications?

Select 2 answers
A.Azure Monitor.
B.Azure Key Vault.
C.Service Mesh (Istio/Linkerd).
D.Azure Blob Storage.
E.Kubernetes Ingress Controller.
AnswersC, E

Provides traffic splitting and mTLS.

Why this answer

Ingress controllers and Service Mesh (like Istio) are the standard tools for traffic management.

96
Multi-Selecthard

Which TWO of the following techniques help optimize the performance of containerized AI models in AKS?

Select 2 answers
A.Tune pod resource limits and requests.
B.Disable all logging.
C.Use the standard CNI instead of Azure CNI.
D.Increase the replica count to 100 for all services.
E.Use dedicated node pools for GPU tasks.
AnswersA, E

Ensures optimal resource utilization.

Why this answer

Resource tuning and node selection are the most effective ways to optimize performance.

97
MCQhard

You are integrating Azure Container Registry with Azure Kubernetes Service. You want to enable authentication without storing static credentials (username/password) in Kubernetes secrets. What is the recommended integration method?

A.Store ACR admin credentials in a Kubernetes Secret object
B.Configure a Docker daemon config.json file on every node manually
C.Attach the ACR to the AKS cluster using Azure CLI attachment command
D.Enable anonymous pull on the Azure Container Registry
AnswerC

ACR-AKS integration automatically configures the kubelet identity with Reader/AcrPull permissions on the registry.

Why this answer

Attaching an ACR to an AKS cluster using 'az aks update --attach-acr' automatically grants the AKS kubelet managed identity permissions to pull images from the registry.

98
MCQmedium

You have an AI scoring script that runs periodically. You want to execute this containerized workload on a schedule without managing virtual machines. Which Azure service is best suited for running containerized batch jobs on a schedule?

A.Azure Kubernetes Service CronJobs
B.Azure Container Instances with restart policy Always
C.Azure Functions with HTTP triggers
D.Azure Container Apps Jobs
AnswerD

Container Apps Jobs are specifically designed for scheduled or triggered task execution to completion.

Why this answer

Azure Container Apps Jobs allow you to run containerized batch tasks triggered on a schedule, on-demand, or via events.

99
MCQmedium

You have an AI model container hosted in Azure Container Registry. You want to ensure that every container image pushed to the registry is automatically scanned for known vulnerabilities before deployment. Which ACR feature should you enable?

A.ACR Tasks auto-purge
B.Content Trust
C.ACR geo-replication
D.Microsoft Defender for Cloud vulnerability scanning
AnswerD

Defender for Cloud scans images pushed to ACR for Common Vulnerabilities and Exposures (CVEs).

Why this answer

Microsoft Defender for Cloud integrates with Azure Container Registry to provide vulnerability scanning for container images upon push or import.

100
MCQeasy

You want to limit the CPU resources that a specific AI inference pod can consume. Which Kubernetes field do you configure?

A.resources.requests.
B.securityContext.
C.resources.limits.
D.livenessProbe.
AnswerC

Limits provide the hard ceiling for resource usage.

Why this answer

The 'resources.limits' field in the container spec defines the maximum CPU and memory a pod can use.

101
Multi-Selectmedium

You are deploying an AI model container in Azure Container Apps. Which TWO authentication mechanisms can you configure for securely pulling the image from a private Azure Container Registry?

Select 2 answers
A.ACR administrator username and password
B.Azure Active Directory client certificate stored in public DNS
C.Azure Storage account connection string
D.System-assigned managed identity
E.Anonymous public pull token
AnswersA, D

Admin credentials can be supplied directly in the container app registry settings.

Why this answer

Container Apps can authenticate to ACR using either a managed identity or registry administrator credentials.

102
MCQeasy

Your team pushes custom AI model container images to Azure Container Registry (ACR). Company policy states that all container images must be automatically scanned for Common Vulnerabilities and Exposures (CVEs) upon push. Which ACR service tier must you use to meet this requirement using Microsoft Defender for Cloud?

A.Premium tier
B.Free tier
C.Standard tier
D.Basic tier
AnswerA

The Premium tier is required to integrate Microsoft Defender for Cloud vulnerability assessments for container images.

Why this answer

Vulnerability scanning integrated with Microsoft Defender for Cloud requires the Premium tier of Azure Container Registry.

103
MCQmedium

You are deploying an AI model container to Azure Container Apps. The container application needs to securely connect to an Azure SQL Database without storing plain-text database credentials in environment variables or application code. What is the recommended feature to use?

A.Azure Key Vault references with managed identity
B.Azure Container Registry admin credentials
C.Container Apps encrypted environment variables
D.Kubernetes secrets mapped via sidecar proxy
AnswerA

Azure Container Apps natively supports referencing Azure Key Vault secrets securely using a managed identity.

Why this answer

Managed identities for Azure resources allow Azure Container Apps to authenticate to Azure services that support Azure AD authentication without embedding credentials in code or configuration.

104
MCQmedium

You are configuring an Azure Kubernetes Service (AKS) cluster to host GPU-accelerated AI model inference workloads using NVIDIA GPUs. Which component must you install in the cluster to enable containerized workloads to utilize the GPU nodes?

A.NVIDIA Device Plugin for Kubernetes
B.KEDA scaler
C.NVIDIA GPU Operator
D.Azure Monitor agent
AnswerC

The NVIDIA GPU Operator automates the installation of GPU drivers, container runtime, and device plugins required for AKS GPU nodes.

Why this answer

The NVIDIA GPU Operator automates the management of all NVIDIA software components needed to provision GPUs in Kubernetes.

105
Multi-Selecthard

You are configuring secure ingress and network isolation for an Azure Container Apps environment. Which THREE capabilities are supported when configuring networking for Container Apps? (Choose three.)

Select 3 answers
A.Exposing the environment with either external (public) or internal (private VNet) ingress
B.Direct modification of physical Azure datacenter top-of-rack switches
C.Deploying the environment within a customer-managed Azure Virtual Network (VNet) subnet
D.Direct attachment of physical Fibre Channel storage SAN arrays
E.Configuring custom domain names with automated managed TLS/SSL certificates
AnswersA, C, E

Ingress can be configured as external for public access or internal for VNet-only private access.

Why this answer

Azure Container Apps supports custom domain bindings with managed certificates, integration into a pre-existing Virtual Network (VNet), and internal/external ingress configuration.

106
MCQeasy

You are using Azure Container Apps to host a web API for an AI model. You want to ensure that only authorized traffic reaches the container. How should you secure the endpoint?

A.Configure an Azure Firewall in front of the Container App.
B.Enable 'Authentication' in the Ingress settings.
C.Use the --allow-all flag in the deployment command.
D.Place the container in a Public IP configuration.
AnswerB

ACA provides built-in authentication integration for ingress.

Why this answer

Container Apps can be placed in a VNET or use 'Ingress' settings with 'Authentication' enabled (e.g., Azure AD).

107
MCQmedium

You want to track the latency of your model inference API in production. Which Azure tool should you integrate into your containerized application?

A.Azure Application Insights.
B.Azure Storage Queue.
C.Azure Event Hubs.
D.Azure Data Factory.
AnswerA

App Insights tracks request latency and performance.

Why this answer

Application Insights is the standard for monitoring performance metrics and telemetry in Azure.

108
MCQhard

You are troubleshooting high latency in an AI inference workload on AKS. You suspect the issue is caused by container startup time (cold starts). Which feature helps mitigate this?

A.Configuring Vertical Pod Autoscaler.
B.Azure Container Registry Artifact Streaming.
C.Increasing the memory limit for the pod.
D.Using a smaller base OS distribution.
AnswerB

Artifact streaming allows containers to start before the image is fully pulled.

Why this answer

Image Pull Secrets and ACR 'Artifact Streaming' (or pre-pulling images) are designed to reduce startup latency.

109
Multi-Selecthard

You are troubleshooting a containerized AI model deployment in Azure Container Apps that fails to pass its HTTP readiness probe. You need to inspect the container logs and runtime diagnostics. Which THREE tools or commands can you use to troubleshoot this issue? Each correct answer presents a complete solution.

Select 3 answers
A.Access the Azure Portal and use the Console diagnostic tool for the specific container app revision.
B.Run the az containerapp logs show Azure CLI command.
C.Query the Log Analytics workspace configured for the Container Apps environment.
D.Execute az aks browse to open the Kubernetes dashboard.
E.Use kubectl describe pod to inspect Kubernetes events.
AnswersA, B, C

The Azure Portal provides a built-in interactive console to connect directly to a running container revision for troubleshooting.

Why this answer

To troubleshoot Azure Container Apps, you can use the Azure CLI command 'az containerapp logs show', inspect the Log Analytics workspace where system and console logs are streamed, or use the Azure Portal Container Apps console diagnostic tools.

110
MCQmedium

You need to deploy a set of batch AI processing containers in Azure Container Instances that run to completion and then terminate. Which container group restart policy should you select?

A.Always
B.Never
C.UnlessStopped
D.OnFailure
AnswerB

Setting restart policy to Never ensures the container does not restart after completing its task.

Why this answer

For batch jobs that run to completion and stop, the restart policy should be set to Never or OnFailure.

111
MCQhard

You are configuring TLS termination for an AI model API hosted in Azure Container Apps using a custom domain name. Where must you upload or configure the custom SSL certificate?

A.In the Container App custom domains settings using a Key Vault reference or uploaded certificate
B.In the Azure Container Registry webhook configuration
C.Inside the container image filesystem under /etc/ssl/certs
D.On the underlying Azure Container Instances node pool
AnswerA

Container Apps supports binding custom SSL certificates managed directly within the app's custom domain settings.

Why this answer

Custom domain certificates in Azure Container Apps are managed via the custom domains and certificates blade of the Container App resource.

112
MCQeasy

Which Azure feature allows you to scan images in your registry for vulnerabilities before deploying them to your production cluster?

A.Microsoft Defender for Containers.
B.Azure Monitor.
C.Azure Key Vault.
D.Azure Policy.
AnswerA

Defender provides vulnerability scanning for images in ACR.

Why this answer

Microsoft Defender for Containers (formerly Defender for ACR) provides scanning for images in ACR.

113
MCQmedium

You are deploying an AI model container to Azure Container Apps. The container requires persistent storage to cache downloaded Hugging Face model weights across container restarts. Which storage type should you attach to the Container App?

A.Azure Managed Disks (Premium SSD) direct attach
B.Azure Blob Storage FUSE driver
C.Azure Files mount via Container Apps storage configuration
D.Ephemeral emptyDir volume
AnswerC

Mounting an Azure Files share provides shared, persistent filesystem storage accessible by container replicas.

Why this answer

Azure Container Apps supports mounting Azure Files shares as volumes for persistent storage across container lifecycles.

114
MCQeasy

You are deploying a custom PyTorch model container image to Azure Container Apps. The container needs to scale out based on HTTP concurrent requests. Which built-in scale rule type should you configure in Azure Container Apps?

A.azure-service-bus
B.cpu
C.tcp
AnswerD

The http scale rule scales container replicas based on concurrent HTTP requests.

Why this answer

Azure Container Apps supports a built-in HTTP scale rule that scales applications based on the number of concurrent HTTP requests per replica.

115
MCQmedium

You are deploying an AI workload to Azure Container Apps. You need to ensure the container scales down to zero when there is no traffic. What should you configure?

A.Set maximum replicas to 0.
B.Enable the 'Always On' flag.
C.Set minimum replicas to 0.
D.Configure an external HTTP trigger.
AnswerC

Setting min-replicas to 0 allows for scale-to-zero.

Why this answer

Setting the min-replicas to 0 enables scale-to-zero in ACA.

116
Multi-Selecteasy

Your organization requires that container images stored in Azure Container Registry (ACR) comply with security standards. Which TWO actions can you take to secure container images in ACR? (Choose two.)

Select 2 answers
A.Grant Contributor permissions to every external guest user
B.Store registry administrator credentials in public GitHub repositories for easy team access
C.Disable all network firewalls on the registry to allow unrestricted public pulling
D.Enable Microsoft Defender for Cloud vulnerability scanning for ACR registries
E.Enable content trust to ensure only signed container images are deployed
AnswersD, E

Defender for Cloud scans container images for vulnerabilities upon push.

Why this answer

Securing ACR involves enabling vulnerability scanning via Microsoft Defender for Cloud and enforcing content trust / image signing.

117
Multi-Selecthard

You are designing a secure MLOps pipeline using Azure Container Registry. Which THREE practices should you implement to secure your AI container images?

Select 3 answers
A.Disable role-based access control (RBAC) on the registry to simplify management
B.Use managed identities instead of admin credentials for registry authentication
C.Sign container images using Notation before pushing to ACR
D.Enable Microsoft Defender for Cloud vulnerability scanning on the ACR registry
E.Enable anonymous pull access for all public developers
AnswersB, C, D

Managed identities eliminate hardcoded static credentials.

Why this answer

Securing container images in ACR involves vulnerability scanning, access control with managed identities, and content signing.

← PreviousPage 2 of 2 · 117 questions total

Ready to test yourself?

Try a timed practice session using only Containerized Ai Workloads questions.