Q1. - (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
Q2. - (Topic 3)
Customers download videos by using HTTP clients that support various content encodings. You need to configure caching on the DownloadVideo action to maximize performance. Which attribute should you add?
A. Option A
B. Option B
C. Option C
D. Option D
E. Option E
Answer: B
Q3. - (Topic 4)
You develop an ASP.NET MVC application. The application has a controller named PeopleController.cs. The controller has an action method that returns a parent view. The parent view includes the following code. Line numbers are included for the reference only.
The application also contains a partial view named People. The parent view must display the partial view.
You need to add code at line 09 to display the partial view within the parent view.
Which two code segments will achieve the goal? Each correct answer presents a complete solution.
A. @{ Html.RenderPartial(“People”, Model);}
B. @Html.Partial(“People”, Model)
C. @Html.Display(“People”, Model)
D. @Html.Raw(“People”)
Answer: B
Explanation: By default, any partial view rendered by calling @Html.Partial("PartialViewName") will get the view model passed to the parent view.
Reference: How to populate mvc razor partial view
http://stackoverflow.com/questions/13769707/how-to-populate-mvc-razor-partial-view
Q4. - (Topic 1)
The RunLog/Views/InsertLog.cshtml view must display the /Images/stopwatch.png image and the “Insert Run Data” header text below the image. The view should resemble the exhibit. (Click the Exhibit button.)
The application must display the image above the field set.
You need to add the HTML code to /Runlog/Views/InsertLog.cshtml to display the image
and header text.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Explanation: Example:
<div style="background-image: url(../images/test-background.gif); height: 200px; width:
400px; border: 1px solid black;">Example of a DIV element with a background
image:</div>
<div style="background-image: url(../images/test-background.gif); height: 200px; width:
400px; border: 1px solid black;"> </div>
Reference: DIV BACKGROUND-IMAGE in the STYLE element
http://www.w3.org/WAI/UA/TS/html401/cp0301/0301-CSS-DIV-BACKGROUND-IMAGE.html
Q5. - (Topic 4)
You are developing an ASP.NET MVC web application in Visual Studio 2012. The application requires several thousand content files. All content is hosted on the same IIS instance as the application.
You detect performance issues when the application starts.
You need to resolve the performance issues.
What should you do?
A. Enable compression in IIS.
B. Move the content to a second server.
C. Combine the content files by using ASP.NET MVC bundling.
D. Implement HTTP caching in IIS.
Answer: C
Q6. 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:
Q7. DRAG DROP - (Topic 3)
You need to ensure that the transcode.exe utility is installed before the worker role starts. You have the following markup:
Which markup segments should you include in Target 1, Target 2, Target 3, Target 4 and Target 5 to implement the startup task? To answer, drag the appropriate markup segments to the correct targets. Each markup segments 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:
Topic 4, Mixed Questions
Q8. - (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.
Q9. HOTSPOT - (Topic 1)
You need to implement the map of the runners' paths.
How should you build the video viewer? (To answer, select the appropriate options in the answer area.)
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.es?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C