PrepAway - Latest Free Exam Questions & Answers

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 creation and assessment of serviced components form part of your responsibilities at Domain.com. After receiving the instruction, you complied and have just created a private message queue on an application server. You have configured the message queue in such a way than whenever a message arrives in the queue, you will need to simultaneously run two executables to process the message. To this end you need to create a rule or more rules and triggers to ensure that these two executables run simultaneously when a message arrives in the queue.

What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Create two rules and two triggers. Then apply each rule to only one trigger.

B.
Create a rule and two triggers. Then apply the rule to each trigger.

C.
Create one rule and one trigger. Then apply the rule to the trigger.

D.
Create two rules and one trigger. Then apply both rules to the trigger.

Explanation:
A trigger can execute whenever you peek at or retrieve a message from a specific message queue. It is possible that a trigger can contain more than one rule or even no rules; however, in a situation where you want the two executables to run simultaneously, you should specify the conditions that should be met to execute the rule’s action. By creating a trigger for each rule you will be allowing the two executables to be invoked simultaneously when the triggers are executed.
Incorrect answers:
B: You should not create only one rule. You need to keep in mind that you must run two executables simultaneously and thus need to create a rule for each executable since a rule can execute at most one executable.
C: You should not create only one trigger, even though it is possible that a trigger may contain more than one rule, the trigger executes the action associated with each rule within a specified sequence. This means that the two executables will be triggered to run but not simultaneously.
D: This option will is possible, but will not allow both executables to run simultaneously.

VB, Envisioning and Designing an Application (8 Questions)


Leave a Reply