You create Microsoft Windows-based applications. You create a purchase order application. Sales personnel use the application to place orders for customers. Sales personnel need to connect to the network to use the application. The application saves data to a database server on the network. Multiple sales personnel use the application simultaneously.
The purchase order application requires a logging mechanism to permit auditing of sales. The logging mechanism must meet the following requirements:
Log entry is created for every sales order created, saved, or deleted.
Log data is available only to administrators.
Log entries for all sales are stored together.
Current log data can be read while the application is running.
You need to decide on a storage mechanism for the logged data. Which storage mechanism should you choose?
A.
Use a listener to trace data to the Windows System log.
B.
Use a listener to trace data to a text file in the local machine. Protect the file by using NTFS permissions.
C.
Write code to save log information to a database server. Configure the database so that only administrators can access it.
D.
Write code to save log information to an XML file in a file share. Configure the share so that only administrators can access it.