PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which type or types of data access are allowed?

You are configuring a ClickOnce deployment that allows users to install your application from the Internet zone under partial trust permissions. You want the application to access data that resides on the same remote server from which the application is installed. You need to add one or more types of data access that are allowed under partial trust permissions to your application.
Which type or types of data access are allowed? (Choose all that apply.)

What should you do?

You are an enterprise application developer. You are developing a smart client application. You write a method that reads a registry value. Your application runs from a partially trusted environment. The method must not throw an exception when it reads the registry value. You need to ensure that your code is authorized to read the registry key before it attempts to read the value.
What should you do?

Which configuration setting should you identify?

You create Web-based applications. The application is installed in a Network Load Balancing cluster. You are analyzing a bug report. When a failure occurs in the application, the client sometimes receives a correctly formatted friendly error page as expected. At other times, the client receives an exception stack with the error message, which is not expected. You need to identify the configuration setting that causes the unexpected response. Which configuration setting should you identify?

What should you do?

You are an enterprise application developer. You are designing an event logging mechanism for a Web-based application. The application uses Windows authentication. The application retrieves data from a Microsoft SQL Server database. The event logging mechanism must meet the following requirements: All logon and logoff events are logged.All exceptions are logged.All access to the database is logged.All application start and end events are logged. You need to ensure that all the requirements are met by using the minimum amount of coding effort. What should you do?

What change should you suggest?

You create Web-based client applications. You are reviewing a Web application page that populates a list of all employees of your company. You analyze code and find that the Web application page does not prevent exceptions from traveling to the browser. You need to ensure that the Web application page intercepts exceptions and presents an error message to the browser. What change should you suggest?

Which code segment should you use to format the columns at run time?

You are creating a Windows Form. You add a TableLayoutPanel control named pnlLayout to the form. You set the properties of pnlLayout so that it will resize with the form. You need to create a three-column layout that has fixed left and right columns. The fixed columns must each remain 50 pixels wide when the form is resized. The middle column must fill the remainder of the form width when the form is resized. You add the three columns in the designer.
Which code segment should you use to format the columns at run time?