Question.81 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. (A) New-AzureRmRoleAssignment (B) az role assignment create (C) az role definition create (D) New-AzureRmRoleDefinition |
81. Click here to View Answer
Correct Answer: A,B
References:
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.82 You are developing a web application that will use Azure Storage. Older data will be less frequently used than more recent data. You need to configure data storage for the application. You have the following requirements: * Retain copies of data for five years. * Minimize costs associated with storing data that is over one year old. * Implement Zone Redundant Storage for application data. What should you do? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. |
82. Click here to View Answer
Correct Answer:
Explanation:
Reference:
Question.83 You are developing a web application that makes calls to the Microsoft Graph API. You register the application in the Azure portal and upload a valid X509 certificate. You create an appsettings.json file containing the certificate name, client identifier for the application, and the tenant identifier of the Azure active Directory (Azure AD). You create a method named ReadCertificate to return the X509 certificate by name. You need to implement code that acquires a token by using the certificate. 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. |
83. Click here to View Answer
Correct Answer:
Explanation:
tabs=dotnet#instantiate-the-confidential-client-application-with-a-client-certificate
tabs=dotnet#acquiretokenforclient-api
Question.84 An organization has web apps hosted in Azure. The organization wants to track events and telemetry data in the web apps by using Application Insights. You need to configure the web apps for Application Insights. Which three actions should you perform in sequence? To answer, move the appropnate actions from the list of actions to the answer area and arrange them in the correct order. |
84. Click here to View Answer
Correct Answer:
Explanation:
1. Create an Application Insights resource
2. Copy the instrumentation key
3. Install the SDK in your app
Question.85 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’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 o bject 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? (A) Yes (B) No |
85. Click here to View Answer
Correct Answer: B
Use the following method:
1. – Create a SearchIndexClient object to connect to the search index
2. – Create an IndexBatch that contains the documents which must be added.
3. – 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