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 serverside 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
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.
Can someone explain in detail why D is a correct answer, especially since the question indicates this is a distributed application?
I believe the only correct answer is B.
Shouldn’t it be A & B? https://msdn.microsoft.com/en-us/library/z1hkazw7.aspx
You are right. If looked on the link provided by you and found this:
Application State: “Data that is shared by multiple sessions and does not change often is the ideal type of data to insert into application-state variables.”
Session State: “The ideal data to store in session-state variables is short-lived, sensitive data that is specific to an individual session.”
The request say to store “global information that does not change frequently”, so Session State is not ideal because session-state variables is short-lived.
Windows Azure application state does not exist
https://msdn.microsoft.com/en-us/library/1as0t7ff%28v=vs.80%29.aspx
It should be A & B
This is one of those vague questions, but two things count against (A):
1.) Application state is not suitable for server farms scenarios – it’s machine specific.
2.) “Windows Azure Application State” is not a thing.
If A was just “Application State,” I might be inclined to think that we’re supposed to assume a single server in our “distributed” application. But I don’t think that’s typical for enterprise apps.
I think the answer is (B), alone.
New 70-486 Exam Questions and Answers Updated Recently (3/May/2017):
NEW QUESTION 194
You are developing an ASP.NET MVC application that delivers real-time game results to sports fans. The application includes the following code. (Line numbers are included for reference only.)
IMAGE: passleader.org/wp-content/uploads/2017/05/passleader-70-486-dumps-1941.jpg
The source data for the game results is updated every 30 seconds. Testers report the following issues with the application:
– They report seeing other user’s name when they sign in to the application.
– They report delays in seeing the latest game results.
You need to correct the performance issues. Which two changes should you make to the code? Each correct answer presents part of the solution.
A. Replace the code at line 07 with the following code segment:[OutputCache(Duration = 30, VaryByParam = “none”, Location = OutputCacheLocation.Client, NoStore = true)]
B. Replace the code at line 12 with the following code segment:[OutputCache(Duration = 30, VaryByParam = “none”, Location = OutputCacheLocation.Server, NoStore = true)]
C. Replace the code at line 07 with the following code segment:[OutputCache(Duration = 3600, VaryByParam = “none”, Location = OutputCacheLocation.Server, NoStore = false)]
D. Replace the code at line 12 with the following code segment:[OutputCache(Duration = 3600, VaryByParam = “none”, Location = OutputCacheLocation.Client, NoStore = true)]
Answer: AB
Explanation:
B:
They report delays in seeing the latest game results. This is the output of the GetResults() function. We decrease the Duration in the cache for this function from 3600 to 30. This is on line 12.
A:
They report seeing other user’s name when they sign in to the application. This is the output of the GetUserInfo() function. We should change the OutputCacheLocation of the caching of this function from Server to Client. This is on line 7.
Note: The OutputCacheLocation.Client option indicates that the content should be cached at the requesting client. Any requests for the same resource made from the same client within the expiry period, will be served out the client’s cache, without a network request being made to the server. The OutputCacheLocation.Server option indicates that the content will be cached at the origin server. This content will be served for subsequent requests made by the initial client and any other client requesting the same resource within the expiry period.
NEW QUESTION 195
You deploy an ASP.NET MVC Web application to Internet Information Services (IIS). The application has a secure area that provides access to custom reports. You must develop custom business logic to support the reports. The custom business logic has the following requirements:
– It must run each time that a report is requested.
– It must not run for other IIS requests.
– It must be mapped to the request extension of the report.
– It must be written by using a managed language that is supported by the .NET framework.
You must be able to quickly modify and deploy updates to the business logic. You need to develop the custom business logic. What should you do?
A. Update the report logic to include the custom business logic.
Use WebDAV to publish the reports to the server.
B. Develop a new HTTP module that includes the custom business logic.
Deploy the HTTP module to IIS.
C. Develop a new HTTP handler that includes the custom business logic.
Deploy the HTTP handler to IIS.
D. Develop a new ISAPI filter that includes the custom business logic.
Deploy the ISAPI filter to IIS.
Answer: C
Explanation:
An ASP.NET HTTP handler is the process that runs in response to a request that is made to an ASP.NET Web application. ASP.NET maps HTTP requests to HTTP handlers based on a file name extension.
Incorrect:
Not B: HTTP modules differ from HTTP handlers. An HTTP handler returns a response to a request that is identified by a file name extension or family of file name extensions. In contrast, an HTTP module is invoked for all requests and responses. It subscribes to event notifications in the request pipeline and lets you run code in registered event handlers.
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 202
You are developing an ASP.NET MVC application that enables you to edit and save a contact. The application must not save on an HTTP GET request. You need to implement the controller. Which two possible code segments should you use? Each correct answer presents a complete solution.
IMAGE: passleader.org/wp-content/uploads/2017/05/passleader-70-486-dumps-2021.png
IMAGE: passleader.org/wp-content/uploads/2017/05/passleader-70-486-dumps-2022.png
Answer: AB
Explanation:
A:
We retrieve the GET and POST methods through this.HttpContext.Request.RequestType.
B:
This is the default MVC implementation of having separate methods for GET and POST via function overloading.
Incorrect:
Not D: We retrieve the GET and POST methods through this.HttpContext.Request.RequestType, not through this.HttpContext.Request[“ActionName”].
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. These New 70-486 Exam Questions Were Just Updated From The Real 70-486 Exam, You Can Get The Newest 70-486 Dumps In PDF And VCE From — http://www.passleader.com/70-486.html (231q VCE and PDF)
Good Luck!
By the way, part of that new 231Q 70-486 dumps are available here:
https://drive.google.com/open?id=0B-ob6L_QjGLpflNtUWtkNlk3ODJFY0pqOUhqVFEwc0lrd0QtamRxUHFLLUdWZEVDaGtlQWM
Best Regards!