All practice questions
972 questions
You are developing a C# administrative utility to reset the checkpoint state for an active Azure Event Hub consumer group. The consumer application uses the EventProcessorClient and stores checkpoints as blobs in Azure Blob Storage.
When the utility attempts to delete a checkpoint blob using BlobClient.DeleteAsync(), the operation fails with an HTTP status code 412 (Precondition Failed).
What is the cause of this error, and how should it be resolved?
A developer is designing an integration solution that buffers messages using Azure Queue Storage. The developer expects some message payloads to occasionally exceed the standard size limit of a single queue message.
What is the maximum message size supported for a single message in Azure Queue Storage, and how should payloads exceeding this limit be handled?
A developer is deploying a Go-based web application to Azure App Service. The application must retrieve a database connection string stored in an Azure Key Vault named `kv-prod-westus`. A system-assigned managed identity is enabled for the App Service.
You configure an application setting in the App Service with the key `DbConnectionString` and the value `@Microsoft.KeyVault(VaultName=kv-prod-westus;SecretName=DbConnectionString)`.
During testing, the application fails to retrieve the secret value and instead reads the raw reference string.
Which of the following is the most likely cause of this issue?
A microservice API gateway runs on an Azure App Service plan (Premium V3 tier) that is currently scaled to instances. You configure an autoscale setting with the following scale-out rule:
- Metric: CPU Percentage
- Time grain (aggregation): Average
- Operator: Greater than
- Threshold:
- Action: Increase count by
To ensure that the application scales in when load decreases but does not experience scale flapping, you need to configure the scale-in rule. Which of the following scale-in configurations should you use?
You need to enable Microsoft Entra ID (formerly Azure Active Directory) authentication for the developer portal of an existing Azure API Management (APIM) instance. Which sequence of actions should you perform to complete the configuration? To answer, drag all actions from the list of actions to the answer area and arrange them in the correct order.
Drag items to arrange them in the correct order
You are developing a C# background service to process telemetry data from an Azure Event Hub. The service must use the EventProcessorClient to consume events, manage partition ownership, and store checkpoints in Azure Blob Storage.
What is the correct sequence of steps to initialize, run, and terminate the EventProcessorClient lifecycle?
Drag items to arrange them in the correct order
A developer is configuring a multi-tenant web application named AppRegister in Microsoft Entra ID. The application must allow users from any organizational tenant to authenticate. However, the application must prevent users with personal Microsoft accounts (MSA) from signing in. Which two configurations should the developer implement to meet these requirements?
Select all that apply
You are configuring an Azure API Management (APIM) instance to route traffic to a backend service that requires mutual TLS (mTLS) authentication. You upload the client certificate to the APIM instance. You need to ensure that APIM presents this client certificate when sending requests to the backend service. Which configuration should you apply to meet this requirement?
You are configuring Azure API Management (APIM) to authenticate to a secure backend API using a user-assigned managed identity. You have already created the identity and associated it with the APIM instance. You add the authentication-managed-identity policy to the inbound processing section of the API. Which attribute must you include in the policy to identify the user-assigned managed identity?
A developer is writing a service in C# that moves large backup files from a public container to a secure archival container in a different Azure Storage account using the Azure.Storage.Blobs SDK (version 12.x). The operation must execute asynchronously and log a message once the file transfer completes successfully. Place the steps in the correct order to programmatically copy the blob and monitor the progress of the copy operation.
Drag items to arrange them in the correct order
You are configuring Azure Monitor autoscale rules for several Azure resources. Match each workload scaling requirement on the left to the most appropriate Azure Monitor autoscale metric and time aggregation configuration on the right.
Click a left item, then click its matching right item
Items
Matches
A health monitoring system uses Azure Event Hubs to collect real-time patient telemetry. You are configuring a .NET host application to consume these events using the EventProcessorClient class. You create an Azure Blob Storage container to serve as the checkpoint store. The application is configured to authenticate using a system-assigned managed identity that has been granted the Storage Blob Data Reader role on the storage container. When the application starts, it throws an exception during initialization because it cannot acquire partition leases. You need to ensure the application can successfully coordinate partition ownership and write checkpoints. Which action should you perform?
You are securing an API hosted in Azure API Management (APIM). The API must validate a JSON Web Token (JWT) sent by clients in the Authorization header. Additionally, APIM must use its own system-assigned managed identity to authenticate against the secure backend service. You need to configure the APIM policy definition.
Which two actions should you perform? (Select two.)
Select all that apply
You are developing a background service in C# that uses the .NET Azure.Storage.Blobs SDK to migrate public assets to a secure container. You need to copy a blob named video.mp4 from a public source container to a destination container in your storage account. The copy operation must run asynchronously, and the service must monitor the progress until it is fully completed.
Arrange the steps in the correct order to perform the copy and monitor its status.
Drag items to arrange them in the correct order
You are developing a C# utility to copy a blob named db-backup.bak from a source container to a destination container in a different Azure Storage account using the Azure.Storage.Blobs SDK. The source blob is private. The destination container already contains a blob named db-backup.bak that has an active lease. You need to initiate the copy asynchronously from the destination client and ensure the operation succeeds. Which configuration must you use for the copy operation?
An organization is deploying an ASP.NET Core web application to an Azure App Service. The application must retrieve a database password from an Azure Key Vault named `kv-finance-prod`. The Key Vault's permission model is configured to use Azure role-based access control (Azure RBAC). The App Service has a system-assigned managed identity enabled.
During testing, the application's C# code throws a `RequestFailedException` with an HTTP `403 Forbidden` error when calling `SecretClient.GetSecretAsync`.
You need to resolve this authorization issue using the principle of least privilege.
Which of the following actions should you perform?
You are deploying a Java Spring Boot application to an Azure App Service (Linux). The application loads its configuration settings from an Azure App Configuration store using the Spring Cloud Azure App Configuration library. The App Configuration store contains a key named `/application/payment-gateway-key` configured as a Key Vault reference that points to a secret in an Azure Key Vault named `kv-payment-prod`. A system-assigned managed identity is enabled on the App Service. When the application starts, it throws an authorization exception while trying to resolve the Key Vault reference.
Which of the following configurations is required to successfully resolve the secret value at runtime?
An organization runs a web application on an Azure App Service plan that currently has a capacity of instances. You need to configure autoscale rules with a minimum of instances and a maximum of instances. You configure a scale-out rule to increase the instance count by when the Average CPU percentage is greater than . You want to configure a scale-in rule that decreases the instance count by when the CPU percentage is lower than a specific threshold. Which configuration should you use to prevent flapping when scaling out from to instances?
An organization is configuring a custom domain for a web application. You need to create an SSL/TLS certificate in Azure Key Vault by using a non-integrated Certificate Authority (CA). Which sequence of steps should you perform to complete this process? To answer, drag the appropriate actions from the list of actions to the answer area and arrange them in the correct sequence.
Drag items to arrange them in the correct order
You are designing a secure backend service that provides external audit applications with temporary access to read audit logs stored in a specific Azure Blob Storage container. You decide to generate a Shared Access Signature (SAS) token.
The solution must meet the following security requirements:
- Minimize the risk of compromising the storage account's root access keys.
- Prevent the external application from listing other blobs or deleting logs.
- Enforce secure transmission protocols.
- Restrict access to a specific external IP range: 198.51.100.0/24.
Which two of the following configuration options should you implement to meet the requirements?
Select all that apply