Tüm alıştırma soruları
972 soru
You are developing a C# .NET 8 isolated worker Azure Function App. To meet your company's security compliance, the Application Insights connection string must be retrieved at startup from an Azure Key Vault using the Azure Identity library, rather than being stored in plain text in application settings.
In `Program.cs`, you retrieve the connection string value from Key Vault and store it in a variable named `vaultConnectionString`.
Which code segment should you use to register Application Insights telemetry with this connection string in the dependency injection container?
TelemetryConfiguration.Active.ConnectionString = vaultConnectionString;
services.AddApplicationInsightsTelemetryWorkerService();
services.ConfigureFunctionsApplicationInsights();
services.AddApplicationInsightsTelemetryWorkerService(options =>
{
options.ConnectionString = vaultConnectionString;
});
services.ConfigureFunctionsApplicationInsights();
services.ConfigureFunctionsApplicationInsights(options =>
{
options.ConnectionString = vaultConnectionString;
});
services.AddApplicationInsightsTelemetryWorkerService(options =>
{
options.InstrumentationKey = vaultConnectionString;
});
services.ConfigureFunctionsApplicationInsights();
You are implementing an Azure Monitor alert solution for an Azure App Service web application. You need to create an alert rule that triggers when the web application's CPU percentage deviates significantly from its historical baseline. The alert must trigger an Azure Function to execute diagnostic scripts and send an email notification to the operations team. Which configuration should you implement?
You are configuring a Python FastAPI web application hosted on Azure App Service to load its settings from an Azure App Configuration store. One of the keys in the App Configuration store, DbConnectionString, is configured as a Key Vault reference pointing to a secret in Azure Key Vault. The App Service is configured to use a system-assigned managed identity. At runtime, the application successfully retrieves standard key-values from the App Configuration store but fails with an authorization error when attempting to resolve the value of the DbConnectionString key. How should you resolve this issue?
You are securing an Azure API Management (APIM) gateway endpoint. You need to ensure that the APIM gateway validates the JSON Web Token (JWT) provided in the authorization header of incoming requests before forwarding the requests to the backend service. In which section of the APIM policy XML configuration must you place the validate-jwt policy?
You are developing a microservice named `OrderProcessing` that runs on an Azure App Service and sends telemetry to Azure Application Insights. You need to implement an Azure Monitor alert rule that triggers whenever the number of critical exceptions (where the `severityLevel` is ) exceeds within any -minute window. The alert evaluation must run every minutes. To minimize query execution latency and data scanning costs, you must configure the query and rule settings efficiently.
Which configuration should you implement?
A developer needs to configure security for a specific endpoint in Azure API Management. The endpoint must only accept requests from a partner's office network (subnet ) and must verify that the request contains a valid subscription key.
Which two configuration settings or policy definitions must be applied within Azure API Management to enforce these security controls?
Geçerli olan tümünü seçin
An organization is developing a multi-tenant software solution named VendorPortal. The solution must allow users from any organizational Microsoft Entra ID tenant to sign in. The solution must explicitly block authentication requests from personal Microsoft accounts, such as those registered with Outlook.com or Xbox Live. Which configuration parameters should you apply to the application manifest and the identity provider authority URL?
You are deploying a .NET web application to an Azure App Service. The application is configured to retrieve its configuration settings from an Azure App Configuration store named appconf-prod. Some settings, such as database credentials, are stored as Key Vault references pointing to secrets in an Azure Key Vault named kv-prod. The App Service has a system-assigned managed identity enabled. At runtime, the application loads configuration values from appconf-prod but receives the raw JSON metadata of the Key Vault references instead of the actual secret values. Which of the following actions must you perform to resolve this issue and successfully retrieve the secret values? (Select THREE correct actions.)
Geçerli olan tümünü seçin
You are developing a C# console application that will run in an Azure Container Instance (ACI). The application is designed to consume telemetry data from an Azure Event Hub using the EventProcessorClient from the Azure.Messaging.EventHubs NuGet package. Checkpointing and partition ownership must be tracked using Azure Blob Storage, and the application must authenticate using a user-assigned managed identity.
Which of the following Azure role-based access control (RBAC) roles must you assign to the managed identity to ensure the application can both read events and manage checkpoints? (Select TWO.)
Geçerli olan tümünü seçin
You are provisioning a new Azure API Management (APIM) instance using the Consumption tier to front a set of serverless Azure Functions. To optimize response times and minimize backend executions, you need to implement API response caching. Which configuration step must you perform to enable caching for this APIM instance?
You are deploying a web application to Azure App Service. The application must retrieve a database connection string from an Azure Key Vault named kv-billing. You configure a system-assigned managed identity for the App Service and assign the Key Vault Secrets User role to the identity on kv-billing. You need to configure an application setting in the App Service named DbConnectionString that references the secret named DbPassword in the Key Vault without pinning it to a specific version. Which of the following values represents the correct syntax to define the Key Vault reference?
You are configuring policies in Azure API Management (APIM) for a weather forecasting API. The API must satisfy the following requirements:
1. Strip a sensitive query parameter named `internal-token` from the request before it is forwarded to the backend.
2. Authenticate to the backend service using the APIM instance's system-assigned managed identity.
Which two of the following XML policy configurations should you apply to meet these requirements? (Select two)
Geçerli olan tümünü seçin
<inbound>
<base />
<set-query-parameter name="internal-token" action="delete" />
</inbound>
<inbound>
<base />
<authentication-managed-identity resource="https://management.azure.com/" />
</inbound>
<outbound>
<base />
<set-query-parameter name="internal-token" action="delete" />
</outbound>
<inbound>
<base />
<authentication-managed-identity resource="https://management.azure.com/" client-id="system" />
</inbound>