What should you do?

You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. The development and deployment of client applications forms part of your responsibilities at Domain.com. You have received instruction to develop and order fulfillment application. This order fulfillment application must send multiple messages to the queue in the case of it receiving an order. After the application sends the messages to the queue, it must update an inventory database accordingly. In the event of an error occurring for one of the messages while it is busy updating the database, the application must automatically remove all messages that were sent for the current order. In the event of the database update being successful, another application on the same computer must read and process the messages. Only these two applications must be allowed to access the messages.
Now you need to create the message queue manually.

What should you do?

You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. The development and deployment of client applications forms part of your responsibilities at Domain.com. You have received instruction to develop and order fulfillment application. This order fulfillment application must send multiple messages to the queue in the case of it receiving an order. After the application sends the messages to the queue, it must update an inventory database accordingly. In the event of an error occurring for one of the messages while it is busy updating the database, the application must automatically remove all messages that were sent for the current order. In the event of the database update being successful, another application on the same computer must read and process the messages. Only these two applications must be allowed to access the messages.
Now you need to create the message queue manually.

What should you do?

A.
A non-transactional public queue must be created.

B.
A transactional public queue must be created.

C.
A non-transactional private queue must be created.

D.
A transactional private queue must be created.

Explanation:
Creating a transactional private queue will allow messages to be rolled back in the event of an error occurring during the database update. In this way, the messages that are sent in the context of the same transaction are either committed or rolled back as a single unit.
Incorrect answers:
A: Since public queues are available to other computers as well, you should not create a non-transactional public queue because only the local computer should have the queue available in this case.
B: This will not fulfill the requirement of these two applications being on the same computer since a public queue will result in availability to other computers as well.
C: A non-transactional private queue will prevent multiple messages from being committed or rolled back as a single unit.



Leave a Reply 0

Your email address will not be published. Required fields are marked *