AZ-304 Exam QuestionsBrowse all questions from this exam

AZ-304 Exam - Question 167


You have an application that sends events to an Azure event hub by using HTTP requests over the internet.

You plan to increase the number of application instances.

You need to recommend a solution to reduce the overhead associated with sending events to the hub.

What should you recommend?

Show Answer
Correct Answer: A

To reduce the overhead associated with sending events to an Azure event hub, configuring the application to use the AMQP (Advanced Message Queuing Protocol) is a highly effective solution. AMQP is designed for higher throughput and lower latency as it maintains a persistent bidirectional connection, which significantly reduces the overhead per message compared to HTTP or HTTPS. This makes it particularly suitable for scenarios where the application instances need to send numerous events efficiently.

Discussion

8 comments
Sign in to comment
iPilot
Apr 3, 2021

CORRECT If we send many events & throughput is a concern: use AMQP https://vincentlauzon.com/2018/06/05/event-hubs-ingestion-performance-and-throughput/

donathonOption: A
Dec 13, 2021

The choice to use AMQP or HTTPS is specific to the usage scenario. AMQP requires the establishment of a persistent bidirectional socket in addition to transport level security (TLS) or SSL/TLS. AMQP has higher network costs when initializing the session, however HTTPS requires additional TLS overhead for every request. AMQP has significantly higher performance for frequent publishers and can achieve much lower latencies when used with asynchronous publishing code. https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-features#publishing-an-event

GetulioJr
Jun 21, 2021

This is correct, but only because it states that it will communicate with HTTP. if a https connection is required the overhead would be higher with amqp.

moota
May 9, 2021

Definitely NOT B and D

cfsxtuv33
Sep 6, 2021

Answer is correct (A)...AMQP protocol, nuff said.

syu31svc
Oct 5, 2021

https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-amqp-protocol-guide Answer is A

GR_new
Aug 29, 2021

Correct: B Event Hubs' limit on data retention based on time is to prevent large volumes of historic customer data getting trapped in a deep store that is only indexed by a timestamp and only allows for sequential access. AMQP has higher network cost ... no pint to add it.

cfsxtuv33
Jan 30, 2022

Correct...another question from my AZ-304 exam.