Friday, 24 January 2025

AZ-204 Question and Answer Part 16

 Question #211

DRAG DROP -
You develop an ASP.NET Core MVC application. You configure the application to track webpages and custom events.
You need to identify trends in application usage.
Which Azure Application Insights Usage Analysis features should you use? To answer, drag the appropriate features to the correct requirements. Each feature 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: Users -

    Box 2: Impact -
    One way to think of Impact is as the ultimate tool for settling arguments with someone on your team about how slowness in some aspect of your site is affecting whether users stick around. While users may tolerate a certain amount of slowness, Impact gives you insight into how best to balance optimization and performance to maximize user conversion.

    Box 3: Retention -
    The retention feature in Azure Application Insights helps you analyze how many users return to your app, and how often they perform particular tasks or achieve goals. For example, if you run a game site, you could compare the numbers of users who return to the site after losing a game with the number who return after winning. This knowledge can help you improve both your user experience and your business strategy.

    Box 4: User flows -
    The User Flows tool visualizes how users navigate between the pages and features of your site. It's great for answering questions like:
    ✑ How do users navigate away from a page on your site?
    ✑ What do users click on a page on your site?
    ✑ Where are the places that users churn most from your site?
    ✑ Are there places where users repeat the same action over and over?
    Incorrect Answers:
    Funnel: If your application involves multiple stages, you need to know if most customers are progressing through the entire process, or if they are ending the process at some point. The progression through a series of steps in a web application is known as a funnel. You can use Azure Application Insights Funnels to gain insights into your users, and monitor step-by-step conversion rates.
    Reference:
    https://docs.microsoft.com/en-us/azure/azure-monitor/app/usage-impact
    Question #212
    You develop a gateway solution for a public facing news API. The news API back end is implemented as a RESTful 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?
    1. A
      Import-AzureRmApiManagementApi -Context $ApiMgmtContext -SpecificationFormat "Swagger" -SpecificationPath $SwaggerPath -Path $Path
    2. B
      New-AzureRmApiManagementBackend -Context $ApiMgmtContext -Url $Url -Protocol http
    3. C
      New-AzureRmApiManagement -ResourceGroupName $ResourceGroup -Name $Name ג€"Location $Location -Organization $Org -AdminEmail $AdminEmail
    4. D
      New-AzureRmApiManagementBackendProxy -Url $ApiUrl

    Correct Answer:
    D
    New-AzureRmApiManagementBackendProxy creates a new Backend Proxy Object which can be piped when creating a new Backend entity.
    Example: Create a Backend Proxy In-Memory Object
    PS C:\>$secpassword = ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force
    PS C:\>$proxyCreds = New-Object System.Management.Automation.PSCredential ("foo", $secpassword)
    PS C:\>$credential = New-AzureRmApiManagementBackendProxy -Url "http://12.168.1.1:8080" -ProxyCredential $proxyCreds
    PS C:\>$apimContext = New-AzureRmApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
    PS C:\>$backend = New-AzureRmApiManagementBackend -Context $apimContext -BackendId 123 -Url 'https://contoso.com/awesomeapi' -Protocol http -Title
    "first backend" -SkipCertificateChainValidation $true -Proxy $credential -Description "backend with proxy server"
    Creates a Backend Proxy Object and sets up Backend
    Incorrect Answers:
    A: The Import-AzureRmApiManagementApi cmdlet imports an Azure API Management API from a file or a URL in Web Application Description Language (WADL),
    Web Services Description Language (WSDL), or Swagger format.
    B: New-AzureRmApiManagementBackend creates a new backend entity in Api Management.
    C: The New-AzureRmApiManagement cmdlet creates an API Management deployment in Azure API Management.
    Reference:
    https://docs.microsoft.com/en-us/powershell/module/azurerm.apimanagement/new-azurermapimanagementbackendproxy?view=azurermps-6.13.0
    Question #213
    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 Azure Service Bus to publish alarms. Each alarm controller uses 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.
    Which two actions should you perform? Each correct answer presents part of the solution.

    NOTE: Each correct selection is worth one point.
    1. A
      Assign the value of the hazard message SessionID property to the ReplyToSessionId property.
    2. B
      Assign the value of the hazard message MessageId property to the DevileryCount property.
    3. C
      Assign the value of the hazard message SessionID property to the SequenceNumber property.
    4. D
      Assign the value of the hazard message MessageId property to the CorrelationId property.
    5. E
      Assign the value of the hazard message SequenceNumber property to the DeliveryCount property.
    6. F
      Assign the value of the hazard message MessageId property to the SequenceNumber property.

    Correct Answer:
    AD
    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.
    A: 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:

    B, E: DeliveryCount -
    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.
    Reference:
    https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-messages-payloads
    Question #214
    You are developing an Azure function that connects to an Azure SQL Database instance. The function is triggered by an Azure Storage queue.
    You receive reports of numerous System.InvalidOperationExceptions with the following message:
    `Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.`
    You need to prevent the exception.

    What should you do?
    1. A
      In the host.json file, decrease the value of the batchSize option
    2. B
      Convert the trigger to Azure Event Hub
    3. C
      Convert the Azure Function to the Premium plan
    4. D
      In the function.json file, change the value of the type option to queueScaling

    Correct Answer:
    C
    With the Premium plan the max outbound connections per instance is unbounded compared to the 600 active (1200 total) in a Consumption plan.
    Note: The number of available connections is limited partly because a function app runs in a sandbox environment. One of the restrictions that the sandbox imposes on your code is a limit on the number of outbound connections, which is currently 600 active (1,200 total) connections per instance. When you reach this limit, the functions runtime writes the following message to the logs: Host thresholds exceeded: Connections.
    Reference:
    https://docs.microsoft.com/en-us/azure/azure-functions/manage-connections https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#service-limits
    Question #215
    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 are developing and deploying several ASP.NET web applications to Azure App Service. You plan to save session state information and HTML output.
    You must use a storage mechanism with the following requirements:
    ✑ Share session state across all ASP.NET web applications.
    ✑ Support controlled, concurrent access to the same session state data for multiple readers and a single writer.
    ✑ Save full HTTP responses for concurrent requests.
    You need to store the information.
    Proposed Solution: Deploy and configure Azure Cache for Redis. Update the web applications.
    Does the solution meet the goal?
    1. A
      Yes
    2. B
      No
    Correct Answer:
    A
    The session state provider for Azure Cache for Redis enables you to share session information between different instances of an ASP.NET web application.
    The same connection can be used by multiple concurrent threads.
    Redis supports both read and write operations.
    The output cache provider for Azure Cache for Redis enables you to save the HTTP responses generated by an ASP.NET web application.
    Note: Using the Azure portal, you can also configure the eviction policy of the cache, and control access to the cache by adding users to the roles provided. These roles, which define the operations that members can perform, include Owner, Contributor, and Reader. For example, members of the Owner role have complete control over the cache (including security) and its contents, members of the Contributor role can read and write information in the cache, and members of the
    Reader role can only retrieve data from the cache.
    Reference:
    https://docs.microsoft.com/en-us/azure/architecture/best-practices/caching
    Question #216
    HOTSPOT -
    You are debugging an application that is running on Azure Kubernetes cluster named cluster1. The cluster uses Azure Monitor for containers to monitor the cluster.
    The application has sticky sessions enabled on the ingress controller.
    Some customers report a large number of errors in the application over the last 24 hours.
    You need to determine on which virtual machines (VMs) the errors are occurring.
    How should you complete the Azure Monitor query? To answer, select the appropriate options in the answer area.
    NOTE: Each correct selection is worth one point.
    Hot Area:


      Correct Answer:

      Box 1: ago(1d)

      Box 2: distinct containerID -
      Box 3: where ContainerID in (ContainerIDs)
      Box 4: summarize Count by Computer
      Summarize: aggregate groups of rows
      Use summarize to identify groups of records, according to one or more columns, and apply aggregations to them. The most common use of summarize is count, which returns the number of results in each group.
      Reference:
      https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/get-started-queries https://docs.microsoft.com/en-us/azure/azure-monitor/log-query/query-optimization
      Question #217
      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 use the command:
        az webapp 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 -
        Reference:
        https://docs.microsoft.com/en-us/cli/azure/webapp/log
        Question #218
        You develop and deploy an ASP.NET web app to Azure App Service. You use Application Insights telemetry to monitor the app.
        You must test the app to ensure that the app is available and responsive from various points around the world and at regular intervals. If the app is not responding, you must send an alert to support staff.
        You need to configure a test for the web app.
        Which two test types can you use? Each correct answer presents a complete solution.
        NOTE: Each correct selection is worth one point.
        1. A
          integration
        2. B
          multi-step web
        3. C
          URL ping
        4. D
          unit
        5. E
          load

        Correct Answer:
        BC
        There are three types of availability tests:
        ✑ URL ping test: a simple test that you can create in the Azure portal.
        ✑ Multi-step web test: A recording of a sequence of web requests, which can be played back to test more complex scenarios. Multi-step web tests are created in
        Visual Studio Enterprise and uploaded to the portal for execution.
        ✑ Custom Track Availability Tests: If you decide to create a custom application to run availability tests, the TrackAvailability() method can be used to send the results to Application Insights.
        Reference:
        https://docs.microsoft.com/en-us/azure/azure-monitor/app/monitor-web-app-availability
        Question #219
        DRAG DROP -
        A web service provides customer summary information for e-commerce partners. The web service is implemented as an Azure Function app with an HTTP trigger.
        Access to the API is provided by an Azure API Management instance. The API Management instance is configured in consumption plan mode. All API calls are authenticated by using OAuth.
        API calls must be cached. Customers must not be able to view cached data for other customers.
        You need to configure API Management policies for caching.
        How should you complete the policy statement?
        Select and Place:


          Correct Answer:

          Box 1: internal -
          caching-type
          Choose between the following values of the attribute:
          ✑ internal to use the built-in API Management cache,
          ✑ external to use the external cache as Azure Cache for Redis prefer-external to use external cache if configured or internal cache otherwise.


          Box 2: private -
          downstream-caching-type
          This attribute must be set to one of the following values.
          ✑ none - downstream caching is not allowed.
          ✑ private - downstream private caching is allowed.
          ✑ public - private and shared downstream caching is allowed.

          Box 3: Authorization -
          <vary-by-header>Authorization</vary-by-header>
          <!-- should be present when allow-private-response-caching is "true"-->
          Note: Start caching responses per value of specified header, such as Accept, Accept-Charset, Accept-Encoding, Accept-Language, Authorization, Expect, From,

          Host, If-Match -
          Reference:
          https://docs.microsoft.com/en-us/azure/api-management/api-management-caching-policies
          Question #220
          You are developing applications for a company. You plan to host the applications on Azure App Services.
          The company has the following requirements:
          ✑ Every five minutes verify that the websites are responsive.
          ✑ Verify that the websites respond within a specified time threshold. Dependent requests such as images and JavaScript files must load properly.
          ✑ Generate alerts if a website is experiencing issues.
          ✑ If a website fails to load, the system must attempt to reload the site three more times.
          You need to implement this process with the least amount of effort.
          What should you do?
          1. A
            Create a Selenium web test and configure it to run from your workstation as a scheduled task.
          2. B
            Set up a URL ping test to query the home page.
          3. C
            Create an Azure function to query the home page.
          4. D
            Create a multi-step web test to query the home page.
          5. E
            Create a Custom Track Availability Test to query the home page.

          Correct Answer:
          D
          You can monitor a recorded sequence of URLs and interactions with a website via multi-step web tests.
          Incorrect Answers:
          A: Selenium is an umbrella project for a range of tools and libraries that enable and support the automation of web browsers.
          It provides extensions to emulate user interaction with browsers, a distribution server for scaling browser allocation, and the infrastructure for implementations of the W3C WebDriver specification that lets you write interchangeable code for all major web browsers.
          Reference:
          https://docs.microsoft.com/en-us/azure/azure-monitor/app/availability-multistep
          Question #221
          You develop and add several functions to an Azure Function app that uses the latest runtime host. The functions contain several REST API endpoints secured by using SSL. The Azure Function app runs in a Consumption plan.
          You must send an alert when any of the function endpoints are unavailable or responding too slowly.
          You need to monitor the availability and responsiveness of the functions.
          What should you do?
          1. A
            Create a URL ping test.
          2. B
            Create a timer triggered function that calls TrackAvailability() and send the results to Application Insights.
          3. C
            Create a timer triggered function that calls GetMetric("Request Size") and send the results to Application Insights.
          4. D
            Add a new diagnostic setting to the Azure Function app. Enable the FunctionAppLogs and Send to Log Analytics options.

          Correct Answer:
          B
          You can create an Azure Function with TrackAvailability() that will run periodically according to the configuration given in TimerTrigger function with your own business logic. The results of this test will be sent to your Application Insights resource, where you will be able to query for and alert on the availability results data.
          This allows you to create customized tests similar to what you can do via Availability Monitoring in the portal. Customized tests will allow you to write more complex availability tests than is possible using the portal UI, monitor an app inside of your Azure VNET, change the endpoint address, or create an availability test even if this feature is not available in your region.
          Reference:
          https://docs.microsoft.com/en-us/azure/azure-monitor/app/availability-azure-functions
          Question #222
          DRAG DROP -
          You are developing an application to retrieve user profile information. The application will use the Microsoft Graph SDK.
          The app must retrieve user profile information by using a Microsoft Graph API call.
          You need to call the Microsoft Graph API from the application.
          In which order should you perform the actions? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.
          Select and Place:


            Correct Answer:

            Step 1: Register the application with the Microsoft identity platform.
            To authenticate with the Microsoft identity platform endpoint, you must first register your app at the Azure app registration portal
            Step 2: Build a client by using the client app ID
            Step 3: Create an authentication provider
            Create an authentication provider by passing in a client application and graph scopes.
            Code example:
            DeviceCodeProvider authProvider = new DeviceCodeProvider(publicClientApplication, graphScopes);
            // Create a new instance of GraphServiceClient with the authentication provider.
            GraphServiceClient graphClient = new GraphServiceClient(authProvider);
            Step 4: Create a new instance of the GraphServiceClient
            Step 5: Invoke the request to the Microsoft Graph API
            Reference:
            https://docs.microsoft.com/en-us/graph/auth-v2-service
            https://docs.microsoft.com/en-us/graph/sdks/create-client
            Question #223
            DRAG DROP -
            You develop and deploy an Azure Logic App that calls an Azure Function app. The Azure Function App includes an OpenAPI (Swagger) definition and uses an
            Azure Blob storage account. All resources are secured by using Azure Active Directory (Azure AD).
            The Logic App must use Azure Monitor logs to record and store information about runtime data and events. The logs must be stored in the Azure Blob storage account.
            You need to set up Azure Monitor logs and collect diagnostics data for the Azure Logic App.
            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:

              Step 1: Create a Log Analytics workspace
              Before you start, you need a Log Analytics workspace.
              Step 2: Install the Logic Apps Management solution
              To set up logging for your logic app, you can enable Log Analytics when you create your logic app, or you can install the Logic Apps Management solution in your
              Log Analytics workspace for existing logic apps.
              Step 3: Add a diagnostic setting to the Azure Logic App

              Set up Azure Monitor logs -
              1. In the Azure portal, find and select your logic app.
              2. On your logic app menu, under Monitoring, select Diagnostic settings > Add diagnostic setting.
              Reference:
              https://docs.microsoft.com/en-us/azure/logic-apps/monitor-logic-apps-log-analytics
              Question #224
              DRAG DROP -
              You develop an application. You plan to host the application on a set of virtual machines (VMs) in Azure.
              You need to configure Azure Monitor to collect logs from the application.
              Which four 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:

                Step 1: Create a Log Analytics workspace.
                First create the workspace.
                Step 2: Add a VMInsights solution.
                Before a Log Analytics workspace can be used with VM insights, it must have the VMInsights solution installed.
                Step 3: Install agents on the VM and VM scale set to be monitored.
                Prior to onboarding agents, you must create and configure a workspace. Install or update the Application Insights Agent as an extension for Azure virtual machines and VM scalet sets.
                Step 4: Create an Application Insights resource
                Sign in to the Azure portal, and create an Application Insights resource.

                Once a workspace-based Application Insights resource has been created, configuring monitoring is relatively straightforward.
                Reference:
                https://docs.microsoft.com/en-us/azure/azure-monitor/vm/vminsights-configure-workspace https://docs.microsoft.com/en-us/azure/azure-monitor/app/create-workspace-resource
                Question #225
                You develop and deploy an Azure App Service web app. The app is deployed to multiple regions and uses Azure Traffic Manager. Application Insights is enabled for the app.
                You need to analyze app uptime for each month.
                Which two solutions will achieve the goal? Each correct answer presents a complete solution.
                NOTE: Each correct selection is worth one point.
                1. A
                  Azure Monitor logs
                2. B
                  Application Insights alerts
                3. C
                  Azure Monitor metrics
                4. D
                  Application Insights web tests

                Correct Answer:
                BD
                Reference:
                https://azure.microsoft.com/en-us/blog/creating-a-web-test-alert-programmatically-with-application-insights/
                Question #226
                DRAG DROP -
                You develop and deploy an Azure App Service web app. The web app accesses data in an Azure SQL database.
                You must update the web app to store frequently used data in a new Azure Cache for Redis Premium instance.
                You need to implement the Azure Cache for Redis features.
                Which feature should you implement? To answer, drag the appropriate feature to the correct requirements. Each feature 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://www.red-gate.com/simple-talk/development/dotnet-development/overview-of-azure-cache-for-redis/ https://docs.microsoft.com/en-us/azure/architecture/best-practices/caching
                  Question #227
                  You are developing an ASP.NET Core Web API web service. The web service uses Azure Application Insights for all telemetry and dependency tracking. The web service reads and writes data to a database other than Microsoft SQL Server.
                  You need to ensure that dependency tracking works for calls to the third-party database.
                  Which two dependency telemetry properties should you use? Each correct answer presents part of the solution.
                  NOTE: Each correct selection is worth one point.
                  1. A
                    Telemetry.Context.Cloud.RoleInstance
                  2. B
                    Telemetry.Id
                  3. C
                    Telemetry.Name
                  4. D
                    Telemetry.Context.Operation.Id
                  5. E
                    Telemetry.Context.Session.Id

                  Correct Answer:
                  BD
                  Example:
                  public async Task Enqueue(string payload)
                  {
                  // StartOperation is a helper method that initializes the telemetry item
                  // and allows correlation of this operation with its parent and children. var operation = telemetryClient.StartOperation<DependencyTelemetry>("enqueue " + queueName);

                  operation.Telemetry.Type = "Azure Service Bus";
                  operation.Telemetry.Data = "Enqueue " + queueName;
                  var message = new BrokeredMessage(payload);
                  // Service Bus queue allows the property bag to pass along with the message.
                  // We will use them to pass our correlation identifiers (and other context)
                  // to the consumer.
                  message.Properties.Add("ParentId", operation.Telemetry.Id);
                  message.Properties.Add("RootId", operation.Telemetry.Context.Operation.Id);
                  Reference:
                  https://docs.microsoft.com/en-us/azure/azure-monitor/app/custom-operations-tracking
                  Question #228
                  HOTSPOT -
                  You are using Azure Front Door Service.
                  You are expecting inbound files to be compressed by using Brotli compression. You discover that inbound XML files are not compressed. The files are 9 megabytes (MB) in size.
                  You need to determine the root cause for the issue.
                  To answer, select the appropriate options in the answer area.
                  NOTE: Each correct selection is worth one point.
                  Hot Area:


                    Correct Answer:

                    Box 1: No -
                    Front Door can dynamically compress content on the edge, resulting in a smaller and faster response to your clients. All files are eligible for compression.
                    However, a file must be of a MIME type that is eligible for compression list.

                    Box 2: No -
                    Sometimes you may wish to purge cached content from all edge nodes and force them all to retrieve new updated assets. This might be due to updates to your web application, or to quickly update assets that contain incorrect information.

                    Box 3: Yes -
                    These profiles support the following compression encodings: Gzip (GNU zip), Brotli
                    Reference:
                    https://docs.microsoft.com/en-us/azure/frontdoor/front-door-caching
                    Question #229
                    HOTSPOT -
                    You are developing an Azure App Service hosted ASP.NET Core web app to deliver video-on-demand streaming media. You enable an Azure Content Delivery
                    Network (CDN) Standard for the web endpoint. Customer videos are downloaded from the web app by using the following example URL: http://www.contoso.com/ content.mp4?quality=1.
                    All media content must expire from the cache after one hour. Customer videos with varying quality must be delivered to the closest regional point of presence
                    (POP) node.
                    You need to configure Azure CDN caching rules.
                    Which options should you use? To answer, select the appropriate options in the answer area.
                    NOTE: Each correct selection is worth one point.
                    Hot Area:


                      Correct Answer:

                      Box 1: Override -
                      Override: Ignore origin-provided cache duration; use the provided cache duration instead. This will not override cache-control: no-cache.
                      Set if missing: Honor origin-provided cache-directive headers, if they exist; otherwise, use the provided cache duration.
                      Incorrect:
                      Bypass cache: Do not cache and ignore origin-provided cache-directive headers.

                      Box 2: 1 hour -
                      All media content must expire from the cache after one hour.

                      Box 3: Cache every unique URL -
                      Cache every unique URL: In this mode, each request with a unique URL, including the query string, is treated as a unique asset with its own cache. For example, the response from the origin server for a request for example.ashx?q=test1 is cached at the POP node and returned for subsequent caches with the same query string. A request for example.ashx?q=test2 is cached as a separate asset with its own time-to-live setting.
                      Incorrect Answers:
                      Bypass caching for query strings: In this mode, requests with query strings are not cached at the CDN POP node. The POP node retrieves the asset directly from the origin server and passes it to the requestor with each request.
                      Ignore query strings: Default mode. In this mode, the CDN point-of-presence (POP) node passes the query strings from the requestor to the origin server on the first request and caches the asset. All subsequent requests for the asset that are served from the POP ignore the query strings until the cached asset expires.
                      Reference:
                      https://docs.microsoft.com/en-us/azure/cdn/cdn-query-string

                      Question #230
                      HOTSPOT -
                      You are developing an ASP.NET Core time sheet application that runs as an Azure Web App. Users of the application enter their time sheet information on the first day of every month.
                      The application uses a third-party web service to validate data.
                      The application encounters periodic server errors due to errors that result from calling a third-party web server. Each request to the third-party server has the same chance of failure.
                      You need to configure an Azure Monitor alert to detect server errors unrelated to the third-party service. You must minimize false-positive alerts.
                      How should you complete the Azure Resource Manager template? To answer, select the appropriate options in the answer area.
                      NOTE: Each correct selection is worth one point.
                      Hot Area:


                        Correct Answer:

                        Box 1: DynamicThresholdCriterion

                        Box 2: Http5xx -
                        Server errors are in the 5xx range.
                        Client errors are in the 4xx range

                        Box 3: Low -
                        Reference:
                        https://docs.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-dynamic-thresholds
                        Question #231
                        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.
                        1. A
                          noeviction
                        2. B
                          allkeys-lru
                        3. C
                          volatile-lru
                        4. D
                          allkeys-random
                        5. E
                          volatile-ttl
                        6. F
                          volatile-random

                        Correct Answer:
                        BC
                        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
                        Question #232
                        DRAG DROP -
                        An organization has web apps hosted in Azure.
                        The organization wants to track events and telemetry data in the web apps by using Application Insights.
                        You need to configure the web apps for Application Insights.
                        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:

                          Step 1: Create an Application Insights resource
                          Creating an Application Insights workspace-based resource us a prerequisite.
                          Step 2: Copy the connection string
                          A connection string identifies the resource that you want to associate with your telemetry data. It also allows you to modify the endpoints that your resource will use as a destination for your telemetry. You'll need to copy the connection string and add it to your application's code or to an environment variable.
                          Step 3: Configure the Application Insights SDK in the app
                          The Application Insights SDK for ASP.NET Core can monitor your applications no matter where or how they run.
                          Install the Application Insights SDK NuGet package for ASP.NET Core.
                          Reference:
                          https://docs.microsoft.com/en-us/azure/azure-monitor/app/asp-net-core
                          Question #233
                          An organization hosts web apps in Azure. The organization uses Azure Monitor.
                          You discover that configuration changes were made to some of the web apps.
                          You need to identify the configuration changes.
                          Which Azure Monitor log should you review?
                          1. A
                            AppServiceAppLogs
                          2. B
                            AppServiceEnvironmentPlatformlogs
                          3. C
                            AppServiceConsoleLogs
                          4. D
                            AppServiceAuditLogs

                          Correct Answer:
                          B
                          The log type AppServiceEnvironmentPlatformLogs handles the App Service Environment: scaling, configuration changes, and status logs.
                          Incorrect:
                          AppServiceAppLogs contains logs generated through your application.
                          AppServiceAuditLogs logs generated when publishing users successfully log on via one of the App Service publishing protocols.
                          Reference:
                          https://docs.microsoft.com/en-us/azure/app-service/troubleshoot-diagnostic-logs
                          Question #234
                          You develop and deploy an Azure App Service web app to a production environment. You enable the Always On setting and the Application Insights site extensions.
                          You deploy a code update and receive multiple failed requests and exceptions in the web app.
                          You need to validate the performance and failure counts of the web app in near real time.
                          Which Application Insights tool should you use?
                          1. A
                            Profiler
                          2. B
                            Smart Detection
                          3. C
                            Live Metrics Stream
                          4. D
                            Application Map
                          5. E
                            Snapshot Debugger

                          Correct Answer:
                          C
                          Live Metrics Stream -
                          Deploying the latest build can be an anxious experience. If there are any problems, you want to know about them right away, so that you can back out if necessary. Live Metrics Stream gives you key metrics with a latency of about one second.
                          With Live Metrics Stream, you can:
                          * Validate a fix while it's released, by watching performance and failure counts.
                          * Etc.

                          Incorrect:
                          * Profiler
                          Azure Application Insights Profiler provides performance traces for applications running in production in Azure. Profiler:
                          Captures the data automatically at scale without negatively affecting your users.
                          Helps you identify the ג€hotג€ code path spending the most time handling a particular web request.
                          * Snapshot debugger
                          When an exception occurs, you can automatically collect a debug snapshot from your live web application. The snapshot shows the state of source code and variables at the moment the exception was thrown. The Snapshot Debugger in Azure Application Insights monitors exception telemetry from your web app. It collects snapshots on your top-throwing exceptions so that you have the information you need to diagnose issues in production.
                          Reference:
                          https://docs.microsoft.com/en-us/azure/azure-monitor/app/live-stream
                          Question #235
                          HOTSPOT -
                          You deploy an ASP.NET web app to Azure App Service.
                          You must monitor the web app by using Application Insights.
                          You need to configure Application Insights to meet the requirements.
                          Which feature should you use? To answer, select the appropriate options in the answer area.
                          NOTE: Each correct selection is worth one point.
                          Hot Area:


                            Correct Answer:

                            Box 1: Smart Detection -
                            Smart detection automatically warns you of potential performance problems and failure anomalies in your web application. It performs proactive analysis of the telemetry that your app sends to Application Insights. If there is a sudden rise in failure rates, or abnormal patterns in client or server performance, you get an alert. This feature needs no configuration. It operates if your application sends enough telemetry.

                            Box 2: Snapshot Debugger -
                            When an exception occurs, you can automatically collect a debug snapshot from your live web application. The snapshot shows the state of source code and variables at the moment the exception was thrown. The Snapshot Debugger in Azure Application Insights monitors exception telemetry from your web app. It collects snapshots on your top-throwing exceptions so that you have the information you need to diagnose issues in production.

                            Box 3: Profiler -
                            Azure Application Insights Profiler provides performance traces for applications running in production in Azure. Profiler:
                            Captures the data automatically at scale without negatively affecting your users.
                            Helps you identify the ג€hotג€ code path spending the most time handling a particular web request.
                            Reference:
                            https://docs.microsoft.com/en-us/azure/azure-monitor/app/proactive-diagnostics https://docs.microsoft.com/en-us/azure/azure-monitor/snapshot-debugger/snapshot-debugger https://docs.microsoft.com/en-us/azure/azure-monitor/profiler/profiler-overview
                            Question #236
                            You are building a web application that performs image analysis on user photos and returns metadata containing objects identified. The image analysis is very costly in terms of time and compute resources. You are planning to use Azure Redis Cache so duplicate uploads do not need to be reprocessed.
                            In case of an Azure data center outage, metadata loss must be kept to a minimum.
                            You need to configure the Azure Redis cache instance.
                            Which two actions should you perform? Each correct answer presents part of the solution.
                            NOTE: Each correct selection is worth one point.
                            1. A
                              Configure Azure Redis with AOF persistence.
                            2. B
                              Configure Azure Redis with RDB persistence.
                            3. C
                              Configure second storage account for persistence.
                            4. D
                              Set backup frequency to the minimum value.

                            Correct Answer:
                            BD
                            RDB persistence - When you use RDB persistence, Azure Cache for Redis persists a snapshot of your cache in a binary format. The snapshot is saved in an
                            Azure Storage account. The configurable backup frequency determines how often to persist the snapshot. If a catastrophic event occurs that disables both the primary and replica cache, the cache is reconstructed using the most recent snapshot.
                            Note: Azure Cache for Redis supports zone redundant configurations in the Premium and Enterprise tiers. A zone redundant cache can place its nodes across different Azure Availability Zones in the same region. It eliminates data center or AZ outage as a single point of failure and increases the overall availability of your cache.
                            Incorrect:
                            Not A: Zone redundancy doesn't support AOF persistence or work with geo-replication currently.
                            Not C: No need for a second storage account.
                            Reference:
                            https://docs.microsoft.com/en-us/azure/azure-cache-for-redis/cache-how-to-premium-persistence
                            Question #237
                            You are developing an Azure-based web application. The application goes offline periodically to perform offline data processing. While the application is offline, numerous Azure Monitor alerts fire which result in the on-call developer being paged.
                            The application must always log when the application is offline for any reason.
                            You need to ensure that the on-call developer is not paged during offline processing.
                            What should you do?
                            1. A
                              Add Azure Monitor alert processing rules to suppress notifications.
                            2. B
                              Disable Azure Monitor Service Health Alerts during offline processing.
                            3. C
                              Create an Azure Monitor Metric Alert.
                            4. D
                              Build an Azure Monitor action group that suppresses the alerts.

                            Correct Answer:
                            D
                            You can use alert processing rules to add action groups or remove (suppress) action groups from your fired alerts.
                            Reference:
                            https://docs.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-action-rules
                            Question #238
                            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?
                            1. A
                              Yes
                            2. B
                              No

                            Correct Answer:
                            A
                            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 #239
                            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?
                            1. A
                              Yes
                            2. B
                              No
                            Correct Answer:
                            B
                            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 #240
                            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:


                              Correct Answer:

                              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

                              No comments:

                              Post a Comment