AZ-203 Exam QuestionsBrowse all questions from this exam

AZ-203 Exam - Question 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.

Exam AZ-203 Question 1

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:

Show Answer
Correct Answer:

To ensure that converted files are placed in the container referenced by the outputContainerSasUrl parameter and files which fail to convert are placed in the container referenced by the failedContainerSasUrl parameter, you should complete the code segment as follows: 1. Use CreateJob to create the batch job. This function initializes the job, adds necessary metadata, and prepares it for task execution. 2. For handling successfully converted files, use the TaskSuccess event. This ensures that files are uploaded only after the task process exits with a zero exit code, indicating success. 3. For handling failed conversions, use the TaskFailure event. This ensures that files are uploaded only when the task process exits with a non-zero exit code, indicating failure. 4. Utilize OutputFiles to specify the output files for each task. Create a collection of OutputFile objects and assign it to the CloudTask.OutputFiles property when creating the task. This correctly routes the files to their respective containers based on the success or failure of each task.

Discussion

8 comments
Sign in to comment
gssicftohbcrcsgtjg
Feb 23, 2020

options https://vceguide.com/wp-content/uploads/2019/10/Microsoft-AZ-203-date-01-06-2019-00001_Page_013_Image_0001.jpg

Nehagg13
Jul 30, 2020

Where are the block/hot area .. Question is incomplete

PraPat
Dec 29, 2019

Answer given is correct.

KP_7082
Jul 28, 2020

I cannot see the question for this

danishasytarazizan
Aug 16, 2020

Why I cannot see the image ?

Aqauresnight
Dec 9, 2020

If your block or answer area is not loaded go to the link at gssicftohbcrcsgtjg he gave the image of the answer

diligent176
Jan 16, 2021

This site is just terrible. Site admins - if you're asking people to pay for access... The site should have working page content and correct answers would be OK too.

chanchal
Feb 21, 2021

I cannot see the image.

spookyfox
Mar 7, 2021

https://vceguide.com/how-should-you-complete-the-code-segment-25/

jhonattansolarte
Jul 12, 2021

https://user-images.githubusercontent.com/8276103/125325099-2c736100-e306-11eb-8cd9-3baec56235cc.jpeg