Azure Service Bus Flashcards

1
Q

What is JMS 2.0?

A

JMS 2.0 (Java Message Service 2.0) is an updated API for messaging in Java that simplifies message-driven applications by introducing features like simplified API methods, asynchronous message consumption, and improved resource management. It enhances the efficiency of developing messaging-based Java applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is AMQP 1.0?

A

AMQP 1.0 (Advanced Message Queuing Protocol) is an open standard messaging protocol designed for reliable, interoperable, and flexible message exchange across platforms. It ensures message delivery guarantees, supporting various patterns like publish-subscribe and point-to-point communication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the default redundancy model?

A

The default resilience model for Azure Service Bus is region-based redundancy, meaning it offers high availability within a single region without zone redundancy. This provides reliability but may not protect against individual zone failures unless zone redundancy is explicitly enabled.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Azure Service Bus?

A

It is a platform-as-a-service Queue and pub-sub message broker

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the SKU and Pricing tiers?

A
  1. Basic Tier:
    Features:
    Supports queues only; topics and subscriptions are not available.
    Scheduled messages are supported.
    Maximum message size is 256 KB.
    Use Case: Suitable for simple, point-to-point messaging scenarios without the need for advanced features.
    Pricing: Pay-as-you-go model based on the number of operations.
  2. Standard Tier:
    Features:
    Supports both queues and topics with subscriptions.
    Enables features like transactions, duplicate detection, sessions, and auto-forwarding.
    Maximum message size remains at 256 KB.
    Use Case: Ideal for applications requiring more advanced messaging patterns, such as publish/subscribe, with moderate throughput needs.
    Pricing: Includes a base charge with additional costs per operation and brokered connections beyond the included quota.
  3. Premium Tier:
    Features:
    Offers all features of the Standard tier with additional capabilities.
    Provides resource isolation through dedicated resources, ensuring predictable performance.
    Supports larger message sizes up to 100 MB.
    Includes features like Geo-Disaster Recovery (Geo-DR), Virtual Network (VNet) integration, and Java Message Service (JMS) 2.0 support.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What type of messaging pattern does the Basic tier of Azure Service Bus support?

A

Point-to-point messaging (queues only)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Does the Basic tier of Azure Service Bus support topics and subscriptions?

A

No, only queues are supported.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the maximum message size in the Basic tier of Azure Service Bus?

A

256 KB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the best use case for the Basic tier of Azure Service Bus?

A

Simple point-to-point messaging scenarios without advanced features.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What additional messaging pattern does the Standard tier of Azure Service Bus support compared to the Basic tier?

A

Publish/subscribe (topics with subscriptions)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which advanced features are available in the Standard tier of Azure Service Bus?

A

Transactions, duplicate detection, sessions, and auto-forwarding.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the maximum message size in the Standard tier of Azure Service Bus?

A

256 KB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the ideal use case for the Standard tier of Azure Service Bus?

A

Applications with moderate throughput requiring publish/subscribe messaging.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What resource allocation feature does the Premium tier of Azure Service Bus offer for performance?

A

Dedicated resources for predictable performance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the maximum message size in the Premium tier of Azure Service Bus?

A

100 MB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which additional advanced features are included in the Premium tier of Azure Service Bus?

A

Geo-Disaster Recovery (Geo-DR), VNet integration, and JMS 2.0 support.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What type of applications is the Premium tier of Azure Service Bus suited for?

A

Mission-critical applications requiring high throughput, low latency, and enhanced reliability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Does the basic tier support Topics?

A

No, only queues

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Does the basic tier support scheduled messages?

A

Yes scheduled messages are supported?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

For the basic tier what is max message size?

A

256KB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What is the lowest cost tier where i can get Topic support

A

Standard Tier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is a transaction?

A

In Azure Service Bus, a transaction is a feature that allows multiple operations to be grouped together into a single, atomic action. T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Explain Azure Service Bus Standard SKU?

A

$9.72 monthly per azure subscription
13million/operations free, 13-100M $0.80per M
Partial JMS 2.0 feature set
Shared environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Explain Azure Service Bus Premium SKU?

A

Isolated environment
$0.928 per hour
Full JMS 2.0 feature set

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

What is a name space in Azure Service Bus?

A

In Azure Service Bus, a namespace is a container for all messaging components, which includes queues, topics, and subscriptions. It functions similarly to a “server” in other messaging technologies but is fully managed by Azure. Here’s a breakdown of what a namespace does:

Container: A namespace groups related Service Bus resources. Each namespace can contain multiple queues and topics, allowing you to logically organize your messaging entities.
Isolation: It provides isolation of resources, ensuring that queues, topics, and subscriptions within a namespace are accessible only within that namespace. This can enhance security and simplify access management.

Scalability: A namespace can be scaled to handle a large volume of messages. You can adjust throughput and other configurations at the namespace level to support high-demand scenarios.

Access Control: Access policies can be applied at the namespace level, giving fine-grained control over who can send, receive, or manage messages.
Each namespace is globally unique within Azure, meaning that it must have a unique name across all Azure subscriptions. When setting up Service Bus resources, you create a namespace as the first step before adding queues, topics, or any other messaging entities.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

What option have we for integrating azure service bus in a vnet?

A
  1. Private Endpoint (Recommended for secure, private access)
    Description: A Private Endpoint is a network interface that connects you privately and securely to Azure Service Bus via the Azure backbone network, with a private IP address from your VNet.
    How It Works: With Private Endpoints, the Service Bus endpoint is accessible only within your VNet and connected VNets through a private IP address.

Advantages:
Blocks public access and allows only VNet-internal traffic.
Integrates with Azure DNS private zones to resolve the Service Bus namespace to its private IP.
Enhances security as traffic does not traverse the public internet.

  1. Service Endpoint (For additional access control)
    Description: A Service Endpoint provides secure access to Azure Service Bus from a specific VNet subnet over the Azure backbone network.
    How It Works: Service Endpoints extend the VNet’s identity to the Azure Service Bus service, allowing resources in that VNet to access Service Bus without needing public IP addresses.

Advantages:
Simplifies network security by allowing Azure Service Bus to recognize the subnet.
Can be configured with access control to limit access to specific subnets.
Limitations:
Unlike Private Endpoints, Service Endpoints do not block internet access to the Service Bus namespace.
Service Bus is still accessible over the public internet, so it’s less restrictive than Private Endpoints.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

I have a Azure Service Bus with a Private Endpoint to a vnet, i want to restrict the network traffic to the ASB, what options do i have?

A

IP Firewall Rules (For allowing specific IP ranges)
Description: Azure Service Bus includes IP firewall rules that restrict access to specified IP addresses or IP ranges.
How It Works: Firewall rules allow you to control who can access your Service Bus namespace based on the IP addresses of incoming requests.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

When using Azure Service Bus, do you get a public ip?

A

Azure Service Bus used to not provided a public IP, now it dose and you can turn it off if required or filter it using Azure Service Bus IP filters, you also get a FQDN and Premium tier supports VNet service endpoints and private endpoints for enhanced security.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Can i use the standard SKU with vNET private or service endpoints?

A

No, VNet service and private endpoints are only available with the Premium SKU of Azure Service Bus, not the Standard SKU.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

Can you create a hierarchical name space for your Azure Service Bus?

A

Yes in the name space you can create hierarchical name space.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

For Azure service bus what is the max message sizes for each sku?

A

Basic :
Messages can be up to 256 KB in size.

Standard :
HTTP and SBMP Protocols: Limited to 1 MB per message.

Premium Tier:
HTTP and SBMP Protocols: Limited to 1 MB per message.
AMQP Protocol: Supports messages up to 100 MB.

You can use paretations and get upto 80GB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

When a message is accepted by Azure Service Bus, how is it copied?

A

Triple replicated to disk.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

How do you push a message in the dead letter queue?

A

You call the dead letter api (same api just the dead letter part)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

Why would you call the dead letter queue?

A

You (consumer) can handler it or there is a continued error)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

What is scheduling in Azure Service Bus?

A

Scheduling in Azure Service Bus allows messages to be sent at a future time, enabling delayed message delivery. This feature is useful for scenarios where messages need to be deferred for processing later. Scheduled messages are held in the queue or topic until their delivery time.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

Is scheduling in Azure Service Bus available on basic and standard tier

A

Yes, Azure Service Bus supports scheduled messages in both the Basic and Standard tiers. This feature allows you to send messages that are delivered at a specified future time, enabling delayed processing scenarios.
AZURE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

Can you cancel Azure Service Bus scheduled messages?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

What is a deferral in Azure Service Bus ?

A

A deferral in Azure Service Bus allows a message to be set aside temporarily when a receiver cannot process it immediately. The message remains in the queue but is hidden from other receivers. The deferred message can be retrieved later using its unique sequence number for processing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

What is a session in Azure Service Bus?

A

In Azure Service Bus, a session groups related messages with the same SessionId, enabling ordered, stateful message processing by a single receiver. This feature is useful for scenarios where message order and context are critical. Only one client processes each session at a time, ensuring exclusive handling.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

What can you do for a queue that is super quite and what to save resources?

A

You can intergrade Azure Service Bus with Event Grid and subscribe for “ActiveMessageWitNoListeners”, this kicks off Azure Event Grid and Event Grid can be used to spin up consumer to deal with the message.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

What is a transaction in Azure Service Bus ?

A

its where the entire transaction suiceeds of not, this will meant that a consumer receives a message and is about to do some work by sending further messages, all messages need to succeed or all message will fail as a group.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

What is the primary purpose of Azure Service Bus?

A

To provide a reliable messaging service between applications and services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

What is a Service Bus Topic?

A

A messaging entity that allows multiple subscribers to receive copies of messages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

How does Service Bus ensure message delivery?

A

It uses a queuing mechanism to guarantee at-least-once delivery of messages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

What are the key use cases of Azure Service Bus?

A

Asynchronous messaging, decoupling of services, and load leveling.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

What are the key features of Service Bus Topics?

A

Message filtering, multiple subscriptions, and session support.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q

What architectural pattern does Service Bus support?

A

The publish/subscribe messaging pattern.

48
Q

How does Service Bus handle message security?

A

Messages are encrypted in transit and at rest using Azure-managed keys.

49
Q

What is Azure Entra ID RBAC in Service Bus?

A

It provides fine-grained access control for managing Service Bus resources.

50
Q

What is the maximum message size in Service Bus Standard Tier?

A

256 KB per message.

51
Q

What is the maximum message size in Service Bus Premium Tier?

A

1 MB per message.

52
Q

What purchasing tiers does Azure Service Bus offer?

A

Basic, Standard, and Premium.

53
Q

What is the key difference between Service Bus Standard and Premium tiers?

A

Premium provides dedicated resources and better performance.

54
Q

What is the maximum retention period for messages in Service Bus?

A

14 days.

55
Q

How does Service Bus achieve high availability?

A

Through geo-redundant data centers and failover capabilities.

56
Q

What backup options are available in Service Bus?

A

Service Bus provides automatic replication and backup of messages.

57
Q

How does Service Bus integrate with other Azure services?

A

It integrates with Azure Logic Apps, Functions, and Event Grid for workflow automation.

58
Q

What is a Service Bus Subscription?

A

A named entity that receives a copy of messages from a Topic.

59
Q

What is message dead-lettering in Service Bus?

A

Dead-lettering is used to handle messages that cannot be delivered or processed.

60
Q

What is the default time-to-live (TTL) for messages in Service Bus?

A

14 days, configurable.

61
Q

How does Service Bus support disaster recovery?

A

Through geo-replication and automated failover.

62
Q

What are some common use cases for Service Bus?

A

Decoupling microservices, reliable messaging, and load balancing.

63
Q

How does Service Bus ensure message ordering?

A

By using message sessions to maintain message order in a queue.

64
Q

What is a dead-letter queue in Service Bus?

A

A subqueue that stores messages that cannot be processed.

65
Q

How is security enforced in Service Bus?

A

Through Azure Entra ID integration, shared access policies, and encryption.

66
Q

How does Service Bus handle large messages?

A

Large messages are handled by linking the message body to a blob in Azure Storage.

67
Q

What is Auto-forwarding in Service Bus?

A

A feature that forwards messages from one queue or topic to another.

68
Q

What is the role of the Service Bus Namespace?

A

It is a container for queues, topics, and subscriptions.

69
Q

What are the benefits of using the Premium tier in Service Bus?

A

Guaranteed performance, isolation, and advanced features like virtual networks.

70
Q

How does Service Bus manage duplicate messages?

A

It uses the Duplicate Detection feature to filter out duplicates.

71
Q

What are message sessions in Service Bus?

A

They allow related messages to be processed in order as a single unit.

72
Q

What governance features are available in Service Bus?

A

Policies for quotas, access control, and monitoring through Azure Monitor.

73
Q

How does Service Bus scale?

A

It scales by creating more messaging entities and partitioning.

74
Q

What integration does Service Bus have with Azure Entra ID?

A

Azure Entra ID can be used for authentication and RBAC for access control.

75
Q

What is Message Deferral in Service Bus?

A

Deferral postpones the delivery of a message until conditions are met.

76
Q

How does Service Bus handle throttling?

A

Service Bus applies rate limits to prevent overloading.

77
Q

What are the message delivery modes in Service Bus?

A

Peek-lock and receive-and-delete.

78
Q

What is the purpose of Peek-lock in Service Bus?

A

It locks the message for processing and avoids loss in case of failure.

79
Q

What monitoring options are available for Service Bus?

A

Azure Monitor provides insights into performance and operations.

80
Q

How does Service Bus integrate with Azure Logic Apps?

A

Logic Apps can trigger workflows based on Service Bus messages.

81
Q

What are some performance optimization techniques for Service Bus?

A

Use sessions, partitioning, and the Premium tier for performance.

82
Q

How does Service Bus support multi-region availability?

A

It uses geo-replication for data resiliency and disaster recovery.

83
Q

What is Partitioning in Service Bus?

A

A feature that splits data across multiple partitions to improve performance.

84
Q

How does Service Bus handle message filtering?

A

It allows custom filters to control which messages are sent to subscribers.

85
Q

What is the role of Shared Access Policies in Service Bus?

A

They define permissions for managing and accessing Service Bus entities.

86
Q

How does Service Bus support large-scale applications?

A

By providing high throughput, partitioning, and the Premium tier.

87
Q

What is the difference between Service Bus and Event Hubs?

A

Service Bus is designed for reliable messaging, while Event Hubs focuses on event streaming.

88
Q

How does Service Bus handle poison messages?

A

Poison messages are sent to the dead-letter queue after multiple failed attempts.

89
Q

What is the maximum size for a Service Bus queue?

A

80 GB in the Premium tier.

90
Q

How does Service Bus handle transactional messaging?

A

It supports atomic transactions to ensure all operations succeed or fail together.

91
Q

What disaster recovery options are available for Service Bus?

A

Service Bus supports automated failover and geo-replication.

92
Q

How can Service Bus messages be backed up?

A

Messages can be backed up by integrating with Azure Storage or other services.

93
Q

What is the primary purpose of a Service Bus namespace?

A

A Service Bus namespace provides a container for Service Bus resources.

94
Q

What is a Service Bus partitioned entity?

A

It is handled by multiple message brokers, improving throughput and resilience.

95
Q

Where does Azure Service Bus store data?

A

Standard tier uses Azure SQL Database, Premium tier stores data in selected regions.

96
Q

What protocols can be used with Azure Service Bus?

A

AMQP and HTTPS with TLS are used to send and receive messages.

97
Q

What is AMQP-over-WebSockets in Service Bus?

A

It runs over TCP 443 like HTTPS, providing message functionality with added latency.

98
Q

What should be considered when creating Service Bus entities?

A

Properties like partitioning, sessions, duplicate detection, and express entities are immutable.

99
Q

How does Azure Service Bus handle large messages?

A

Use the claim check pattern for messages larger than the maximum size limit.

100
Q

What are the firewall ports needed for Service Bus?

A

Ports 5671/5672 for AMQP and 443 for HTTPS/AMQP-over-WebSockets.

101
Q

Does Service Bus support Java Message Service (JMS)?

A

Yes, Service Bus supports JMS 2.0 in the Premium tier.

102
Q

What are Shared Access Signatures in Service Bus?

A

They are secure URI-based authentication tokens supported across multiple languages.

103
Q

How does Service Bus handle message delivery between regions?

A

Data transfer within regions is free, while transfers outside the region incur egress charges.

104
Q

Can you move a Service Bus namespace between subscriptions?

A

Yes, using the Azure portal or PowerShell.

105
Q

What happens if you delete a Service Bus namespace?

A

You must wait 4 hours before recreating it with the same name in another subscription.

106
Q

How does Service Bus handle exceptions?

A

It generates exceptions based on specific API errors, with recommended actions.

107
Q

What is the data retention policy in Service Bus?

A

Messages can be retained for up to 14 days, after which they are deleted.

108
Q

What ports are required for TLS 1.1 or higher in Service Bus?

A

Port 443 is required for TLS 1.1 and higher, and TLS 1.0 is deprecated.

109
Q

How do you charge for Service Bus?

A

Charges are based on messaging operations, data transfer, and premium resource utilization.

110
Q

How does Service Bus ensure durability?

A

It replicates data across availability zones and paired regions for durability.

111
Q

What IP addresses are required for Service Bus communication?

A

Use nslookup on the namespace to find the dynamic IP addresses for firewall allowlisting.

112
Q

What best practices improve Service Bus performance?

A

Use partitioning, optimize message size, and manage sessions for better throughput.

113
Q

How can Service Bus entities be secured?

A

Through Shared Access Signatures, Azure Entra ID RBAC, and firewall rules.

114
Q

How does Service Bus handle message ordering in a partitioned queue?

A

Message ordering is not guaranteed in partitioned entities.

115
Q

What are express entities in Service Bus?

A

Express entities store messages only in memory, reducing persistence costs.

116
Q

How do Service Bus and Event Grid differ?

A

Service Bus focuses on reliable messaging, while Event Grid handles event-driven communication.

117
Q

Can you disable TLS 1.0 and 1.1 in Service Bus?

A

Yes, you can enforce a minimum TLS version for Service Bus namespaces.