logo

CuriousTab

CuriousTab

Discussion


Home Certification Microsoft Certification See What Others Are Saying!
  • Question
  • You create an assembly by using Visual Studio .NET. The assembly is responsible for writing and reading order entry information to and from an XML data file. The assembly also writes and reads values to and from the Windows registry while it is being consumed. The assembly will be distributed to client computers by using your company, XYZ, intranet. All client computers are configured to implement the default .NET security policy. You need to implement security in the assembly. What should you do?


  • Options
  • A. Implement declarative security and execute the permission demand to allow access to the file system and Windows registry.
  • B. Implement declarative security and execute the minimum permission request to allow access to the file system and Windows registry.
  • C. Implement imperative security and execute the permission demand to allow access to the file system and Windows registry.
  • D. Implement imperative security and execute the minimum permission request to allow access to the file system and Windows registry.

  • Correct Answer
  • Implement declarative security and execute the minimum permission request to allow access to the file system and Windows registry. 

    Explanation

    You can use declarative code access security to request permissions for the entire assembly. SecurityAction flags that can be specified in an assembly-wide directive. When SecurityAction.RequestMinimum is specified, it makes a request to the common language runtime to be granted the requested permission. If the requested permission is not granted by the security policy, the assembly will not execute. A  Security Action.RequestOptional is similar, but the assembly will still run even if the requested permission is not granted. Specifying security Action. RequestRefuse requests that the assembly be denied the specified permission.

     

    You must use the Assembly (assembly) directive when specifying these actions as follows: 

     

    Option A:

    There are only three Security actionAttributes targets for an assembly: RequestMinimumAssembly, RequestOptionalAssembly, and RequestRefuseAssembly. 

     

     Option C, D:

    Imperative security does not work well to configure security for an entire assembly. In imperative security, permission to execute is demanded at run time.


  • More questions

    • 1. Executing Process Group What are the Project Management Processes included in the Executing Process Group?
    • Discuss
    • 2. Monitoring and Controlling Process Group What are the Project Management Processes included in Monitoring and Controlling Process Group?
    • Discuss
    • 3. Clossing Process Group What are the Project Management Processes included in Closing Process Group?
    • Discuss
    • 4. Project Scope Management What are the Project Management Processes included in the Project Scope Management?
    • Discuss
    • 5. Project Scope Management - Processes Describe the Inputs, Tools and Techniques , Outputs included in the Create WBS ?
    • Discuss
    • 6. Project Time Management - Processes Describe the Inputs, Tools and Techniques, Outputs of Activity Duration Estimating ?
    • Discuss
    • 7. Project Cost Management - Processes Describe the Inputs, Tools and Techniques , Outputs included in the Cost Estimating ?
    • Discuss
    • 8. Project Cost Management - Processes Describe the Inputs, Tools and Techniques , Outputs included in the Cost Budgeting ?
    • Discuss
    • 9. Project Human Resource Management - Processes Describe the Inputs, Tools and Techniques , Outputs included in the Human Resource Planning?
    • Discuss
    • 10. Project Procurement Management - Processes Describe the Inputs, Tools and Techniques , Outputs included in the Contract Closure?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment