1. Question: Which command would you use to close the application domain in the following code sample?
    Dim d As AppDomain = AppDomain.CreateDomain("New Domain")
    d.ExecuteAssemblyByName("MyAssembly")

    A
    d.DomainUnload()

    B
    d = null

    C
    d.Unload()

    D
    AppDomain.Unload(d)

    Note: Not available
    1. Report
  2. Question: How does the runtime use evidence when creating an application domain?

    A
    To determine the priority at which the process should run

    B
    To identify the author of the assembly

    C
    To determine which privileges the assembly should receive

    D
    To track the actions of the assembly for audit purposes

    Note: Not available
    1. Report
  3. Question: Which of the following code samples runs an assembly as if it were located on the Internet? (Choose all that apply.)

    A
    Dim hostEvidence As Object() = {New Zone (SecurityZone.Internet)}
    Dim e As Evidence = New Evidence (hostEvidence, Nothing)
    Dim d As AppDomain = AppDomain.CreateDomain("MyDomain", e)
    d.ExecuteAssembly("Assembly.exe")

    B
    Dim hostEvidence As Object() = {New Zone (SecurityZone.Internet)}
    Dim d As AppDomain = AppDomain.CreateDomain("MyDomain")
    Dim e As Evidence = New Evidence (hostEvidence, Nothing)
    d.Evidence = e
    d.ExecuteAssembly("Assembly.exe")

    C
    Dim myDomain As AppDomain = AppDomain.CreateDomain("MyDomain")
    myDomain.ExecuteAssembly("Assembly.exe", New Zone (SecurityZone.Internet))

    D
    Dim e As Evidence = New Evidence
    e.AddHost(New Zone (SecurityZone.Internet))
    Dim myDomain As AppDomain = AppDomain.CreateDomain("MyDomain")
    myDomain.ExecuteAssembly("Assembly.exe", e)

    Note: Not available
    1. Report
  4. Question: How can you set the base directory for an application in an application domain?

    A
    Create an instance of the AppDomain class and then set the DynamicDirectory property.

    B
     Create an instance of the AppDomain class and then set the BaseDirectory property.

    C
    Create an instance of the AppDomainSetup class and then set the DynamicBase property.

    D
    Create an instance of the AppDomainSetup class and then set the Application-Base property.

    Note: Not available
    1. Report
  5. Question: You need to notify the user if your assembly is running without the ability to use HTTP to download assemblies. How can you determine whether you have that permission?

    A
    Examine AppDomain.CurrentDomain.SetupInformation.DisallowCodeDownload

    B
    Examine AppDomain.CurrentDomain.DisallowCodeDownload

    C
    Examine AppDomain.CurrentDomain.SetupInformation.DisallowPublisher-Policy

    D
    Examine AppDomain.CurrentDomain.DisallowPublisherPolicy

    Note: Not available
    1. Report
  6. Question: Which account type should you choose to minimize security risks?

    A
    LocalService

    B
    NetworkService

    C
    LocalSystem

    D
    User

    Note: Not available
    1. Report
  7. Question: Which account type should you choose to minimize the possibility of problems caused by overly restrictive permissions on the local computer?

    A
    LocalService

    B
    NetworkService

    C
    LocalSystem

    D
    User

    Note: Not available
    1. Report
  8. Question: Which of the following are valid ways to install a service on a computer? (Choose all that apply.)

    A
    Add a shortcut to your assembly to the user’s Startup group

    B
    Use InstallUtil to install your service

    C
    Configure Scheduled Tasks to start your assembly upon startup

    D
    Use Visual Studio to create an installer for your service

    Note: Not available
    1. Report
  9. Question: Which tools can you use to change the user account for a service after the service is installed?

    A
    My Computer

    B
    Computer Management

    C
    The Net command

    D
    NET Framework Configuration tool

    Note: Not available
    1. Report
  10. Question: You need to configure a service so that it runs in the context of a specific user account. Systems administrators already have created the user account and provided you with the username and password. What should you do?

    A
    Define the Account, Username, and Password properties of the ServiceProcessInstaller class.

    B
    Define the ServiceInstaller.StartType property.

    C
    In the Services snap-in, set the Startup Type to Manual.

    D
    On the Security tab of the project properties, use the Zone to define the account settings.

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd