Azure Messaging & Event-driven Solutions Flashcards
7 cards from real AZ-204 practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Azure Messaging & Event-driven Solutions flashcards as text
What is the key difference between an Azure Service Bus queue and a topic?
Answer: Topics support multiple subscriptions allowing multiple consumers to receive copies of each message, while queues deliver each message to exactly one consumer
Topics implement a publish-subscribe pattern where multiple subscriptions each receive a copy of every message, while queues implement point-to-point delivery where each message goes to exactly one consumer.
Which Azure SDK method should you call to settle a received Service Bus message and confirm it was successfully processed, preventing redelivery?
Answer: CompleteMessageAsync()
CompleteMessageAsync() settles a received Service Bus message, removing it from the queue or subscription and preventing it from being redelivered to another consumer.
What is the purpose of Azure Event Hubs Capture?
Answer: To automatically archive streaming data to Azure Blob Storage or Azure Data Lake Storage
Event Hubs Capture automatically captures streaming data and persists it to Azure Blob Storage or Azure Data Lake Storage for batch processing or long-term analytics without requiring additional code.
Which Service Bus feature allows you to atomically send or receive messages across multiple queues and topics in a single all-or-nothing operation?
Answer: Transactions
Azure Service Bus supports transactions that enable atomic operations across multiple messaging entities, ensuring all operations either succeed or fail together.
In Azure Event Hubs, what happens when events are published with the same partition key?
Answer: A hash of the partition key routes all matching events consistently to the same partition
When a partition key is specified, Event Hubs hashes the key to consistently route events with the same key to the same partition, ensuring ordered delivery for related events.
How does Azure Event Grid handle event delivery failures to a subscriber endpoint?
Answer: Event Grid uses exponential backoff retries for up to 24 hours and supports optional dead-lettering to a storage account
Event Grid retries failed deliveries using exponential backoff for up to 24 hours (configurable TTL) and supports dead-lettering undeliverable events to an Azure Storage account.
Which C# class in the Azure.Messaging.ServiceBus SDK is used to send messages to a Service Bus queue or topic?
Answer: ServiceBusSender
ServiceBusSender is the class used to send messages to a Service Bus queue or topic, created by calling ServiceBusClient.CreateSender() with the target queue or topic name.