The latest Microsoft AZ-204 dumps by leads4pass helps you pass the AZ-204 exam for the first time! leads4pass Latest Update Microsoft AZ-204 VCE Dump and AZ-204 PDF Dumps, leads4pass AZ-204 Exam Questions Updated, Answers corrected! Get the latest LeadPass AZ-204 dumps with Vce and PDF: https://www.leads4pass.com/az-204.html (Q&As: 158 dumps)
[Free AZ-204 PDF] Microsoft AZ-204 Dumps PDF can be collected on Google Drive shared by leads4pass: https://drive.google.com/file/d/1S3PFCFD86k-EbZP1YA2y5kPPPiJu5qfS/
[leads4pass AZ-204 Youtube] Microsoft AZ-204 Dumps can be viewed on Youtube shared by leads4pass
Microsoft AZ-204 Online Exam Practice Questions
QUESTION 1
You are developing a web app that is protected by the Azure Web Application Firewall (WAF). All traffic to the web app is
routed through an Azure Application Gateway instance that is used by multiple web apps. The web app address is
contoso.azurewebsites.net.
All traffic must be secured with SSL. The Azure Application Gateway instance is used by multiple web apps.
You need to configure the Azure Application Gateway for the app.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. In the Azure Application Gateway\\’s HTTP setting, enable the Use for App service setting.
B. Convert the web app to run in an Azure App Service Environment (ASE).
C. Add an authentication certificate for contoso.azurewebsites.net to the Azure Application gateway.
D. In the Azure Application Gateway, \\’s HTTP setting set the value of the Override backend path option to
contoso22.azurewebsites.net.
Correct Answer: AD
D: The ability to specify a host override is defined in the HTTP settings and can be applied to any back-end pool during
rule creation. The ability to derive the hostname from the IP or FQDN of the back-end pool members. HTTP settings
also
provide an option to dynamically pick the hostname from a back-end pool member\\’s FQDN if configured with the
option to derive hostname from an individual back-end pool member.
A (not C): SSL termination and end to end SSL with multi-tenant services.
In the case of end to end SSL, trusted Azure services such as Azure App Service web apps do not require whitelisting the
backends in the application gateway. Therefore, there is no need to add any authentication certificates.
Reference: https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-web-app-overview
QUESTION 2
HOTSPOT
You are validating the configuration of an Azure Search indexer.
The service has been configured with an indexer that uses the Import Data option. The index is configured using options
as shown in the Index Configuration exhibit. (Click the Index Configuration tab.)
You use an Azure table as the data source for the import operation. The table contains three records with item inventory
data that match the fields in the Storage data exhibit. These records were imported when the index was created.
(Click the Storage Data tab.) When users search with no filter, all three records are displayed.
When users search for items by description, Search explorer returns no records. The Search Explorer exhibit shows the
query and results for a test. In the test, a user is trying to search for all items in the table that have a description that
contains the word bag. (Click the Search Explorer tab.)
You need to resolve the issue.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Correct Answer:
Box 1: Yes
The item description field is not searchable.
Box 2: No
The item description field is not searchable, but we would need to recreate the index.
Box 3: Yes
An indexer in Azure Search is a crawler that extracts searchable data and metadata from an external Azure data source
and populates an index based on field-to-field mappings between the index and your data source. This approach is
sometimes referred to as a \\’pull model\\’ because the service pulls data in without you having to write any code that
adds data to an index.
Box 4: No
References:
https://docs.microsoft.com/en-us/azure/search/search-what-is-an-index
https://docs.microsoft.com/en-us/azure/search/search-indexer-overview
QUESTION 3
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?
A. B. C. D.
Correct Answer: B
# 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 4
HOTSPOT
You have a web service that is used to pay for food deliveries. The web service uses Azure Cosmos DB as the data
store.
You plan to add a new feature that allows users to set a tip amount. The new feature requires that a property named tip
on the document in Cosmos DB must be present and contain a numeric value.
There are many existing websites and mobile apps that use the web service that will not be updated to set the tip
property for some time.
How should you complete the trigger?
NOTE: Each correct selection is worth one point.
Hot Area:
Correct Answer:
Box 1: getContext().getRequest();
Box 2: if(isNaN(i)[“tip”] ..
In JavaScript, there are two ways to check if a variable is a number :
isNaN() – Stands for “is Not a Number”, if the variable is not a number, it returns true, else return false.
typeof – If a variable is a number, it will return a string named “number”.
Box 3:r.setBody(i);
// update the item that will be created References:
https://docs.microsoft.com/bs-latn-ba/azure/cosmos-db/how-to-write-stored-procedures-triggers-udfs
https://mkyong.com/javascript/check-if-variable-is-a-number-in-javascript/
QUESTION 5
DRAG DROP
You develop software solutions for mobile delivery service. You are developing a mobile app that users can use to
order from a restaurant in their area; The app uses the following workflow:
1.
A driver selects the restaurants for which they will deliver orders.
2.
Orders are sent to all available drivers in an area;
3.
Only orders for the selected restaurants will appear for the driver.
4.
The first driver to accept an order removes it from the list of available orders.
You need to implement an Azure Service Bus solution.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions
to the answer area and arrange them in the correct order.
Select and Place:
Correct Answer:
QUESTION 6
DRAG DROP
You are developing a software solution for an autonomous transportation system. The solution uses large data sets and
Azure Batch processing to simulate navigation sets for entire fleets of vehicles.
You need to create compute nodes for the solution on Azure Batch.
What should you do?
Put the actions in the correct order.
Select and Place:
Correct Answer:
With the Azure Portal:
Step 1: In the Azure portal, create a Batch account.
First, we create a batch account.
Step 2: In the Azure portal, create a pool of compute nodes
Now that you have a Batch account, create a sample pool of Windows compute nodes for test purposes.
Step 3: In the Azure portal, add a Job.
Now that you have a pool, create a job to run on it. A Batch job is a logical group for one or more tasks. A job includes
settings common to the tasks, such as priority and the pool to run tasks on. Initially, the job has no tasks.
Step 4: In the Azure portal, create tasks
Now create sample tasks to run in the job. Typically you create multiple tasks that Batch queues and distributes to run
on the compute nodes.
References:
https://docs.microsoft.com/en-us/azure/batch/quick-create-portal
QUESTION 7
DRAG DROP
Contoso, Ltd. provides an API to customers by using Azure API Management (APIM). The API authorizes users with a
JWT token. You must implement response caching for the APIM freeway. The caching mechanism must detect the user ID of the client that accesses data for a given location and cache the response for that user ID. You need to add the
following policies to the policies file: a set-variable policy to store the detected user identity a cache-lookup-value policy
a cache-store-value policy a find-and-replace policy to update the response body with the user profile information To
which policy section should you add the policies? To answer, drag the appropriate sections to the correct policies. Each section 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
Select and Place:
QUESTION 8
DRAG DROP
You are developing a software solution for an autonomous transportation system. The solution uses large data sets and
Azure Batch processing to simulate navigation sets for entire fleets of vehicles.
You need to create compute nodes for the solution on Azure Batch.
What should you do?
Put the actions in the correct order.
Select and Place:
QUESTION 9
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 on the review screen.
Margie\\’s Travel is an international travel and booking 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 SearchServiceClient 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.
Set the DataSources property of the SearchServiceClient.
Does the solution meet the goal?
A. Yes
B. No
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
QUESTION 10
You are creating a hazard notification system that has a single signaling server which triggers audio and visual alarms
to start and stop.
You implement the Azure Service Bus to publish alarms. Each alarm controller uses the Azure Service Bus to receive alarm
signals as part of a transaction. Alarm events must be recorded for audit purposes. Each transaction record must
include
information about the alarm type that was activated.
You need to implement a reply trail auditing solution.
NOTE: Each correct selection is worth one point.
A. Assign the value of the hazard message MessageId property to the DeliveryCount property.
B. Assign the value of the hazard message SequenceNumber property to the DeliveryCount property.
C. Assign the value of the hazard message MessageId property to the SequenceNumber property.
D. Assign the value of the hazard message MessageId property to the CorrelationId property.
E. Assign the value of the hazard message SessionID property to the SequenceNumber property..
F. Assign the value of the hazard message SessionID property to the ReplyToSessionId property.
Correct Answer: DF
D: CorrelationId: Enables an application to specify a context for the message for the purposes of correlation; for
example, reflecting the MessageId of a message that is being replied to.
F: ReplyToSessionId: This value augments the ReplyTo information and specifies which SessionId should be set for the
reply when sent to the reply entity.
Incorrect Answers:
A, B: DeliveryCount
A number of deliveries that have been attempted for this message. The count is incremented when a message lock
expires, or the message is explicitly abandoned by the receiver. This property is read-only.
C, E: SequenceNumber
The sequence number is a unique 64-bit integer assigned to a message as it is accepted and stored by the broker and
functions as its true identifier. For partitioned entities, the topmost 16 bits reflect the partition identifier. Sequence
numbers
monotonically increase and are gapless. They roll over to 0 when the 48-64 bit range is exhausted. This property is read-only.
References: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-messages-payloads
QUESTION 11
HOTSPOT
You develop news and blog content delivery app for Windows devices.
A notification must arrive on a user\\’s device when there is a new article available for them to view.
You need to implement push notifications.
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.
Hot Area:
Correct Answer:
QUESTION 12
HOTSPOT
You plan to deploy a web app to App Service on Linux. You create an App Service plan. You create and push a custom
Docker image that contains the web app to Azure Container Registry.
You need to access the console logs generated from inside the container in real-time.
How should you complete the Azure CLI command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Correct Answer:
Box 1: config To Configure logging for a web app using the command: az web app log config Box 2: –docker-container logging Syntax include: az webapp log config [–docker-container-logging {filesystem, off}] Box 3: webapp To download
a web app\\’s log history as a zip file use the command: az webapp log download Box 4: download
References: https://docs.microsoft.com/en-us/cli/azure/webapp/log
QUESTION 13
DRAG DROP
You are developing an ASP.NET Core Web API web service that uses Azure Application Insights to monitor
performance and trade events.
You need to enable logging and ensure that log messages can be correlated to events tracked by Application Insights.
How should you complete the code? To answer, drag the appropriate code segments to the correct locations. Each a code segment may be used once, more than once, or not at alt. You may need to drag the split bar between panes or
scroll to
view content.
NOTE: Each correct selection is worth one point.
Select and Place:
Correct Answer:
latest updated Microsoft AZ-204 exam questions from the leads4pass AZ-204 dumps! 100% pass the AZ-204 exam! Download leads4pass AZ-204 VCE and PDF dumps: https://www.leads4pass.com/az-204.html (Q&As: 158 dumps)
Get free Microsoft AZ-204 dumps PDF online: https://drive.google.com/file/d/1S3PFCFD86k-EbZP1YA2y5kPPPiJu5qfS/