AZ 204 Flashcards
Event Grid: What is a topic?
Provides an endpoint where the source sends events
Event Grid: HTTP webhooks event handler retry until what?
The handler returns a http 200 code
Event Grid: Which data type are events sent as?
Events are sent in an array which can have several event objects. Each event object is limited to 1 MB. Larger messages result in a 413 payload too large
Event Grid: How are operations charged?
In 64 kb increments. So for example 130kb is charged as 3 separate events (64+64+64)
Event Grid: Which 4 properties are required?
Subject, EventType, EventTime, Id
Event Grid: Which property in the schema can be used to route/filter?
There are three options for filtering: Event types, Subject begins with or ends with and advanced fields and operators
Event Grid: Does Event Grid guarantee order for delivery?
No, subscribers may recieve them out of order.
Event Grid: Which two retry configurations exist?
Maximum number of attempts (1-30) or Event time-to-live (1-1440 minutes)
Event Grid: You want to allow a service to send events to Event Grid Topics. Which RBAC role do you assign?
1) Event Grid Subscription Reader
2) Event Grid Subscription Contributor
3) Event Grid Contributor
4) Event Grid Data Sender
4) Lets you send events to Event Grid topics.
Event Grid: You want to allow a service to create and manage Event Grid resources. Which RBAC role do you assign?
1) Event Grid Subscription Reader
2) Event Grid Subscription Contributor
3) Event Grid Contributor
4) Event Grid Data Sender
3) Lets you create and manage Event Grid resources.
Event Grid: What is the az cli command to create a new topic?
az eventgrid topic create –name $myTopicName \
–location $myLocation \
–resource-group az204-evgrid-rg
Event Hub: What is Azure Event Hubs?
A big data streaming platform and event ingestion service. It can recieive and process millions of events per second
Event Hub: What is the primary interfrace for developers interacting with Event Hubs?
Develops interact through an Event Hubs Client
Event Hub: What is a an Event Hubs producer
A special type of client that serves a source of telemetry data. Examples can be mobile device applications, a website etc.
Event Hub: What is a consumer group?
A consumer group enables multiple consuming applications to have their own view of the event stream and read data at their own pace. It is recommend to only have 1 consumer group per partition though, since multiple readers on the same partition will result in duplicate events.
Event Hub: How does the architecture of Event Hub ensure that it never gets “too full”
First of all Event Hub uses a partitioned consumer model which is key to scaling. Secondly as the data ages off it is deleted by using the configurable retention period.
Event Hub: Which unit of measure is used to control traffic?
Traffic is controlled though Throughput units. A single throughput unit allows 1MB per second OR 1000 events per second of ingress. For egress the amount is twice of that.
You can configure between 1-20 throughput unit but can raise a support ticket to increase further
Event Hub: What happens if you use more throughput than our configured units?
Usage beyond the purchased throughput is throttled
Event Hub: What does checkpointing mean?
Checkingpointing is a process by which an event processor marks or commits the position of the latest read. This makes the system more resilient since other processors can take over in case of failure
Event Hub: Which mechanisms are supported to Authenticate and Authorize?
Supports both Azure AD and Shard Access Signatures (SAS)
Event Hub: Which RBAC roles should be assigned to a service that needs to send data to the Event Hub?
Azure Event Hubs Data Sender gives the role send access to Event Hub resources.
The other 2 in-built roles are Data Owner and Data Reciever.
Event Hub: Under which namespace do the .NET clients exist?
Azure.Messaging.EventHubs
Event Hub: Which .NET/Java client is used to consume data?
EventHubConsumerClient
Event Hub: What is a partition
An ordered sequence of events held in an Event Hub