nerdexam
GIAC

GSSP-NET · Question #276

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You are deploying a class library using the .NET Framework. Portions of…

The correct answer is B. Demand(). See the full explanation below for the reasoning.

Question

You work as a Software Developer for ABC Inc. The company uses Visual Studio.NET 2005 as its application development platform. You are deploying a class library using the .NET Framework. Portions of your code need to access system environment variables. You need to force a runtime security exception only when the callers that are higher in the call stack do not have necessary permissions to access the resources. Which of the following methods will you use to accomplish the task?

Options

  • APermitOnly()
  • BDemand()
  • CAssert()
  • DDeny()

How the community answered

(38 responses)
  • A
    5% (2)
  • B
    82% (31)
  • C
    11% (4)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full GSSP-NET Practice