exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 1 question 8 discussion

Actual exam question from Microsoft's AZ-203
Question #: 8
Topic #: 1
[All AZ-203 Questions]

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:

Show Suggested Answer Hide Answer
Suggested Answer: 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

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Dann1112
Highly Voted 5 years, 3 months ago
Should be: Create Pool Create Job For loop Create Task Reference: https://docs.microsoft.com/bs-latn-ba/azure/batch/quick-create-cli#create-tasks
upvoted 66 times
Daltonic75
5 years, 2 months ago
Agree. "Create task"uses "$i" concatenated to the task ID value, where "i" is the loop index.
upvoted 9 times
...
Juanlu
4 years, 5 months ago
Agree !
upvoted 1 times
...
...
PraPat
Highly Voted 5 years, 5 months ago
Check https://vceguide.com/which-order-should-you-arrange-the-commands-to-develop-the-solution/ for options
upvoted 17 times
DanielNadjbabi
4 years, 5 months ago
https://vceguide.com/which-order-should-you-arrange-the-commands-to-develop-the-solution/
upvoted 2 times
...
...
jhonattansolarte
Most Recent 3 years, 11 months ago
*** RESPONSE (Image) https://user-images.githubusercontent.com/8276103/125328926-7fe7ae00-e30a-11eb-8bb9-55e5c3932e0b.jpeg
upvoted 1 times
...
Deputy_Cartman
4 years, 2 months ago
Another incorrect answer on this website. In other news, water remains wet. 1. az batch pool create 2. az batch job create 3. for i in {1..4} 4. az batch task create https://docs.microsoft.com/en-us/azure/batch/quick-create-cli Last updated: 13 August 2020 https://docs.microsoft.com/en-us/azure/batch/quick-create-cli
upvoted 1 times
...
ss22
4 years, 3 months ago
https://docs.microsoft.com/bs-latn-ba/azure/batch/quick-create-cli#create-tasks
upvoted 1 times
...
SilNilanjan
4 years, 9 months ago
The order given in the question should be the correct order, there is nothing to alter
upvoted 4 times
...
triptimandal01
4 years, 10 months ago
I agree for loop should be #3 and var i is refereed in create task commands. So which means the order in question is right order..no need to change.
upvoted 1 times
...
AK89
5 years ago
Should be: Create Pool Create Job For loop Create Task
upvoted 7 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...