HOTSPOT - You are developing a new API to be hosted by Azure API Management (APIM). The backend service that implements the API has not been completed. You are creating a test API and operation. You must enable developers to continue with the implementation and testing of the APIM instance integrations while you complete the backend API development. You need to configure a test API response. How should you complete the configuration? To answer, select the appropriate options in the answer area.
Question 292
You are developing several Azure API Management (APIM) hosted APIs. You must inspect request processing of the APIs in APIM. Requests to APIM by using a REST client must also be included. The request inspection must include the following information: • requests APIM sent to the API backend and the response it received • policies applied to the response before sending back to the caller • errors that occurred during the processing of the request and the policies applied to the errors • original request APIM received from the caller and the policies applied to the request You need to inspect the APIs. Which three actions should you do? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
A. Enable the Allow tracing setting for the subscription used to inspect the API.
B. Add the Ocp-Apim-Trace header value to the API call whit a value set to true.
C. Add the Ocp-Apim-Subscription-Key header value to the key for a subscription that allows access to the API.
D. Create and configure a custom policy. Apply the policy to the inbound policy section with a global scope.
E. Create and configure a custom policy. Apply the policy to the outbound policy section with an API scope.
Question 293
HOTSPOT - You plan to implement an Azure Functions app. The Azure Functions app has the following requirements: • Must be triggered by a message placed in an Azure Storage queue. • Must use the queue name set by an app setting named input_queue. • Must create an Azure Blob Storage named the same as the content of the message. You need to identify how to reference the queue and blob name in the function.json file of the Azure Functions app. How should you reference the names? To answer, select the appropriate values in the answer area. NOTE: Each correct selection is worth one point.
Question 294
HOTSPOT - You have an Azure API Management instance named API1 that uses a managed gateway. You plan to implement a policy that will apply at a product scope and will set the header of inbound requests to include information about the region hosting the gateway of API1. The policy definition contains the following content:
You have the following requirements for the policy definition: • Ensure that the header contains the information about the region hosting the gateway of API1. • Ensure the policy applies only after any global level policies are processed first. You need to complete the policy definition. Which values should you choose? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
Question 295
You are developing several Azure API Management (APIM) hosted APIs. You must make several minor and non-breaking changes to one of the APIs. The API changes include the following requirements: • Must not disrupt callers of the API. • Enable roll back if you find issues. • Documented to enable developers to understand what is new. • Tested before publishing. You need to update the API. What should you do?
A. Configure and apply header-based versioning.
B. Create and publish a product.
C. Configure and apply a custom policy.
D. Add a new revision to the API.
E. Configure and apply query string-based versioning.
Question 296
HOTSPOT - You are developing an application to store millions of images in Azure blob storage. The application has the following requirements: • Store the Exif (exchangeable image file format) data from the image as blob metadata when the application uploads the image. • Retrieve the Exif data from the image while minimizing bandwidth and processing time. • Utilizes the REST API. You need to use the image Exif data as blob metadata in the application. Which HTTP verbs should you use? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
Question 297
You are developing several microservices to run on Azure Container Apps for a company. External TCP ingress traffic from the internet has been enabled for the microservices. The company requires that the microservices must scale based on an Azure Event Hub trigger. You need to scale the microservices by using a custom scaling rule. Which two Kubernetes Event-driven Autoscaling (KEDA) trigger fields should you use? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
A. metadata
B. type
C. authenticationRef
D. name
E. metricType
Question 298
HOTSPOT - You need to configure Azure CDN for the Shipping web site. Which configuration options should you use? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:
Scenario: Shipping website - Use Azure Content Delivery Network (CDN) and ensure maximum performance for dynamic content while minimizing latency and costs. Tier: Standard - Profile: Akamai - Optimization: Dynamic site acceleration Dynamic site acceleration (DSA) is available for Azure CDN Standard from Akamai, Azure CDN Standard from Verizon, and Azure CDN Premium from Verizon profiles. DSA includes various techniques that benefit the latency and performance of dynamic content. Techniques include route and network optimization, TCP optimization, and more. You can use this optimization to accelerate a web app that includes numerous responses that aren't cacheable. Examples are search results, checkout transactions, or real-time data. You can continue to use core Azure CDN caching capabilities for static data. Reference: https://docs.microsoft.com/en-us/azure/cdn/cdn-optimization-overview
Question 299
HOTSPOT - You need to correct the VM issues. Which tools should you use? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:
Box 1: Azure Backup - The VM is critical and has not been backed up in the past. The VM must enable a quick restore from a 7-day snapshot to include in-place restore of disks in case of failure. In-Place restore of disks in IaaS VMs is a feature of Azure Backup. Performance: Accelerated Networking Scenario: The VM shows high network latency, jitter, and high CPU utilization. Box 2: Accelerated networking - The VM shows high network latency, jitter, and high CPU utilization. Accelerated networking enables single root I/O virtualization (SR-IOV) to a VM, greatly improving its networking performance. This high-performance path bypasses the host from the datapath, reducing latency, jitter, and CPU utilization, for use with the most demanding network workloads on supported VM types. Reference: https://azure.microsoft.com/en-us/blog/an-easy-way-to-bring-back-your-azure-vm-with-in-place-restore/
Question 300
DRAG DROP - You need to add code at line PC32 in Processing.cs to implement the GetCredentials method in the Processing class. How should you complete the code? 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:
Box 1: AzureServiceTokenProvider() Box 2: tp.GetAccessTokenAsync("..") Acquiring an access token is then quite easy. Example code: private async Task<string> GetAccessTokenAsync() { var tokenProvider = new AzureServiceTokenProvider(); return await tokenProvider.GetAccessTokenAsync("https://storage.azure.com/"); } Reference: https://joonasw.net/view/azure-ad-authentication-with-azure-storage-and-managed-service-identity