Q1. You are developing an ASP.NET MVC application that will be deployed on a web farm.
Passwords must be stored in the web.config file and must not be readable or in a format that is easily decodable.
You need to encrypt the passwords that are stored in the web.config file. Which command-line tool should you use?
A. Aspnet_regiis.exe
B. Aspnet_regbrowsers.exe
C. Aspnet_setreg.exe
D. Aspnet_compiler.exe
Answer: A
Q2. HOTSPOT
You implement eDiscovery in SharePoint to access Exchange Online mailbox data.
You need to ensure that users continue to have access to Exchange Online mailbox data after an In-Place Hold is applied.
On the Exchange admin center page, which option should you select? (To answer, select the appropriate option in the answer area.)
Answer:
Q3. You need to ensure that end users can access the project's external content type and model by using the provided naming specifications.
Which properties in the external content-type editor must you set when you create the external content type in SharePoint Designer? (Each correct answer presents part of the solution. Choose all that apply.)
A. Set the value of the Display Name property to Project.
B. Set the value of the Namespace property to http://adventureworks/sites/portal.
C. Set the value of the Namespace property to proj_info.
D. Set the value of the Name property to proj_info.
E. Set the value of the Display Name property to proj_info.
F. Set the value of the Name property to Project.
Answer: C,E
Explanation: From scenario:
/ (C) The Project external content type must use the root namespace proj_info.
/ E:
C:\Documents and Settings\usernwz1\Desktop\1.JPG
Q4. 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
Q5. DRAG DROP
You develop a provider-hosted SharePoint app that retrieves and displays weather information from an external site. The site contains lists of temperatures for different cities.
You need to create a Representational State Transfer (REST) endpoint URL in the app to retrieve hourly temperatures for a specific city from the site.
How should you complete the relevant code? (To answer, drag the appropriate term to the correct location or locations in the answer area. Each term 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:
Q6. DRAG DROP
You need to make updates when an agent saves information about a new office.
How should you complete the relevant code? (To answer, drag the appropriate code segment to the correct location or location 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:
Q7. HOTSPOT
You have a SharePoint site with one site collection and several subwebs. You develop a feature that installs an event receiver on a list. The event receiver must send a notification by email when information is modified. Not all subwebs require this functionality.
You need to set the feature scope.
From the Add New Feature dialog window, which scope should you use? (To answer, select the appropriate scope in the answer area.)
Answer:
Q8. You need to configure search engine optimization for the site collection.
On the Search Engine Optimization Settings page, what should you do? (Each correct answer presents part of the solution. Choose all that apply.)
A. Select the Do not filter link parameters option.
B. In the Filter link parameters text box, enter agentName&officeId&certs
C. In the Filter link parameters text box, enter agentName;officeId
D. In the Filter link parameters text box, enter agentName&officeId
E. Select the Filter link parameters option.
F. In the Filter link parameters text box, enter agentName;officeId;certs
Answer: B,E
Explanation: * From scenario:
The search engine must recognize that the following URLs display the same information about the same agent: http://www.contoso.com/FindAnAgent?agentName=JohnDoe&officeId=Sacramento http://www.contoso.com/FindAnAgent?agentName=JohnDoe&officeId = Sacramento8icerts=true
Q9. You are developing an ASP.NET MVC application in Visual Studio 2012. The application supports multiple cultures.
The application contains three resource files in the Resources directory:
✑ ProductDictionary.resx
✑ ProductDictionary.es.resx
✑ ProductDictionary.fr.resx
Each file contains a public resource named Currency with the localized currency symbol. The application is configured to set the culture based on the client browser settings.
The application contains a controller with the action defined in the following code segment. (Line numbers are included for reference only.)
You need to set ViewBag.LocalizedCurrency to the localized currency contained in the resource files.
Which code segment should you add to the action at line 03?
A. ViewBag.LocaIizedCurrency = Resources.ProductDictionary.Currency;
B. VievBag.LocalizedCurrency = HttpContext.GetGlobalResourceObject("ProductDictionary", "Currency", new System.Globalization.CultureInfo(Men"));
C. VievBag.LocalizedCurrency = HttpContext.GetLocalResourceObject("ProductDictionary", "Currency");
D. ViewBag.LocalizedCurrency = HttpContext.GetGlobalResourceObject("ProductDictionary", "Currency");
Answer: A
Q10. 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,C
Q11. You have a custom Web Part that retrieves data across multiple task lists. Pages that contain the Web Part load slowly.
You need to ensure that pages load as quickly as possible.
Which methods should you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. CrossListQueryCache.GetSiteData(SPContext.Current.Site, siteUrl)
B. CrossListQueryCache.GetSiteData(SPContext.Current.Site)
C. Cache.Get(siteUrl)
D. SPList.GetItems(spQuery)
Answer: A,C
Explanation: A: GetSiteData method (SPSite, String)
Gets the cache data from the specified site and from the specified webUrl. C: Cache.Get Method
Retrieves the specified item from the Cache object.
Q12. You are developing an ASP.NET MVC application that will be deployed on a web farm.
Passwords must be stored in the web.config file and must not be readable or in a format that is easily decodable
You need to encrypt the passwords that are stored in the web.config file. Which command-line tool should you use?
A. Aspnet_regiis.exe
B. Ngen.exe
C. Aspnet_merge.exe
D. EdmGen.exe
Answer: A
Explanation: http://msdn.microsoft.com/en-us/library/zhhddkxy(v=vs.100).aspx
Q13. DRAG DROP
You create a new Enterprise Content Management (ECM) project.
You add a content type to the Visual Studio Project by using the Content Type Designer in Visual Studio 2012.
What will the designer-generated XML look like? (To answer, drag the appropriate XML elements to the correct location or locations in the answer area. Each XML element 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:
Q14. Contoso uses a SharePoint site that contains subsites. Each subsite represents different projects. Each project site is based on a team site template and stores information and documents. Contoso has five teams: Manufacturing, Sales, Administration, Marketing, and IT.
You must create a different look and feel for each team site such that any visitor to the site can identify the team by looking at the colors, fonts, and background of the site.
You need to create a different look and feel for each team.
What should you do? (Each correct answer presents part of the complete solution. Choose all that apply.)
A. Open Contoso Corporate Microsoft PowerPoint Slides Template, save the template as ContosoCorporate.master, and then upload it to the Theme Gallery.
B. From SharePoint Designer, go to Content Types. Right-click and select Content Type Settings.
C. Get a site background for each team and upload it to the site collection s library. Then create a new master page for each team site by using the Master Page Gallery. Set the version to 15.
D. From the Web Designer Galleries, choose Composed Looks and create a new item for each team site. Specify the title, URL of the master page, theme, background , and font schema file.
E. On the Site Settings page in the Look and Feel section, choose Change the look.
F. Create a new font XML schema with a font specification for each team.
Answer: B,C,D Explanation: B:
* Content types enable site users to quickly create specialized kinds of content by using the New Item or New Document command in a list or library. Content types provide site owners a way to make sure that that content is consistent across sites. Site owners can pre-configure specific details about the content when they set up content types for a site, list, or library.
D:
* A Composed Look is made up of:
Master Pages CSS
Color palettes Font palettes Background
Q15. DRAG DROP
You are developing an ASP.NET MVC web application in Visual Studio 2012.
The application has a model named ReservationLocation that contains properties named City and State.
The view that displays reservations has a single text box named loc for entering the location information. The location is entered as city, state.
There are action methods that have ReservationLocation as a parameter type. You need to ensure that the City and State properties are correctly populated.
How should you implement model binding for the ReservationLocation type? (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:
Q16. You need to add the field control to the About Us page layout. Which control should you add?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A