Welcome to awslagi.com – Sharing AWS, Anthropic, Google Cloud, Microsoft Azure IT Exams. It's free for all!

MCSD Developing ASP.NET MVC 4 Web Applications

Develop ASP.NET MVC web applications with modern patterns.

4.8★★★★★(316 ratings)
16,670 studentsIntermediate
Learn to build scalable web applications using ASP.NET MVC 4 and related Microsoft web technologies. The exam covers controllers, views, model binding, security, and application structure, helping you create maintainable web solutions. It is ideal for developers building professional web applications in Microsoft ecosystems. These skills help you produce cleaner architecture and better user experiences for enterprise projects.

What you'll learn

  • Build MVC applications- Use controllers and views- Implement security- Handle model binding- Structure scalable web apps

70-486

Lectures2
Questions80
Duration30 week
Students16,670

$20.00

Full Free Question Bank (80 Questions)

MCSD Developing ASP.NET MVC 4 Web Applications (70-486) Practice Questions & Verified Answers

Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.

Jump to Section:
Question #1Part 1

You are designing an HTML5 website. You need to design the interface to make the content of the web page viewable in all types of browsers, including voice recognition software, screen readers, and reading pens. What are two possible ways to achieve the goal? Each correct answer presents a complete solution.

AAnnotate HTML5 content elements with Accessible Rich Internet Application (ARIA) attributes.
BConvert HTML5 forms to XForms.
CEnsure that HTML5 content elements have valid and descriptive names
DUse HTML5 semantic markup elements to enhance the pages.
EUse Resource Description Framework (RDF) to describe content elements throughout the entire page.
Question #2Part 1

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.)

AMark the Product class with the DataContract attribute.
BMark the public members of the Product class with the DataContractFormat attribute.
CMark the Product class with the CollectionDataContract attribute.
DMark the public members of the Product class with the DataMember attribute.
Question #3Part 1

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?

AOption A
BOption B
COption C
DOption D
Question #4Part 1

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.

Apublic ActionResult EditContact(){var c = newContact(){FirstName = Request.QueryString['"FirstName"'],LastName = Request.QueryString ["LastName"]},SaveContact(c);return View(c);}
Bpublic ActionResult EditContact(Contact c){SaveContact(c);return View(c);}
Cpublic ActionResult EditContact(FormCollection values){var c = newContact(){FirstName = values['"FirstName"'],LastName = values ["LastName"]},SaveContact(c);return View(c);}
Dpublic ActionResult EditContact(QueryStringProvider values){var c = newContact(){FirstName = values.GetValue['"FirstName"'],LastName = values.GetValue
Question #5Part 1

You need to implement the requirements for handling IIS errors. What should you do?

AOption A
BOption B
COption C
DOption D
Question #6Part 1

You are creating a new authentication system that uses an HTTP header value. The existing authentication system must continue to operate normally. You need to implement the custom authentication. What should you do? (Each correct answer presents a complete solution. Choose all that apply.)

ACreate a class derived from ActionResult and check for a valid HTTP header value in the ExecuteResult method. Change all actions to return this new class.
BCreate an HttpHandler to check fora valid HTTP header value in the ProcessRequest method.
CCreate an HttpModule and check for a valid HTTP header value in the AuthenticateRequest event.
DCreate a class derived from AuthorizeAttribute and check for a valid HTTP header value in the AuthorizeCore method. Change usages of the existing AuthorizeAttribute to use the new class.
Question #7Part 1

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.

AUse JavaScript to evaluate the window.innerWidth and window.innerHeight properties.
BSet the value of the width property for the viewport meta tag to device-width.
CUse CSS to target the HTML element on each page. Set the values of the width and height properties to 100%.
DUse CSS media queries to target screen size, device orientation, and other browser capabilities.
Question #8Part 1

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?

AImplement HTTP caching in the ASP.NET MVC controllers.
BCombine the content files by using ASP.NET MVC bundling.
CInstall a second IIS instance.
DMove the content to a Windows Azure CDN.
Question #9Part 1

You need to make the "Distance" header of the table bold in the Views/RunLog/GetLog.cshtml view. Which code segment should you use?

Atable>tr{ font-weight:bold; }
Btable>th:last-child{ font-weight: bold; }
Ctable+first-child{ font-weight: bold; }
Dtable>tr>th:nth-child (2) { font-weight: bold; }
Question #10Part 1

You need to add a method to the ProductController class to meet the exception handling requirements for logging. Which code segment should you use?

AOption A
BOption B
COption C
DOption D
Question #11Part 1

You are developing an ASP.NET MVC application. The application must allow users to enter JavaScript in a feedback text box only. You need to disable request validation. What should you do?

AApply and set the CausesClientSideValidation attribute on the text box to FALSE.
BApply and set the ValidateInput attribute on the text box to FALSE.
CUse the HttpRequest.Unvalidated property to read the unvalidated form value.
DUse the HttpRequest.Form property to read the unvalidated form value.
EApply and set the CausesValidation attribute on the controller action to FALSE.
Question #12Part 1

You are developing an ASP.NET MVC application in Visual Studio. The application supports multiple cultures. The application contains three resource files in the Resources directory: ✑ MyDictionary.resx ✑ MyDictionary.es.resx MyDictionary.fr.resx - Each file contains a public resource named Title with localized translation. 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.Title to the localized title contained in the resource files. Which code segment should you add to the action at line 03?

AViewBag.Title = HttpContext.GetGlobalResourceObject("MyDictionary", "Title");
BViewBag.Title = HttpContext.GetGlobalResourceObject("MyDictionary", "Title", new System.Globalization.CultureInfo("en"));
CViewBag.Title = Resources.MyDictionary.Title;
DViewBag.Title = HttpContext.GetLocalResourceObject("MyDictionary", "Title");
Question #13Part 1

You need to extend the edit functionality of RunLogController. Which code segment should you use?

AOption A
BOption B
COption C
DOption D
Question #14Part 1

An advertising campaign was recently launched. Some of the ads contain a link to products that no longer exist or have IDs that have changed. You need to ensure that all product links display a product. Which code segment should you use to configure the route?

AOption A
BOption B
COption C
DOption D
Question #15Part 1

You need to maximize performance of video delivery. Which code segment should you use as the body of the GetVideoStream function in the Video-Controller class?

AOption A
BOption B
COption C
DOption D
Question #16Part 1

You are developing an ASP.NET web application. You need to ensure that the application can securely render user-generated content. What are two possible ways to achieve this goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

AUse the following code: var decodedUserInput = Server.UrlDecode(userInput);
BUse the following WebForms markup:
CUse the following Razor markup: @userInput
DUse the following code: var decodedUserInput = Server.HtmlDecode(userInput);
Question #17Part 1

You are testing an ASP.NET application. The test plan requires that tests run against the application's business layer. You need to use the test project template that meets this requirement. Which template should you use?

AWeb Test Project
BLoad Test Project
CUnit Test Project
DCoded Test Project
Question #18Part 1

You need to modify the application to meet the product Id requirement. What should you do?

AModify the RegisterGlobalFilters method of the Global.asax.cs file as follows.Contract.Assume(productId != 0);
BModify the GetDealPrice method of ProductController as follows.Contract.Requires(productId > 0);
CModify the RegisterGlobalFilters method of the Global.asax.cs file as follows. Contract.Requires(productId > 0);
DModify the GetDealPrice method of ProductController as follows.Contract.Assume(productId != 0);
Question #19Part 1

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?

AOption A
BOption B
COption C
DOption D
Question #20Part 1

You are authoring unit tests. The unit tests must test code that consumes sealed classes. You need to create, maintain, and inject dependencies in the unit tests. Which isolation method should you use?

AT4 text templates and code generation
BStub types
CShim types
DHard-coded implementation
Question #21Part 1

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.

AAdd a folder named Customer to the Views folder. Then create a view inside this folder named Edit.aspx.
BAdd a folder named EditCustomer to the Views folder. Then create a view inside this folder named Catalog.aspx.
CAdd a class named CustomerController to the Controllers folder. Then add a method named Edit to the class.
DAdd a class named Catalog to the Controllers folder. Then add a method named EditCustomer to the class.
Question #22Part 1

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some questions sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You are developing a collaborative text editor. Multiple users may simultaneously edit the same document from within the application. You need to ensure that users can see edits from all users as soon as they are made. Solution: Implement the application by using ASP.NET Core. Configure the editor Controller action to return JSON data. Use XML HTTP requests for communicating editor changes. Does the solution meet the goal?

AYes
BNo
Question #23Part 1

You are developing an ASP.NET MVC web application that includes the following method. You need to test the AccountBalance method. Which unit test should you use?

AOption A
BOption B
COption C
DOption D
Question #24Part 1

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some questions sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You are developing a collaborative text editor. Multiple users may simultaneously edit the same document from within the application. You need to ensure that users can see edits from all users as soon as they are made. Solution: Implement the application by using ASP.NET Core. Implement Websockets to handle the editor communication requirements. Does the solution meet the goal?

AYes
BNo
Question #25Part 1

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?

AFrom the Debug menu in Visual Studio 2012, select Exceptions. Enable the Thrown check box for Common Language Runtime Exceptions.
BFrom the Debug menu in Visual Studio 2012, select Exceptions. Disable the User-unhandled check box for Common Language Runtime Exceptions.
CAdd the following code to the web.config file of the application.
DAdd the following code to the web.config file of the application.
Question #26Part 1

If the canvas element is supported by the client browser, the application must display "London 2012" in the footer as text formatted by JavaScript at the end of the _Layout.cshtml file. You need to modify the layout to ensure that "London 2012" is displayed as either formatted text or as plain text, depending on what the client browser supports. Which code segment should you add?

A@(Request,Browser.JavaApplets ? new HtmlString("London 2012") : null)
BLondon 2012
CLondon 2012
DLondon 2012
Question #27Part 1

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?

AOption A
BOption B
COption C
DOption D
Question #28Part 1

You are developing an ASP.NET MVC news aggregation application that will be deployed to servers on multiple networks. The application must be compatible with multiple browsers. A user can search the website for news articles. You must track the page number that the user is viewing in search results. You need to program the location for storing state information about the user's search. What should you do?

AStore search results and page index in Session.
BUse Application state to store search terms and page index.
CUse QueryString to store search terms and page index.
DStore search results and page index in TempData
Question #29Part 1

You need to add an action to RunLogController to validate the users' passwords. Which code segment should you use?

AOption A
BOption B
COption C
DOption D
Question #30Part 1

You need to implement client-side animations according to the business requirements. Which line of code should you use? (Each correct answer presents a complete solution. Choose all that apply.)

A$("body h1:nth-child(1)").fadeIn(1000);
B$("body h1:nth-child(1)").fadeOut(1000);
C$("body h1:nth-child(1)").animate({ opacity: 0 });
D$("body h1:nth-child(1)").animate({ opacity: 1 });
Question #31Part 1

You are developing the landing page for an ASP.NET Core MVC web application that will be used to host blogs. You are implementing a View component to show text links for common application operations. Users must be able to customize the HTML for landing pages. You need to ensure that the links for common operations reflect the desired layout of the application when links are embedded into customized views. Which CSS measurement unit should you use for the links?

Avh
Bem
Crem
Dpx
Question #32Part 1

You are developing an ASP.NET MVC application. The application is deployed in a web farm and is accessed by many users. The application must handle web server failures gracefully. The servers in the farm must share the state information. You need to persist the application state during the session. What should you implement?

AA state server
BCookieless sessions
CA web garden on the web servers
DAn InProc session
Question #33Part 1

You need to make all of the rows in the table bold in the Views/RunLog/GetLog.cshtml view. Which code segment should you use?

ATable > th:last-child { font-weight: bold; }
BTable+first-child{ font-weight: bold; }
CTable>tr>th:nth-child{2){font-weight: bold; }
DTable > tr {font-weight: bold;}
Question #34Part 1

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?

AOption A
BOption B
COption C
DOption D
EOption E
Question #35Part 1

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some questions sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You are developing a collaborative text editor. Multiple users may simultaneously edit the same document from within the application. You need to ensure that users can see edits from all users as soon as they are made. Solution: Implement the application by using ASP.NET MVC. Configure the editor Controller action to return JSON data. Use XML HTTP requests for communicating editor changes. Does the solution meet the goal?

AYes
BNo
Question #36Part 1

You are developing an ASP.NET MVC application that displays stock market information. The stock market information updates frequently and must be displayed in real-time. You need to eliminate unnecessary header data, minimize latency, and transmit data over a full-duplex connection. What should you do?

AImplement long-running HTTP requests.
BInstantiate a MessageChannel object on the client.
CImplement WebSockets protocol on the client and the server.
DConfigure polling from the browser.
Question #37Part 1

You need to display the "miles" unit description after the distance in the GetLog view. Which line of code should you use to replace line GL21? (Each correct answer presents a complete solution. Choose all that apply.)

A@log.Distance miles
B@Htrml.DisplayFor(model =>log.Distance) miles
C@log.Distance.ToString() @Html.TextArea("miles")
D@Html.DisplayFor(model => log.Distance.ToString() + " miles")
Question #38Part 1

You are designing a distributed application that runs on the Microsoft Azure platform. The application must store a small amount of information that is shared cross all users and 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.)

AMicrosoft Azure application state
BSQL Database
CProfile properties of the Microsoft Azure application
DMicrosoft Azure session state
Question #39Part 1

[1] 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?

AOption A
BOption B
COption C
DOption D
Question #40Part 1

The date of the run must be displayed in Views\Runlog\GetLog.cshtml. The timestamp must not be displayed. You need to display the date of the run according to the business requirements. Which code segment should you use?

A@Html.DisplayFor(model => log.ShortDate)
B@log.RunDate.ToString()
C@log.RunDate.ToShortDateString()
D@Html.DisplayFor(model => log.RunDate)
Question #41Part 1

The GetDealPrice method must be called by using Ajax. You need to get the price of a product by using the GetDealPrice method of the ProductController. Which code segment should you use? (Each correct answer presents a complete solution. Choose all that apply.)

AOption A
BOption B
COption C
DOption D
Question #42Part 1

You are developing an ASP.NET MVC web application for viewing a list of contacts. The application is designed for devices that support changes in orientation, such as tablets and smartphones. The application displays a grid of contact tiles in portrait mode. When the orientation changes to landscape, each tile in the grid expands to include each contact's details. The HTML that creates the tiled interface resembles the following markup. The CSS used to style the tiles in landscape mode is as follows. If this CSS is omitted, the existing CSS displays the tiles in portrait mode. You need to update the landscape-mode CSS to apply only to screens with a width greater than or equal to 500 pixels. Which code segment should you use?

A@media screen and (width >= 500px) { "¦ }
B@media screen and (min-width: 500px) { "¦ }
C@media screen(min-width: 500px, max-width: 1000px) { "¦ }
D@media resolution(min-width: 500px) { "¦ }
Question #43Part 1

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?

ABasic
BWindows
CForms
DKerberos
Question #44Part 1

You need to ensure that new customers enter a valid email address. Which code should you use? (Each correct answer presents part of the solution. Choose all that apply.)

AOption A
BOption B
COption C
DOption D
Question #45Part 1

You are developing an ASP.NET MVC application. The application must allow users to enter JavaScript in a feedback text box only. You need to disable request validation. What should you do?

AApply and set the CausesClientSideValidation attribute on the text box to FALSE.
BApply and set the ValidateInput attributeon the text box to FALSE.
CUse the HttpRequest.Unvalidated property to read the unvalidated form value.
DUse the HttpRequest.Form property to read the unvalidated form value.
Question #46Part 1

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?

AAspnet_regiis.exe
BNgen.exe
CAspnet_merge.exe
DEdmGen.exe
Question #47Part 1

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.)

AApplication state
BSession state
CDatabase support
DProfile properties
Question #48Part 1

You are developing an ASP.NET MVC application. The application is deployed in a web farm and is accessed by many users. The application must handle web server failures gracefully. The servers in the farm must share the short-term state information. You need to persist the application state during the session. What should you implement?

AASP.NET session state
BA local database
CA state server
DProfile properties
Question #49Part 1

You are developing an ASP.NET MVC application that will be deployed to servers on multiple networks. The application must be compatible with multiple browsers. You must track the page number that the user is viewing in search results. You need to program the location for storing state information. Where should you persist state information?

ASession
BQueryString
CApplication
DTempData
Question #50Part 1

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.)

AEnsure that content elements have valid and descriptive names.
BUse Resource Description Framework (RDF) to describe content elements.
CConvert HTML forms to XForms.
DUse HTML5 semantic markup elements.
EAnnotate content elements with Accessible Rich Internet Application (ARIA) attributes.
Question #51Part 1

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?

AViewBag.LocaIizedCurrency = Resources.ProductDictionary.Currency;
BViewBag.LocalizedCurrency = HttpContext.GetGlobalResourceObject("ProductDictionary", "Currency", new System.Globalization.CultureInfo(Men"));
CViewBag.LocalizedCurrency = HttpContext.GetLocalResourceObject("ProductDictionary","Currency");
DViewBag.LocalizedCurrency = HttpContext.GetGlobalResourceObject("ProductDictionary", "Currency");
Question #52Part 1

You are developing an ASP.NET MVC web application that includes the following method. You need to test the GoldMined method. Which unit test should you use?

AOption A
BOption B
COption C
DOption D
Question #53Part 1

You are developing an ASP.NET MVC application by using Visual Studio. 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?

AFrom the Debug menu in Visual Studio, select Exceptions. Enable the Thrown check box for Common Language Runtime Exceptions.
BFrom the DEBUG menu in Visual Studio, select Attach to Process. Select the IIS process.
CFrom the Debug menu in Visual Studio, select Exceptions. Disable the User-unhandled check box for Common Language Runtime Exceptions.
DFrom the TOOLS menu in Visual Studio, click Customize. Click the Command tab and select Debug.
Question #54Part 1

You are developing an ASP.NET MVC web application for viewing a photo album. The application is designed for devices that support changes in orientation, such as tablets and smartphones. The application displays a grid of photos in portrait mode. When the orientation changes to landscape, each tile in the grid expands to include a description. The HTML that creates the gallery interface resembles the following markup. If this CSS is omitted, the existing CSS displays the tiles in landscape mode. You need to update the portrait mode CSS to apply only to screens with a width less than 500 pixels. Which code segment should you use?

A@media resolution(max-width: 500px) {. . .}
B@media screen(min-width: Opx, max-width: 500px) {. . .}
C@media screen and (width <= 500px) {. . .}
D@media screen and (max-width: 500px) {. . .}
Question #55Part 1

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?

ANET session state
BNET profile properties
CNET application state
DShared database
Question #56Part 1

You are developing an application that supports multiple cultures. The application must store localized content in satellite assemblies. You need to build the satellite assemblies. Which tool should you use?

AGacutil.exe
BAl.exe
CIldasm.exe
DIlasm.exe
Question #57Part 1

You are preparing for the deployment of an ASP.NET MVC application. You need to generate a deployment manifest. Which command-line tool should you use?

AMage.exe
BNgen.exe
CALexe
DResgen.exe
Question #58Part 1

You are developing an ASP.NET MVC application. The application provides a RESTful API for third-party applications. This API updates the information for a contact by embedding the information in the URL of an HTTP POST. You need to save the Contact type when third-party applications use the EditContact method. Which code segment should you use? {Each correct answer presents a complete solution. Choose all that apply.)

AOption A
BOption B
COption C
DOption D
Question #59Part 1

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.)

ALINQ to SQL
BEntity Framework
CDataAdapter
DDataReader
Question #60Part 1

You are developing an ASP.NET MVC application that provides instant messaging capabilities to customers. You have the following requirements: ✑ Messages must be able to be sent and received simultaneously. ✑ Latency and unnecessary header data must be eliminated. ✑ The application must comply with HTML5 standards. You need to design the application to meet the requirements. What should you do?

AConfigure polling from the browser.
BImplement long-running HTTP requests.
CImplement WebSockets protocol on the client and the server.
DInstantiate a MessageChannel object on the client.
Question #61Part 2

You are developing an ASP.NET MVC application that uses forms authentication to verify that the user is logged in. Authentication credentials must be encrypted and secure so no user identity is exposed. You need to ensure that user credentials are persisted after users log on. In which two locations can you store the credentials? Each correct answer presents a complete solution.

AIn Session on the server
BIn a cookie stored in the browser
CIn ViewData in the application
DIn TempData on the server
Question #62Part 2

You are developing an ASP.NET MVC application that uses forms authentication. The application uses SQL queries that display customer order data. Logs show there have been several malicious attacks against the servers. You need to prevent all SQL injection attacks from malicious users against the application. How should you secure the queries?

ACheck the input against patterns seen in the logs and other records.
BEscape single quotes and apostrophes on all string-based input parameters.
CImplement parameterization of all input strings.
DFilter out prohibited words in the input submitted by the users.
Question #63Part 2

You are developing an ASP.NET MVC application that uses forms authentication against a third-party database. You need to authenticate the users. Which code segment should you use?

AOption A
BOption B
COption C
DOption D
Question #64Part 2

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. You need to ensure that the application can handle large-scale role changes. Which two approaches can you use for authorization?

AResource-based trusted subsystem model
BIdentity-based approach
CRole-based approach
DResource-based impersonation/delegation model
Question #65Part 2

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?

AEnable Forms authentication
BEnable Windows authentication
CGenerate server SSL certificates and install them in IIS
DEnable Digest authentication
Question #66Part 2

You are developing a controller for an ASP.NET MVC application that manages message board postings. The security protection built in to ASP.NET is preventing users from saving their HTML. You need to enable users to edit and save their HTML while maintaining existing security protection measures. Which code segment should you use?

AOption A
BOption B
COption C
DOption D
Question #67Part 2

You are designing an MVC web application. The view must be as simple as possible for designers who do not have a technical background. You need to combine two existing models to meet the requirement. Which component of the MVC framework should you use?

AView
BView Model
CController
DModel
Question #68Part 2

You are developing an application that uses many small images for various aspects of the interface. The application responds slowly when additional resources are being accessed. You need to improve the performance of the application. What should you do?

APreload all the images when the client connects to ensure that the images are cached.
BCombine all the images into a single image and use CSS to create sprites.
CHost all images on an alternate server and provide a CDN. [1]
Question #69Part 2

You are developing an ASP.NET MVC application that enables you to edit and save a student object. The application must not retrieve student objects on an HTTP POST request. You need to implement the controller. Which code segment should you use? Each correct answer presents a complete solution.

AB.
CD.
Question #70Part 2

You are implementing a website redesign of an existing website that provides historical weather condition maps. The current layout resembles the graphic in the exhibit. (Click the Exhibit button.) Year selection is implemented as a set of links, which causes the page to reload when the user changes the year. The year selection HTML is contained in a div with an id of "year-selector". You need to modify the page so that the user can change the year without the page reloading. You also need to ensure that there is minimal change to the design of the page. Which code segment should you use?

AOption A
BOption B
COption C
DOption D
Question #71Part 2

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?

AUse a resource (.resx) file to provide translations.
BUse Systems.Collections.Generics.Dictionary to store alternative translations.
CEnsure that all strings are marked internal to avoid conflict with internal literals.
DInclude language-specific content in the assembly manifest and use .NET culture libraries.
Question #72Part 2

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.)

ARole-based approach
BIdentity-based approach
CResource-based trusted subsystem model
DResource-based impersonation/delegation model
Question #73Part 2

You are designing am ASP.NET Core MVC application. The application must store secure information that is specific to an individual user. The data must be automatically purged when the user logs off. You need to save transient information in a secure data store. Which data store should you use?

ASession state
BDatabase storage
CProfile properties
DApplication state
Question #74Part 2

You are designing a localized ASP.NET application to support multiple cultures. You need to ensure that the application can be displayed in several languages. How should you implement this feature?

AUse a resource (.resx) file.
BInclude language-specific content in the assembly manifest.
CUse Systems.Collections.Generics.Dictionary to store alternative translations.
DEnsure that all strings aremarked internal.
Question #75Part 2

You are implementing a website redesign of an existing website that provides historical weather condition maps. The current layout resembles the following graphic. Year selection is implemented as a set of links, which causes the page to reload when the user changes the year. The year selection HTML is contained in a div with an id of "year-changer". You need to modify the page so that the user can change the year without the page reloading. You also need to ensure that there is minimal change to the design of the page. Which code segment should you use?

AOption A
BOption B
COption C
DOption D
Question #76Part 2

You need to enable client-side validation for an ASP.NET MVC application. Which three actions should you perform? Each correct answer presents part of the solution.

AAttach a custom validation attribute to the model properties that the view uses.
BReference the jquery, jquery.validate and jquery.validate.unobtrusive script files in the view.
COpen the web.config file at the project root, and set the values of the ClientValidationEnabled and UnobtrusiveJavaScriptEnabled keys to True.
DFor each form element, use the Validator.element() method to validate each item.
EAdd data annotations to the model properties that the view uses.
Question #77Part 2

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")
Question #78Part 2

You are developing an ASP.NET MVC application that will run on Azure. The application uses Event Tracing for Windows (ETW) for logging operations. You need to retrieve the ETW data for the application from a deployed Azure instance by using the Azure Diagnostics API. Which data source should you use?

AAzure Diagnostic infrastructure logs
BWindows event logs
Cperformance counters
D.NET EventSource
Question #79Part 2

You are developing an Azure worker role. You enable crash dump collection for the role. When the role starts, an external application stops responding. You need to download the crash dump to determine why the application stops responding. From which two locations can you download the crash dump? Each correct answer presents a complete solution.

AAzure Blob storage
Bthe temp folder on the virtual machine that is running the role instance
CAzure file storage
Dthe DiagnosticStore local resource folder on the virtual machine that is running the role instance
Question #80Part 2

You are developing an application that uses many small images. When the images load, the application runs slowly. You need to improve the performance of the application. What should you do?

APreload all the images when the application starts to ensure that the images are cached.
BConvert the images to ICO file format and stream all images on a single connection.
CHost all images on a Microsoft Azure web role with multiple instances.
DCombine all the images into a single image and use CSS to create sprites.

📢 Unlock Full Access to Success!

"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."

👉 Click the button and follow the instructions to secure your full access immediately!