All practice questions
972 questions
A healthcare provider uses a Standard General Purpose v2 (GPv2) storage account to store patient medical records in a container named `patient-records`.
You need to define an Azure Blob Storage lifecycle management policy that meets the following requirements:
* Automatically transitions block blobs from the Hot tier to the Cool tier 180 days after they were last modified.
* Automatically transitions block blobs to the Archive tier 365 days after they were last modified.
* Automatically deletes block blobs 3650 days after they were last modified.
* Restricts the policy rules to apply only to blobs in the `patient-records` container that have a blob index tag named `ArchiveStatus` set to a value of `Ready`.
Which two of the following configuration fragments or statements are correct for this policy implementation? Select two.
Select all that apply
"baseBlob": {
"tierToCool": {
"daysAfterModificationGreaterThan": 180
},
"tierToArchive": {
"daysAfterModificationGreaterThan": 365
},
"delete": {
"daysAfterModificationGreaterThan": 3650
}
}
}
"blobTypes": [ "blockBlob" ],
"prefixMatch": [ "patient-records/" ],
"blobIndexMatch": [
{
"name": "ArchiveStatus",
"op": "==",
"value": "Ready"
}
]
}
"blobTypes": [ "blockBlob" ],
"prefixMatch": [ "patient-records/" ],
"blobIndexMatch": [
{
"name": "archivestatus",
"op": "==",
"value": "ready"
}
]
}
You register a new application in Microsoft Entra ID to integrate authentication into a custom web app. Which object is created in your home tenant to serve as the global configuration and blueprint for the application across all tenants?
You are deploying a containerized application to Azure Container Instances (ACI). The container image is stored in a private Azure Container Registry (ACR). You create a user-assigned managed identity and assign it the AcrPull role on the ACR. However, when you attempt to deploy the container group, the deployment fails with an error indicating that the image cannot be pulled. What is the most likely cause of this failure?
You are developing a telemetry ingestion service that processes device events using the Azure Cosmos DB .NET SDK v3. The service uses a container configured with a partition key path of `/tenantId`.
You need to implement a helper method that performs two operations as a single transaction:
1. Create a new telemetry record of type `DeviceLog`.
2. Upsert a summary record of type `TenantSummary`.
Both records share the same `tenantId` value.
Which two of the following code segments should you use to complete the implementation?
Select all that apply
.CreateItem<DeviceLog>(log)
.UpsertItem<TenantSummary>(summary);
.CreateItem<DeviceLog>(log, new PartitionKey(tenantId))
.UpsertItem<TenantSummary>(summary, new PartitionKey(tenantId));
{
SessionToken = "tenant-session-token"
}))
You are developing a C# application that processes documents uploaded to Azure Blob Storage using the Azure SDK for .NET. The application needs to retrieve custom metadata from blobs and update it as processing progress is tracked. Which two of the following statements correctly describe the behavior of blob metadata in this scenario?
Select all that apply
A healthcare organization is designing a monitoring application that collects real-time telemetry from wearable patient devices and stores the data in an Azure Cosmos DB for NoSQL container. The application hosts active patient devices, each sending health metrics every , resulting in a high volume of continuous writes. The primary query pattern retrieves telemetry data for a specific patient for a single calendar day to populate a daily dashboard. Telemetry data for a single patient is expected to grow by approximately per year. Which partition key strategy should you implement to support the query requirements while preventing partition size limits and write hot spotting?
You are developing a web application that will be hosted on an Azure App Service. The application must securely retrieve database connection strings from an Azure Key Vault. You decide to use a managed identity to authenticate to the Key Vault. The identity must be dedicated to this specific App Service instance, and its lifecycle must be tied directly to the App Service so that deleting the App Service automatically deletes the identity. Which identity type should you implement?
You are designing a deployment architecture for a set of five independent Azure App Service web apps. Each web app must access a shared Azure Key Vault to retrieve common application settings. Each web app is managed and scaled independently, and some may be deleted or recreated during routine updates. You need to configure a managed identity solution that minimizes administrative overhead for granting Key Vault permissions and ensures that the identity credentials persist even if individual web apps are deleted.
Which managed identity configuration should you implement to meet these requirements?
You are configuring a V4 Azure Function App that needs to connect to an external service. The external service requires all incoming requests to originate from a single, static public IP address. The Function App is currently running on an Elastic Premium plan.
Which two actions should you perform to configure the Function App for static outbound IP addresses? (Select two.)
Select all that apply
You are a developer implementing a data retention strategy for a Standard General Purpose v2 (GPv2) storage account. You need to configure Azure Blob Storage Lifecycle Management to automatically transition older, historical versions of blobs (noncurrent versions) to the Cool tier. You plan to configure and test this policy using the Azure CLI.
Arrange the steps in the correct order to configure the storage account, define the policy, and verify that a blob version is subject to the policy.
Drag items to arrange them in the correct order
You are configuring CPU-based autoscale rules for an Azure App Service web application to handle variable traffic spikes while preventing service instability caused by rapid, back-to-back scaling actions (flapping). Which of the following configuration settings should you implement? (Select TWO.)
Select all that apply
Match each application scenario to the most appropriate Azure Cosmos DB consistency level that satisfies the requirements with the lowest resource overhead.
Click a left item, then click its matching right item
Items
Matches
An enterprise is migrating a legacy batch processing system to Azure. The system consists of an on-premises scheduler service that must securely upload transaction logs to an Azure Blob Storage container. Corporate security policies strictly prohibit storing passwords, client secrets, or access keys in the service configuration. You must establish authentication using a Microsoft Entra ID service principal configured with a client certificate.
You need to configure the required Microsoft Entra ID and Azure resources to establish this secure communication flow.
Which five actions should you perform in sequence? To answer, arrange the actions from the list of actions in the correct order.
Drag items to arrange them in the correct order
An on-premises daemon application needs to access a secure Web API protected by Microsoft Entra ID. The application is registered in Microsoft Entra ID and has a client secret configured. Arrange the steps in the correct chronological order to authenticate the application and access the Web API using the client credentials flow.
Drag items to arrange them in the correct order
You are deploying a containerized background worker to Azure Container Instances (ACI) using a YAML template. The containerized application requires a database connection string that contains sensitive credentials. You must ensure that the connection string is passed to the container as an environment variable, but the plaintext value of the connection string must not be visible to users who run the 'az container show' command or view the container properties in the Azure portal. Which of the following configurations should you define in the YAML template to meet this requirement?
A developer needs to configure passwordless authentication for a GitHub Actions workflow to deploy resources to an Azure subscription using Microsoft Entra Workload Identity. In which order should the developer perform the steps to establish trust and grant the necessary permissions? To answer, arrange the steps in the correct sequence.
Drag items to arrange them in the correct order
You are developing a Python microservice that updates a shared configuration file named `process_state.json` in Azure Blob Storage. The microservice uses the `azure-storage-blob` library (v12). To prevent multiple workers from modifying the file simultaneously, you must implement a lease-based locking mechanism. Additionally, the service must be able to recover and force-release the lock if a worker crashes while holding the lease. Which two of the following actions must you implement to perform these operations using the SDK? (Select TWO)
Select all that apply
You are writing a C# method using the Azure SDK for .NET (`Azure.Storage.Blobs`) to set custom metadata on an existing block blob. You need to add a custom metadata name-value pair where the key is `Department` and the value is `Engineering`.
Which key-value pair should you add to the metadata dictionary passed to the `BlobClient.SetMetadataAsync` method?
A public transit agency is designing an Azure Cosmos DB for NoSQL database to store real-time telemetry from a fleet of 5,000 buses. The system ingests 10 million location updates daily. The database must optimize for high-throughput write ingestions while ensuring fleet managers can perform ACID-compliant transactional batch updates to modify the status of a specific bus on a given calendar day. Using the bus ID alone as the partition key would optimize reads for individual buses but will eventually exceed the 20 GB logical partition storage limit due to historical accumulation. Which two of the following design decisions should you make to satisfy these requirements?
Select all that apply
You need to configure an Azure App Service web app to retrieve secrets from an Azure Key Vault by using a user-assigned managed identity. Which sequence of steps should you perform? To answer, arrange the actions in the correct order.
Drag items to arrange them in the correct order