Exam Logo

Microsoft (AZ-204) Exam Questions And Answers page 44

You need to add code at line EG15 in EventGridController.cs to ensure that the Log policy applies to all services.

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.

Azure Compute Azure Security
You need to retrieve all order line items from Order.json and sort the data alphabetically by the city.

How should you complete the code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Monitor, troubleshoot, and optimize Azure solutions Azure Storage
You need to configure Azure Cosmos DB.

Which settings should you use? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Azure Storage Azure Networking
You are developing a serverless Java application on Azure. You create a new Azure Key Vault to work with secrets from a new Azure Functions application.

The application must meet the following requirements:

• Reference the Azure Key Vault without requiring any changes to the Java code.
• Dynamically add and remove instances of the Azure Functions host based on the number of incoming application events.
• Ensure that instances are perpetually warm to avoid any cold starts.
• Connect to a VNet.
• Authentication to the Azure Key Vault instance must be removed if the Azure Function application is deleted.

You need to grant the Azure Functions application access to the Azure Key Vault.

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.

Develop for Azure storage Monitor, troubleshoot, and optimize Azure solutions
Your company is developing an Azure API hosted in Azure.

You need to implement authentication for the Azure API to access other Azure resources. You have the following requirements:

• All API calls must be authenticated.
• Callers to the API must not send credentials to the API.

Which authentication mechanism should you use?
Azure Networking Azure Identity and Access Management
You need to add code at line AM10 of the application manifest to ensure that the requirement for manually reviewing content can be met.

How should you complete the code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Azure Fundamentals Azure Compute
You are developing a ticket reservation system for an airline.

The storage solution for the application must meet the following requirements:

• Ensure at least 99.99% availability and provide low latency.
• Accept reservations even when localized network outages or other unforeseen failures occur.
• Process reservations in the exact sequence as reservations are submitted to minimize overbooking or selling the same seat to multiple travelers.
• Allow simultaneous and out-of-order reservations with a maximum five-second tolerance window.

You provision a resource group named airlineResourceGroup in the Azure South-Central US region.

You need to provision a SQL API Cosmos DB account to support the app.

How should you complete the Azure CLI commands? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Azure Storage
Your company has several websites that use a company logo image. You use Azure Content Delivery Network (CDN) to store the static image.

You need to determine the correct process of how the CDN and the Point of Presence (POP) server will distribute the image and list the items in the correct order.

In which order do the actions occur? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.

Azure Storage
Your company is developing an Azure API.

You need to implement authentication for the Azure API. You have the following requirements:

• All API calls must be secure.
• Callers to the API must not send credentials to the API.

Which authentication mechanism should you use?
Azure Networking Azure Identity and Access Management
You need to add YAML markup at line CS17 to ensure that the ContentUploadService can access Azure Storage access keys.

How should you complete the YAML markup? To answer, drag the appropriate YAML segments to the correct locations. Each YAML 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.

Develop for Azure storage