nerdexam
GIAC

GSSP-NET · Question #93

You work as an Enterprise Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a logging utility class using .NET Framework…

The correct answer is D. Use code access security on the class. See the full explanation below for the reasoning.

Question

You work as an Enterprise Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a logging utility class using .NET Framework 3.5. The utility class writes logs to event log services. You are required to ensure that the client applications that use the utility class can create an instance of the utility class only if they have access rights to write to the event log services. What will you do?

Options

  • AUse role based security in the class constructor.
  • BUse declarative security check on the assembly.
  • CUse role based security on the class.
  • DUse code access security on the class.

How the community answered

(48 responses)
  • A
    10% (5)
  • B
    2% (1)
  • C
    6% (3)
  • D
    81% (39)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice