What should you do?

You work as the Enterprise application 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. Your responsibilities at Domain.com include the design and development of application frameworks. Domain.com operates in the security and surveillance environment. You are currently developing a Microsoft Windows Forms security monitoring system. The application is destined to connect to fifty cameras to record as well as play video. A class named Camera interacts with a physical camera. You make use of the semaphore class to create a resource pool of five camera instances. The business is of such a nature that no more than three Camera instances will be in use at a time. To this end you implement a custom trace listener to send trace messages to a database. In the event of a fourth Camera instance is obtained from the resource pool, you will require to log a message that will read something like:
Only one Camera instance remains in the resource pool. You now need to choose the most appropriate trace level for this message.

What should you do?

You work as the Enterprise application 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. Your responsibilities at Domain.com include the design and development of application frameworks. Domain.com operates in the security and surveillance environment. You are currently developing a Microsoft Windows Forms security monitoring system. The application is destined to connect to fifty cameras to record as well as play video. A class named Camera interacts with a physical camera. You make use of the semaphore class to create a resource pool of five camera instances. The business is of such a nature that no more than three Camera instances will be in use at a time. To this end you implement a custom trace listener to send trace messages to a database. In the event of a fourth Camera instance is obtained from the resource pool, you will require to log a message that will read something like:
Only one Camera instance remains in the resource pool. You now need to choose the most appropriate trace level for this message.

What should you do?

A.
You should select the Verbose level.

B.
You should select the Error level.

C.
You should select the Warning level.

D.
You should select the Informational level.

Explanation:
This type of message would be considered a warning message because it indicates that something out of the ordinary might happen if a problem is not addresses. In this case, a fourth Camera instance is not anticipated and if a fourth Camera instance is obtained from the resource pool, there would only be one Camera instance remaining. If the fifth Camera instance is obtained there would be none remaining.
Incorrect answers:
A: Verbose level is chosen for messages that do not provide a high level of technical information. It is usually used in messages pertaining to control flows, component state changes, etc.
B: Error level messages are not appropriate in this scenario. This message does not indicate that something exceptional has happened.
D: Informational level messages simply provide information that indicates what is happening; not exceptional instances.



Leave a Reply 0

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