Microsoft Certified: Azure Administrator AssociateDeploy and manage Azure compute resourcesMedium

A company is using Azure Container Instances (ACI) to run several batch processing jobs. Each job requires specific CPU and memory resources. You need to ensure that each container group is provisioned with the correct resources to complete its task efficiently without over-provisioning.

  1. AUse Azure Kubernetes Service (AKS) to manage resource allocation dynamically.
  2. BSpecify the required CPU cores and memory (e.g., 0.5 CPU, 1 GB memory) for each container group during deployment.
  3. CDeploy all container groups with the default 1 CPU core and 1.5 GB of memory.
  4. DEstimate the maximum possible CPU and memory for each job and provision those resources for all container groups.
Show answer & explanation

Correct answer: B. Specify the required CPU cores and memory (e.g., 0.5 CPU, 1 GB memory) for each container group during deployment.

Azure Container Instances allows you to explicitly define the required CPU cores and memory for each container group at the time of deployment. This ensures that each batch job gets exactly the resources it needs, optimizing both performance and cost by preventing over-provisioning.

Why the other options are wrong

  • A. AKS is for complex orchestration, overkill for simple ACI batch jobs, and introduces significant management overhead not desired for ACI's simplicity.
  • C. Default resources may not be sufficient or might be over-provisioned for specific jobs.
  • D. Estimating maximums for all jobs leads to over-provisioning and increased costs if not all jobs need that maximum.

ACI Resource Allocation

The process of defining the specific CPU cores and memory (RAM) that an Azure Container Instance container group will be provisioned with, directly impacting performance and cost.

  • Resources are specified at container group creation.
  • CPU is measured in fractional cores (e.g., 0.5, 1, 2).
  • Memory is measured in GB.
  • Directly impacts billing and container performance.

Memory trick: ACI Needs Custom Cores and Memory.

More Deploy and manage Azure compute resources questions