AZ-202 Exam Dumps for Microsoft certification, Real Success Guaranteed with Updated AZ-202 Free Practice Questions. 100% PASS AZ-202 Microsoft Azure Developer Certification Transition exam Today!
Microsoft AZ-202 Free Dumps Questions Online, Read and Test Now.
NEW QUESTION 1
You store customer information in Azure Cosmos DB. The following data already exists in the database:
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.
Answer:
Explanation:
NEW QUESTION 2
You are developing an SMS-based testing solution. The solution sends users a question by using SMS. Early responders may qualify for prizes.
Users must respond with an answer choice within 90 seconds. You must be able to track how long it takes each user to respond.
You create a durable Azure Function named SendSmsQuizQuestion that uses Twilio to send messages. You need to write the code for MessageQuiz.
How should you complete the code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
Answer:
Explanation: Box 1: DateTime expiration = context.CurrentUtcDateTime.AddSeconds(90);
The user has 90 seconds to respond with the code they received in the SMS message. Box 2:var timeoutTask = context.CreateTimer(expiration, cts.Token);
Create a timer.
Box 3: if(!timeoutTask.IsCompleted)
All pending timers must be complete or canceled before the function exits. References:
https://github.com/Azure/azure-functions-durable-extension/blob/master/samples/precompiled/PhoneVerificatio
NEW QUESTION 3
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 based on a trusted certificate authority. Update the Getting Started document with instruction to ensure that the certificate is installed on user machines.
Does the solution meet the goal?
- A. Yes
- B. No
Answer: B
NEW QUESTION 4
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 section, 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 SearchlndexClient 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 SearchlndexClient and pass the DataSource. Does the solution meet the goal?
- A. No
- B. Yes
Answer: B
NEW QUESTION 5
You are creating a bot for a company by using QnA Maker.
You need to ensure that the company can update the bot without third-party assistance. What should you use? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
Answer:
Explanation:
NEW QUESTION 6
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 section, you will NOT be able to return to it. As a result these questions
will not appear in the review screen.
You use ASP.NET Core MVC with ADO.NET to develop an application. You implement database sharding for the application by using Azure SQL Database. You establish communication links between the shard databases.
You need to implement a strategy that allows a group of operations that are performed on multiple Azure databases to be rolled back on all databases if any of the operations fail.
Solution:
• Deploy a SQL database instance in an Azure Virtual Machine (VM).
• Establish linked servers to each Azure SQL Database instance from the SQL Server instance in the VM.
• Create a stored procedure in the VM that performs the update operations using a distributed transaction and commits them if successful.
• Run the SQL stored procedure on the SQL Server instance in the VM. Does the solution meet the goal?
- A. Yes
- B. No
Answer: B
NEW QUESTION 7
Your company's Internet Information Services (IIS) web server for Windows Server hosts legacy hosts legacy ASP.NET web apps. The applications do not use the Application freights SDK or APIs.
You install Application Insights on the Windows server running IE. You must use the Application Insights SDK to monitor the legacy web apps. You need to collect information about the legacy web apps. Which data class can you monitor?
- A. Dependencies
- B. Session
- C. Stack Dump
- D. Client Context
Answer: A
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?
- A. Yes
- B. No
Answer: A
NEW QUESTION 9
A company is implementing a publish- subscribe (Pub/Sub) messaging component by using Azure Service Bus. You are developing the first subscription application.
In the Azure portal you are see that messages are being sent to the subscription for each topic. You create a subscription client object by supplying the correct details, but the subscription application is still not consuming the messages.
You need to complete the source code of the subscription client. What should you do?
A)
B)
C)
D)
- A. Option A
- B. Option B
- C. Option C
- D. Option D
Answer: A
NEW QUESTION 10
You are creating a script that will run a large workload on an Azure Batch pool. Resources will be reused and do not need to be cleaned up after use.
You have the following parameters:
You need to write an Azure CU script that will create the jobs, tasks, and the pool.
In which order should you arrange the commands to develop the solution? To answer, Move the appropriate commands from the list of command segments to the answer area and arrange them in the correct order.
Answer:
Explanation:
NEW QUESTION 11
You develop a gateway solution for a public facing news API. The news API back end is implemented as a RESTfuI service and uses an OpenAPI specification. You need to ensure that you can access the news API by using an Azure API Management service instance.
Which Azure PowerShell command should you run?
A)
B)
C)
D)
- A. Option A
- B. Option B
- C. Option C
- D. Option D
Answer: D
NEW QUESTION 12
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 section, you will NOT be able to return to it. As a result these questions will not appear in the review screen.
You use ASP.NET Core MVC with ADO.NET to develop an application. You implement database sharding for the application by using Azure SQL Database. You establish communication links between the shard databases.
You need to implement a strategy that allows a group of operations that are performed on multiple Azure databases to be rolled back on all databases if any of the operations fail.
Solution:
• In the .NET method, define a new transaction in a using block.
• Within the using block, establish connections to each Azure SQL Database instance.
• Run the SQL operations on each connection. If no exception occurs, commit the transaction. Does the solution meet the goal?
- A. Yes
- B. No
Answer: A
NEW QUESTION 13
You manage a web application that is hosted in multiple Azure regions. The application uses Azure Append blobs to store audit logs. Each hosted instance of the application maintains its own audit logs.
You have a central Append blob that serves as a master record of all audit logs. The master audit log is updated on a schedule to include all local copies from each region. The local copies are then discarded.
You need to append each of the local audit logs to the master audit log. Which method should you use?
- A. Start-AzureStorageBlobCopy PowerShell command
- B. Append Block operation of the Azure Storage Services REST API
- C. Copy Blob operation of the Azure Storage Services REST API
- D. AzCopy tool with the /BlobType:Append parameter
Answer: B
NEW QUESTION 14
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 15
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 16
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 group:
Developers must connect to Dev$erver onry through DevWorkstatioan. To maintain security, DevServer must not accept connections from the internet.
You need to create a private connection between the DevWortcstation and DevServer. Solution: Configure an IP address on each subnet within the same address space. Does the solution meet the goal?
- A. Yes
- B. No
Answer: A
NEW QUESTION 17
You develop an app that processes data packages that are less than 10 KB.
The solution processes and then deletes the data packages. Data must be processed by only one instance and must persist if the app is reset but not after it is processed.
You need to select a storage technology for the solution while minimizing costs. Which data storage service should you use?
- A. Azure Table Storage
- B. Azure Queue Storage
- C. Azure Blob Storage
- D. Azure Redis Cache
- E. Azure SQL Database
Answer: C
NEW QUESTION 18
You need to ensure the security policies are met. What code do you add at line CS07?
A)
B)
C)
D)
- A. Option A
- B. Option B
- C. Option C
- D. Option D
Answer: D
NEW QUESTION 19
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 correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You use ASP.NET Core MVC with ADO.NET to develop an application. You implement database sharding for the application by using Azure SQL Database. You establish communication to implement a strategy that allows a group of operations that are performed on multiple Azure databases to be rolled back on all database if any of the operations fail.
Solution
• Create stored procedures in each Azure SQL database instance to perform operations for each respective database.
• Invoke a named transaction and use the same name for the transaction in each stored procedure.
• Establish a new transaction scope in a using block. Within the block, establish connections to each Azure SQL Database instance and run the stored procedure.
• If no exception occurs, commit the scoped transaction. Does the solution meet the goal?
- A. Yes
- B. No
Answer: B
NEW QUESTION 20
Contoso, Ltd. hosts the following ASP.NET workloads in Azure:
Users of the Sales software report mismatches between shown inventory at the time of sale and actual availability. Transactions across the two systems result in inconsistent reads and writes. You encapsulate Sales order creation and Inventory status updates in elastic transactions.
You need to recommend changes to code and the databases to support transactions.
Which actions should you recommend? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
Answer:
Explanation:
P.S. Easily pass AZ-202 Exam with 150 Q&As Surepassexam Dumps & pdf Version, Welcome to Download the Newest Surepassexam AZ-202 Dumps: https://www.surepassexam.com/AZ-202-exam-dumps.html (150 New Questions)