Tüm alıştırma soruları
972 soru
You are configuring an Azure App Service web app named app-orders-prod that must retrieve a database connection string from an Azure Key Vault named kv-orders-prod. The web app is configured with multiple user-assigned managed identities. One of these identities, named id-orders-kv-reader, has the resource ID /subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/rg-prod/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id-orders-kv-reader and has been granted the Key Vault Secrets User role. You need to configure the connection string as an application setting using a Key Vault reference that specifies the correct managed identity. Which of the following app setting values should you use?
An organization has a data-processing pipeline that runs on a V4 Azure Function App using the Consumption hosting plan. A specific HTTP-triggered function in the app usually processes webhooks in under 2 minutes. However, during periodic bulk uploads, the execution time for some requests increases to approximately 8 minutes, causing the executions to time out and fail. You need to adjust the function app configuration to allow a maximum execution duration of 8 minutes for these long-running requests without migrating to a different hosting plan. How should you configure the function app?
You manage an Azure App Service web app named `app-catalog` that contains a production slot and a deployment slot named `staging`. The application uses an application setting named `DatabaseConnectionString` to connect to a database.
You must configure the web app to meet the following requirements:
- The staging slot must always connect to the staging database, and the production slot must always connect to the production database, even after a swap operation.
- The web app must perform a custom warm-up request to the path `/api/warmup` before the slot swap completes.
Which two configuration steps should you perform? (Select two.)
Geçerli olan tümünü seçin
You are developing an Azure CDN solution to distribute localized product description pages for an e-commerce website. The application uses a query string parameter to retrieve the localized content (for example, `https://cdn.contoso.com/products/info?lang=en` and `https://cdn.contoso.com/products/info?lang=fr`). You discover that French-speaking users are frequently served cached English pages. You must resolve this issue by ensuring that the CDN caches and serves the correct language variant for each request while still utilizing caching to improve response times. Which query string caching behavior should you configure on the CDN endpoint?
You need to upload a locally built container image to a private Azure Container Registry (ACR) named contosoacr. Arrange the following commands in the correct sequence to authenticate your session and push the image to the registry.
Öğeleri doğru sıraya koymak için sürükleyin
You are configuring an Azure App Service web app named webapp-prod that runs on a Linux App Service Plan. The web app must retrieve a database connection string from an Azure Key Vault named vault-prod.
To adhere to security best practices, you create a User-Assigned Managed Identity named identity-prod, grant it Secret Get permissions on vault-prod, and assign identity-prod to webapp-prod. You decide not to enable the System-Assigned Managed Identity.
You need to configure the web app's settings so that it can resolve the connection string from the latest version of the secret named db-conn in vault-prod.
Which of the following configurations must you apply?
You are designing an Azure Cosmos DB container to store reservation records for a hotel management system. Each reservation includes the fields `hotelId`, `guestId`, `reservationDate`, and `status`. You need to configure the container to support multi-document transactional batches for reservations at the same hotel, while avoiding hot partitions.
Which two configuration choices should you make? (Select two.)
Geçerli olan tümünü seçin
An organization is deploying an Azure Function App (V4 runtime) that requires access to a database password. To secure the credential, the password is stored in an Azure Key Vault. A developer configures an App Setting in the Function App named DatabaseConnectionString with the value @Microsoft.KeyVault(SecretUri=https://myvault.vault.azure.net/secrets/dbpassword/). When the function executes, it is unable to connect to the database because the environment variable retrieves the raw @Microsoft.KeyVault(...) reference string instead of the resolved secret value. Which of the following is the most likely cause of this behavior?
You need to create a new Azure Function App on an Elastic Premium plan using the Azure CLI. Which sequence of commands should you execute? To answer, arrange the steps in the correct order.
Öğeleri doğru sıraya koymak için sürükleyin
You are designing an Azure Cosmos DB container to store chat messages for a multi-tenant enterprise collaboration application. The application supports thousands of corporate tenants, each containing numerous distinct chat channels.
The workload has the following characteristics:
- Writes are heavy and occur continuously across all active channels.
- The most frequent query retrieves the history of a specific chat channel, sorted by timestamp.
- The application uses transactional batch operations to insert, update, or delete multiple messages within a single channel as an atomic unit.
- A single tenant's data can exceed over time, whereas any individual channel's data is guaranteed to remain under .
You need to select a partition key that ensures scalability, avoids hot partitions, and supports the transactional requirements.
Which partition key strategy should you implement?
You are deploying an Azure Container App named shipping-service that pulls its container image from a private Azure Container Registry (ACR). You enable a system-assigned managed identity on the Container App, but the deployment fails with an error indicating that the image cannot be pulled. Which action should you perform to resolve this deployment failure?
You are developing an order processing workflow using Azure Durable Functions in C# (.NET Isolated). You need to write an HTTP-triggered function that acts as the entry point to start the orchestration workflow. Which parameter binding attribute must you use to obtain a client instance for starting the orchestrator?
You are configuring a lifecycle management policy for a Standard General Purpose v2 (GPv2) storage account to minimize costs for log blobs. The policy will transition blobs through various access tiers and eventually delete them.
Arrange the following lifecycle policy events in the correct chronological order of execution for a newly created blob, starting from the earliest event to the latest.
Öğeleri doğru sıraya koymak için sürükleyin
When implementing authentication and authorization in Microsoft Entra ID, developers must understand the relationships between different identity objects. Which two of the following statements correctly describe the characteristics or roles of application objects and service principals?
Geçerli olan tümünü seçin
You are writing a .NET application to update the custom metadata of an Azure Blob Storage blob. The blob currently has an active exclusive-write lease.
Which of the following is required to successfully update the blob's metadata?
An order processing system uses a C# background worker running the Azure.Storage.Blobs SDK to inspect inbound XML invoices. An external partner uploads these invoices and programmatically sets a custom metadata field with the key `ApprovalStatus` and value `Pending` to flag items for review.
The background worker retrieves the blob details using the following code segment:
csharp
BlobClient client = containerClient.GetBlobClient("invoice_992.xml");
BlobProperties properties = await client.GetPropertiesAsync();
The application must check if the `ApprovalStatus` metadata key is present. However, the evaluation logic consistently fails to detect the metadata key when querying `properties.Metadata`.
Which of the following describes the correct way to check for the presence of this metadata key in the dictionary?
You are designing a globally distributed application that utilizes Azure Cosmos DB. You need to select the most appropriate consistency level for three different application scenarios to meet their architectural requirements while optimizing for request units (RUs) and performance. Match each application scenario to its optimal Azure Cosmos DB consistency level.
Soldaki öğeye tıklayın, sonra eşleşen sağdaki öğeye tıklayın
Öğeler
Eşleşmeler
You are developing a custom script that runs on an on-premises server to automate resource provisioning in Azure. The script must authenticate programmatically with Microsoft Entra ID using a dedicated service principal associated with an application registration. Which of the following credential types can be configured directly on the application registration to enable this authentication? (Select TWO)
Geçerli olan tümünü seçin
You are developing a custom ASP.NET Core Web API that will consume events from an Azure Event Grid system topic. When you attempt to create the Event Grid subscription with the Web API endpoint as the Webhook destination, the subscription creation fails. You determine that the Web API endpoint is not correctly responding to the subscription validation request sent by Event Grid.
Which response must the Web API endpoint return to Event Grid to successfully complete the synchronous subscription validation handshake?
An enterprise is deploying a web application behind an Azure CDN Standard from Microsoft endpoint. The application has three categories of assets with distinct caching requirements:
* `/reports/*`: Serves sensitive, user-specific PDF reports generated on-demand with query parameters (e.g., `/reports/download?user=123&token=abc`). These must never be cached on the CDN edge servers.
* `/images/*`: Contains product photos that are updated using a version query parameter (e.g., `/images/keyboard.jpg?ver=2.4`). To ensure immediate updates, the CDN must cache these based on the `ver` parameter only, while ignoring all tracking parameters (e.g., `utm_source`) to prevent cache pollution.
* `/styles/*`: Contains static CSS files where the origin server does not set any `Cache-Control` headers. These files must be cached for exactly 14 days, regardless of any future caching headers added to the origin server.
The endpoint's global Query String Caching behavior is set to 'Ignore query strings'.
Which configuration of caching rules and rules engine rules should you implement to meet these requirements?