Tüm alıştırma soruları
972 soru
An administrator needs to configure an Azure CDN Standard from Microsoft endpoint to use a custom domain secured with a custom TLS certificate stored in Azure Key Vault. The configuration must be completed successfully with minimum delay, and all validation checks must succeed. What is the correct order of steps to configure the custom domain and TLS certificate?
Öğeleri doğru sıraya koymak için sürükleyin
You are configuring a custom domain with HTTPS enabled for an Azure CDN endpoint. You plan to use a CDN-managed certificate to secure the custom domain.
Arrange the steps in the correct order to configure and enable HTTPS for the custom domain on your Azure CDN endpoint.
Öğeleri doğru sıraya koymak için sürükleyin
An organization is deploying a globally distributed .NET microservice that consumes telemetry using the Azure.Messaging.EventHubs SDK. The application uses EventProcessorClient with Azure Blob Storage as the checkpoint store. You are configuring authentication and concurrency management for the processor instances. Which TWO of the following configurations or architectural decisions are required for the EventProcessorClient to function correctly and scale dynamically?
Geçerli olan tümünü seçin
You are implementing an integration using Azure Event Grid. You have created an Azure Storage account named logstor with a blob container named deadletter to store events that cannot be delivered.
You need to configure a new Event Grid custom topic and an event subscription. The setup must meet the following requirements:
- All events that fail to deliver must be sent to the deadletter container.
- The custom topic must authenticate to the storage account using a system-assigned managed identity.
- No storage account access keys or connection strings can be stored in the configuration.
Which sequence of steps should you perform to configure the custom topic and subscription?
Öğeleri doğru sıraya koymak için sürükleyin
You are troubleshooting a performance issue in a web application. You need to identify the top 3 operations with the longest average duration over the past 12 hours by querying the Application Insights telemetry. The query must be optimized to minimize data scan limits and query execution time.
Which Kusto Query Language (KQL) query should you run to retrieve this data efficiently?
| where timestamp > ago(12h)
| summarize AvgDuration = avg(duration) by name
| top 3 by AvgDuration desc
| summarize AvgDuration = avg(duration) by name
| top 3 by AvgDuration desc
| summarize AvgDuration = avg(duration) by name, timestamp
| where timestamp > ago(12h)
| top 3 by AvgDuration desc
| where timestamp > ago(12h)
| summarize avg(duration) by name
| top 3 by duration desc
You are configuring a custom gateway domain for an Azure API Management (APIM) instance named `apim-prod`. The SSL/TLS certificate for the custom domain `api.contoso.com` is stored in an Azure Key Vault named `kv-prod`. The security team requires that the custom domain must automatically use the latest version of the certificate whenever it is renewed in the Key Vault. You have enabled a system-assigned managed identity for the `apim-prod` instance. Which configuration steps should you implement to meet these requirements?
You are analyzing application performance issues for an Azure Web App by using Application Insights. You need to write a Kusto Query Language (KQL) query that retrieves the top 5 external dependency calls with the longest average duration over the last 24 hours. The query must execute efficiently and avoid scanning unnecessary historical data.
Which two of the following queries should you use?
Geçerli olan tümünü seçin
| where timestamp > ago(24h)
| summarize AvgDuration = avg(duration) by name
| top 5 by AvgDuration desc
| where timestamp > ago(24h)
| summarize AvgDuration = avg(duration) by name
| order by AvgDuration desc
| take 5
| summarize AvgDuration = avg(duration) by name, timestamp
| where timestamp > ago(24h)
| top 5 by AvgDuration desc
| summarize AvgDuration = avg(duration) by name
| top 5 by AvgDuration desc
You are configuring an Azure CDN Standard from Microsoft endpoint for a web application. The application delivers dynamic user profile banners from the path `/assets/banners/`. The banners are updated periodically, and the application appends a query string containing a version token (for example, `/assets/banners/user1.png?v=982a` where `` represents the version token) to ensure updates are reflected immediately.
The origin server serves these banners with a `Cache-Control: public, max-age=600` header (representing a duration of `` minutes). You need to configure the CDN caching rules to meet the following requirements:
- Cache the banners on the CDN edge servers for `` days.
- Ensure that users receive the correct version of the banner matching their version token query string.
- Optimize cache utilization by avoiding unnecessary calls to the origin server for cached banner versions.
Which configuration should you apply to the CDN endpoint?
You are configuring caching rules for an Azure CDN Standard from Microsoft endpoint that delivers content for a web application. The application has the following requirements:
- The homepage (/index.html) must cache promotional landing pages differently based on the query string parameters (e.g., ?promo=summer vs ?promo=winter).
- Rest API endpoints under the path /api/ must never be cached by the CDN, regardless of any caching headers returned by the origin server.
Which two configurations should you apply to meet these requirements?
Geçerli olan tümünü seçin
You are analyzing telemetry for a high-volume e-commerce API hosted on Azure. You need to identify requests processed within the last 12 hours where the cumulative duration of all associated external dependency calls accounts for more than 75% of the total request duration. The telemetry database contains millions of records per hour, and your query must be optimized to prevent execution timeouts and minimize data scan limits. Which of the following Kusto Query Language (KQL) queries should you use?
let dep_metrics = dependencies
| where timestamp > start
| summarize total_dep_duration = sum(duration) by operation_Id;
requests
| where timestamp > start
| join kind=inner dep_metrics on operation_Id
| where total_dep_duration > (duration * 0.75)
| project operation_Id, name, duration, total_dep_duration
let dep_metrics = dependencies
| summarize total_dep_duration = sum(duration) by operation_Id;
requests
| where timestamp > start
| join kind=inner dep_metrics on operation_Id
| where total_dep_duration > (duration * 0.75)
| project operation_Id, name, duration, total_dep_duration
let dep_metrics = dependencies
| where timestamp > start
| summarize total_dep_duration = sum(duration) by operation_Id;
requests
| join kind=inner dep_metrics on operation_Id
| where timestamp > start
| where total_dep_duration > (duration * 0.75)
| project operation_Id, name, duration, total_dep_duration
| summarize total_dep_duration = sum(duration) by operation_Id
| join kind=inner (requests) on operation_Id
| where timestamp > ago(12h)
| where total_dep_duration > (duration * 0.75)
| project operation_Id, name, duration, total_dep_duration
You are provisioning and configuring a production Azure API Management (APIM) instance that must connect to both internal and external APIs. You must meet the following requirements:
- The APIM instance must run within a private subnet of an Azure Virtual Network (VNet) in internal mode so that it is not exposed directly to the public internet.
- The API gateway must be deployed across two distinct Azure regions to ensure high availability and minimize latency for global clients.
- All custom domain TLS/SSL certificates must be securely stored in Azure Key Vault and automatically updated when a new version is uploaded.
Which of the following configuration steps must you perform to meet these requirements? (Select THREE.)
Geçerli olan tümünü seçin
You are monitoring an Azure Web App using Application Insights. You need to write an optimized Kusto Query Language (KQL) query to analyze successful dependency calls to an external API named 'PaymentGateway' over the last 24 hours. The query must return the average duration of these calls grouped by the custom dimension 'TenantId'. Which KQL query should you run?
| where timestamp > ago(24h)
| where name == "PaymentGateway" and success == true
| extend Tenant = tostring(customDimensions.TenantId)
| summarize AvgDuration = avg(duration) by Tenant
| where name == "PaymentGateway" and success == true
| extend Tenant = tostring(customDimensions.TenantId)
| summarize AvgDuration = avg(duration) by Tenant
| where timestamp > ago(24h)
| where name == "PaymentGateway" and success == true
| extend Tenant = tostring(customDimensions.tenantid)
| summarize AvgDuration = avg(duration) by Tenant
| where timestamp > ago(24h)
| where name == "PaymentGateway" and success == true
| where connectionString == "InstrumentationKey=00000000-0000-0000-0000-000000000000"
| extend Tenant = tostring(customDimensions.TenantId)
| summarize AvgDuration = avg(duration) by Tenant
A company is planning to deploy a new Azure API Management (APIM) instance in the Premium tier. The instance must be integrated with an existing Azure Virtual Network (VNet) in Internal mode to expose APIs only to internal clients. During the deployment phase, the administrator attempts to provision the APIM instance inside a subnet that already contains several running virtual machines. The deployment fails during the provisioning stage. You need to resolve the provisioning failure and successfully deploy the APIM instance. Which of the following actions should you take?
You are developing a .NET background worker service that consumes high-throughput sensor telemetry from an Azure Event Hub using the EventProcessorClient class from the Azure.Messaging.EventHubs.Processor library. The service is containerized and deployed to Azure Container Apps with multiple replica instances sharing the same consumer group.
To coordinate partition ownership and perform checkpointing, you configure the EventProcessorClient to use a container in an Azure Blob Storage account. You configure the Azure Container App to use a User-Assigned Managed Identity.
During deployment, the service instances start up but fail to claim partition ownership. The container logs output multiple RequestFailedException errors with an HTTP status of 403 (Authorization Failed) when attempting to perform write operations on the checkpoint blobs. You verify that the User-Assigned Managed Identity has been assigned the Storage Blob Data Contributor role on the storage account scope.
Which of the following describes the cause of this lease coordination failure and the correct resolution?
You are developing an integration solution that consumes events from an Azure Event Grid custom topic. You create an HTTP-triggered Azure Function to act as the Webhook subscription endpoint. Due to strict enterprise firewall rules, the Azure Function is hosted in a private VNet with no outbound public internet access, which prevents it from performing an asynchronous subscription validation handshake via the validation URL.
You need to implement C# code within the Azure Function to perform a synchronous subscription validation handshake when Event Grid sends the initial validation request.
Which C# code snippet should you implement inside the Azure Function to successfully complete the validation handshake?
{
string requestBody = await new StreamReader(req.Body).ReadToEndAsync();
var events = JsonConvert.DeserializeObject<List<CustomValidationEvent>>(requestBody);
var code = events[0].Data.ValidationCode;
return new OkObjectResult(new { validationCode = code });
}
var events = JsonConvert.DeserializeObject<List<CustomValidationEvent>>(requestBody);
if (events[0].EventType == "Microsoft.EventGrid.SubscriptionValidationEvent")
{
using (var client = new HttpClient())
{
await client.GetAsync(events[0].Data.ValidationUrl);
}
return new OkResult();
}
{
string requestBody = await new StreamReader(req.Body).ReadToEndAsync();
var events = JsonConvert.DeserializeObject<List<CustomValidationEvent>>(requestBody);
var code = events[0].Data.ValidationCode;
return new OkObjectResult(new { validationResponse = code });
}
{
string requestBody = await new StreamReader(req.Body).ReadToEndAsync();
var events = JsonConvert.DeserializeObject<List<CustomValidationEvent>>(requestBody);
var code = events[0].Data.ValidationCode;
return new OkObjectResult(code);
}
You need to write an optimized Kusto Query Language (KQL) query that returns the average duration of failed dependency calls grouped by target for the last 12 hours. The query must be optimized to filter the data as early as possible. How should you complete the KQL query to satisfy these requirements? Complete the query by filling in the missing KQL operators and fields in the blanks.
Aşağıdaki boşlukları doldurun
| timestamp > ago(12h)
| where == false
| AverageDuration = avg(duration) by target
You are developing a secure Web API hosted in Azure App Service. The API requires mutual TLS (mTLS) client certificate authentication for all incoming requests. You need to configure availability monitoring for this API using Application Insights. The solution must verify that the API successfully authenticates clients using their client certificates. Which monitoring solution should you implement?
You are developing a telemetry ingestion solution in .NET that uses the Azure.Messaging.EventHubs.Processor library. The application must consume events, manage partition load balancing using Azure Blob Storage, perform checkpointing to prevent processing duplicate messages from the last known state, and shut down gracefully. You need to implement the lifecycle of the EventProcessorClient. In which order should you perform the tasks?
Öğeleri doğru sıraya koymak için sürükleyin
An organization uses Azure API Management (APIM) to secure and manage a legacy backend REST API. You are tasked with configuring a policy definition at the API level to meet the following operational and security requirements:
1. Rate-limit incoming calls to a maximum of 100 requests per minute based on the client IP address.
2. Validate that the incoming request contains a valid JSON Web Token (JWT) issued by a trusted identity provider before any backend communication occurs.
3. Cache HTTP GET responses for 60 seconds to reduce the load on the legacy backend.
4. Strip the 'Server' header from all backend responses before they are returned to client applications.
Which XML policy configuration correctly implements these requirements while preventing unauthorized clients from bypassing token validation on cache hits?
<inbound>
<base />
<rate-limit-by-key calls="100" renewal-period="60" counter-key="@(context.Request.IpAddress)" />
<validate-jwt header-name="Authorization" failed-validation-httpcode="401" failed-validation-error-message="Unauthorized">
<openid-config url="https://login.microsoftonline.com/common/.well-known/openid-configuration" />
</validate-jwt>
<cache-lookup vary-by-developer="false" vary-by-developer-groups="false" downstream-caching-type="none" />
</inbound>
<backend>
<base />
</backend>
<outbound>
<base />
<cache-store duration="60" />
<set-header name="Server" exists-action="delete" />
</outbound>
<on-error>
<base />
</on-error>
</policies>
<inbound>
<base />
<rate-limit-by-key calls="100" renewal-period="60" counter-key="@(context.Request.IpAddress)" />
<cache-lookup vary-by-developer="false" vary-by-developer-groups="false" downstream-caching-type="none" />
<cache-store duration="60" />
</inbound>
<backend>
<base />
</backend>
<outbound>
<base />
<validate-jwt header-name="Authorization" failed-validation-httpcode="401" failed-validation-error-message="Unauthorized">
<openid-config url="https://login.microsoftonline.com/common/.well-known/openid-configuration" />
</validate-jwt>
<set-header name="Server" exists-action="delete" />
</outbound>
<on-error>
<base />
</on-error>
</policies>
<inbound>
<base />
<rate-limit-by-key calls="100" renewal-period="60" counter-key="@(context.Request.IpAddress)" />
<cache-lookup vary-by-developer="false" vary-by-developer-groups="false" downstream-caching-type="none" />
<validate-jwt header-name="Authorization" failed-validation-httpcode="401" failed-validation-error-message="Unauthorized">
<openid-config url="https://login.microsoftonline.com/common/.well-known/openid-configuration" />
</validate-jwt>
</inbound>
<backend>
<base />
</backend>
<outbound>
<base />
<cache-store duration="60" />
<set-header name="Server" exists-action="delete" />
</outbound>
<on-error>
<base />
</on-error>
</policies>
<inbound>
<base />
<rate-limit-by-key calls="100" renewal-period="60" counter-key="@(context.Request.IpAddress)" />
<validate-jwt header-name="Authorization" failed-validation-httpcode="401" failed-validation-error-message="Unauthorized">
<openid-config url="https://login.microsoftonline.com/common/.well-known/openid-configuration" />
</validate-jwt>
<cache-lookup vary-by-developer="false" vary-by-developer-groups="false" downstream-caching-type="none" />
<set-header name="Server" exists-action="delete" />
</inbound>
<backend>
<base />
<cache-store duration="60" />
</backend>
<outbound>
<base />
</outbound>
<on-error>
<base />
</on-error>
</policies>
You are implementing an event-driven solution that uses Azure Event Grid. You have an Event Grid system topic named `kv-system-topic` associated with an Azure Key Vault instance.
You need to configure an event subscription that routes events to an Azure Service Bus queue. The subscription must meet the following requirements:
- Any undelivered events must be written to a private blob container named `dlq-container` in an Azure Storage account named `saeventgridlogs`.
- The system topic must authenticate to the storage account using its system-assigned managed identity.
- Least privilege access must be enforced.
Which sequence of actions should you perform to configure the identity and create the subscription? Arrange the actions in the correct order.
Öğeleri doğru sıraya koymak için sürükleyin