0
0
Azurecloud~20 mins

Event Hubs for streaming data in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Event Hubs Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Event Hub Partition Behavior

You have an Azure Event Hub with 4 partitions. You send 1000 events with the same partition key. How many partitions will these events be distributed across?

AEvents will be evenly distributed across all 4 partitions.
BAll 1000 events will go to exactly 1 partition.
CEvents will be randomly distributed across 2 partitions.
DEvents will be distributed across 3 partitions based on load.
Attempts:
2 left
💡 Hint

Think about how partition keys affect event routing.

Architecture
intermediate
2:00remaining
Choosing Event Hub Throughput Units

You expect to send 20 MB per second of data to an Event Hub. Each throughput unit supports 1 MB/s ingress. How many throughput units should you provision?

A5 throughput units
B10 throughput units
C1 throughput unit
D20 throughput units
Attempts:
2 left
💡 Hint

Each throughput unit supports 1 MB/s ingress.

security
advanced
2:00remaining
Securing Event Hub Access

You want to allow a service to send events to your Event Hub but not read from it. Which Azure role should you assign to the service's managed identity?

AAzure Event Hubs Contributor
BAzure Event Hubs Data Receiver
CAzure Event Hubs Data Sender
DAzure Event Hubs Data Owner
Attempts:
2 left
💡 Hint

Look for the role that only allows sending events.

Configuration
advanced
2:00remaining
Event Hub Capture Configuration

You configure Event Hub Capture to save data to Azure Blob Storage every 5 minutes or 100 MB, whichever comes first. What happens if 100 MB is reached before 5 minutes?

ACapture triggers immediately when 100 MB is reached, before 5 minutes.
BCapture waits full 5 minutes regardless of size.
CCapture triggers only after 5 minutes even if size is larger.
DCapture triggers randomly, ignoring size and time.
Attempts:
2 left
💡 Hint

Think about the 'whichever comes first' condition.

Best Practice
expert
2:00remaining
Optimizing Event Hub Consumer Group Usage

You have multiple independent applications reading from the same Event Hub. What is the best practice to ensure each application reads all events without interfering with others?

AAssign each application its own consumer group.
BShare a single consumer group among all applications.
CUse no consumer groups and read directly from partitions.
DUse the same consumer group but different partitions per app.
Attempts:
2 left
💡 Hint

Consider how consumer groups isolate read positions.