Tüm alıştırma soruları
972 soru
An organization hosts a web application named `FleetTelemetryAPI` on an App Service plan that is currently configured for the Basic () pricing tier. During peak operation hours, the application experiences CPU usage spikes that degrade performance. The administrator wants to configure autoscale rules to automatically scale out the application when CPU utilization is high, and scale it back in when demand decreases, ensuring that the configuration prevents flapping.
Which two of the following actions should you perform? (Select two.)
Geçerli olan tümünü seçin
You are configuring a custom Webhook endpoint to subscribe to events from an Azure Event Grid custom topic. To begin receiving events, your Webhook endpoint must successfully complete the synchronous validation handshake. What must your Webhook endpoint do when it receives the synchronous validation request from Azure Event Grid?
You are developing a nightly backup verification workflow using Azure Durable Functions in Python. The orchestrator function must periodically call an activity function to check the status of a database backup job. If the backup is not yet complete, the orchestrator must wait for 15 minutes before checking the status again.
You write the following orchestrator function:
python
import azure.durable_functions as df
import time
def orchestrator_function(context: df.DurableOrchestrationContext):
backup_id = context.get_input()
max_attempts = 5
for attempt in range(max_attempts):
status = yield context.call_activity("CheckBackupStatus", backup_id)
if status == "Completed":
return "Success"
# Wait 15 minutes before the next check
time.sleep(900)
return "Failed"
During testing, the function fails because of thread blocking and invalid replay behavior.
Which modification should you make to ensure the orchestrator function runs correctly without blocking execution threads?
You are configuring a Standard availability test in Azure Application Insights to monitor a secure API endpoint that requires client certificate authentication (mutual TLS). The API is hosted on an external system that does not support Microsoft Entra ID authentication.
You need to ensure that the availability test can authenticate with the API and successfully monitor its availability.
Which configuration should you perform in the Application Insights availability test settings?
You are developing a C# service that manages utility smart-meter configurations using the Azure Cosmos DB .NET SDK v3. The target container is configured with a partition key path of `/gridId`.
You need to update the configuration of a specific smart meter. Your task is to write a method that retrieves the existing configuration document, changes the `ReportingIntervalMinutes` property to `15` in memory, and then saves the updated configuration back to the container.
Arrange the steps in the correct order to complete the operation.
Öğeleri doğru sıraya koymak için sürükleyin
An Azure App Service web app logs database connection exceptions to an Application Insights instance. You need to configure an Azure Monitor Log Search alert rule that triggers when database connection exceptions occur more than 10 times within a 5-minute window. When triggered, the alert must run an Azure Function that retrieves a database credential from Azure Key Vault and restarts the connection pool. Which of the following actions should you perform? (Select two)
Geçerli olan tümünü seçin
You are developing a Python backend application that uses the azure-storage-blob SDK (v12). The application needs to overwrite the content of a blob named config.json that has an active lease. The lease ID is 5b8f673d-8d2a-4f5a-9b4e-8c6e2b1a3c5d.
Which of the following code snippets should you use to successfully perform this operation?
lease_client.upload_blob(data, overwrite=True)
You are developing an ASP.NET Core Web API that will serve as a webhook subscriber for an Azure Event Grid custom topic. To start receiving events, you must implement the synchronous validation handshake. You have created the following controller action method to handle incoming POST requests:
csharp
[HttpPost]
public async Task<IActionResult> HandleEvent()
{
using var reader = new StreamReader(Request.Body);
string requestBody = await reader.ReadToEndAsync();
EventGridEvent[] events = EventGridEvent.ParseMany(BinaryData.FromString(requestBody));
foreach (EventGridEvent ev in events)
{
if (ev.EventType == "Microsoft.EventGrid.SubscriptionValidationEvent")
{
var data = ev.Data.ToObjectFromJson<SubscriptionValidationEventData>();
// [MISSING CODE]
}
}
return new OkResult();
}
Which of the following code segments should you use to replace `// [MISSING CODE]` to successfully complete the synchronous subscription validation handshake?
return new OkObjectResult(responseData);
return new OkObjectResult(responseData);
return new OkResult();
A developer is configuring a .NET Core Web API to use Azure Application Insights. In the Program.cs file, they add the call builder.Services.AddApplicationInsightsTelemetry(). However, they do not configure the Application Insights connection string in the appsettings.json file or in the App Service environment variables. What is the behavior of the application at runtime?
An administrator integrates a web application with Application Insights to capture execution profiles using the Profiler tool. However, after the application starts, no telemetry data or traces are visible in the Azure portal.
Which of the following is the most likely cause of this issue?
You are developing a background worker service in C# that runs as a containerized application within Azure Container Apps. The service must run on a schedule without user interaction and authenticate to the Microsoft Identity Platform to read files from Microsoft Graph.
To comply with security policies, you must use Azure Managed Identities for authentication. The credentials must persist independently of the containerized app's lifecycle, allowing the container instances to be deleted, recreated, or scaled across different resource groups without requiring permissions to be reconfigured in Microsoft Entra ID.
Which approach should you use to implement this authentication?
You are managing a web application that distributes documents through an Azure CDN endpoint. You need to configure a custom caching rule in the Azure portal that overrides the default caching behavior specifically for files in the `/pdf/` directory.
In which order should you perform the steps in the Azure portal to configure and apply this custom caching rule?
Öğeleri doğru sıraya koymak için sürükleyin
You are designing a serverless workflow using Azure Durable Functions in C# (.NET Isolated) to manage a vehicle fleet maintenance process. The orchestrator function must query an external vehicle diagnostics REST API to retrieve real-time fault codes before deciding which maintenance tasks to execute.
Which of the following is the correct way to implement this external API call while complying with the determinism requirements of Durable Functions?
You are designing a serverless document approval workflow using Azure Durable Functions in C# (.NET Isolated). The orchestrator must pause and wait for an external manager approval event named 'ApprovalReceived' for up to 72 hours. If the event is received, the workflow proceeds; if 72 hours elapse without the event, the workflow runs an escalation activity function.
Which two of the following code steps or architectural decisions must you implement to meet these requirements? (Select two.)
Geçerli olan tümünü seçin
A telemetry ingestion system requires a .NET service to consume stream records from Azure Event Hubs. You plan to implement event processing using the Azure.Messaging.EventHubs.Processor namespace, using Azure Blob Storage for partition checkpoints. What is the correct sequence of API operations to manage the lifecycle of the client?
Öğeleri doğru sıraya koymak için sürükleyin
You are designing a monitoring solution for an Azure-hosted web application. You configure an Azure Monitor Action Group to respond to alerts. You need to select the action types that you can add directly to the Action Group to execute notifications or trigger remediation processes. Which two action types should you select?
Geçerli olan tümünü seçin
You are developing an ASP.NET Core Web API hosted on Azure App Service. You must implement a custom telemetry processor named DependencyFilterProcessor to filter out successful SQL dependency telemetry before it is sent to Application Insights. You also need to register this telemetry processor in the dependency injection container.
How should you complete the code segments for the processor implementation and service registration?
Aşağıdaki boşlukları doldurun
// Program.cs
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddApplicationInsightsTelemetry(builder.Configuration["APPLICATIONINSIGHTS_CONNECTION_STRING"]);
// Register the custom telemetry processor
builder.Services.<DependencyFilterProcessor>();
// DependencyFilterProcessor.cs
using Microsoft.ApplicationInsights.Channel;
using Microsoft.ApplicationInsights.Extensibility;
public class DependencyFilterProcessor :
{
private readonly _next;
public DependencyFilterProcessor( next)
{
_next = next;
}
public void Process(ITelemetry item)
{
// Filtering logic goes here
_next.Process(item);
}
}
You are deploying a containerized microservice named inventory-service to Azure Container Apps. The service needs to communicate with other services in the same Container App Environment using HTTP/2, but it must not be accessible from the public internet.
Which two configuration settings must you apply to the Container App configuration to meet these requirements? (Select two.)
Geçerli olan tümünü seçin
You are deploying a custom Webhook endpoint to receive events from an Azure Event Grid system topic. The Webhook endpoint is hosted on an internal system that is unable to return a synchronous validation response when the subscription is created. You need to manually validate the subscription.
Which two actions should you perform? (Select TWO)
Geçerli olan tümünü seçin
You are developing a media processing application in C# using the Azure.Storage.Blobs SDK (version 12). The application needs to manage the custom metadata of uploaded video blobs and transition them to the Archive access tier to reduce storage costs. Which two of the following statements are correct regarding how the SDK handles metadata, access tiers, and leases?
Geçerli olan tümünü seçin