Which code segment should you add?
You are implementing a method in an ASP.NET application that includes the following requirements.
Store the number of active bugs in the cache.
The value should remain in the cache when there arecalls more often than every 15 seconds.
The value should be removed from the cache after 60seconds.
You need to add code to meet the requirements.
Which code segment should you add?
You need to ensure that the minimum amount of disk space is used to store the data in the Product table
You administer a Microsoft SQL Server 2012 database.
The database contains a Product table created by using the following definition:
You need to ensure that the minimum amount of disk space is used to store the data in the Product table.
What should you do?
Which attribute should you use?
You are implementing an ASP.NET application that will use session state in out-of-proc mode.
You add the following code.
public class Person
{
public string FirstName { get; set;}
public string LastName { get; set;}
}
You need to add an attribute to the Person class toensure that you can save an instance to session state.
Which attribute should you use?
Which type of user should you create?
You use a contained database named ContosoDb withina domain.
You need to create a user who can log on to the ContosoDb database. You also need to ensure that you can
port the database to different database servers within the domain without additional user account
configurations.
Which type of user should you create?
Which code segment should you use?
You create a Web page named TestPage.aspx and a user control named contained in a file named
TestUserControl.ascx.
You need to dynamically add TestUserControl.ascx toTestPage.aspx.
Which code segment should you use?
You administer a Microsoft SQL Server 2012 failovercluster that contains two nodes named Node A and Node
You administer a Microsoft SQL Server 2012 failovercluster that contains two nodes named Node A and Node
Which two actions should you perform?
You create a Web page named TestPage.aspx and a user control named TestUserControl.ascx.
TestPage.aspx uses TestUserControl.ascx as shown inthe following line of code.
<uc:TestUserControl ID=”testControl” runat=”server”/>
On TestUserControl.ascx, you need to add a read-only member named CityName to return the value “New
York”.
You also must add code to TestPage.aspx to read this value.
Which two actions should you perform? (Each correctanswer presents part of the solution. Choose two.)
Which isolation level should you use?
You use Microsoft SQL Server 2012 to write code fora transaction that contains several statements.
There is high contention between readers and writers on several tables used by your transaction.
You need to minimize the use of the tempdb space.
You also need to prevent reading queries from blocking writing queries.
Which isolation level should you use?
Which two actions should you perform?
You use the following declaration to add a Web usercontrol named TestUserControl.ascx to an ASP.NET
page named TestPage.aspx.
<uc:TestUserControl ID=”testControl” runat=”server”/>
You add the following code to the code-behind file of TestPage.aspx.
private void TestMethod()
{
…
}
You define the following delegate.
public delegate void MyEventHandler();
You need to add an event of type MyEventHandler named MyEvent to TestUserControl.ascx and attach the
page’s TestMethod method to the event.
Which two actions should you perform? (Each correctanswer presents part of the solution. Choose two.)
Which three actions should you perform in sequence?
You are a database administrator of a Microsoft SQLServer 2012 environment. The environment contains two
servers named SQLServer01 and SQLServer02. The database Contoso exists on SQLServer01. You plan to
mirror the Contoso database between SQLServer01 andSQLServer02 by using database mirroring. You need
to prepare the Contoso database for database mirroring. Which three actions should you perform in sequence?