Question.21 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) Option A (B) Option B (C) Option C (D) Option D |
21. Click here to View Answer
Answer: A
Explanation:
A service bus instance has already been created (Step 2 below). Next is step 3, Create a Service Bus queue.
Note:
Steps:
Step 1: # Create a resource group resourceGroupName=”myResourceGroup” az group create –name
$resourceGroupName –location eastus
Step 2: # Create a Service Bus messaging namespace with a unique name namespaceName=myNameSpace$RANDOM
az servicebus namespace create –resource-group $resourceGroupName –name $namespaceName –location eastus
Step 3: # Create a Service Bus queue az servicebus queue create –resource-group $resourceGroupName –namespace-
name $namespaceName –name BasicQueue
Step 4: # Get the connection string for the namespace
connectionString=$(az servicebus namespace authorization-rule keys list –resource-group $resourceGroupName —
namespace-name $namespaceName –name RootManageSharedAccessKey
–query primaryConnectionString –output tsv)
Reference:
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quickstart-cli
Question.22 DRAG DROP You manage several existing Logic Apps. You need to change definitions, add new logic, and optimize these apps on a regular basis. What should you use? To answer, drag the appropriate tools to the correct functionalities. Each tool 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: ![]() |
22. Click here to View Answer
Answer:
Explanation:
Box 1: Enterprise Integration Pack
For business-to-business (B2B) solutions and seamless communication between organizations, you can build automated
scalable enterprise integration workflows by using the Enterprise Integration Pack (EIP) with Azure Logic Apps.
Box 2: Code View Editor
Edit JSON – Azure portal
1. Sign in to the Azure portal.
2. From the left menu, choose All services. In the search box, find “logic apps”, and then from the results, select your logic
app.
3. On your logic app’s menu, under Development Tools, select Logic App Code View.
4. The Code View editor opens and shows your logic app definition in JSON format. Box 3: Logic Apps Designer
Reference:
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-enterprise-integration-overview https://docs.microsoft.com/en-
us/azure/logic-apps/logic-apps-author-definitions
Question.23 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 Event Grid. Configure event filtering to evaluate the device identifier. Does the solution meet the goal? (A) Yes (B) No |
23. Click here to View Answer
Answer: B
Explanation:
Instead use an Azure Service Bus, which is used order processing and financial transactions.
Note: An event is a lightweight notification of a condition or a state change. Event hubs is usually used reacting to status
changes. Reference:
https://docs.microsoft.com/en-us/azure/event-grid/compare-messaging-services
Question.24 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 |
24. Click here to View Answer
Answer: A
Explanation:
A message is raw data produced by a service to be consumed or stored elsewhere. The Service Bus is for high-value
enterprise messaging, and is used for order processing and financial transactions. Reference:
https://docs.microsoft.com/en-us/azure/event-grid/compare-messaging-services
Question.25 You are developing a web application that uses Azure Cache for Redis. You anticipate that the cache will frequently fill and that you will need to evict keys. You must configure Azure Cache for Redis based on the following predicted usage pattern: A small subset of elements will be accessed much more often than the rest. You need to configure the Azure Cache for Redis to optimize performance for the predicted usage pattern. Which two eviction policies will achieve the goal? NOTE: Each correct selection is worth one point. (A) noeviction (B) allkeys-lru (C) volatile-lru (D) allkeys-random (E) volatile-ttl (F) volatile-random |
25. Click here to View Answer
Answer: BC
Explanation:
B: The allkeys-lru policy evict keys by trying to remove the less recently used (LRU) keys first, in order to make space for the
new data added. Use the allkeys-lru policy when you expect a power-law distribution in the popularity of your requests, that
is, you expect that a subset of elements will be accessed far more often than the rest.
C: volatile-lru: evict keys by trying to remove the less recently used (LRU) keys first, but only among keys that have an expire
set, in order to make space for the new data added.
Note: The allkeys-lru policy is more memory efficient since there is no need to set an expire for the key to be evicted under
memory pressure. Reference:
https://redis.io/topics/lru-cache