Q71. HOTSPOT - (Topic 4) 

You are developing an ASP.NET MVC application. The layout page of the application references the jQuery library. You develop a view that uses the layout page. The view includes the following markup: 

The application includes the following class: 

When a user clicks the button, an AJAX call must retrieve the partial view and append it to the newBooks div element. 

You need to implement the AJAX request. 

How should you complete the relevant code? To answer, select the appropriate code segment from each list in the answer area. 

Answer: 


Q72. - (Topic 4) 

You are designing an HTML5 website. 

You need to design the interface such that the content is viewable in all types of browsers, including screen readers. 

What should you do? (Each correct answer presents a complete solution. Choose all that apply.) 

A. Ensure that content elements have valid and descriptive names. 

B. Use Resource Description Framework (RDF) to describe content elements. 

C. Convert HTML forms to XForms. 

D. Use HTML5 semantic markup elements. 

E. Annotate content elements with Accessible Rich Internet Application (ARIA) attributes. 

Answer: D,E 


Q73. - (Topic 2) 

You are designing a Windows Communication Foundation (WCF) service that uses the Product class. 

You need to update the class to meet the storage requirement. 

What should you do? (Each correct answer presents part of the solution. Choose all that apply.) 

A. Mark the Product class with the DataContract attribute. 

B. Mark the public members of the Product class with the DataContractFormat attribute. 

C. Mark the Product class with the CollectionDataContract attribute. 

D. Mark the public members of the Product class with the DataMember attribute. 

Answer: A,D 

Explanation: So as of .NET 3.5 SP1, you don't have to add data contract or data member 

attributes anymore - if you don't then the data contract serializer will serialize all public 

properties on your class, just like the XML serializer would. 

HOWEVER: by not adding those attributes, you lose a lot of useful capabilities: 

. without [DataContract], you cannot define an XML namespace for your data to live 

in . without [DataMember], you cannot serialize non-public properties or fields . without [DataMember], you cannot define an order of serialization (Order=) and the 

DCS will serialize all properties alphabetically . without [DataMember], you cannot define a different name for your property (Name=) . without [DataMember], you cannot define things like IsRequired= or other useful attributes . without [DataMember], you cannot leave out certain public properties - all public properties will be serialized by the DCS 


Q74. HOTSPOT - (Topic 4) 

You are optimizing an Internet-facing website for search engine optimization. 

You are reading a Site Analysis Report from the SEO Toolkit. The report returns warnings that indicate the website HTML lacks key information necessary for search engine indexing. 

You need to improve the optimization of the site. 

What should you do? (To answer, select the appropriate option from the drop-down list in the answer area.) 

Answer: 


Q75. - (Topic 2) 

You need to implement the business requirements for managing customer data. 

What should you do? (Each correct answer presents part of the solution. Choose all that apply.) 

A. Add a class named Customer-Controller to the Controllers folder. Then add a method named Edit to the class. 

B. Create a new controller named Administration in the Controllers folder. Add an action named EditCustomer to the controller. 

C. Add a folder named Customer to the Views folder. Then create a view inside this folder named Edit.aspx. 

D. Create a new folder named EditCustomer to the Views folder. In the new folder, create a new file named Administration.aspx. 

Answer: A,B 


Q76. - (Topic 4) 

You are developing an ASP.NET MVC application to be used on the Internet. The environment uses Active Directory with delegation to access secure resources. 

Users must be able to log on to the application to maintain their personal preferences. 

You need to use the least amount of development effort to enable users to log on. 

What should you do? 

A. Enable Forms authentication 

B. Enable Windows authentication 

C. Generate server SSL certificates and install them in IIS 

D. Enable Digest authentication 

Answer:

Explanation: Requirements for Delegation 

Delegation relies on Integrated Windows authentication to access resources. There is no limit on the number of computers that you can delegate your account -- you must correctly configure each of them. The Integrated Windows authentication method works only if the following two conditions exist: / You set up your network to use the Kerberos authentication protocol that requires Active Directory. / You set up the computers and accounts on your network as trusted for delegation. 


Q77. - (Topic 4) 

You are developing an ASP.NET MVC application by using Visual Studio 2012. 

The application throws and handles exceptions when it runs. 

You need to examine the state of the application when exceptions are thrown. 

What should you do? 

A. From the Debug menu in Visual Studio 2012, select Exceptions. Enable the Thrown check box for Common Language Runtime Exceptions. 

B. From the DEBUG menu in Visual Studio 2012, select Attach to Process. Select the IIS process. 

C. From the Debug menu in Visual Studio 2012, select Exceptions. Disable the User-unhandled check box for Common Language Runtime Exceptions. 

D. From the TOOLS menu in Visual Studio 2012, click Customize. C!ic< tie Commands tab and select Debug. 

Answer:


Q78. DRAG DROP - (Topic 4) 

You are developing an ASP.NET web application that uses health monitoring to log events to the Windows Event Log. The application contains a custom event that is defined in the following code segment. Line numbers are included for reference only. 

You need to ensure that the event is correctly added to the Windows event log. 

How should you complete the relevant code? To answer, drag the appropriate code segment to the correct location or locations. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. 

Answer: 


Q79. DRAG DROP - (Topic 4) 

You are developing an ASP.NET MVC web application that requires HTML elements to take on new behaviors. These should be implemented with a behavior script in a page that is only for Microsoft Internet Explorer users. 

The colorchange.js script uses the Microsoft CSS vendor-specific Behavior extension. You need to apply the script with CSS. 

You need to use the script to change the color of text. 

You have the following markup: 

Which styles should you include in Target 1 and Target 2 to complete the markup? (To answer, drag the appropriate styles to the correct targets. Each style may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.) 

Answer: 


Q80. - (Topic 4) 

You are designing an enterprise-level Windows Communication Foundation (WCF) application. User accounts will migrate from the existing system. The new system must be able to scale to accommodate the increasing load. 

The new servers are experiencing significant stress under load of large-scale role changes. 

You need to ensure that the application can handle the stress. 

Which authorizations should you redesign? (Each correct answer presents a complete solution. Choose all that apply.) 

A. Role-based approach 

B. Identity-based approach 

C. Resource-based trusted subsystem model 

D. Resource-based impersonation/delegation model 

Answer: A,C