70-516 70-516 TS: Accessing Data with Microsoft .NET Framework 4

70-516 70-516 TS: Accessing Data with Microsoft .NET Framework 4 70-516 www.zertifizierung-portal.de

Prüfungsnummer : 70-516

Prüfungsnname: TS: Accessing Data with Microsoft .NET Framework 4

70-516 70-516 70-516 www.zertifizierung-portal.de

QUESTION 2
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Windows Forms application.
You plan to deploy the application to several shared client computers. You write the following code segment.
(Line numbers are included for reference only.)

01 Configuration config = ConfigurationManager.OpenExeConfiguration(exeConfigName); 02 …03 config.Save(); 04 …

You need to encrypt the connection string stored in the .config file. Which code segment should you insert at line 02?

A. ConnectionStringsSection section = config.GetSection(“connectionString”) as
ConnectionStringsSection;
section.SectionInformation.ProtectSection(“DataProtectionConfigurationProvider”);
B. ConnectionStringsSection section = config.GetSection(“connectionStrings”) as
ConnectionStringsSection;
section.SectionInformation.ProtectSection(“DataProtectionConfigurationProvider”);
C. ConnectionStringsSection section = config.GetSection(“connectionString”) as
ConnectionStringsSection;
section.SectionInformation.ProtectSection(“RsaProtectedConfigurationProvider”);
D. ConnectionStringsSection section = config.GetSection(“connectionStrings”) as
ConnectionStringsSection;
section.SectionInformation.ProtectSection(“RsaProtectedConfigurationProvider”);

Answer: D

70-516 70-516 70-516 www.zertifizierung-portal.de

Hinterlasse eine Antwort