Friday, 24 January 2025

AZ-204 Question and Answer Part 17

 Question #241

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:
    A
    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 #242
    HOTSPOT -
    You are developing an application that uses Azure Storage Queues.
    You have the following code:

    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: No -
      The QueueDescription.LockDuration property gets or sets the duration of a peek lock; that is, the amount of time that the message is locked for other receivers.
      The maximum value for LockDuration is 5 minutes; the default value is 1 minute.

      Box 2: Yes -
      You can peek at the message in the front of a queue without removing it from the queue by calling the PeekMessage method.

      Box 3: Yes -
      Reference:
      https://docs.microsoft.com/en-us/azure/storage/queues/storage-dotnet-how-to-use-queues https://docs.microsoft.com/en-us/dotnet/api/microsoft.servicebus.messaging.queuedescription.lockduration
      Question #243
      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:
        C
        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 #244

        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 Service application that processes queue data when it receives a message from a mobile application. Messages may not be sent to the service consistently.
        You have the following requirements:
        ✑ Queue size must not grow larger than 80 gigabytes (GB).
        ✑ Use first-in-first-out (FIFO) ordering of messages.
        ✑ Minimize Azure costs.
        You need to implement the messaging solution.
        Solution: Use the .Net API to add a message to an Azure Storage Queue from the mobile application. Create an Azure Function App that uses an Azure Storage
        Queue trigger.
        Does the solution meet the goal?
        1. A
          Yes
        2. B
          No

        Correct Answer:
        B
        Create an Azure Function App that uses an Azure Service Bus Queue trigger.
        Reference:
        https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-storage-queue-triggered-function
        Question #245

        DRAG DROP -
        You develop software solutions for a 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:

          Box 1: Create a single Service Bus Namespace
          To begin using Service Bus messaging entities in Azure, you must first create a namespace with a name that is unique across Azure. A namespace provides a scoping container for addressing Service Bus resources within your application.
          Box 2: Create a Service Bus Topic for each restaurant for which a driver can receive messages.
          Create topics.
          Box 3: Create a Service Bus subscription for each restaurant for which a driver can receive orders.
          Topics can have multiple, independent subscriptions.
          Reference:
          https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-messaging-overview
          Question #246

          HOTSPOT -
          You develop a news and blog content 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:

            Box 1: NotificationHubClient -

            Box 2: NotificationHubClient -
            Box 3: CreateClientFromConnectionString
            // Initialize the Notification Hub
            NotificationHubClient hub = NotificationHubClient.CreateClientFromConnectionString(listenConnString, hubName);
            Box 4: SendWindowsNativeNotificationAsync
            Send the push notification.
            var result = await hub.SendWindowsNativeNotificationAsync(windowsToastPayload);
            Reference:
            https://docs.microsoft.com/en-us/azure/notification-hubs/notification-hubs-push-notification-registration-management https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/app-service-mobile/app-service-mobile-windows-store-dotnet-get-started-push.md
            Question #247

            You are developing an Azure messaging solution.
            You need to ensure that the solution meets the following requirements:
            ✑ Provide transactional support.
            ✑ Provide duplicate detection.
            ✑ Store the messages for an unlimited period of time.
            Which two technologies will meet the requirements? Each correct answer presents a complete solution.
            NOTE: Each correct selection is worth one point.
            1. A
              Azure Service Bus Topic
            2. B
              Azure Service Bus Queue
            3. C
              Azure Storage Queue
            4. D
              Azure Event Hub

            Correct Answer:
            AB
            The Azure Service Bus Queue and Topic has duplicate detection.
            Enabling duplicate detection helps keep track of the application-controlled MessageId of all messages sent into a queue or topic during a specified time window.
            Incorrect Answers:
            C: There is just no mechanism that can query a Storage queue and find out if a message with the same contents is already there or was there before.
            D: Azure Event Hub does not have duplicate detection
            Reference:
            https://docs.microsoft.com/en-us/azure/service-bus-messaging/duplicate-detection
            Question #248

            DRAG DROP -
            You develop a gateway solution for a public facing news API.
            The news API back end is implemented as a RESTful service and hosted in an Azure App Service instance.
            You need to configure back-end authentication for the API Management service instance.
            Which target and gateway credential type should you use? To answer, drag the appropriate values to the correct parameters. Each value 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:


              Correct Answer:

              Box 1: Azure Resource -

              Box 2: Client cert -
              API Management allows to secure access to the back-end service of an API using client certificates.
              Reference:
              https://docs.microsoft.com/en-us/rest/api/apimanagement/apimanagementrest/azure-api-management-rest-api-backend-entity
              Question #249

              HOTSPOT -
              You are creating an app that uses Event Grid to connect with other services. Your app's event data will be sent to a serverless 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 a specific period of time.
              You need to configure Event Grid.
              What should you do? To answer, select the appropriate options in the answer area.
              NOTE: Each correct selection is worth one point.
              Hot Area:


                Correct Answer:

                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.
                Incorrect Answers:
                ValidationURL handshake (manual): In certain cases, you can't access the source code of the endpoint to implement the ValidationCode handshake. For example, if you use a third-party service (like Zapier or IFTTT), you can't programmatically respond with the validation code.
                Reference:
                https://docs.microsoft.com/en-us/azure/event-grid/security-authentication
                Question #250

                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.
                Hot Area:


                  Correct Answer:

                  Box 1: Yes -
                  Use the set-backend-service policy to redirect an incoming request to a different backend than the one specified in the API settings for that operation. Syntax:
                  <set-backend-service base-url="base URL of the backend service" />

                  Box 2: No -
                  The condition is on 512k, not on 256k.

                  Box 3: No -
                  The set-backend-service policy changes the backend service base URL of the incoming request to the one specified in the policy.
                  Reference:
                  https://docs.microsoft.com/en-us/azure/api-management/api-management-transformation-policies
                  Question #251

                  You are developing a solution that will use Azure messaging services.
                  You need to ensure that the solution uses a publish-subscribe model and eliminates the need for constant polling.
                  What are two possible ways to achieve the goal? Each correct answer presents a complete solution.
                  NOTE: Each correct selection is worth one point.
                  1. A
                    Service Bus
                  2. B
                    Event Hub
                  3. C
                    Event Grid
                  4. D
                    Queue

                  Correct Answer:
                  AC
                  It is strongly recommended to use available messaging products and services that support a publish-subscribe model, rather than building your own. In Azure, consider using Service Bus or Event Grid. Other technologies that can be used for pub/sub messaging include Redis, RabbitMQ, and Apache Kafka.
                  Reference:
                  https://docs.microsoft.com/en-us/azure/architecture/patterns/publisher-subscriber
                  Question #252

                  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 ensure that the subscription client processes all messages.
                  Which code segment should you use?
                  1. A
                    await subscriptionClient.AddRuleAsync(new RuleDescription(RuleDescription.DefaultRuleName, new TrueFilter()));
                  2. B
                    subscriptionClient = new SubscriptionClient(ServiceBusConnectionString, TopicName, SubscriptionName);
                  3. C
                    await subscriptionClient.CloseAsync();
                  4. D
                    subscriptionClient.RegisterMessageHandler(ProcessMessagesAsync, messageHandlerOptions);

                  Correct Answer:
                  D
                  Using topic client, call RegisterMessageHandler which is used to receive messages continuously from the entity. It registers a message handler and begins a new thread to receive messages. This handler is waited on every time a new message is received by the receiver. subscriptionClient.RegisterMessageHandler(ReceiveMessagesAsync, messageHandlerOptions);
                  Reference:
                  https://www.c-sharpcorner.com/article/azure-service-bus-topic-and-subscription-pub-sub/
                  Question #253

                  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 Service application that processes queue data when it receives a message from a mobile application. Messages may not be sent to the service consistently.
                  You have the following requirements:
                  ✑ Queue size must not grow larger than 80 gigabytes (GB).
                  ✑ Use first-in-first-out (FIFO) ordering of messages.
                  ✑ Minimize Azure costs.
                  You need to implement the messaging solution.
                  Solution: Use the .Net API to add a message to an Azure Storage Queue from the mobile application. Create an Azure VM that is triggered from Azure Storage
                  Queue events.
                  Does the solution meet the goal?
                  1. A
                    Yes
                  2. B
                    No

                  Correct Answer:
                  B
                  Don't use a VM, instead create an Azure Function App that uses an Azure Service Bus Queue trigger.
                  Reference:
                  https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-storage-queue-triggered-function
                  Question #254

                  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 Service application that processes queue data when it receives a message from a mobile application. Messages may not be sent to the service consistently.
                  You have the following requirements:
                  ✑ Queue size must not grow larger than 80 gigabytes (GB).
                  ✑ Use first-in-first-out (FIFO) ordering of messages.
                  ✑ Minimize Azure costs.
                  You need to implement the messaging solution.
                  Solution: Use the .Net API to add a message to an Azure Service Bus Queue from the mobile application. Create an Azure Windows VM that is triggered from
                  Azure Service Bus Queue.
                  Does the solution meet the goal?
                  1. A
                    Yes
                  2. B
                    No

                  Correct Answer:
                  B
                  Don't use a VM, instead create an Azure Function App that uses an Azure Service Bus Queue trigger.
                  Reference:
                  https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-storage-queue-triggered-function
                  Question #255

                  DRAG DROP -
                  You are developing a REST web service. Customers will access the service by using an Azure API Management instance.
                  The web service does not correctly handle conflicts. Instead of returning an HTTP status code of 409, the service returns a status code of 500. The body of the status message contains only the word conflict.
                  You need to ensure that conflicts produce the correct response.
                  How should you complete the policy? 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.
                  Select and Place:


                    Correct Answer:

                    Box 1: on-error -
                    Policies in Azure API Management are divided into inbound, backend, outbound, and on-error.
                    If there is no on-error section, callers will receive 400 or 500 HTTP response messages if an error condition occurs.

                    Box 2: context -

                    Box 3: context -

                    Box 4: set-status -
                    The return-response policy aborts pipeline execution and returns either a default or custom response to the caller. Default response is 200 OK with no body.
                    Custom response can be specified via a context variable or policy statements.
                    Syntax:
                    <return-response response-variable-name="existing context variable">
                    <set-header/>
                    <set-body/>
                    <set-status/>
                    </return-response>

                    Box 5: on-error -
                    Reference:
                    https://docs.microsoft.com/en-us/azure/api-management/api-management-error-handling-policies https://docs.microsoft.com/en-us/azure/api-management/api-management-transformation-policies
                    Question #256

                    DRAG DROP -
                    You are a developer for a Software as a Service (SaaS) company. You develop solutions that provide the ability to send notifications by using Azure Notification
                    Hubs.
                    You need to create sample code that customers can use as a reference for how to send raw notifications to Windows Push Notification Services (WNS) devices.
                    The sample code must not use external packages.
                    How should you complete the code segment? 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.
                    Select and Place:


                      Correct Answer:

                      Box 1: windows -
                      Example code:
                      var request = new HttpRequestMessage(method, $"{resourceUri}?api-version=2017-04"); request.Headers.Add("Authorization", createToken(resourceUri, KEY_NAME,
                      KEY_VALUE));
                      request.Headers.Add("X-WNS-Type", "wns/raw");
                      request.Headers.Add("ServiceBusNotification-Format", "windows"); return request;

                      Box 2: application/octet-stream -
                      Example code capable of sending a raw notification:
                      string resourceUri = $"https://{NH_NAMESPACE}.servicebus.windows.net/{HUB_NAME}/messages/"; using (var request = CreateHttpRequest(HttpMethod.Post, resourceUri))
                      {
                      request.Content = new StringContent(content, Encoding.UTF8,
                      "application/octet-stream");
                      request.Content.Headers.ContentType.CharSet = string.Empty;
                      var httpClient = new HttpClient();
                      var response = await httpClient.SendAsync(request);
                      Console.WriteLine(response.StatusCode);
                      }
                      Reference:
                      https://stackoverflow.com/questions/31346714/how-to-send-raw-notification-to-azure-notification-hub/31347901
                      Question #257

                      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 Hub. Configure the machine identifier as the partition key and enable capture.
                      Does the solution meet the goal?
                      1. A
                        Yes
                      2. B
                        No

                      Correct Answer:
                      A
                      Reference:
                      https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-programming-guide
                      Question #258

                      DRAG DROP -
                      You are developing an Azure solution to collect inventory data from thousands of stores located around the world. Each store location will send the inventory data hourly to an Azure Blob storage account for processing.
                      The solution must meet the following requirements:
                      ✑ Begin processing when data is saved to Azure Blob storage.
                      ✑ Filter data based on store location information.
                      ✑ Trigger an Azure Logic App to process the data for output to Azure Cosmos DB.
                      ✑ Enable high availability and geographic distribution.
                      ✑ Allow 24-hours for retries.
                      ✑ Implement an exponential back off data processing.
                      You need to configure the solution.
                      What should you implement? To answer, select the appropriate options in the answer area.
                      NOTE: Each correct selection is worth one point.
                      Select and Place:


                        Correct Answer:

                        Box 1: Azure Event Grid -
                        Blob storage events are pushed using Azure Event Grid to subscribers such as Azure Functions, Azure Logic Apps, or even to your own http listener. Event Grid provides reliable event delivery to your applications through rich retry policies and dead-lettering.

                        Box 2: Azure Logic App -
                        Event Grid uses event subscriptions to route event messages to subscribers. This image illustrates the relationship between event publishers, event subscriptions, and event handlers.


                        Box 3: Azure Service Bus -
                        The Event Grid service doesn't store events. Instead, events are stored in the Event Handlers, including ServiceBus, EventHubs, Storage Queue, WebHook endpoint, or many other supported Azure Services.
                        Reference:
                        https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-event-overview https://docs.microsoft.com/en-us/java/api/overview/azure/messaging-eventgrid-readme
                        Question #259

                        You are creating an app that will use CosmosDB for data storage. The app will process batches of relational data.
                        You need to select an API for the app.
                        Which API should you use?
                        1. A
                          MongoDB API
                        2. B
                          Table API
                        3. C
                          SQL API
                        4. D
                          Cassandra API

                        Correct Answer:
                        Incorrect Answer:
                        For relational data you will need the SQL API
                        A: The MongoDB API is not used for relational data.
                        B: The Table API only supports data in the key/value format
                        D: The Cassandra API only supports OLTP (Online Transactional Processing) and not batch processing.
                        Reference:
                        https://docs.microsoft.com/en-us/azure/cosmos-db/choose-api
                        Question #260

                        HOTSPOT -
                        You are developing a .NET application that communicates with Azure Storage.
                        A message must be stored when the application initializes.
                        You need to implement the message.
                        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:

                          Reference:
                          https://docs.microsoft.com/en-us/azure/storage/queues/storage-dotnet-how-to-use-queues?tabs=dotnetv11
                          Question #261

                          HOTSPOT -
                          A software as a service (SaaS) company provides document management services. The company has a service that consists of several Azure web apps. All
                          Azure web apps run in an Azure App Service Plan named PrimaryASP.
                          You are developing a new web service by using a web app named ExcelParser. The web app contains a third-party library for processing Microsoft Excel files.
                          The license for the third-party library stipulates that you can only run a single instance of the library.
                          You need to configure the service.
                          How should you complete the script? To answer, select the appropriate options in the answer area.
                          NOTE: Each correct selection is worth one point.
                          Hot Area:


                            Correct Answer:

                            Reference:
                            https://docs.microsoft.com/en-us/azure/app-service/manage-scale-per-app
                            Question #262

                            DRAG DROP -
                            You have an application that provides weather forecasting data to external partners. You use Azure API Management to publish APIs.
                            You must change the behavior of the API to meet the following requirements:
                            ✑ Support alternative input parameters
                            ✑ Remove formatting text from responses
                            ✑ Provide additional context to back-end services
                            Which types of policies should you implement? To answer, drag the policy types to the correct requirements. Each policy type 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:


                              Correct Answer:

                              Reference:
                              https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-policies https://docs.microsoft.com/en-us/azure/api-management/api-management-transformation-policies#forward-context-information-to-the-backend-service
                              Question #263

                              You are developing an e-commerce solution that uses a microservice architecture.
                              You need to design a communication backplane for communicating transactional messages between various parts of the solution. Messages must be communicated in first-in-first-out (FIFO) order.
                              What should you use?
                              1. A
                                Azure Storage Queue
                              2. B
                                Azure Event Hub
                              3. C
                                Azure Service Bus
                              4. D
                                Azure Event Grid

                              Correct Answer:
                              A
                              As a solution architect/developer, you should consider using Service Bus queues when:
                              ✑ Your solution requires the queue to provide a guaranteed first-in-first-out (FIFO) ordered delivery.
                              Reference:
                              https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-azure-and-service-bus-queues-compared-contrasted
                              Question #264

                              DRAG DROP -
                              A company backs up all manufacturing data to Azure Blob Storage. Admins move blobs from hot storage to archive tier storage every month.
                              You must automatically move blobs to Archive tier after they have not been modified within 180 days. The path for any item that is not archived must be placed in an existing queue. This operation must be performed automatically once a month. You set the value of TierAgeInDays to -180.
                              How should you configure the Logic App? To answer, drag the appropriate triggers or action blocks to the correct trigger or action slots. Each trigger or action block 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:


                                Correct Answer:

                                Box 1: Reoccurance..
                                To regularly run tasks, processes, or jobs on specific schedule, you can start your logic app workflow with the built-in Recurrence - Schedule trigger. You can set a date and time as well as a time zone for starting the workflow and a recurrence for repeating that workflow.
                                Set the interval and frequency for the recurrence. In this example, set these properties to run your workflow every week.

                                Box 2: Condition..
                                To run specific actions in your logic app only after passing a specified condition, add a conditional statement. This control structure compares the data in your workflow against specific values or fields. You can then specify different actions that run based on whether or not the data meets the condition.

                                Box 3: Put a message on a queue -
                                The path for any item that is not archived must be placed in an existing queue.
                                Note: Under If true and If false, add the steps to perform based on whether the condition is met.
                                Box 4: ..tier it to Cool or Archive tier.
                                Archive item.

                                Box 5: List blobs 2 -
                                Reference:
                                https://docs.microsoft.com/en-us/azure/connectors/connectors-native-recurrence https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-control-flow-loops https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-control-flow-conditional-statement
                                Question #265

                                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 Service application that processes queue data when it receives a message from a mobile application. Messages may not be sent to the service consistently.
                                You have the following requirements:
                                ✑ Queue size must not grow larger than 80 gigabytes (GB).
                                ✑ Use first-in-first-out (FIFO) ordering of messages.
                                ✑ Minimize Azure costs.
                                You need to implement the messaging solution.
                                Solution: Use the .Net API to add a message to an Azure Service Bus Queue from the mobile application. Create an Azure Function App that uses an Azure
                                Service Bus Queue trigger.
                                Does the solution meet the goal?
                                1. A
                                  Yes
                                2. B
                                  No

                                Correct Answer:
                                A
                                You can create a function that is triggered when messages are submitted to an Azure Storage queue.
                                Reference:
                                https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-storage-queue-triggered-function
                                Question #266

                                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 Notification Hub. Register all devices with the hub.
                                Does the solution meet the goal?
                                1. A
                                  Yes
                                2. B
                                  No

                                Correct Answer:
                                B
                                Instead use an Azure Service Bus, which is used order processing and financial transactions.
                                Reference:
                                https://docs.microsoft.com/en-us/azure/event-grid/compare-messaging-services
                                Question #267

                                You are building a loyalty program for a major snack producer. When customers buy a snack at any of 100 participating retailers the event is recorded in Azure
                                Event Hub. Each retailer is given a unique identifier that is used as the primary identifier for the loyalty program.
                                Retailers must be able to be added or removed at any time. Retailers must only be able to record sales for themselves.
                                You need to ensure that retailers can record sales.
                                What should you do?
                                1. A
                                  Use publisher policies for retailers.
                                2. B
                                  Create a partition for each retailer.
                                3. C
                                  Define a namespace for each retailer.

                                Correct Answer:
                                A
                                Event Hubs enables granular control over event publishers through publisher policies. Publisher policies are run-time features designed to facilitate large numbers of independent event publishers. With publisher policies, each publisher uses its own unique identifier when publishing events to an event hub.
                                Incorrect:
                                Not C: An Event Hubs namespace is a management container for event hubs (or topics, in Kafka parlance). It provides DNS-integrated network endpoints and a range of access control and network integration management features such as IP filtering, virtual network service endpoint, and Private Link.
                                Reference:
                                https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-features
                                Question #268
                                DRAG DROP -
                                You develop and deploy a web app to Azure App Service in a production environment. You scale out the web app to four instances and configure a staging slot to support changes.
                                You must monitor the web app in the environment to include the following requirements:
                                ✑ Increase web app availability by re-routing requests away from instances with error status codes and automatically replace instances if they remain in an error state after one hour.
                                ✑ Send web server logs, application logs, standard output, and standard error messaging to an Azure Storage blob account.
                                You need to configure Azure App Service.
                                Which values should you use? To answer, drag the appropriate configuration value to the correct requirements. Each configuration value 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:


                                  Correct Answer:

                                  Box 1: Health check -
                                  Health check increases your application's availability by re-routing requests away from unhealthy instances, and replacing instances if they remain unhealthy. Your
                                  App Service plan should be scaled to two or more instances to fully utilize Health check.

                                  Box 2: Diagnostic setting -
                                  Azure provides built-in diagnostics to assist with debugging an App Service app.
                                  With the new Azure Monitor integration, you can create Diagnostic Settings to send logs to Storage Accounts, Event Hubs and Log Analytics.
                                  Reference:
                                  https://docs.microsoft.com/en-us/azure/app-service/monitor-instances-health-check https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs
                                  Question #269
                                  You develop a solution that uses Azure Virtual Machines (VMs).
                                  The VMs contain code that must access resources in an Azure resource group. You grant the VM access to the resource group in Resource Manager.
                                  You need to obtain an access token that uses the VM's system-assigned managed identity.
                                  Which two actions should you perform? Each correct answer presents part of the solution.
                                  1. A
                                    From the code on the VM, call Azure Resource Manager using an access token.
                                  2. B
                                    Use PowerShell on a remote machine to make a request to the local managed identity for Azure resources endpoint.
                                  3. C
                                    Use PowerShell on the VM to make a request to the local managed identity for Azure resources endpoint.
                                  4. D
                                    From the code on the VM, call Azure Resource Manager using a SAS token.
                                  5. E
                                    From the code on the VM, generate a user delegation SAS token.

                                  Correct Answer:
                                  BD
                                  Question #270
                                  You are developing a road tollway tracking application that sends tracking events by using Azure Event Hubs using premium tier.
                                  Each road must have a throttling policy uniquely assigned.
                                  You need to configure the event hub to allow for per-road throttling.
                                  What should you do?
                                  1. A
                                    Use a unique consumer group for each road.
                                  2. B
                                    Ensure each road stores events in a different partition.
                                  3. C
                                    Ensure each road has a unique connection string.
                                  4. D
                                    Use a unique application group for each road.

                                  Correct Answer:
                                  B


                                  No comments:

                                  Post a Comment