Q1. - (Topic 4)
You are designing a data-oriented application that features a variety of storage schemas. The application object model must be mapped to the various storage schemas.
You need to enable developers to manipulate the data.
Which ADO.NET data access strategy should you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. LINQ to SQL
B. Entity Framework
C. DataAdapter
D. DataReader
Answer: A,B,C
Q2. - (Topic 4)
You are designing a distributed application that runs on the Windows Azure platform.
The application must store a small amount of insecure global information that does not change frequently.
You need to configure the application to meet the requirements.
Which server-side state management option should you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. Windows Azure application state
B. SQL Azure
C. Profile properties of the Windows Azure application
D. Windows Azure session state
Answer: B,D
Explanation: SQL Database provides a relational database management system for Windows Azure and is based on SQL Server technology. With a SQL Database instance, you can easily provision and deploy relational database solutions to the cloud, and take advantage of a distributed data center that provides enterprise-class availability, scalability, and security with the benefits of built-in data protection and self-healing.
Session States in Windows Azure.
If you are a Web developer, you are probably very familiar with managing user state - that is you are familiar with tracking user activity and actions across several request-response exchanges that occur in Web applications. Since HTTP is a stateless protocol, developers over the years have developed all sorts of means to manage state. You'll even find an MSDN page providing alternatives and recommendations for state management here. Cookies, hidden fields, and query strings are some client-side options to tracking user state. When it comes to managing that state on the server-side, most Web developers rely on session objects.
Q3. HOTSPOT - (Topic 4)
You are using the features of the IIS SEO Toolkit to configure the website. You need to exclude search engines from indexing parts of website.
What should you do? (To answer, select the appropriate option from the drop-down list in the answer area.)
Answer:
Q4. - (Topic 4)
You are developing an ASP.NET MVC application.
You need to authenticate clients by using NT LAN Manager (NTLM).
Which authentication method should you implement?
A. Basic
B. Windows
C. Forms
D. Kerberos
Answer: B
Explanation: http://msdn.microsoft.com/en-us/library/aa292114(v=vs.71).aspx
Q5. - (Topic 4)
You are designing a localized ASP.NET MVC online shopping application that will be deployed to customers in the United States, China, France, and Brazil. The application must support multiple cultures so that content in the appropriate language is available in each area.
You need to ensure that the content can be viewed in several languages.
How should you implement this feature?
A. Use a resource (.resx) file to provide translations.
B. Use Systems.Collections.Generics.Dictionary to store alternative translations.
C. Ensure that all strings are marked internal to avoid conflict with internal literals.
D. Include language-specific content in the assembly manifest and use .NET culture libraries.
Answer: A
Explanation: A resource file is an XML file that contains the strings that you want to translate into different languages or paths to images. The resource file contains key/value pairs. Each pair is an individual resource. Key names are not case sensitive. For example, a resource file might contain a resource with the key Button1 and the value Submit. You create a separate resource file for each language (for example, English and French) or for a language and culture (for example English [U.K.], English [U.S.]). Each localized resource file has the same key/value pairs; the only difference is that a localized resource file can contain fewer resources than the default resource file. The built-in language fallback process then handles loading the neutral or default resource.
Reference: SP.NET Web Page Resources Overview
Q6. - (Topic 4)
You are designing a distributed application.
The application must store a small amount of insecure global information that does not change frequently.
You need to configure the application to meet the requirements.
Which server-side state management option should you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. Application state
B. Session state
C. Database support
D. Profile properties
Answer: A,C
Q7. - (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
Q8. - (Topic 3)
The transcode.exe utility activates its license online when it is installed.
You need to ensure that the registration of the transcode utility is handled as specified in its
license.
Which method should you add to the TranscodeWorkerRole class?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Q9. DRAG DROP - (Topic 4)
You are developing an ASP.NET MVC application that authenticates a user by using claims-based authentication.
The application must:
. Use Windows Identity Foundation 4.5.
. Support the Windows Azure Access Control Service.
You need to implement authentication.
How should you build the class constructor? (To answer, drag the appropriate code segment to the correct location or locations in the answer area. 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:
Q10. - (Topic 3)
You need to ensure that all the MVC controllers are secure.
Which code segment should you use as the body for the CreateController method in AdminVerifierFactory.cs?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Q11. 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:
Q12. - (Topic 4)
You are designing a distributed application that runs on the Microsoft Azure platform.
The application must store a small amount of insecure global information for all users that
does not change frequently.
You need to configure the application to meet the requirements.
Which server-side state management option should you use? Each correct answer presents a complete solution. Choose all that apply.
A. profile properties of the Microsoft Azure application
B. Microsoft Azure session state
C. SQL Database
D. Microsoft Azure application state
Answer: A
Explanation: In many applications, you want to store and use information that is unique to a user. When a user visits your site, you can use the information you have stored to present the user with a personalized version of your Web application. Personalizing an application requires a number of elements: you must store the information using a unique user identifier, be able to recognize users when they visit again, and then fetch the user information as needed. To simplify your applications, you can use the ASP.NET profile feature, which can perform all of these tasks for you.
Q13. - (Topic 4)
You are developing an ASP.NET MVC application.
You need to authenticate clients by using an ASP.NET membership database.
Which authentication method should you implement?
A. Kerberos
B. Forms
C. Basic
D. Windows
Answer: B
Q14. HOTSPOT - (Topic 4)
You develop an ASP.NET MVC application. The application includes a feature that allows users to reset their passwords. The feature is enabled by a ForgotPassword controller method and a corresponding Razor view.
You need to prevent Cross-Site Request Forgery (CSRF) attacks.
How should you complete the relevant code? To answer, select the appropriate code segment from each list in the answer area.
Answer:
Q15. - (Topic 2)
You need to configure session storage in the web.config file to meet the technical requirements for scalability.
Which SessionState mode should you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. StateServer
B. InProc
C. AutoDetect
D. SqlServer
Answer: A,D
Q16. - (Topic 4)
You are designing a distributed banking application that handles multiple customers. A user may log on to the site to perform activities such as checking balances, performing transactions, and other activities that must be done securely.
The application must store secure information that is specific to an individual user. The data must be automatically and securely purged when the user logs off.
You need to save transient information in a secure data store.
Which data store should you use?
A. NET session state
B. NET profile properties
C. NET application state
D. Shared database
Answer: A