All practice questions
171 questions
You are developing a C# service that processes inventory updates from a session-enabled Azure Service Bus queue named `inventory-queue`. The system must process updates for each store in strict chronological order. You need to implement the message retrieval and processing logic using the Azure.Messaging.ServiceBus SDK. Which sequence of actions must you perform to safely retrieve, process, and complete messages for a store session before releasing the session lock?
Drag items to arrange them in the correct order
You are developing a secure C# web API that retrieves a database credential secret from Azure Key Vault. You need to automate the rotation of this secret using Azure Event Grid and a custom Azure Function. Which sequence of steps should you perform to configure the automated rotation?
Drag items to arrange them in the correct order
You are developing a C# console application that processes FIFO (first-in, first-out) messages from a session-enabled Azure Service Bus queue. The application must guarantee that messages in a session are processed in order and that the session lock is released only after all processing is complete.
Arrange the steps in the correct order to implement this message processing workflow using the Azure.Messaging.ServiceBus SDK.
Drag items to arrange them in the correct order
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.
Drag items to arrange them in the correct order
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.
Drag items to arrange them in the correct order
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.
Drag items to arrange them in the correct order
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?
Drag items to arrange them in the correct order
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.
Drag items to arrange them in the correct order
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?
Drag items to arrange them in the correct order
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?
Drag items to arrange them in the correct order
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.
Drag items to arrange them in the correct order
You are developing a C# (.NET) console application that transmits batch telemetry messages to an Azure Event Hub using the modern Azure.Messaging.EventHubs SDK. You need to write the publishing logic using the producer client to optimize performance and prevent message size violations. In which sequence should you perform the steps to initialize the client, build the batch, transmit the events, and release resources?
Drag items to arrange them in the correct order
You are developing a C# backend application that retrieves product inventory data. You must implement the Cache-Aside data pattern to cache inventory status using an Azure Cache for Redis instance and the StackExchange.Redis SDK. The cache connection must be initialized lazily and thread-safely.
Order the steps to implement the sequence of operations for retrieving product inventory data on a request.
Drag items to arrange them in the correct order
You are developing a background worker application that runs in Azure Container Apps. The application must scale dynamically based on the message count of an Azure Service Bus queue. You plan to use a user-assigned managed identity to authenticate the container app's scale rules with the Service Bus namespace.
Which sequence of steps should you perform to configure the scaling and security?
Drag items to arrange them in the correct order
You manage a web application named EduLearn that is currently hosted on a Free () App Service plan. During peak hours, the application experiences high CPU utilization and becomes slow. You want to implement an automated scaling solution to handle the load and ensure the application remains responsive, while also preventing autoscale flapping. You plan to configure these settings via the Azure CLI.
How should you order the steps to configure the autoscaling solution?
Drag items to arrange them in the correct order
You are managing a CPU-intensive web API named TelemetryProcessor that runs on an Azure App Service Web App. The application is currently hosted on a Shared (D1) App Service plan. During peak hours, the application experiences performance degradation due to CPU spikes. You need to configure the App Service plan to scale out automatically during CPU spikes, ensure the configuration is cost-effective, and prevent autoscale flapping.
Which sequence of steps should you perform to configure the scaling behavior?
Drag items to arrange them in the correct order
You are developing a C# (.NET Isolated process) Durable Function to transcode and analyze video files. The workflow implements a Fan-out/Fan-in pattern: it first calls a transcoding activity, then launches parallel analysis activities on the transcoded video, and finally aggregates the results.
To ensure the durability of the execution, the Durable Functions runtime uses event sourcing and replays the orchestrator function.
You need to sequence the lifecycle and replay steps of this workflow from the initial client request to the completion of the orchestration.
In which order do these events occur during the execution of this workflow?
Drag items to arrange them in the correct order
You are developing a C# background service that must safely update the content of an existing blob named config.json in Azure Blob Storage. To prevent concurrency conflicts, your service must lock the blob using a lease before performing the upload and release the lease immediately afterward. You are using the Azure.Storage.Blobs (v12) SDK.
Order the steps required to implement this lease-based upload workflow.
Drag items to arrange them in the correct order
A smart home IoT solution uses Azure Service Bus to route command messages to individual smart devices. The commands for each device must be processed in the exact order they are received to prevent state conflicts. You are configuring a .NET application using the Azure.Messaging.ServiceBus SDK to process these command messages for one device session at a time, settle the processed messages, and release the session so that other workers can pick up different device sessions.
In which order should you execute the code steps to achieve this?
Drag items to arrange them in the correct order
A C# financial auditing application needs to update the custom metadata on an existing block blob containing a transaction ledger. To prevent concurrent write operations from other clients, the application must implement lease-controlled metadata updates using the Azure SDK for .NET. Which of the following sequences represents the correct order of steps the application must execute to perform this update securely?
Drag items to arrange them in the correct order