Microsoft UPG:Transition MCPD.NET Frmwrk 3.5 Web Dev to 4 Web Dev Sample Questions:
1. You are planning a deployment process for a set of interrelated Web services.
You need to ensure maximum availability of the Web services in the event of a hardware or software
failure.
Which approach should you recommend?
A) Run each distinct service on a separate virtual machine (VM).
B) Run each distinct service on two separate physical machines.
C) Run each distinct service on two virtual machines (VMs) hosted on one physical machine.
D) Run each distinct service on a separate physical machine.
2. Windows Communication Foundation (WCF) application uses a data contract that has several data members. You need the application to throw a Serialization Exception if any of the data members are not present when a serialized instance of the data contract is deserialized. What should you do?
A) Set the Emit Default Value property of each data member to false.
B) Add the Known Type attribute to the data contract.Set a default value in each of the data member declarations.
C) Add the Known Type attribute to the data contract.Set the Order property of each data member to unique integer value.
D) Set the IsRequired property of each data member to true.
3. You use Microsoft Visual Studio 2010, Microsoft Sync Framework, and Microsoft .NET Framework 4 to create an application. You have a ServerSyncProvider connected to a Microsoft SQL Server database. The database is hosted on a Web server. Users will use the Internet to access the Customer database through
the ServerSyncProvider. You write the following code segment. (Line numbers are included for reference
only.)
01SyncTable customerSyncTable = new SyncTable("Customer");
02customerSyncTable.CreationOption = TableCreationOption. UploadExistingOrCreateNewTable;
03
04customerSyncTable.SyncGroup = customerSyncGroup;
05 this.Configuration.SyncTables.Add(customerSyncTable);
You need to ensure that the application meets the following requirements: "Users can modify data locally
and receive changes from the server. "Only changed rows are transferred during synchronization. Which
code segment should you insert at line 03?
A) customerSyncTable.SyncDirection = SyncDirection.UploadOnly;
B) customerSyncTable.SyncDirection = SyncDirection.DownloadOnly;
C) customerSyncTable.SyncDirection = SyncDirection.Snapshot;
D) customerSyncTable.SyncDirection = SyncDirection.Bidirectional;
4. You are designing an ASP.NET 4 Web application that will integrate third-party components.
You need to minimize the security risks of using these components.
Which approach should you recommend?
A) Use the third-party components on a separate server.
B) Use an appropriately permitted AppDomain for each component.
C) Apply role-based security with declarative checks.
D) Store the components in the global assembly cache.
5. You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Communication Foundation (WCF) Data Services service. The service connects to a Microsoft SQL Server 2008 database. The service is hosted by an Internet Information Services (IIS) 6.0 server. You need to ensure that applications authenticate against user information stored in the database before the application is allowed to use the service. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A) Configure IIS to require Windows authentication.
B) Modify the Data Services service to use a Microsoft ASP.NET membership provider.
C) Enable the WCF Authentication Service.
D) Configure IIS to allow anonymous access.
E) Configure IIS to require basic authentication.
Solutions:
| Question # 1 Answer: B | Question # 2 Answer: D | Question # 3 Answer: D | Question # 4 Answer: B | Question # 5 Answer: B,D |

We're so confident of our products that we provide no hassle product exchange.


By Nathaniel


