Case Study: 1
Scenario 1
Background
You are developing an ASP.NET MVC application in Visual Studio 2012 that will be used by Olympic marathon
runners to log data about training runs.
Business Requirements
The application stores date, distance, and durationinformation about a user’s training runs. The usercan view,
insert, edit, and delete records.
The application must be optimized for accessibility. All times must be displayed in the user’s local time.
Technical Requirements
Data Access:
Database access is handled by a public class named RunnerLog.DataAccess.RunnerLogDb. All data retrieval
must be done by HTTP GET and all data updates must be done by HTTP POST.
Layout:
All pages in the application use a master layout file named \Views\Shared\_Layout.cshtml.
Models:
The application uses the \Models\LogModel.cs model.
Views:
All views in the application use the Razor view engine.
Four views located in \Views\RunLog are named:
_CalculatePace.cshtml
EditLog.cshtml
GetLog.cshtml
InsertLog.cshtml
The application also contains a \Views\Home\Index.cshtml view.
Controllers:
The application contains a \Controllers\RunLogController.cs controller.
Images:
A stopwatch.png image is located in the \Images folder.
Videos:
A map of a runner’s path is available when a user views a run log. The map is implemented as an Adobe Flash
application and video. The browser should display the video natively if possible, using H264, Ogg, or WebM
formats, in that order. If the video cannot be displayed, then the Flash application should be used.
Security:
You have the following security requirements:
The application is configured to use forms authentication.
Users must be logged on to insert runner data.
Users must be members of the Admin role to edit or delete runner data. There are no security requirements
for viewing runner data.
You need to protect the application against cross-site request forgery.
Passwords are hashed by using the SHA1 algorithm.
RunnerLog.Providers.RunLogRoleProvider.es contains a custom role provider. Relevant portions of the
application files follow. (Line numbers are included for reference only.) Application Structure
********************************************************************
You need to make the “Distance” header of the tablebold in the Views/RunLog/GetLog.cshtml view.
Which code segment should you use?
A.
table>tr{ font-weight: bold; }
B.
table>th:last-child{ font-weight: bold; }
C.
table+first-child{ font-weight: bold; }
D.
table>tr>th:nth-child (2) { font-weight: bold; }
Is index in nth-child zero-based? If it’s not, D would not be an answer. Second column would be the Date.
Also Distance is within a td element, not a th element so.
Shouldn’t it in fact be
table > tr > td:nth-child(2) { font-weight:bold; }
Never mind, I missed the th above that.
Non of this is correct:
probably should be: table>tr>th:nth-child (3) { font-weight: bold; }
I agree with Mirda
Basically this question is wrong. By default th renders as bold. if it supposed that all header cells are in normal font, then it should be
table tr td:nth-child(3) { font-weight:bold }
because the header column is on index 3.
Also, none of the given answers works.
Wrong: table>tr>td:nth-child(2) { font-weight:bold }
Correct: table tr td:nth-child(3) { font-weight:bold }
correct…even table tr>td:nth-child(3) will work
Please pay a visit to the web-sites we adhere to, including this a single, as it represents our picks in the web.
Wonderful story, reckoned we could combine some unrelated information, nonetheless genuinely really worth taking a look, whoa did one particular learn about Mid East has got additional problerms also
usually posts some extremely interesting stuff like this. If youre new to this site
the time to read or pay a visit to the subject material or sites we’ve linked to beneath the
just beneath, are numerous totally not related sites to ours, nevertheless, they are surely really worth going over
Every as soon as inside a though we decide on blogs that we read. Listed below would be the most up-to-date web-sites that we pick out
Here is a superb Weblog You may Find Exciting that we Encourage You
Sites of interest we have a link to
below you will uncover the link to some web pages that we consider you’ll want to visit
please pay a visit to the sites we comply with, like this 1, as it represents our picks from the web
the time to study or take a look at the content material or internet sites we have linked to below the
that would be the finish of this post. Right here you will find some websites that we assume youll enjoy, just click the hyperlinks over
Wonderful story, reckoned we could combine several unrelated information, nonetheless genuinely really worth taking a search, whoa did one particular master about Mid East has got far more problerms also
very few internet websites that happen to be comprehensive beneath, from our point of view are undoubtedly well really worth checking out
one of our guests lately recommended the following website
usually posts some incredibly intriguing stuff like this. If youre new to this site
the time to study or go to the subject material or web sites we’ve linked to below the
New 70-486 Exam Questions and Answers Updated Recently (3/May/2017):
NEW QUESTION 191
You are developing an ASP.NET application that allows users to download Microsoft Azure log files. You need to improve the performance of the application. What should you do?
A. Minify the content files.
B. Enable compression in IIS.
C. Bundle the content files into a single .tar file.
D. Host the image, JavaScript, and CSS files on a different server.
Answer: C
Explanation:
Bundling is a new feature in ASP.NET 4.5 that makes it easy to combine or bundle multiple files into a single file. You can create CSS, JavaScript and other bundles. Fewer files means fewer HTTP requests and that can improve first page load performance.
NEW QUESTION 193
You are building an ASP.NET web application. You must test the web application in multiple browsers at the same time. You need to ensure that the application can use the Browser Link feature. Which two actions should you perform? Each correct answer presents part of the solution.
A. In the web.config file, set the value of the debug attribute to False.
B. In the web.config file, set the value of the debug attribute to True.
C. Enable Browser link.
D. Use an external editor for webpages.
E. Enable source control server support.
Answer: BC
Explanation:
Debugging must be enabled in the web.config file. To enable Browser Link, set debug=true in the element in the project’s Web.config file.
NEW QUESTION 196
You are developing an ASP.NET MVC application to be used on the Internet. The environment does not use Active Directory. 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 Digest authentication.
B. Enable Windows authentication.
C. Enable Forms authentication.
D. Generate server SSL certificates and install them in IIS.
Answer: C
Explanation:
Many Web applications require a way to restrict access to some resources (such as specific pages) so that those resources are accessible only to authenticated users. The default Web application project template for ASP.NET MVC provides a controller, data models, and views that you can use to add ASP.NET forms authentication to your application. The built-in functionality lets users register, log on and off, and change their password. For many applications, this functionality provides a sufficient level of user authentication.
Incorrect:
Not B: Windows authentication would require an Active Directory. 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.
NEW QUESTION 197
You are developing an ASP.NET MVC application that will run in a shared environment. The application requests the user’s password, and then uses the password to sign data. You need to minimize the potential for the password to be discovered by other processes that run in the shared environment. What should you do?
A. Add the SecuritySafeCriticalAttribute attribute to the methods which process the password.
B. Store the password in a SecureString instance.
C. Encrypt the password on the web page, and decrypt the password in the MVC application.
D. Run the code that processes the password in its own AppDomain.
Answer: D
Explanation:
Application domains provide a unit of isolation for the common language runtime. They are created and run inside a process. Application domains are usually created by a runtime host, which is an application responsible for loading the runtime into a process and executing user code within an application domain. The runtime host creates a process and a default application domain, and runs managed code inside it. Runtime hosts include ASP.NET, Microsoft Internet Explorer, and the Windows shell. For most applications, you do not need to create your own application domain; the runtime host creates any necessary application domains for you. However, you can create and configure additional application domains if your application needs to isolate code or to use and unload DLLs.
NEW QUESTION 200
You develop an ASP.NET MVC application. The application is configured for claims-based authentication by using Windows Identity Foundation (WIF). You need to access the claims in the WIF token. Which code segment should you use?
A. Thread.CurrentPrincipal.Identity;
B. ((IClaimsPrincipal)Thread.CurrentPrincipal).Identities[0].Claims;
C. Thread.CurrentPrincipal;
D. ((IClaimsPrincipal)Thread.CurrentPrincipal).Identities[0].IsAuthenticated;
Answer: B
Explanation:
To Access the Claims
In order to access identity related information, you can run FedUtil. Once you have run FedUtil, your application can access IClaimsPrincipal and IClaimsIdentity using the standard ASP.NET constructs as shown in the following code example:
void Page_Load(object sender, EventArgs e)
{
// Cast the Thread.CurrentPrincipal
IClaimsPrincipal icp = Thread.CurrentPrincipal as IClaimsPrincipal; // Access IClaimsIdentity which contains claims
IClaimsIdentity claimsIdentity = (IClaimsIdentity)icp.Identity; // Access claims
foreach(Claim claim in claimsIdentity.Claims)
{
}
}
NEW QUESTION 201
You are developing an ASP.NET MVC application. The application has a contact view includes a form for editing the displayed contact. You need to save the Contact object model when the form is posted back to the EditContact method using a POST method request. Which code segment should you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. public ActionResult EditContact(){var c = newContact(){FirstName = Request.QueryString [‘”FirstName”‘],LastName = Request.QueryString[“LastName”]},SaveContact(c);return View(c);}
B. public ActionResult EditContact(Contact c){SaveContact(c);return View(c);}
C. public ActionResult EditContact(FormCollection values){var c = newContact(){FirstName = values [‘”FirstName”‘],LastName = values[“LastName”]},SaveContact(c);return View(c);}
D. public ActionResult EditContact(QueryStringProvider values){var c = newContact(){FirstName = values.GetValue[‘”FirstName”‘],LastName = values.GetValue [“LastName”]},SaveContact(c);return View (c);}
Answer: AB
NEW QUESTION 203
You are developing an ASP.NET MVC application. The application uses a set of custom exceptions to log errors that occur during the execution of an action. You need to develop a class that implements logging. Which interface should you implement?
A. IExceptionFilter
B. IActionFilter
C. IClientValidatable
D. IResultFilter
Answer: A
Explanation:
Exception filters are used to apply global policies to unhandled exceptions in the MVC app. Exception Filters implement either the IExceptionFilter or IAsyncExceptionFilter interface. Exception filters handle unhandled exceptions, including those that occur during controller creation and model binding. They are only called when an exception occurs in the pipeline.
NEW QUESTION 204
You create an ASP.NET MVC application. You host the application by using the Open Web Interface for .NET (OWIN).
You run the following command by using the NuGet Package Manager console:
install-package Microsoft.AspNet.SignalR
You plan to implement real-time push notifications from the server using ASP.NET SignalR. You need to complete the ASP.NET SignalR implementation. Which three steps should you perform? Each correct answer presents part of the solution.
A. Create a hub class to push content to clients.
B. Create a class that derives from the PersistentConnection class. Use the derived class to push content to clients.
C. Use the SignalR jQuery library in a web page to send messages to the hub and display updates from the hub.
D. Map a SignalR hub to the app builder pipeline by using an OWIN startup class.
E. Start the SignalR hub asynchronously and respond to the appropriate callback methods.
Answer: ACD
Explanation:
A:
In Solution Explorer, right-click the project, select Add | New Folder, and add a new folder named Hubs. Right-click the Hubs folder, click Add | New Item, select the Visual C# | Web | SignalR node in the Installed pane, select SignalR Hub Class (v2) from the center pane, and create a new hub named ChatHub.cs. You will use this class as a SignalR server hub that sends messages to all clients.
C:
Use the SignalR jQuery library in a web page to send messages and display updates from the hub.
D:
Create an OWIN startup class to configure the application.
NEW QUESTION 205
You are developing an ASP.NET MVC application. Devices that use many different browsers will use the application. You have the following requirements:
– Content must display correctly when a device is in landscape or portrait orientation.
– Content must not scale when the device orientation changes.
– Content must be displayed by using the maximum available screen space.
– The application must render properly in Internet Explorer 8 or later versions.
You need to configure the application. Which two actions should you perform? Each correct answer presents part of the solution.
A. Use JavaScript to evaluate the window.innerWidth and window.innerHeigh properties.
B. Set the value of the width property for the viewport meta tag to device-width.
C. Use CSS to target the HTML element on each page. Set the values of the width and height properties to 100%.
D. Use CSS media queries to target screen size, device orientation, and other browser capabilities.
Answer: BD
Explanation:
B:
If you want the viewport width to match the device’s physical pixels, you can specify the following:
For this to work correctly, you must not explicitly force elements to exceed that width (e.g., using a width attribute or CSS property), otherwise the browser will be forced to use a larger viewport regardless.
D:
Media queries in CSS3 extend the CSS2 media types idea: Instead of looking for a type of device, they look at the capability of the device. Media queries can be used to check many things, such as:
– width and height of the viewport
– width and height of the device
– orientation (is the tablet/phone in landscape or portrait mode) resolution
Using media queries are a popular technique for delivering a tailored style sheet to tablets, iPhone, and Androids.
References:
NEW QUESTION 206
……
P.S. Get The Newest 70-486 Dumps In PDF And VCE From — http://www.passleader.com/70-486.html (231q VCE and PDF)
Good Luck!
Besides, part of that new 231Q 70-486 dumps are available here:
https://drive.google.com/open?id=0B-ob6L_QjGLpflNtUWtkNlk3ODJFY0pqOUhqVFEwc0lrd0QtamRxUHFLLUdWZEVDaGtlQWM
Best Regards!