Which code segment should you add to the console application?
You have a custom theme named MyTheme . The theme is defined in a file named
MyTheme.thmx . You have a console application that contains the following code segment. (Line
numbers are included for reference only.) 101 using ( SPSite sice = new SPSite ( “http://intranet”
}} 02 { 03 SPWeb web – site.OpenWeb (); 01 05 } You need to programmatically apply the theme
to a SharePoint site. Which code segment should you add to the console application?
How should you complete the relevant code?
HOTSPOT
You create a cache for a project by using Azure Redis Cache. You are writing test code that verifies that the
cache is available.
You need to ensure that data can be saved to the cache and retrieved from the cache.
How should you complete the relevant code? To answer, select the appropriate option or options in the
answer area.
How should you complete the relevant code?
DRAG DROP
You are developing a web application that uses Azure push notifications to interact with users.
You need to send a text notification to users to alert them that the application is ready to test.
How should you complete the relevant code? To answer, drag the appropriate code segment to the correct
location. Eachcode 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.
Which code segment should you insert at line 11?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. You
create a Data Access Layer (DAL) that is database-independent. The DAL includes the following code
segment. (Line numbers are included for reference only.)
01 static void ExecuteDbCommand(DbConnection connection)
02 {
03 if (connection != null){
04 using (connection){
05 try{
06 connection.Open();
07 DbCommand command = connection.CreateCommand();
08 command.CommandText = “INSERT INTO Categories (CategoryName) VALUES (‘Low Carb’)”;
09 command.ExecuteNonQuery();
10 }
11
12 catch (Exception ex){
13 Trace.WriteLine(“Exception.Message: ” + ex.Message);
14 }
15 }
16 }
17 }
You need to log information about any error that occurs during data access. You also need to log the
data provider that accesses the database. Which code segment should you insert at line 11?
You need to configure the virtual networks
A company plans to increase its virtual network capacity by adding virtual network subscriptions.
You must increase the number of subscriptions from 3 to 15.
You need to configure the virtual networks.
What should you do?
You need to design a remote monitoring strategy to monitor the usage time of the application by each user
You are developing an application by using Microsoft .NET Framework 4, The application
will be used by all employees of your company, Local file stores on the computers are
secure and inaccessible remotely. You need to design a remote monitoring strategy to
monitor the usage time of the application by each user. What should you do?
You need to allow peer-to-peer communication between all locations
Your company has computers in multiple locations that use IPv4 and IPv6. Each location is protected
by a firewall that performs symmetric NAT. You need to allow peer-to-peer communication between
all locations. What should you do?
Which code segment should you use?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Forms
application. The application connects to a Microsoft SQL Server database. You need to find out
whether the application is explicitly closing or disposing SQL connections. Which code segment
should you use?
Which approach should you recommend?
You are designing the user interface for an ASP.NET Web application. The Web application
allows several departments to personalize the style of their sections of the Web application.
All departmental section styles derive from the core styles of the Web application and can
only append to the Web application’s core styles. The departmental master pages inherit
from the Web application’s master page. You need to ensure that core CSS styles appear
En all pages of the Web application. Which approach should you recommend?
Which two operations should you monitor?
You are maintaining an application that uses the Azure Content Delivery Network (CDN) to serve terabytes of
content that is stored in page blobs.
Your bill for CDN services is higher than you expect.
You need to monitor the application to find issues that increase costs.
Which two operations should you monitor? Each correct answer presents part of the solution.