ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 170 - PL-400 discussion

Report
Export

You are creating a Power Automate flow.

You create an Azure Service Bus listener app that receives requests from a third-party application.

When the flow calls the message queue, it must delete the message as soon as it is read.

You need to ensure that the queue is cleared properly.

Which method or class should you use?

A.

ReceiveMode

Answers
A.

ReceiveMode

B.

BrokeredMessage

Answers
B.

BrokeredMessage

C.

EventHubReceiver

Answers
C.

EventHubReceiver

D.

EventHubSender

Answers
D.

EventHubSender

Suggested answer: A

Explanation:

ReceiveMode enumerates the values for the receive mode. The default is PeekLock.

Fields:

PeekLock: Specifies the PeekLock receive mode. This is the default value for ReceiveMode. ReceiveAndDelete: Specifies the ReceiveAndDelete receive mode.

Note: You can specify two different modes in which Service Bus receives messages.

Receive and delete. In this mode, when Service Bus receives the request from the consumer, it marks the message as being consumed and returns it to the consumer application. Peek lock.

Reference: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-queues-topics-subscriptions

https://docs.microsoft.com/en-us/dotnet/api/microsoft.servicebus.messaging.receivemode

asked 05/10/2024
Eric Swisher
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first