Microsoft Certified Solutions Developer (MCSD) Certification Practice Test

Disable ads (and more) with a membership for a one time $2.99 payment

Prepare for the Microsoft Certified Solutions Developer Certification Test with multiple choice questions and flashcards. Each question comes with hints and explanations. Start mastering your skills now!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which of the following is NOT a method for creating a custom Performance Counter?

  1. Creating a new EventLog

  2. Using CounterCreationDataCollection

  3. Defining CounterCreationData

  4. Using PerformanceCounterType

The correct answer is: Creating a new EventLog

Creating a new EventLog is indeed not a method for creating a custom Performance Counter. Performance Counters are specifically designed to monitor system performance metrics and require tools and methods that deal directly with counter creation and management. When you create custom Performance Counters, you typically utilize classes such as CounterCreationData and CounterCreationDataCollection, which are part of the System.Diagnostics namespace in .NET. CounterCreationData allows you to define the specifications of the counter, such as its name, type, and help description. CounterCreationDataCollection is used to group multiple CounterCreationData instances together for installation. Additionally, PerformanceCounterType is associated with the type of data the counter will collect, like number of operations, bytes per second, etc. This helps categorize the data to ensure that it’s recorded and accessible in a meaningful way. In contrast, creating a new EventLog pertains to logging events rather than monitoring performance. EventLogs are used for capturing system events and errors, which is unrelated to the specific mechanics of Performance Counters.