70-513 WCF Development with Microsoft .NET Framework 4 Exam Set 3

There is a ASP.NET Web site named PassGuideWeb. PassGuideWeb has a master page PassGuide.master. The code exhibit has code that is included for PassGuide.master. A new ASP.NET page named PassGuide1 is created. PassGuide1 has PassGuide.master as the master page. You are required to show the PassGuide.master's PGStr property in the PGDisplay Label control, which is included in the PassGuide1 page. What steps achieves this?


Options are :

  • Add code: Dim custom As PassGuideMaster = Me.Master LabelPG.Text = custom.PGStr
  • ..the page code-behind file.
  • All of the above
  • ..to the Page_load method of…

Answer : All of the above

There is an ASP.NET Web site PassGuideWS. There is an e-commerce application PassGuideApp. There is an ASP.NET page PassGuidePage. PassGuidePage handles shopping cart status. If there are no items in the cart it should not be displayed It there is at least one item then the shopping card should be displayed. How can this be achieved? Select


Options are :

  • B & C
  • Add a @Page Directive
  • Add an event handler
  • Page_PreRender

Answer : B & C

There is a ASP.NET MVC 2 Web Application named PassGuideApp. When the URL /PassGuide/{employee} is accessed the page will include information regarding this specific employee. When there is a request for an employee that is not known, the request will not be handled by the HomeController details action. How can this be ensured?


Options are :

  • Add attribute
  • Set the new attribute's Postfix property to Employee
  • .implementing interface RouteHandler.
  • Add class…

Answer : Add class…

Microsoft Windows Server 2016 Certification: Exam 70-741 Set 5

There is an ASP.NET web site PassGuideWS. The PassGuideWS root directory includes a page PGpage.aspx. PGpage.aspx must be displayed whenever there is an unhandled error. At the same time the displayed URL in the browser of the user is not changed. What action should be take?


Options are :

  • Make the following addition to the web.config file…
  • A & B

Answer : A & B

There is a ASP.NET MVC 2 Web Application named PassGuideApp. There is a control named PassGuideC.ascx. PassGuideC.ascx includes the menu bar of PassGuideApp. How can you make use of the menu bar in all applications?


Options are :

  • All of the above
  • .. <% Html.RenderPartial("~/Views/Shared/MenuBar.ascx"); %>
  • Use code….
  • ..inside a DIV element, where the ID is set to Navigation…
  • ..in the site's master page.

Answer : All of the above

There is an ASP.Net application PassGuideApp. PassGuideApp has a Vehicle class. The Vehicle class has a property Mileage. There is a web page PassGuidePage. With PassGuidePage a list of Vehicle objects are presented in a GridView control. A row in this control should be displayed with green color if the Milage is greater than 3. Which event should you use?


Options are :

  • The GridView event
  • A & B
  • RowDataBound
  • None

Answer : A & B

70-247 Configuring and Deploying a Private Cloud Exam Set 3

You are creating a Windows application by using the .NET Framework 3.5. The application is deployed by using the XCopy command. Updates to the application are made available through a Web site. The number of users of the application increases. You need to ensure that all users use the same version of the application. What should you do?


Options are :

  • Create a Microsoft Windows Installer (MSI) package for the application
  • Write a bootstrap code that ascertains the availability of a new version of the application.
  • Change the application to use the ClickOnce deployment method.
  • Run the application from a universal naming convention (UNC) path

Answer : Change the application to use the ClickOnce deployment method.

You are creating a Windows application by using the .NET Framework 3.5. The application is connected to a database named Contoso_DB on the corporate network. You need to ensure that the following requirements are met The application can modify the data when it is offline. The application can update the changes to or from the Contoso_DB database when it is online. What should you do?


Options are :

  • Use ASMX Web services to work with the required data in the Contoso_DB database. Consume the ASMX Web service from the application
  • Use ADO.NET synchronization services to create a local copy of the required data from the Contoso_DB database
  • Use Windows Communication Foundation (WCF) to create a Microsoft Message Queue Server (MSMQ) server application on the corporate network. Consume the WCF service from the application
  • Use ADO.NET data services to expose the required data from the Contoso_DB database

Answer : Use ADO.NET synchronization services to create a local copy of the required data from the Contoso_DB database

You create a Windows application by using the .NET Framework 3.5. You review the design for a Windows application that has the following features: The data layer sends and receives data updates by using Microsoft Messaging Queue (MSMQ) 4.0. Data is stored in a Microsoft SQL Server 2008 server database instance. Data from a DataSet object is displayed in a DataGrid control. The application is deployed to portable computers that can access the corporate network only when plugged on to it. The data must be most securely stored when the computer is in offline mode. You need to ensure that the portable computers can update data even when offline. What should you do?


Options are :

  • Change the data layer to use a local XML file instead of MSMQ
  • Create a Windows Communication Foundation (WCF) service to send and receive data updates from the portable computers
  • Change the data layer to use a local data cache along with Microsoft Sync Services instead of MSMQ.
  • Create an ASP.NET Web service to receive data updates from the portable computers

Answer : Change the data layer to use a local data cache along with Microsoft Sync Services instead of MSMQ.

70-513 WCF Development with Microsoft .NET Framework 4 Exam Set 3

There is a ASP.NET application named PassGuideApp. PassGuideApp has a page PassGuidePage.aspx. There is an ASP.NET skin file default.skin in a scheme. There are two asp:Button controls for Information and Contact. The Information button should have a separate style. The Contact button should use the default style. What should you do? Select all that apply. Use the minimum number of steps.


Options are :

  • Add to the default.skin file.
  • Add to the default.skin file.
  • Add to the ASP.NET page.
  • Add to the default.skin file.

Answer : Add to the default.skin file.

You create a Windows application by using the .NET Framework 3.5. You plan to evaluate an application design that contains the following specifications: Common dialog controls are used to browse through files and folders. Files are saved by using the StreamWriter object. When the Save button is clicked, a MessageBox control displays a message. The message warns the user about the requirement for elevated rights. You need to ensure that the application meets the following requirements: It works compatibly on Microsoft Windows XP and Windows Vista operating systems. It follows Windows Vista User Experience guidelines. It is able to save a physical file outside the application folder when the Save button is clicked. What change in design should you recommend?


Options are :

  • Use the isolated storage mechanism to store the file.
  • Display the SystemIcons.Shield icon next to the Save button and remove the MessageBox control.
  • Write a Windows service that exposes a remoting object to save the file, and then run the service under the LocalSystem account
  • Enable the user to execute the application as an administrator

Answer : Display the SystemIcons.Shield icon next to the Save button and remove the MessageBox control.

There is a project with ASP.NET server controls. There is a base class EuropeClass and two subclasses SpainClass and ItalyClass. All three have specific client JavaScript code. The code has functions used to create HTML elements for the controls. Each of these JavaScript code in an ASP.NET page must only be included once in the generated HTML page (note that the page can use multiple copies of these controls). What should be done?


Options are :

  • ..put the code into file Page_Update method of each Control.
  • Use code Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "script", PassGuideScript);
  • Use code Page.ClientScript.RegisterStartupScript(typeof(PASSGUIDECLASS), "script", PassGuideScript);
  • Use code Page.ClientScript.RegisterClientScriptBlock(typeof(PASSGUIDECLASS), "script", PassGuideScript);

Answer : Use code Page.ClientScript.RegisterClientScriptBlock(typeof(PASSGUIDECLASS), "script", PassGuideScript);

Microsoft 70-647 Windows Enterprise Administrator Exam Set 5

You are creating a Windows application by using the .NET Framework 3.5. The application will be deployed by using the ClickOnce deployment. The application must support offline use. The application must also have minimum dependency on external components. You need to choose the most secure data storage tool for your application. Which data storage tool should you use?


Options are :

  • Microsoft Office Access 2007 database
  • Microsoft SQL Server 2008 Express Edition database
  • XML file
  • Microsoft SQL Server 2008 Compact Edition database

Answer : Microsoft SQL Server 2008 Compact Edition database

You have developed a console application by using the Microsoft .NET Framework 1.1. The console application uses a set of assemblies for the business logic and the data layer. You plan to convert the console application to a Windows Forms application. You need to design a conversion strategy by using minimum amount of time and development effort. What should you do?


Options are :

  • Retain the business logic and the data layer assemblies as the .NET Framework 1.1 assemblies. Convert the console application to Windows Forms.
  • Upgrade the business logic and the data layer assemblies to the .NET Framework 3.5. Convert the console application to Windows Forms.
  • Convert the console application to the .NET Framework 3.5 by using the conversion wizard of Microsoft Visual Studio .NET 2008.
  • Convert the console application and all the data layer assemblies to the .NET Framework 3.5.

Answer : Retain the business logic and the data layer assemblies as the .NET Framework 1.1 assemblies. Convert the console application to Windows Forms.

You are creating a Windows application by using the .NET Framework 3.5. The application creates lookup fields by using data from a database within the corporate network. You use the DataAdapter object to retrieve data as a DataSet from the database. You need to reduce the network bandwidth that is used by the application. What should you do?


Options are :

  • Create a local database cache in the application by using a Microsoft SQL Server 2008 Compact 3.5 database.
  • Use a DataReader object instead of the DataAdapter object to retrieve data.
  • Use a LINQ to SQL query to retrieve data. Defer loading the data until required
  • Create a Windows Communication Foundation (WCF) service to return the data. Use the service from the application.

Answer : Create a local database cache in the application by using a Microsoft SQL Server 2008 Compact 3.5 database.

Microsoft 70-642 Windows Server Network Infrastructure Exam Set 7

You plan to create a Windows application by using the .NET Framework 3.5. The Windows application must use a proprietary protocol to connect to a Windows Communication Foundation (WCF) service. The application persists data to a Microsoft SQL Server 2008 database by using the WCF service. You need to analyze the feasibility of creating the application. Which proof of concept should you create?


Options are :

  • A Windows application that connects to a WCF service by using the proprietary protocol
  • A Windows application that connects directly to a SQL Server 2008 database
  • A Windows application that connects to a WCF service by using HTTP
  • A Windows application that connects to a WCF service by using HTTP and persists data to a SQL Server database

Answer : A Windows application that connects to a WCF service by using the proprietary protocol

There is an ASP.NET Web site PassGuideWS. There is an ASP.NET Web Application PassGuideApp. A new server is added to the web farm. Now clients are reporting that they intermittently receive invalid view state error messages. How can this problem be resolved?


Options are :

  • Make sure that the Global.aspx viewStateEncryptionMode is Auto on all the web servers.
  • Make sure that the web.config viewStateEncryptionMode is Auto on all the web servers.
  • Make sure machine.config machineKey is the same on all the web servers.
  • Make sure that session state mode is SQL Server on all the web servers

Answer : Make sure machine.config machineKey is the same on all the web servers.

There is a ASP.NET Web site named PassGuideWeb. PassGuideWeb has a master page PassGuide.master. The code exhibit has code that is included for PassGuide.master. A new ASP.NET page named PassGuide1 is created. PassGuide1 has PassGuide.master as the master page. You are required to show the PassGuide.master's PGStr property in the PGDisplay Label control, which is included in the PassGuide1 page. What steps achieves this?


Options are :

  • the page code-behind file.
  • All of the above
  • ..to the Page_load method of…
  • Add code: PassGuideMaster custom = this.Master as PassGuideMaster; LabelPG.Text = custom.PGStr

Answer : All of the above

Microsoft 98-367 & 98-368 Certification Practical Exam Set 3

There is a WCF service library PassGuideWCF. A related code file is displayed in the exhibit. PassGuideWCF is built and the assembly is deployed to an IIS application. The GetBestEvaluation method must be called from JavaScript. How can this be achieved?


Options are :

  • Service.svc.
  • Add code..
  • <%@ ServiceHost Service="PassGuideWCF.PGService" Factory="System.ServiceModel.Activation.WebScriptServiceHostFactory" %> to file…
  • All of the above

Answer : All of the above

There is a project with ASP.NET server controls. There is a base class EuropeClass and two subclasses SpainClass and ItalyClass. All three have specific client JavaScript code. The code has functions used to create HTML elements for the controls. Each of these JavaScript code in an ASP.NET page must only be included once in the generated HTML page (note that the page can use multiple copies of these controls). What should be done?


Options are :

  • ..put the code into file Page_Load method of each Control.
  • Use code Page.ClientScript.RegisterClientScriptBlock(GetType(PASSGUIDECLASS), "script", PassGuideScript)
  • ..put the code into file Page_Refresh method of each Control.
  • A & B

Answer : A & B

There is an ASP.NET application PassGuideApp. There is an IIS server PassGuideSrv. PassGuideApp is deployed on PassGuideServ. All health-monitoring events that have an error severity level must be put in the Windows event log. What steps do you need to take?


Options are :

  • Add rule…
  • ..in section of the web.config file.
  • All of the above

Answer : All of the above

70-247 Configuring and Deploying a Private Cloud Exam Set 4

Which of the following determines whether an existing instance of the service class (the service instance) can process the request?


Options are :

  • WCF
  • SSP
  • Data contract
  • Event throttling

Answer : WCF

There is an ASP.NET Web site PassGuideWS There is an ASP.NET page PassGuidePage.aspx. PassGuidePage.aspx has several validation controls. When a user hits the submit button on the Page the input values need to be validated. What action do you need to take?


Options are :

  • Use the Page.IsValid Property
  • Use the Page.IsInValid Property.
  • Add an event handler to the page event Load.
  • A & B

Answer : A & B

You are creating a Windows application by using the .NET Framework 3.5. The application will retrieve and save data that is located on the network. The application will be deployed to client computers that retrieve and save data from a shared location. You need to ensure reliable storage of data. Which data storage mechanism should you use?


Options are :

  • Microsoft SQL Server 2008 Express Edition database within the network
  • Microsoft Office Access 2007 database on a network file share
  • Microsoft SQL Server 2008 Compact Edition database on a network file share
  • XML file in a network file share

Answer : Microsoft SQL Server 2008 Express Edition database within the network

70-642 Windows Server 2008 Network Infrastructure Exam Set 4

There is an ASP.NET Web site PassGuideWS. There is an ASP.NET Web application PassGuideApp. There is an ASP.NET page PassGuidePage. Controls are added to PassGuidePage dynamically through the event handler Page_Load. There is a table on the SQLServer named PGTable. The fields of PGTable are displayed on PassGuidePage through text boxes. Every text box will have a label which shows the name of the appropriate field in the table. You need to ensure that when a client clicks such a label the appropriate text box is selected for input. What do you need to do for each column?


Options are :

  • ..and set the AssociatedControlID to the ID of the related asp:Textbox control
  • A & B
  • ..and set the AssociatedControlID to the AssociatedID of the related asp:Textbox control.
  • Add a control asp:Label …

Answer : A & B

You are creating a Windows application by using the .NET Framework 3.5. The application retrieves individual product details from a database within the network. The product details frequently change. The product details available to the application can be up to one hour old. The details of a single product can be retrieved multiple times during a single execution of the application. You need to design a caching strategy that uses the minimum amount of network bandwidth. What should you do?


Options are :

  • Cache all product details in the memory. Retrieve the product details from the cache. Refresh the cache every hour.
  • Retrieve the product details from the cache if they are available in the cache. Retrieve the product details from the database if they are unavailable in the cache. Then, add the product details to the cache. Refresh the cache every hour.
  • Retrieve the product details from the cache if they are available in the cache. Retrieve the product details from the database if they are unavailable in the cache. Then, add the product details to the cache by setting an individual time-out for each product details set. Remove the product details from the cache on time-out.
  • Cache all product details in the memory. Retrieve the product details from the cache. Remove the product details from the cache every hour.

Answer : Retrieve the product details from the cache if they are available in the cache. Retrieve the product details from the database if they are unavailable in the cache. Then, add the product details to the cache by setting an individual time-out for each product details set. Remove the product details from the cache on time-out.

You create a Windows application by using the .NET Framework 3.5. The application will connect to a Microsoft SQL Server 2008 database on the network. You are creating the data access layer for the application. The database schema will change regularly. You need to ensure that the schema changes can be applied with minimum possible development effort. Which data access technology should you use?


Options are :

  • The typed DataSet and DataAdapter objects
  • The LINQ to SQL model
  • The ADO.NET Entity Framework model
  • The DataReader and SqlCommand objects

Answer : The ADO.NET Entity Framework model

Microsoft 70-642 Windows Server Network Infrastructure Exam Set 6

You are creating a Windows application by using the .NET Framework 3.5. The application must import data from a legacy database. A comma-delimited text file that has 10,000 rows of data is exported from the database frequently. The data is displayed and processed by the Windows application. The text file is not trusted and can contain invalid data. The application database must store valid data. You need to create a strategy to optimally validate and process the application data. What should you do?


Options are :

  • Use bulk import to import data daily to temporary tables. Validate the data and merge the temporary tables with production tables. Connect to the production tables to retrieve data
  • Use bulk import to import data daily to the production tables. Connect to the production tables. Validate the data before you retrieve it.
  • Create OLEDB connections to directly access the text file. Validate the data before you retrieve it.
  • Use OLEDB connection to directly access the text file. Load the data into a dataset. Validate the data in the dataset before you display it.

Answer : Use bulk import to import data daily to temporary tables. Validate the data and merge the temporary tables with production tables. Connect to the production tables to retrieve data

There is an ASP.NET web site PassGuideWS. The PassGuideWS root directory includes a page PGpage.aspx. PGpage.aspx must be displayed whenever there is an unhandled error. At the same time the displayed URL in the browser of the user is not changed. What action should be take?


Options are :

  • Make the following addition to the web.config file…
  • A & B
  • void Application_Error(object sender, EventArgs e) { Response.Redirect("~/PGpage.aspx"); } I. void Page_Error(object sender, EventArgs e) { Server.Transfer("~/PGpage.aspx"); }

Answer : A & B

You create a Windows application by using the .NET Framework 3.5. You plan to test the application by using 5,000 records in a limited test environment. The application will process 1 million records in a production environment. You need to test the application to identify potential problems that might occur when the application is moved to the production environment. Which two actions should you perform?


Options are :

  • Test the collection type usage
  • Test the language resource files
  • Test the thread pool usage
  • A & B

Answer : A & B

70-647 Pro Windows Server 2008 Enterprise Administrator Exam Set 5

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions