Microsoft 70-486 Exam Questions and Answers 2021
We offers microsoft exam 70 486. "Developing ASP.NET MVC 4 Web Applications", also known as 70-486 exam, is a Microsoft Certification. This set of posts, Passing the 70-486 exam with 70 486 certification, will help you answer those questions. The mvc certification 70 486 dumps pdf covers all the knowledge points of the real exam. 100% real exam 70 486 pdf and revised by experts!
Online 70-486 free questions and answers of New Version:
NEW QUESTION 1
DRAG DROP
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:
Explanation: 
NEW QUESTION 2
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 question 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 develop an ASP.NET web application that is self-hosted using Open Web Interface for .NET (OW1N) in a Microsoft Azure Worker role.
The web application throws exceptions. You need to resolve the exceptions.
Solution: Change the application startup code to debug the OWIN pipeline. Does the solution meet the goal?
- A. Yes
- B. No
Answer: B
NEW QUESTION 3
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. Choose all that apply.)
- A. Option A
- B. Option B
- C. Option C
- D. Option D
Answer: CD
NEW QUESTION 4
You have two Microsoft Azure subscriptions. One subscription emits logs. You plan to deploy audit tools to the other subscription to allow users to analyze logs that the first subscription emits.
You perform the following anions
• Configure resource diagnostic logs for non-compute resources in the Azure portal.
• Use Event Hubs metrics and set the log category to Operational Logs.
• Set a retention policy of seven days. Users report that no log files are available
You need to ensure that log files are available for users.
- A. Change the Role-Based Access Control (RBAC) access in both subscriptions to match.
- B. Combine all tools and objects into the same subscription.
- C. Set the tog category to Audit
- D. Store the logs in a Storage account
Answer: D
NEW QUESTION 5
You need to add a method to the ProductController class to meet the exception handling requirements for logging.
Which code segment should you use?
- A. Option A
- B. Option B
- C. Option C
- D. Option D
Answer: A
NEW QUESTION 6
DRAG DROP
You need to implement security according to the business requirements. You have the following code:
Which code segments should you include in Target 1, Target 2, Target 3 and Target 4 to modify RunLogController? To answer, drag the appropriate code segment to the correct targets. 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:
Explanation: Target 1: [Authorize]
Target 2: [AllowAnonymous]
Target 3: [Authorize(Roles = “Admin”)]
Target 4: [Authorize(Roles = “Admin”)]
NEW QUESTION 7
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 folder named Customer to the Views folde
- B. Then create a view inside this folder named Edit.aspx.
- C. Add a folder named EditCustomer to the Views folde
- D. Then create a view inside this folder named Catalog.aspx.
- E. Add a class named CustomerController to the Controllers folde
- F. Then add a method named Edit to the class.
- G. Add a class named Catalog to the Controllers folde
- H. Then add a method named EditCustomer to the class.
Answer: AC
Explanation: From scenario: One of the business requirements, is that administrators must be able to edit information about existing customers.
NEW QUESTION 8
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?
- A. Use a resource (.resx) file.
- B. Include language-specific content in the assembly manifest.
- C. Use Systems.Collections.Generics.Dictionary to store alternative translations.
- D. Ensure that all strings are marked internal.
Answer: A
NEW QUESTION 9
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?
- A. Store search results and page index in Session.
- B. Use Application state to store search terms and page index.
- C. Use QueryString to store search terms and page index.
- D. Store search results and page index in TempData
Answer: C
NEW QUESTION 10
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. Windows
- C. Forms
- D. Basic
Answer: C
Explanation: To use authentication through a membership database, you must first configure it for your site. The following
are the basic steps you follow in order to configure membership: References: https://msdn.microsoft.com/en-us/library/yh26yfzy.aspx
NEW QUESTION 11
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?
- A. Mage.exe
- B. Ngen.exe
- C. ALexe
- D. Resgen.exe
Answer: A
Explanation: The Manifest Generation and Editing Tool (Mage.exe) is a command-line tool that supports the creation and editing of application and deployment manifests.
Incorrect:
Not B: The Native Image Generator (Ngen.exe) is a tool that improves the performance of managed applications. Ngen.exe creates native images
Not C: Al.exe generates a file with an assembly manifest, not an deployment manifest, from one or more files that are either resource files or Microsoft intermediate language (MSIL) files.
Not D: Resgen.exe, the Resource File Generator, converts text (.txt or .restext) files and XML-based resource format (.resx) files to common language runtime binary (.resources) files that can be embedded in a runtime binary executable or compiled into satellite assemblies.
References:
http://www.devcurry.com/2011/02/important-net-framework-40-command-line.html
NEW QUESTION 12
You are designing a hybrid application that runs across a Microsoft Azure data center and your company’s on-premises enterprise environment.
You have the following requirements:
Windows Communication Foundation (WCF) services that reside within the corporate enterprise network must be securely exposed to the public cloud.
A firewall connection and intrusive changes to the corporate network infrastructure are not allowed. You need to design the application to meet the requirements.
How should you design the application? To answer, drag the appropriate item to the correct location or locations. Each item 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.
NOTE: Each correct selection is worth one point.
Answer:
Explanation: References: https://docs.microsoft.com/en-us/azure/service-bus-relay/relay-wcf-dotnet-get-started
NEW QUESTION 13
You develop an ASP.NET MVC application that displays Information about products that a company sells. The application contains two classes named ProductController and RouteConfig
You have the following requirements:
- If a value is provided for the Id property, you must display information about an individual product.
- If no value is provided for the Id property, you must display information about all products. You need to configure routing.
How should you complete the relevant classes? to answer, select the appropriate code segment from each list in the answer area.
Answer:
Explanation: 
NEW QUESTION 14
DRAG DROP
You are developing an ASP.NET MVC application in Visual Studio. The application contains sensitive bank account data.
The application contains a helper class named SensitiveData.Helpers.CustomEncryptor.
The application contains a controller named BankAccountController with two actions.
The application contains a model named BankAccount, which is defined in the following code segment.
The application must not display AccountNumber in clear text in any URL. You need to build the view for the GetAccounts action.
You have the following code:
Which code segments should you include in Target 1, Target 2 and Target 3 to build the view? To answer, drag the appropriate code segment to the correct targets. 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:
Explanation: Target1: maskedAccountNum Target2: custEncrypt
Target3: Encrypt(item.AccountNumber) SensitiveData.Helpers
NEW QUESTION 15
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: AD
Explanation: ASP.NET session state supports several different storage options for session data. Each option is identified by a value in the SessionStateMode enumeration. The following list describes the available session state modes:
* StateServer mode, which stores session state in a separate process called the ASP.NET state service. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm.
* SQLServer mode stores session state in a SQL Server database. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm.
* InProc mode, which stores session state in memory on the Web server. This is the default.
* Custom mode, which enables you to specify a custom storage provider.
* Off mode, which disables session state.
References: https://msdn.microsoft.com/en-us/library/ms178586.aspx
NEW QUESTION 16
DRAG DROP
You are developing an ASP.NET MVC application. You plan to use OAuth to authenticate users to the application.
You need to use the correct authentication data in the application.
What should you do? To answer, drag the appropriate data element to the correct location or locations. Each data 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:
Explanation: Live Connect implements the OAuth 2.0 protocol to authenticate users.
In the authorization code grant flow, the client makes authorization requests by using request_type=code. The following diagram illustrates how the authorization code grant flow works.
1. The client starts the flow by directing the resource owner's user agent to the Live Connect authorization endpoint, by using a URL in the following format.
https://login.live.com/oauth20_authorize.srf?client_id=CLIENT_ID&scope=SCOPES&response_type=code&re
2. The authorization server authenticates the resource owner via the user agent, and establishes whether the resource owner grants or denies the client's access request.
3. Assuming that the resource owner has granted access, the Live Connect authorization server redirects the user agent to the client by using the redirection URI that was provided in the initial request.
4. The user agent calls the client with the redirection URI, which includes an authorization code and any local state that was provided by the client. For example: http://contoso.com/Callback.htm?code=AUTHORIZATION_CODE.
5. The client requests an access token from the authorization server's token endpoint by using its client credentials for authentication, and includes the authorization code that was received in the previous step.
6. If the credentials are valid, the authorization server responds by returning an access token. References: https://msdn.microsoft.com/en-us/library/hh243647.aspx
NEW QUESTION 17
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?
- A. From the Debug menu in Visual Studio 2012, select Exception
- B. Enable the Thrown check box for Common Language Runtime Exceptions.
- C. From the Debug menu in Visual Studio 2012, select Exception
- D. Disable the User-unhandled check box for Common Language Runtime Exceptions.
- E. Add the following code to the web.config file of the application.<customErrors mode="On" ><error statusCode="500" redirect="CustomErrors.html" /></customErrors>
- F. Add the following code to the web.config file of the application.<customErrors mode="On" ><error statusCode="404" redirect="CustomErrors.html" /></customErrors>
Answer: A
Explanation: Configuring the debugger to break for first chance exceptions
To change when the debugger breaks, go to Debug->Exceptions…
When you first open this window you will see that there is a tree grid with one column and checkboxes.
* Break when Thrown. This includes a default list of exceptions known by the debugger, grouped by category. Note: The possible exceptions that could break from this list is determined by the runtime you are debugging.
For example, if you are using managed-only debugging then the debugger will never break for C++, Win32 Exceptions, etc. even if they are configured to break when thrown.
* Checkboxes. If you check the box for a category, then the debugger will break for all First Chance Exceptions while debugging. If you don’t want to enable all First Chance Exceptions, you can find the specific exception types that you wish to configure by using the search box.
NEW QUESTION 18
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?
- A. Table > th:last-child { font-weight: bold; }
- B. Table+first-child{ font-weight: bold; }
- C. Table>tr>th:nth-child{2){font-weight: bold; }
- D. Table > tr {font-weight: bold;}
Answer: D
NEW QUESTION 19
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 question 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 develop an ASP.NET Core MVC web application. You have a legacy business system that sends data to the web application by using Web API. The legacy business system uses proprietary data formats.
You need to handle the proprietary data format.
Solution: Add an instance of a custom formatter class to the InputFormatters collection in MVC. Does the solution meet the goal?
- A. Yes
- B. No
Answer: A
Thanks for reading the newest 70-486 exam dumps! We recommend you to try the PREMIUM 2passeasy 70-486 dumps in VCE and PDF here: https://www.2passeasy.com/dumps/70-486/ (243 Q&As Dumps)