Big 11.11 Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Microsoft Developing Solutions for Microsoft Azure AZ-204 Question # 19 Topic 2 Discussion

Microsoft Developing Solutions for Microsoft Azure AZ-204 Question # 19 Topic 2 Discussion

AZ-204 Exam Topic 2 Question 19 Discussion:
Question #: 19
Topic #: 2

A company is implementing a publish-subscribe (Pub/Sub) messaging component by using Azure Service Bus. You are developing the first subscription application.

In the Azure portal you see that messages are being sent to the subscription for each topic. You create and initialize a subscription client object by supplying the correct details, but the subscription application is still not consuming the messages.

You need to complete the source code of the subscription client

What should you do?


A.

await subscriptionClient.CloseAsync();


B.

await subscriptionClient.AddRuleAsync(new RuleDescription(RuleDescription.DefaultRuleName, new TrueFilter()));


C.

subscriptionClient.RegisterMessageHandler(ProcessMessagesAsync, messageHandlerOptions);


D.

subscriptionClient = new SubscriptionClient(ServiceBusConnectionString, TopicName, SubscriptionName);


Get Premium AZ-204 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.