Microsoft AZ-204 Übungsprüfungen
Zuletzt aktualisiert am 28.05.2025- Prüfungscode: AZ-204
- Prüfungsname: Developing Solutions for Microsoft Azure
- Zertifizierungsanbieter: Microsoft
- Zuletzt aktualisiert am: 28.05.2025
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 see that messages are being sent to the subscription for each topic. You create and initialize 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 . await subscriptionClient.CloseAsync();
- B . await subscriptionClient.AddRuleAsync(new RuleDescription(RuleDescription.DefaultRuleName, new TrueFilter()));
- C . subscriptionClient.RegisterMessageHandler(ProcessMessagesAsync, messageHandlerOptions);
- D . subscriptionClient = new SubscriptionClient(ServiceBusConnectionString, TopicName, SubscriptionName);
You develop and deploy a web app to Azure App Service. The Azure App Service uses a Basic plan in a region.
Users report that the web app is responding must capture the complete call stack to help performance issues in code. Call stack data must be correlated across app instances. You must minimize cost and impact to users on the web app.
You need to capture the telemetry.
Which three actions should you perform? Each answer presents part Of the solution. NOTE: Each correct selection is worth point
- A . Enable Application Insights site extensions.
- B . Enable Profiler.
- C . Restart all apps in the App Service plan.
- D . Enable Snapshot debugger.
- E . Enable remote debugging.
- F . Enable the Always On setting for the app service.
- G . Upgrade the Azure App Service plan to Premium
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 are developing an Azure solution to collect point-of-sale (POS) device data from 2,000 stores located throughout the world. A single device can produce 2 megabytes (MB) of data every 24 hours. Each store location has one to five devices that send data.
You must store the device data in Azure Blob storage. Device data must be correlated based on a device identifier. Additional stores are expected to open in the future.
You need to implement a solution to receive the device data.
Solution: Provision an Azure Service Bus. Configure a topic to receive the device data by using a correlation filter.
Does the solution meet the goal?
- A . Yes
- B . No
HOTSPOT
You need to ensure that validation testing is triggered per the requirements.
How should you complete the code segment? To answer, select the appropriate values in the answer area. NOTE: Each correct selection is worth one point.
HOTSPOT
You are developing a content management application for technical manuals. The application is deployed as an Azure Static Web app.
Authenticated users can view pages under /manuals but only contributors can access the page /manuals/new html.
You need to configure the routing for the web app.
How should you complete the configuration? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
You need to mitigate the Azure Cache for Redis issue.
What are two possible ways to achieve this goal? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A . Increase the maxmemory-reserved and maxfragmenTationmemory-reserved values
- B . Modify the maxmemory policy to evict the least frequently used keys out of all keys.
- C . Configure client connections to retry commands with exponential backoff.
- D . Test application code by purging the cache in the test environment.
- E . Test application code by rebooting all nodes in the test environment.
You need to mitigate the Azure Cache for Redis issue.
What are two possible ways to achieve this goal? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A . Increase the maxmemory-reserved and maxfragmenTationmemory-reserved values
- B . Modify the maxmemory policy to evict the least frequently used keys out of all keys.
- C . Configure client connections to retry commands with exponential backoff.
- D . Test application code by purging the cache in the test environment.
- E . Test application code by rebooting all nodes in the test environment.
DRAG DROP
You are developing an ASP.NET Core website that can be used to manage photographs which are stored in Azure Blob Storage containers.
Users of the website authenticate by using their Azure Active Directory (Azure AD) credentials.
You implement role-based access control (RBAC) role permission on the containers that store photographs. You assign users to RBAC role.
You need to configure the website’s Azure AD Application so that user’s permissions can be used with the Azure Blob containers.
How should you configure the application? To answer, drag the appropriate setting to the correct location. Each setting 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.
HOTSPOT
You have a single page application (SPA) web application that manages information based on data returned by Microsoft Graph from another company’s Azure Active Directory (Azure AD) instance.
Users must be able to authenticate and access Microsoft Graph by using their own company’s Azure AD instance.
You need to configure the application manifest for the app registration.
How should you complete the manifest? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
HOTSPOT
You are working for Contoso, Ltd.
You define an API Policy object by using the following XML markup:
For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.