Home » Microsoft » AZ-203 » Which order should you arrange the commands to develop the solution?
DRAG DROP
You are creating a script that will run a large workload on an Azure Batch pool. Resources will be reused and do not need to be cleaned up after use.
You have the following parameters:
You need to write an Azure CLI script that will create the jobs, tasks, and the pool.
In which order should you arrange the commands to develop the solution? To answer, move the appropriate commands from the list of command segments to the answer area and arrange them in the correct order.
Select and Place:
Correct Answer:
Explanation/Reference:
Explanation:
Step 1: az batch pool create
# Create a new Linux pool with a virtual machine configuration. az batch pool create
–id mypool
–vm-size Standard_A1
–target-dedicated 2
–image canonical:ubuntuserver:16.04-LTS
–node-agent-sku-id "batch.node.ubuntu 16.04"
Step 2: az batch job create
# Create a new job to encapsulate the tasks that are added. az batch job create
–id myjob
–pool-id mypool
Step 3: az batch task create
# Add tasks to the job. Here the task is a basic shell command. az batch task create
–job-id myjob
–task-id task1
–command-line "/bin/bash -c ‘printenv AZ_BATCH_TASK_WORKING_DIR’"
Step 4: for i in {1..$numberOfJobs} do
References:
https://docs.microsoft.com/bs-latn-ba/azure/batch/scripts/batch-cli-sample-run-job
Microsoft AZ-204: Developing Solutions for Microsoft Azure
Free dumps for AZ-204 in PDF format also you can read online.
High quality AZ-204 PDF and software. VALID exam to help you pass.
|
|
https://user-images.githubusercontent.com/8276103/125328926-7fe7ae00-e30a-11eb-8bb9-55e5c3932e0b.jpeg
1. Batch pool
2. batch job
3. for loop
4. batch task
https://docs.microsoft.com/en-us/azure/batch/quick-create-cli
Agreed
Maintain the same order of the question capture.
I Agree! task-id mytask$i where “$i” is the variable created in the ‘for’ instruction. It makes more sense!
I think the for loop is the 3rd one, as that creates the tasks as many times as given in the variable.
So first I create pool, then job, then for and finally the task creation.