You need to deploy a batch embedding workload according to the planned application architecture.
What should you use?
Show answerHide answer
Correct answer: A YAML-formatted files
Explanation
ExplanationWhen deploying a batch embedding workload to a containerized environment (specifically Azure Kubernetes Service, as implied by the other options), you use YAML-formatted files.
YAML (YAML Ain't Markup Language) is the industry-standard declarative language for Kubernetes. To deploy a batch workload, you create a YAML manifest file (such as a Kubernetes Job or CronJob) that defines the desired state of the application—including the container image to use, the number of completions/parallelism, resource requests/limits (e.g., GPU or high-memory nodes required for embeddings), and environment variables (like API keys or endpoint URLs). You then apply this file to the cluster, allowing Kubernetes to manage the batch execution lifecycle.
Why the Other Options Are Incorrect
- B. kubectl run and create commands: While kubectl create -f file.yaml is the command used to deploy the YAML, the kubectl run command is primarily imperative and designed for creating simple, single-container Pods or Deployments. It lacks the robust configuration capabilities needed for complex batch jobs with specific restart policies, parallelism, and multi-container setups.
- C. XML-formatted files: XML is not supported by Kubernetes for manifest configuration. Kubernetes exclusively uses YAML or JSON.
- D. az aks commands: The az aks commands are used to manage the Azure Kubernetes Service cluster infrastructure itself (e.g., creating the cluster, scaling node pools, or getting credentials). They are not used to deploy individual application workloads or batch jobs onto the cluster.
References
- Microsoft Learn: Run a batch job using a Kubernetes Job (Explains how to use YAML manifests for batch workloads).