Developing Solutions for Microsoft Azure

Here you have the best Microsoft AZ-203 practice exam questions

  • You have 144 total questions to study from
  • Each page has 5 questions, making a total of 29 pages
  • You can navigate through the pages using the buttons at the bottom
  • This questions were last updated on November 17, 2024
Question 1 of 144

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:

    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.

Question 2 of 144

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?

    Correct Answer: E

    To submit a batch job to the Batch service, you should use the CloudJob.CommitAsync method. After creating a job using JobOperations.CreateJob, you need to submit it to the Batch service, and this is achieved through the CommitAsync method. This method ensures that the created job is sent to the Batch service. Therefore, the correct method to use is CloudJob.CommitAsync.

Question 3 of 144

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:

    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 of 144

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?

    Correct Answer: E

    To create compute nodes for a solution on Azure Batch, you need to create a pool. The appropriate method in .NET for this task is BatchClient.PoolOperations.CreatePool. This method allows you to configure the number of nodes, their size, and the operating system, which are necessary for setting up compute nodes in Azure Batch.

Question 5 of 144

DRAG DROP -

You are deploying an Azure Kubernetes Services (AKS) cluster that will use multiple containers.

You need to create the cluster and verify that the services for the containers are configured correctly and available.

Which four commands should you use to develop the solution? To answer, move the appropriate command segments from the list of command segments to the answer area and arrange them in the correct order.

Select and Place:

    Correct Answer:

    Step 1: az group create -

    Create a resource group with the az group create command. An Azure resource group is a logical group in which Azure resources are deployed and managed.

    Example: The following example creates a resource group named myAKSCluster in the eastus location. az group create --name myAKSCluster --location eastus

    Step 2 : az aks create -

    Use the az aks create command to create an AKS cluster.

    Step 3: kubectl apply -

    To deploy your application, use the kubectl apply command. This command parses the manifest file and creates the defined Kubernetes objects.

    Step 4: az aks get-credentials -

    Configure it with the credentials for the new AKS cluster. Example: az aks get-credentials --name aks-cluster --resource-group aks-resource-group

    References:

    https://docs.bitnami.com/azure/get-started-aks/