Master the AZ-202 Free Practice Questions content and be ready for exam day success quickly with this AZ-202 Dumps. We guarantee it!We make it a reality and give you real AZ-202 Exam Questions and Answers in our Microsoft AZ-202 braindumps. Latest 100% VALID AZ-202 Dumps Questions at below page. You can use our Microsoft AZ-202 braindumps and pass your exam.
Free AZ-202 Demo Online For Microsoft Certifitcation:
NEW QUESTION 1
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.
You develop an entertainment application where users can buy and trade virtual real estate. The application must scale to support thousands of users.
The current architecture includes five Azure Virtual Machines (VM) that connect to an Azure SQL Database for account information and Azure Table Storage for backend services. A user interacts with these components in the cloud at any given time
- Routing Service – Routes a request to the appropriate service and must not persist data across sessions
- Account Service – Stores and manages all account information and authentication and requires data to persist across sessions.
- User Service – Stores and manages all user information and requires data to persist across sessions.
- Housing Network Service – Stores and manages the current real-estate economy and requires data to persist across sessions.
- Trade Service – Stores and manages virtual trade between accounts and requires data to persist across sessions.
Due to volatile user traffic, a microservices solution is selected for scale agility.
You need to migrate to a distributed microservices solution on Azure Service Fabric.
Solution: Create a Service Fabric Cluster with a stateful Reliable Service for Routing Service. Deploy a Guest Executable to Service Fabric for each component.
Does the solution meet the goal?
Answer: B
Explanation: We should use stateful services when we want data to persist, and stateless service when data must not persist. References:
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-services-introduction
NEW QUESTION 2
You need to configure retries in the LoadUserDetails function in the Database class without impacting user experience.
What code should you insert on line DB07?
To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
Answer:
Explanation: Box 1: Policy
RetryPolicy retry = Policy Handle<HttpRequestException>() Retry(3);
The above example will create a retry policy which will retry up to three times if an action fails with an exception handled by the Policy.
Box 2: WaitAndRetryAsync(3,i => TimeSpan.FromMilliseconds(100* Math.Pow(2,i-1)));
A common retry strategy is exponential backoff: this allows for retries to be made initially quickly, but then at progressively longer intervals, to avoid hitting a subsystem with repeated frequent calls if the subsystem may be struggling.
Example: Policy
Handle<SomeExceptionType>() WaitAndRetry(3, retryAttempt =>
TimeSpan.FromSeconds(Math.Pow(2, retryAttempt))
);
References:
https://github.com/App-vNext/Polly/wiki/Retry
NEW QUESTION 3
You need to implement the Log policy.
How should you complete the Azure Event Grid subscription? To answer, drag the appropriate JSON segments to the correct locations. Each (SON segment 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.
Answer:
Explanation: Box 1:WebHook
Scenario: If an anomaly is detected, an Azure Function that emails administrators is called by using an HTTP
WebHook.
endpointType: The type of endpoint for the subscription (webhook/HTTP, Event Hub, or queue). Box 2: SubjectBeginsWith
Box 3: Microsoft.Storage.BlobCreated Scenario: Log Policy
All Azure App Service Web Apps must write logs to Azure Blob storage. All log files should be saved to a container named logdrop. Logs must remain in the container for 15 days.
Example subscription schema
{
"properties": { "destination": {
"endpointType": "webhook", "properties": {
"endpointUrl": "https://example.azurewebsites.net/api/HttpTriggerCSharp1?code=VXbGWce53l48Mt8wuotr0GPmyJ/nDT4hgd
}
},
"filter": {
"includedEventTypes": [ "Microsoft.Storage.BlobCreated", "Microsoft.Storage.BlobDeleted" ], "subjectBeginsWith": "blobServices/default/containers/mycontainer/log",
"subjectEndsWith": ".jpg", "isSubjectCaseSensitive ": "true"
}
}
}
References:
https://docs.microsoft.com/en-us/azure/event-grid/subscription-creation-schema
NEW QUESTION 4
Fourth Coffee has an ASP.NET Core web app that runs in Docker. The app is mapped to the www.fourthcoffee.com domain.
Fourth Coffee is migrating this application to Azure.
You need to provision an App Service Web App to host this docker image and map the custom domain to the App Service web app.
A resource group named FourthCoffeePublicWebResourceGroup has been created in the WestUS region that contains an App Service Plan named AppServiceLinuxDockerPlan.
Which order should the CLI commands be used to develop the solution? To answer, move all of the Azure CLI commands from the list of commands to the answer area and arrange them in the correct order.
Answer:
Explanation:
NEW QUESTION 5
You implement Azure Redis Cache to allow .NET applications to store customer session data for cache clients. You have the following .NET Core class library. The class library defines lazyConnection as a static private variable as shown in the following code. (Line numbers are included for reference only.)
The method must update the database and invalidate the cache using the correct methods and parameters. Operations mus'&e performed asynchronously wherever possible. You must ensure that the operation in the client application does not result in another client retrieving stale cache data.
You need to implement the code.
Answer:
Explanation:
NEW QUESTION 6
You have a web application that runs on a single Azure virtual machine (VM) instance. The application performs time-consuming and CPU-intensive workloads. During peak hours, the application runs more slowly and the user experience is degraded.
You need to improve the performance of the application while minimizing costs.
Which two actions should you perform? Each correct answer presents a complete solution.
NOTE Each correct selection is worth one point.
Answer: B
NEW QUESTION 7
You develop a microservice solution for a company.
The solution uses the Actor design pattern for all services including mappings, GPS, and communication. The mapping and communication systems must persist state on disk. The GPS system must persist state
in-memory. All Actors must have a service replica count of three.
You need to implement code for the GPS system.
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.
Answer:
Explanation: Example:
The state manager retrieval methods return a reference to an object in local memory. Modifying this object in local memory alone does not cause it to be saved durably. When an object is retrieved from the state manager and modified, it must be reinserted into the state manager to be saved durably.
[StatePersistence(StatePersistence.Persisted)] class MyActor : Actor, IMyActor
{
public MyActor(ActorService actorService, ActorId actorId) base(actorService, actorId)
{
}
public Task SetCountAsync(int value)
{
return this.StateManager.SetStateAsync<int>("MyState", value);
}
}
References:
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-actors-access-save-remove-state
NEW QUESTION 8
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.
You need to ensure that the SecurityPin security requirements are met.
Solution: Enable Always Encrypted for the SecurityPin column using a certificate contained in Azure Key Vault and grant the WebAppIdentity service principal access to the certificate.
Does the solution meet the goal?
Answer: A
NEW QUESTION 9
You need to meet the scaling requirement for Policy Service. What should you store in Azure Redis Cache?
Answer: C
NEW QUESTION 10
You are developing a workflow solution using Azure technologies.
What should you Implement to meet each requirement? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Answer:
Explanation: Box 1: Logic Apps only
You can manually trigger a logic app deployed in Azure from Visual Studio. On the Logic App Designer toolbar, choose Run Trigger.
To check the status and diagnose problems with logic app runs, you can review the details, such as inputs and outputs, for those runs in Visual Studio.
Box 2: Durable functions only
Box 3: Durable functions and Logic Apps References:
https://docs.microsoft.com/en-us/azure/logic-apps/manage-logic-apps-with-visual-studio https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-create-portal
NEW QUESTION 11
You are reviewing the following code for an Azure Function. The code is called each time an item is added to a queue. The queue item is a JSON string that deserializes into a class named WorkItem. (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.
Answer:
Explanation: Box 1: Yes
The following code example sets metadata on a container. One value is set using the collection's Add method. public static async Task AddContainerMetadataAsync(CloudBlobContainer container)
{
// Add some metadata to the container. container.Metadata.Add("docType", "textDocuments"); container.Metadata["category"] = "guidance"; Scenario:
Box 2: No
It would not load the metadata Box 3: Yes
NEW QUESTION 12
You are creating an app that uses Event Grid to connect with other services. Your app's event data will be sent to a servefless function that checks compliance. This function is maintained by your company.
You write a new event subscription at the scope of your resource. The event must be invalidated after 3 specific period of time. You need to configure Event Grid to ensure security.
What should you implement? To answer, select the appropriate options in [he answer area. NOTE: Each correct selection is worth one point
Answer:
Explanation: Box 1: SAS tokens
Custom topics use either Shared Access Signature (SAS) or key authentication. Microsoft recommends SAS, but key authentication provides simple programming, and is compatible with many existing webhook publishers.
In this case we need the expiration time provided by SAS tokens. Box 2: ValidationCode handshake
Event Grid supports two ways of validating the subscription: ValidationCode handshake (programmatic) and ValidationURL handshake (manual).
If you control the source code for your endpoint, this method is recommended.
NEW QUESTION 13
You develop software solutions for a web services company. You have the following code. (Line numbers are for reference only.)
You need to implement an immediate response customer support solution for the company’s website. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.
Answer:
Explanation:
NEW QUESTION 14
You are developing a .NET Core Web Job that is triggered by an Azure Storage Queue.
The project uses dependency injection from the NuGet package Microosft.Extensions.DependencyInjection. The Webjob logic is contained in the Worker class. The program.cs file contains the following code:
You need to ensure that the Worker class can run when an Azure Storage Queue message arrives.
Which code segments should you use to complete the code? To answer, drag the appropriate code segments to the correct locations. Each code segment 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.
Answer:
Explanation:
NEW QUESTION 15
You are developing a software solution for an autonomous transportation system. The solution fleets of vehicles.
You need to create compute nodes for the solution on Azure Batch. What should you do?
Answer: C
Explanation: You can create a pool of compute nodes using the az batch pool create command. The following example creates a pool named mypool of 2 size Standard_A1_v2 nodes running Ubuntu 16.04 LTS. The suggested node size offers a good balance of performance versus cost for this quick example.
az batch pool create
--id mypool --vm-size Standard_A1_v2
--target-dedicated-nodes 2
--image canonical:ubuntuserver:16.04-LTS
--node-agent-sku-id "batch.node.ubuntu 16.04" References:
https://docs.microsoft.com/en-us/azure/batch/quick-create-cli
NEW QUESTION 16
You are developing an internal website for employees to view sensitive data. The website uses Azure Active Directory (AAD) for authentication. You need to implement multifactor authentication for the website.
What should you do? Each correct answer presents part of the solution. NOTE; Each correct selection is worth one point.
Answer: CE
NEW QUESTION 17
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.
You have the following resource groups:
Developers must conned to DevServer only through DevWorkstation. To maintain security, DevServer must not accept connections (rom the internet.
You need to create a private connection between the DevWorkstation and DevServer.
Solution: Configure a VNet-to-VNet VPN connection between the two private Virtual Networks using VPN gati allow connectivity between the DevServer and the DevWorkstation using their private IP addresses.
Does the solution meet the goal?
Answer: B
Recommend!! Get the Full AZ-202 dumps in VCE and PDF From 2passeasy, Welcome to Download: https://www.2passeasy.com/dumps/AZ-202/ (New 150 Q&As Version)