Get Full Version of the Exam
http://www.EnsurePass.com/AZ-203.html

Question No.21

You have an Azure App Services Web App. Azure SQL Database instance. Azure Storage Account and an Azure Redis Cache instance in a resource group.

A developer must be able to publish code to the web app. You must grant the developer the Contribute role to the web app

You need to grant the role.

What two commands can you use? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

  1. New-AzureRmRoleAssignment

  2. az role assignment create

  3. az role definition create

  4. New-AzureRmRoleDefinition

Correct Answer: AB

Explanation:

https://docs.microsoft.com/en-us/cli/azure/role/assignment?view=azure-cli-latest#az-role- assignment-create

https://docs.microsoft.com/en-us/powershell/module/azurerm.resources/new- azurermroleassignment?view=azurermps-6.13.0

Question No.22

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.

image

Correct Answer:

image

Question No.23

You develop a serverless application using several Azure Functions. These functions connect to data from within the code.

You want to configure tracing for an Azure Function App project. You need to change configuration settings in the hostjson file.

Which tool should you use?

  1. Azure portal

  2. Azure PowerShell

  3. Azure Functions Core Tools (Azure CLI)

  4. Visual Studio

Correct Answer: A

Explanation:

The function editor built into the Azure portal lets you update the function.json file and the code file for a function. The host.json file, which contains some runtime-specific configurations, is in the root folder of the function app.

image

References:

https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference#fileupdate

Question No.24

A company is developing a solution that allows smart refrigerators to send temperature information to a central location.

The solution must receive and store messages until they can be processed. You create an Azure Service Bus instance by providing a name, pricing tier, subscription, resource group, and location.

You need to complete the configuration.

Which Azure CLI or PowerShell command should you run?

image

  1. Option A

  2. Option B

  3. Option C

  4. Option D

Correct Answer: B

Explanation:

# Create a Service Bus messaging namespace with a unique name. Example: namespaceName=myNameSpace$RANDOM

az servicebus namespace create resource-group $resourceGroupName name

$namespaceName location eastus

References:

https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quickstart-cli

Question No.25

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this question, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

Margie#39;s Travel is an international travel and bookings management service. The company is expanding into restaurant bookings. You are tasked with implementing Azure Search for the restaurants listed in their solution.

You create the index in Azure Search.

You need to import the restaurant data into the Azure Search service by using the Azure Search

.NET SDK.

Solution:

  1. Create a SearchIndexClient object to connect to the search index.

  2. Create a DataContainer that contains the documents which must be added.

  3. Create a DataSource instance and set its Container property to the DataContainer.

  4. Call the Documents.Suggest method of the SearchIndexClient and pass the DataSource. Does the solution meet the goal?

  1. Yes

  2. No

Correct Answer: B

Explanation:

Use the following method:

image

Create a SearchIndexClient object to connect to the search index

image

Create an IndexBatch that contains the documents which must be added.

image

Call the Documents.Index method of the SearchIndexClient and pass the IndexBatch.

References:

https://docs.microsoft.com/en-us/azure/search/search-howto-dotnet-sdk

Question No.26

HOTSPOT

You have an app that stores player scores for an online game. The app stores data in Azure tables using a class named PlayerScore as the table entity. The table is populated with 100,000 records.

You are reviewing the following section of code that is intended to retrieve 20 records where the player score exceeds 15,000. (Line numbers are included for reference only.)

image

You have the following code. (Line numbers are included for reference only.)

You store customer information in an Azure Cosmos database. The following data already exists in the database:

image

You develop the following code. (Line numbers are included for reference only.)

For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

image

Correct Answer:

image

Question No.27

DRAG DROP

You develop a gateway solution for a public facing news API.

The news API back end is implemented as a RESTful sen/ice and hosted in an Azure App Service instance.

You need to configure back-end authentication for the API Management service instance.

Which target and gateway credential type should you use? To answer, drag the appropriate values to the correct parameters. Each value 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.

image

Correct Answer:

image

Question No.28

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?

  1. JobOperations.CreateJobO

  2. CloudJob.Enable(IEnumerablelt;BatchClientBehaviorgt;)

  3. CloudJob.CommitAsync(IEnumerablelt;BatchClientBehaviorgt;, CancellationToken)

  4. JobOperations.EnableJob(String, IEnumerablelt;BatchClientBehaviorgt;)

  5. JobOperations.EnableJobAsync(String. IEnumerablelt;BatchClientBehaviorgt;. CancellationToken)

Correct Answer: C

Explanation:

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 No.29

HOTSPOT

A company is developing a Java web app. The web app code is hosted in a GitHub repository located at https://github.com/Contoso/webapp.

The web app must be evaluated before it is moved to production. You must deploy the initial code release to a deployment slot named staging.

You need to create the web app and deploy the code.

How should you complete the commands? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

image

Correct Answer:

image

Question No.30

HOTSPOT

You are developing a data storage solution for a social networking app.

The solution requires a mobile app that stores user information using Azure Table Storage. You need to develop code that can insert multiple sets of user information.

How should you complete the code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

image

Correct Answer:

image

Get Full Version of the Exam
AZ-203 Dumps
AZ-203 VCE and PDF

Comments are closed.