AZ-200 Azure Messaging & Events 2 — Questions and Answers
Question 1: Which Azure service is optimized for high-throughput event streaming, such as telemetry and log ingestion at millions of events per second?
- Azure Service Bus
- Azure Event Grid
- Azure Event Hubs (Correct answer)
- Azure Notification Hubs
Correct answer: Azure Event Hubs
Azure Event Hubs is a big-data streaming platform and event ingestion service capable of receiving millions of events per second with low latency.
Question 2: What is the role of a consumer group in Azure Event Hubs?
- It limits the number of event producers
- It provides an independent view of the event stream for each downstream application or pipeline (Correct answer)
- It batches events before sending to storage
- It encrypts events for specific consumers
Correct answer: It provides an independent view of the event stream for each downstream application or pipeline
Consumer groups give each consumer application an independent view of the event stream with its own offset, enabling multiple applications to read the same events independently.
Question 3: How long does Azure Event Hubs retain events by default?
- 1 hour
- 24 hours
- 1 day (24 hours), configurable up to 90 days (Correct answer)
- 7 days
Correct answer: 1 day (24 hours), configurable up to 90 days
Event Hubs retains events for 1 day by default, but retention can be configured up to 90 days depending on the tier.
Question 4: What is Azure Event Hubs Capture used for?
- Capturing dead-lettered events from Service Bus
- Automatically saving event data to Azure Blob Storage or Data Lake Storage (Correct answer)
- Capturing Azure AD sign-in events
- Recording Event Grid events to SQL Database
Correct answer: Automatically saving event data to Azure Blob Storage or Data Lake Storage
Event Hubs Capture automatically archives streaming data to Azure Blob Storage or Azure Data Lake Storage in Avro format for batch processing or archiving.
Question 5: Which Azure Service Bus feature prevents the same message from being processed twice?
- Message sessions
- Duplicate detection (Correct answer)
- Message deferral
- Dead-letter queue
Correct answer: Duplicate detection
Duplicate detection in Service Bus detects and discards messages with the same MessageId sent within the duplicate detection window.
Question 6: What is the purpose of a Service Bus subscription filter (SQL filter) on a topic?
- To limit the size of messages sent to the topic
- To selectively route messages to a subscription based on message properties (Correct answer)
- To authenticate subscriber identity
- To enforce message ordering
Correct answer: To selectively route messages to a subscription based on message properties
SQL filters on Service Bus topic subscriptions evaluate message properties and system properties to route only matching messages to that subscription.
Which Azure service is optimized for high-throughput event streaming, such as telemetry and log ingestion at millions of events per second?