nerdexam
GIAC

GSSP-NET · Question #165

Ryan works as a Software Developer for Mansoft Inc. He creates an ASP.NET Web application named MyWebApplication using Visual Studio .NET 2005. MyWebApplication performs validation on XML files in a…

The correct answer is B. The EventLog.WriteEntry method D. The EventLog.Source property. See the full explanation below for the reasoning.

Question

Ryan works as a Software Developer for Mansoft Inc. He creates an ASP.NET Web application named MyWebApplication using Visual Studio .NET 2005. MyWebApplication performs validation on XML files in a directory. Whenever a new XML file appears in the directory, MyWebApplication opens the file, checks it for validation, and updates it accordingly. Ryan wants to ensure that each update performed on XML files is logged in the Web application log. He creates a String object named Var1, to store the message to be logged. Which of the following will he use to accomplish the task? Each correct answer represents a part of the solution. Choose two.

Options

  • AThe Trace.WriteLine method
  • BThe EventLog.WriteEntry method
  • CThe EventLog.EventLogSource property
  • DThe EventLog.Source property

How the community answered

(29 responses)
  • A
    7% (2)
  • B
    83% (24)
  • C
    10% (3)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice