Tüm alıştırma soruları
972 soru
You are building a microservices gateway using an Azure API Management (APIM) instance. You need to restrict access to one of the microservices by filtering incoming traffic based on the sender's IP address. In which policy section of the API's policy XML definition must you place the ip-filter policy?
You are implementing Azure Monitor alerts and notifications for an Azure App Service web application. You need to configure a Log Search alert rule to detect failed dependency calls in Application Insights. When the alert fires, it must execute a custom workflow using an Azure Logic App. Which two configurations should you implement?
Geçerli olan tümünü seçin
You are developing a C# backend service that manages user profiles in a multi-tenant SaaS application. User profile items are stored in an Azure Cosmos DB container with the partition key path `/tenantId`. The Azure Cosmos DB account is configured to use Session consistency.
A user updates their profile through one instance of the service, which returns a session token. A separate service instance must immediately read this updated profile. To guarantee read-your-writes consistency across the separate service instances with the lowest latency and RU cost, you must perform a point read using the Cosmos DB .NET SDK v3.
Which C# code snippet should you use?
ItemRequestOptions options = new ItemRequestOptions { SessionToken = sessionToken };
ItemResponse<UserProfile> response = await container.ReadItemAsync<UserProfile>(
id: "user-99",
partitionKey: new PartitionKey("tenant-abc"),
requestOptions: options
);
ItemResponse<UserProfile> response = await container.ReadItemAsync<UserProfile>(
id: "user-99",
partitionKey: new PartitionKey("tenant-abc")
);
ItemRequestOptions options = new ItemRequestOptions { SessionToken = sessionToken };
ItemResponse<UserProfile> response = await container.ReadItemAsync<UserProfile>(
id: "user-99",
partitionKey: new PartitionKey("active"),
requestOptions: options
);
FeedIterator<UserProfile> iterator = container.GetItemQueryIterator<UserProfile>(
"SELECT * FROM c WHERE c.id = 'user-99'"
);
You are developing a solution that routes resource group lifecycle events to an Azure Storage Queue. The storage account is secured, and public access is restricted. You need to configure Azure Event Grid to deliver these events securely using a user-assigned managed identity. Which sequence of steps should you perform to complete the configuration? To answer, arrange all actions from the list of actions in the correct order.
Öğeleri doğru sıraya koymak için sürükleyin
A developer is troubleshooting an application startup issue on a Linux-based Azure App Service named finance-app in the resource group finance-rg. The container starts but immediately exits. The developer wants to view the startup logs in real-time from the Azure CLI. They execute the command: az webapp log tail --name finance-app --resource-group finance-rg. However, the command output remains empty and does not display any container startup messages. What must the developer do first to resolve this issue and view the startup logs?
A company hosts a web application on an Azure App Service plan that currently runs on instances. You configure an autoscale rule to add instance (scale out) when the average CPU Percentage exceeds . If the CPU load is evenly distributed, the CPU percentage per instance drops to immediately after scaling out to instances. To prevent autoscale flapping, which configuration should you apply for the scale-in rule?
You are deploying a C# Azure Functions application that is integrated with Application Insights. You need to enable both Application Insights Profiler to identify execution hot paths, and Snapshot Debugger to capture debug snapshots when unhandled exceptions occur. Developers must be able to view the performance traces and download the debug snapshots from the Azure portal.
Which of the following actions should you perform? (Select TWO.)
Geçerli olan tümünü seçin
You are developing a native mobile application named FleetApp that allows delivery drivers to view their own calendar events from Microsoft Graph and upload telemetry data to a custom backend web API named RouteAPI. You register RouteAPI in Microsoft Entra ID and expose a custom scope named Telemetry.Write.
You register FleetApp in Microsoft Entra ID. The application must perform all actions on behalf of the signed-in driver, allow drivers to consent to permissions themselves, and adhere to the principle of least privilege.
Which permissions should you configure for the FleetApp registration?
An Azure integration workflow must modify the metadata of a blob while preventing write conflicts. Using the .NET SDK (`Azure.Storage.Blobs`), write operations to the blob must be temporarily locked.
Order the steps required to programmatically lock the blob, apply the metadata changes, and release the lock.
Öğeleri doğru sıraya koymak için sürükleyin
You are configuring a new Azure Container App named shipping-tracker to host a containerized microservice. The container image is stored in a private Azure Container Registry (ACR) named shippingregistry.azurecr.io. You need to configure the Container App to securely pull the image from the registry without enabling the ACR admin user or using static credentials.
Which configuration should you apply to meet these requirements?
You are deploying a Node.js microservice to an Azure Kubernetes Service (AKS) cluster. The microservice uses a user-assigned managed identity named `mi-node-app` via workload identity.
The microservice must load configuration settings from an Azure App Configuration store named `appconfig-prod`. The store contains several configurations, including Key Vault references pointing to database credentials in an Azure Key Vault named `kv-prod`.
You need to configure the minimum required role assignments to allow the microservice to successfully fetch all configurations and resolve the Key Vault references.
Which two actions should you perform? Select two.
Geçerli olan tümünü seçin
An online food delivery application uses Azure Service Bus queues to process customer orders. You are developing a C# application using the Azure.Messaging.ServiceBus SDK to receive and process these order messages. You need to ensure that the messages are processed reliably: they must not be deleted from the queue until processing succeeds, and they must be returned to the queue if the processing application crashes or fails. Which two configurations or actions should you implement to achieve this? (Select two.)
Geçerli olan tümünü seçin
You are configuring a connection to a custom backend API from an Azure API Management (APIM) instance. The backend API is hosted on-premises and secured using a TLS/SSL certificate signed by a private internal Certificate Authority (CA) that is not publicly trusted. When APIM attempts to forward requests to the backend API, the connection fails with an HTTP 500 error due to a TLS handshake failure. You need to resolve the error and ensure that APIM can establish a secure TLS connection to the backend API while maintaining strict TLS validation. Which of the following actions should you perform?
You are developing a .NET application using the Azure Cosmos DB .NET SDK v3. The application must process changes from a source container using the Change Feed Processor and send real-time notifications. You need to configure and start the Change Feed Processor. How should you sequence the steps to initialize, configure, and start the Change Feed Processor?
Öğeleri doğru sıraya koymak için sürükleyin
You are configuring Application Insights telemetry for a C# .NET 8 console application. The application retrieves its configuration from an Azure App Configuration instance, which includes the Application Insights configuration. You write the following code to initialize telemetry:
csharp
var config = TelemetryConfiguration.CreateDefault();
var client = new TelemetryClient(config);
client.TrackTrace("Offline processing started.");
During testing, you verify that no telemetry data is transmitted to the Application Insights resource, and the application runs without throwing any exceptions.
Which of the following is the most likely root cause of the missing telemetry?
You are configuring metric-based autoscale rules for an Azure App Service plan that currently runs on instance. To prevent metric flapping when scaling between and instances, you need to set appropriate scale-out and scale-in thresholds. Which two of the following threshold configurations, based on the Average CPU percentage metric, will prevent flapping?
Geçerli olan tümünü seçin
A secure C# Web API is hosted on an Azure App Service instance that has a system-assigned managed identity enabled. The Web API needs to retrieve a database connection string stored as a secret in an Azure Key Vault named kv-prod. The Key Vault is configured to use the Azure role-based access control (Azure RBAC) permission model. During testing, the Web API receives a 403 Forbidden error when attempting to retrieve the secret. You need to resolve the authorization issue while adhering to the principle of least privilege. What should you do?
You are developing a C# service that updates the metadata of a blob in Azure Blob Storage using the Azure.Storage.Blobs SDK. The target blob is currently locked with an active lease. You have the lease ID stored in a variable named `activeLeaseId` and the metadata dictionary stored in a variable named `metadata`.
Which of the following code segments should you use to successfully update the blob's metadata?
You are developing a web API and exposing it through Azure API Management. You must implement a policy that filters incoming requests to ensure they originate only from a specific range of IP addresses. In which section of the API Management policy document should you define the IP filtering policy?
An organization hosts a .NET 8.0 web application on Azure App Service using the Shared (D1) pricing tier. The development team has configured Application Insights but finds that both the Profiler and Snapshot Debugger tools are unavailable. To resolve this, you need to configure the hosting environment to the minimum supported pricing tier that enables these features, and ensure the team can view local variables and call stacks from captured exceptions. Which combination of App Service plan configuration and Azure role assignment must you implement?