PrepAway - Latest Free Exam Questions & Answers

Tag: 70-536

Which code segment should you use?

You write the following custom exception class named CustomException.
public class CustomException : ApplicationException
{
public static int COR_E_ARGUMENT = unchecked((int)0x80070057);
public CustomException(string msg) : base(msg)
{
HResult = COR_E_ARGUMENT;
}
}
You need to write a code segment that will use the CustomException class to immediately return control to the COM caller. You also need to ensure that the caller has access to the error code. Which code segment should you use?

Which code segment should you use?

You are creating an application that retrieves values from a custom section of the application configuration file. The custom section uses XML as shown in the following block.

You need to write a code segment to define a class named Role. You need to ensure that the Role class is initialized with values that are retrieved from the custom section of the configuration file. Which code segment should you use?

Which permission class should you use?

You work as a developer at Company.com. You are creating an assembly named Company1. Company1 contains a public method. The global cache contains a second assembly named Company2.
You must ensure that the public method is only called from Company2.
Which permission class should you use?

You have added the following class to the Windows service application…

You have been given the task of developing a Windows service application that regularly monitors other Windows services on the same computer.
This Windows service application must also log any abnormal file system activity. You have added the following class to the Windows service application:
public class EnumerateService : ServiceBase {
public static EnumerateService () {
this.ServiceName = “Enumerate Service”;
this.CanStop = true;
}

How would you do this?

You are in the process of creating an application that will display confidential employee information.
When your manager informs you that only managers and administrators should be able to view the information,
you utilize windows authentication and .NET role-based security to guarantee this.
The network administrator in your department informs you that he has noticed that there are certain users
that are not managers or administrators are able to view the employee information.
You immediately analyze your code, and discover an issue with domain group memberships.
The network administrator asks you to trace the user account and security identifier (SID) of each user in the application
so that he can use this information to detect users across the enterprise and verify that their group memberships are correct.
How would you do this?

What code should you use to achieve this objective?

A fellow developer named Andy Booth has recently created an application.
The application receives confidential transaction data from Domain.com’s clients, which it secures using the TripleDESCryptoServiceProvider class.
You are currently reviewing this application, and need to decrypt a byte array of cipher text.
What code should you use to achieve this objective?

What code would you use to complete your task?

Domain.com has been contracted by the local hospital to create an application that forwards private
patient information to various insurance providers.
The patient information is sent via a secured VPN to ensure confidentiality.
You also need to guarantee data integrity, and verify that the patient data originated from the local hospital.
To achieve this objective, you elect to utilize asymmetric encryption and a digital signature technology.
What code would you use to complete your task?


Page 12 of 23« First...1011121314...20...Last »