AZ-203 Actual Exam Questions

Last updated on Nov. 25, 2024.
Vendor:Microsoft
Exam Code:AZ-203
Exam Name:Developing Solutions for Microsoft Azure
Exam Questions:150
 

Topic 1 - Question Set 1

Question #1 Topic 1

HOTSPOT -
You have an Azure Batch project that processes and converts files and stores the files in Azure storage. You are developing a function to start the batch job.
You add the following parameters to the function.

You must ensure that converted files are placed in the container referenced by the outputContainerSasUrl parameter. Files which fail to convert are placed in the container referenced by the failedContainerSasUrl parameter.
You need to ensure the files are correctly processed.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Reveal Solution Hide Solution   Discussion   10

Correct Answer: Explanation
Box 1: CreateJob -

Box 2: TaskSuccess -
TaskSuccess: Upload the file(s) only after the task process exits with an exit code of 0.
Incorrect: TaskCompletion: Upload the file(s) after the task process exits, no matter what the exit code was.

Box 3: TaskFailure -
TaskFailure:Upload the file(s) only after the task process exits with a nonzero exit code.

Box 4: OutputFiles -
To specify output files for a task, create a collection of OutputFile objects and assign it to the CloudTask.OutputFiles property when you create the task.
References:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.batch.protocol.models.outputfileuploadcondition https://docs.microsoft.com/en-us/azure/batch/batch-task-output-files

Question #2 Topic 1

You are writing code to create and run an Azure Batch job.
You have created a pool of compute nodes.
You need to choose the right class and its method to submit a batch job to the Batch service.
Which method should you use?

  • A. JobOperations.EnableJobAsync(String, IEnumerable<BatchClientBehavior>,CancellationToken)
  • B. JobOperations.CreateJob()
  • C. CloudJob.Enable(IEnumerable<BatchClientBehavior>)
  • D. JobOperations.EnableJob(String,IEnumerable<BatchClientBehavior>)
  • E. CloudJob.CommitAsync(IEnumerable<BatchClientBehavior>, CancellationToken)
Reveal Solution Hide Solution   Discussion   13

Correct Answer: E 🗳️
A Batch job is a logical grouping of one or more tasks. A job includes settings common to the tasks, such as priority and the pool to run tasks on. The app uses the
BatchClient.JobOperations.CreateJob method to create a job on your pool.
The Commit method submits the job to the Batch service. Initially the job has no tasks.
{
CloudJob job = batchClient.JobOperations.CreateJob();
job.Id = JobId;
job.PoolInformation = new PoolInformation { PoolId = PoolId }; job.Commit();
}
...
References:
https://docs.microsoft.com/en-us/azure/batch/quick-run-dotnet

Question #3 Topic 1

DRAG DROP -
You are developing Azure WebJobs.
You need to recommend a WebJob type for each scenario.
Which WebJob type should you recommend? To answer, drag the appropriate WebJob types to the correct scenarios. Each WebJob type may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Reveal Solution Hide Solution   Discussion   3

Correct Answer:
Box 1: Continuous -
Continuous runs on all instances that the web app runs on. You can optionally restrict the WebJob to a single instance.

Box 2: Triggered -
Triggered runs on a single instance that Azure selects for load balancing.

Box 3: Continuous -
Continuous supports remote debugging.
Note:
The following table describes the differences between continuous and triggered WebJobs.

References:
https://docs.microsoft.com/en-us/azure/app-service/web-sites-create-web-jobs

Question #4 Topic 1

You are developing a software solution for an autonomous transportation system. The solution uses large data sets and Azure Batch processing to simulate navigation sets for entire fleets of vehicles.
You need to create compute nodes for the solution on Azure Batch.
What should you do?

  • A. In the Azure portal, add a Job to a Batch account.
  • B. In a .NET method, call the method: BatchClient.PoolOperations.CreateJob
  • C. In Python, implement the class: JobAddParameter
  • D. In Azure CLI, run the command: az batch pool create
  • E. In a .NET method, call the method: BatchClient.PoolOperations.CreatePool
  • F. In Python, implement the class: TaskAddParameter
  • G. In the Azure CLI, run the command: az batch account create
Reveal Solution Hide Solution   Discussion   23

Correct Answer: B 🗳️
A Batch job is a logical grouping of one or more tasks. A job includes settings common to the tasks, such as priority and the pool to run tasks on. The app uses the
BatchClient.JobOperations.CreateJob method to create a job on your pool.
Note:
Step 1: Create a pool of compute nodes. When you create a pool, you specify the number of compute nodes for the pool, their size, and the operating system.
When each task in your job runs, it's assigned to execute on one of the nodes in your pool.
Step 2: Create a job. A job manages a collection of tasks. You associate each job to a specific pool where that job's tasks will run.
Step 3: Add tasks to the job. Each task runs the application or script that you uploaded to process the data files it downloads from your Storage account. As each task completes, it can upload its output to Azure Storage.
Incorrect Answers:
C, F: To create a Batch pool in Python, the app uses the PoolAddParameter class to set the number of nodes, VM size, and a pool configuration.
E: BatchClient.PoolOperations does not have a CreateJob method.
References:
https://docs.microsoft.com/en-us/azure/batch/quick-run-dotnet https://docs.microsoft.com/en-us/azure/batch/quick-run-python

file Viewing page 1 out of 38 pages.
Viewing questions 1-4 out of 150 questions
Next Questions
Browse atleast 50% to increase passing rate cup
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.
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago