Tüm alıştırma soruları
972 soru
An organization plans to migrate a public-facing website to an Azure App Service web app named `prod-web`. The website is currently hosted on-premises and is accessed via the custom subdomain `sales.contoso.com`.
The migration must meet the following requirements:
- The website must experience zero downtime during the DNS transition.
- The custom domain `sales.contoso.com` must be secured with an SSL/TLS certificate.
- The domain binding and SSL configuration must be fully prepared in the Azure Web App before the live DNS traffic is rerouted.
- The web app's Custom Domain Verification ID is `A1B2C3D4E5F6G7H8`.
Which three actions should you perform to prepare the web app for the transition? (Select three.)
Geçerli olan tümünü seçin
An organization requires authentication for an Azure App Service web app using Microsoft Entra ID. You are tasked with configuring this using the Azure portal.
Which four actions should you perform in sequence to enable Microsoft Entra ID authentication for the web app?
Öğeleri doğru sıraya koymak için sürükleyin
You are designing an Azure Function App that must process files uploaded to an Azure Blob Storage container. The requirements are as follows:
- The processing of each file can take up to 20 minutes to complete.
- The storage account is secured behind an Azure Virtual Network (VNet) and does not allow public internet access.
- The Function App must authenticate to the storage account using a user-assigned managed identity named `fn-storage-identity`.
- The solution must scale dynamically based on the volume of incoming uploads.
Which combination of hosting plan and connection settings should you configure?
A company is developing a centralized logging service that stores application log messages in Azure Cosmos DB.
The workload has the following characteristics:
- Throughput Profile: High-volume write ingestion of up to writes per second, with occasional read queries by administrators.
- Transactional Boundaries: There are no transactional requirements across different log entries; each log document is written independently.
- Read/Write Trade-off: The partitioning strategy must be optimized to maximize write throughput and avoid bottlenecks, even if it requires read queries for a specific day to span multiple partitions.
The log documents contain a `logDate` property (formatted as `YYYY-MM-DD`) and a `serviceName` property. Using `logDate` directly as the partition key would direct all writes for the current day to a single partition, causing a hot partition.
You need to select a partitioning strategy that distributes the write throughput evenly.
Which strategy should you use?
An organization deploys a web application to an Azure App Service web app. You configure the following autoscale rules for the App Service plan:
* Scale-out rule: Increase the instance count by 2 when the average CPU percentage is greater than 70% over a 10-minute duration.
* Scale-in rule: Decrease the instance count by 1 when the average CPU percentage is less than 75% over a 10-minute duration.
During periods of moderate, stable load, the application experiences flapping, where instances are repeatedly added and removed.
You need to resolve the flapping behavior and ensure stable scaling of the web application.
Which of the following modifications should you make?
An operations team is configuring autoscale rules for an Azure App Service Plan hosting a web application. They define the following rules:
* Scale-out Rule 1: Increase the instance count by 1 if the average CPU Percentage is greater than 80%.
* Scale-out Rule 2: Increase the instance count by 1 if the average Memory Percentage is greater than 85%.
* Scale-in Rule 1: Decrease the instance count by 1 if the average CPU Percentage is less than 40%.
* Scale-in Rule 2: Decrease the instance count by 1 if the average Memory Percentage is less than 50%.
Under which condition will the App Service Plan scale in?
You configure an application setting in an Azure Function App to reference a database connection string stored in Azure Key Vault using the syntax: `@Microsoft.KeyVault(VaultName=kv-prod;SecretName=conn-string)`. During testing, the function fails to connect to the database. You inspect the function logs and discover that the environment variable for the connection string contains the literal string `@Microsoft.KeyVault(VaultName=kv-prod;SecretName=conn-string)` instead of the resolved secret value. What is the most likely cause of this issue?
You are designing an Azure Cosmos DB container to store customer order records for an online retail application. Each order document contains `OrderId`, `CustomerId`, `OrderDate`, and `ShippingStatus`. The application frequently queries orders for a given customer and requires transactional updates when modifying multiple orders for the same customer.
Which two requirements are satisfied by selecting `CustomerId` as the partition key for this container?
Geçerli olan tümünü seçin
You configure a user-assigned managed identity for an Azure App Service web app. You want the web app to retrieve a database password from Azure Key Vault by using a Key Vault reference in the App Settings. The web app has the system-assigned managed identity disabled. The Key Vault reference is configured as DatabasePassword = @Microsoft.KeyVault(SecretUri=https://myvault.vault.azure.net/secrets/db-password/). The web app fails to retrieve the secret because it attempts to use a system-assigned identity. Which action should you perform to resolve this issue and allow the web app to retrieve the password?
A developer is configuring a continuous integration workflow using Azure Container Registry (ACR). The developer needs to automate container image builds whenever source code changes are pushed to a GitHub repository. The developer plans to create a task in the registry named acrtask204 to build and push the image. Which sequence of steps should the developer perform to configure, execute, and monitor the task?
Öğeleri doğru sıraya koymak için sürükleyin
You are configuring a multi-container group in Azure Container Instances (ACI) using an Azure Resource Manager (ARM) template. An application container within the group must retrieve database credentials from Azure Key Vault at runtime. You configure the container group with a system-assigned managed identity. The deployment completes successfully, but the application container fails to start. Reviewing the container logs reveals an HTTP 403 (Forbidden) error when the application attempts to fetch the credentials from the Key Vault. Which action should you take to resolve this error?
An enterprise architecture requires that an Azure Function App (V4 runtime, .NET 8 isolated worker model) connects to an Azure Event Hubs namespace named 'fin-data-eh' without using any secrets or connection strings. The Function App uses a user-assigned managed identity to access the Event Hubs namespace, and the identity has been granted the Azure Event Hubs Data Receiver role. In the function code, the trigger attribute uses a connection property named `EventHubConnection`. Which configuration settings must be added to the application settings of the Function App to authenticate the trigger using the user-assigned managed identity?
You are developing a lightweight Azure Function that runs once per day to prune expired user sessions from a database. The function takes approximately 30 seconds to run. You must minimize costs by only paying for the exact compute resource time that the function consumes. Which hosting plan should you select for the function app?
You are configuring an Azure App Service web app named `app-finance` to retrieve database credentials from an Azure Key Vault named `kv-finance`. You want to use a user-assigned managed identity named `id-finance` to authenticate and resolve the Key Vault references in your application settings. You have already associated the user-assigned managed identity with the web app and granted it the `Key Vault Secrets User` role on `kv-finance`. However, when the application runs, the Key Vault references in the application settings fail to resolve, and the web app attempts to use a non-existent system-assigned identity instead of the user-assigned identity. What configuration step must you perform next to ensure the web app uses the user-assigned managed identity to resolve the Key Vault references?
You are deploying a containerized application to Azure Container Instances (ACI). The application container needs to pull its image from a private Azure Container Registry (ACR) and retrieve a database connection string secret from an Azure Key Vault. Which two configurations are required to ensure the container can authenticate to the registry and access the secret? (Select two.)
Geçerli olan tümünü seçin
You are developing a new event-driven processing application. You need to create a C# Azure Function named ProcessOrder that uses the Azure Functions V4 runtime and the .NET isolated worker model. The function must run locally on your developer workstation and execute whenever a new message is received in an Azure Queue Storage queue.
Which sequence of actions should you perform to initialize, create, and test the function locally? Arrange the actions in the correct order.
Öğeleri doğru sıraya koymak için sürükleyin
You are deploying a web application to an Azure App Service web app that has a production slot and a staging deployment slot. The application requires a database connection string defined in its application settings. You must ensure that the staging slot always connects to the staging database and the production slot always connects to the production database, even after you perform a slot swap. Which configuration should you apply to the connection string setting?
An organization is developing a delivery driver tracking system that stores location logs in an Azure Cosmos DB container. The system processes thousands of status updates per minute from active drivers. Write operations are distributed evenly across all drivers, and the most common queries retrieve location history for a specific driver. The container must distribute storage and Request Units (RUs) uniformly without causing hot partitions. Which property should be configured as the partition key?
Your company uses an Azure Container Registry (ACR) named prodacr. You have created an ACR Task named build-app in prodacr that is configured to build an application image whenever the base image, which resides in a separate private ACR named sharedacr, is updated. You create a user-assigned managed identity named task-identity, assign it to the build-app task, and grant it the AcrPull role on sharedacr. Which command must you run to configure the task to use the user-assigned managed identity when pulling the base image from sharedacr?
You are deploying a containerized Azure Function App using a custom Linux Docker image stored in a private Azure Container Registry (ACR).
You must configure the Function App to pull the container image from the ACR using a system-assigned managed identity instead of admin credentials.
Which five actions should you perform in sequence? To answer, arrange the actions in the correct order.
Öğeleri doğru sıraya koymak için sürükleyin