Microsoft
AZ-204 · Question #176
You have the following code (line numbers are included for reference only): BatchTokenCredentials = GetCredentialsf); BatchClient client^ BatchClient.Open(credentials); CloudJob job = client.JobOperat
Sign in or unlock AZ-204 to reveal the answer and full explanation for question #176. The question stem and answer options stay visible for context.
Submitted by krish.m· Mar 30, 2026Develop Azure compute solutions
Question
You have the following code (line numbers are included for reference only): BatchTokenCredentials = GetCredentialsf); BatchClient client^ BatchClient.Open(credentials); CloudJob job = client.JobOperations.CreateJobf); CloudTask task = new CloudTask("sampleTask", "cmd /c SampleTask.exe"); job. AddTask(task); job.Commit(); You need to ensure that the SampleTask.exe process runs. Which two actions should you perform? Each answer presents part of the complete solution.
Options
- AAdd the following code between lines 02 and 03: var pool = client. PoolOperations.CreatePool();
- BAdd the following code between lines 03 and 04: job. Pool I nformation. Pool I d = pool. Id;
- CModify line 05 as follows:
- DRemove line 06.
Unlock AZ-204 to see the answer
You've previewed enough free AZ-204 questions. Unlock AZ-204 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Azure Batch#pool configuration#CloudJob#BatchClient