Developing ASP.NET MVC 4 Web Applications
Question No: 101 – (Topic 4)
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?
Enable Forms authentication
Enable Windows authentication
Generate server SSL certificates and install them in IIS
Enable Digest authentication
Answer: B Explanation:
Requirements for Delegation
Delegation relies on Integrated Windows authentication to access resources. There is no limit on the number of computers that you can delegate your account – you must correctly configure each of them. The Integrated 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. References: https://support.microsoft.com/en-us/kb/810572
Question No: 102 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.)
Question No: 103 DRAG DROP – (Topic 4)
You are designed a hybrid application that runs across a Microsoft Azure data center and your company#39;s on-premise enterprise environment.
You have the following requirements:
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.
The Service Bus relay service enables you to build hybrid applications that run in both an Azure datacenter and your own on-premises enterprise environment. The Service Bus relay facilitates this by enabling you to securely expose Windows Communication Foundation (WCF) services that reside within a corporate enterprise network to the public cloud, without having to open a firewall connection, or requiring intrusive changes to a corporate network infrastructure.
The Service Bus relay enables you to host WCF services within your existing enterprise environment. You can then delegate listening for incoming sessions and requests to these WCF services to the Service Bus service running within Azure. This enables you to expose these services to application code running in Azure, or to mobile workers or extranet partner environments.
References: https://docs.microsoft.com/en-us/azure/service-bus-relay/service-bus-dotnet- how-to-use-relay
Question No: 104 – (Topic 4)
You are developing an ASP.NET MVC application that will run in a shared environment. The application requests the user#39;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?
Add the SecuritySafeCriticalAttribute attribute to the methods which process the password.
Store the password in a SecureString instance.
Encrypt the password on the web page, and decrypt the password in the MVC application.
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.
Question No: 105 DRAG DROP – (Topic 4)
You are developing an ASP.NET MVC application in Visual Studio 2012. The application processes data for a bakery and contains a controller named BagelController.es that has several actions. The GetBagel action is defined in the following code segment.
The GetBagel action is the only action that should be accessed via a URL pattern. Routes to the other actions in the controller must be suppressed.
The default route must map to HomeController and the Index action. You need to build the routes.
Which three code segments should you use in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)
Question No: 106 – (Topic 4)
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.
In the web.config file, set the value of the debug attribute to False.
In the web.config file, set the value of the debug attribute to True.
Enable Browser link.
Use an external editor for webpages.
Enable source control server support.
Answer: B,C Explanation:
Debugging must be enabled in the web.config file.
To enable Browser Link, set debug=true in the lt;compilationgt; element in the project’s Web.config file.
Question No: 107 – (Topic 4)
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 should you do? (Each correct answer presents a complete solution. Choose all that apply.)
Annotate HTML5 content elements with Accessible Rich Internet Application (ARIA) attributes.
Convert HTML5 forms to XForms.
Ensure that HTML5 content elements have valid and descriptive names.
Use HTML5 semantic markup elements to enhance the pages.
Use Resource Description Framework (RDF) to describe content elements throughout the entire page.
Answer: A,C,D Explanation:
A: The aria-describedby property may be used to attach descriptive information to one or more elements through the use of an id reference list. The id reference list contains one or more unique element ids.
Question No: 108 – (Topic 4)
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?
NET session state
NET profile properties
NET application state
Question No: 109 – (Topic 4)
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?
Preload all the images when the client connects to ensure that the images are cached.
Combine all the images into a single image and use CSS to create sprites.
Host all images on an alternate server and provide a CDN.
Convert the images to .png file format and stream all images on a single connection.
Question No: 110 DRAG DROP – (Topic 4)
You are developing an ASP.NET MVC application in Visual Studio 2012. The application contains sensitive bank account data.
The application contains a helper class named SensitiveData.Helpers.CustomEncryptor.
The application must not display AccountNumber in clear text in any URL. You need to build the view for the GetAccounts action.
How should you build the view? (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.)
|Lowest Price Guarantee||Yes||No||No|
|Free VCE Simulator||Yes||No||No|