PrepAway - Latest Free Exam Questions & Answers

What should you do?

You work as the Microsoft.NET developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003.
The development and deployment of Extensible Markup Language (XML) Web Services forms part of your responsibilities at Domain.com. You are currently implementing two SOAP extension classes named EncryptionExtension and CompressionExtension respectively. These two classes encrypt and compress outgoing SOAP messages, and exist in the SoapUtilities namespace in an assembly named SoapUtilities.dll.
You are required to modify the Web.config file for an Extensible Markup Language (XML) Web Service
To ensure that encryption will occur prior to compression for the SOAP messages that are returned from that service.

What should you do? (Choose the correct configuration.)

PrepAway - Latest Free Exam Questions & Answers

A.
<configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type=”SoapUtilities.EncryptionExtension,SoapUtilities” priority=”1″
group=”1″/>
<add type=”SoapUtilities.CompressionExtension,SoapUtilities” priority=”2″
group=”0″/>
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>

B.
<configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type=”SoapUtilities.EncryptionExtension,SoapUtilities” priority=”2″
group=”0″/>
<add type=”SoapUtilities.CompressionExtension,SoapUtilities” priority=”1″
group=”0″/>
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>

C.
<configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type=”SoapUtilities.EncryptionExtension,SoapUtilities” priority=”1″
group=”1″/>
<add type=”SoapUtilities.CompressionExtension,SoapUtilities” priority=”1″
group=”0″/>
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>

D.
<configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type=”SoapUtilities.EncryptionExtension,SoapUtilities” priority=”1″
group=”0″/>
<add type=”SoapUtilities.CompressionExtension,SoapUtilities” priority=”2″
group=”1″/>
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>

Explanation:
Soap extensions that are defined in the Web.config file are processed as follows:
(1) All SOAP extensions that are members of group 0 are executed (2) All SOAP extensions that are members of group 1 are executed. Furthermore, within each group, a SOAP extension that has higher priority (i.e. a number closer to zero) is executed before those will lower priority. This means that you have two choices to make sure that encryuption takes place prior to compression:
(1) Make the EncryptionExtension class a member of a lower group than that of the CompressionExtension class.
(2) Give the EncryptionExtension class a higher priority than that of the CompressionExtension class.
Thus you need to assign the EncryptionExtenclass class the group 0 membership and the CompressionExtension class the group1 membership, i.e. option D.
Incorrect answers:
A: EncryptionExtension class should not have higher group membership than the CompressionExtension class. This will result in compression occurring before encryption.
B: EncryptionExtension class should not have a lower priority number than the CompressionExtension class, it will result in Compression before Encryption.
C: In this option the Priorities assign to both these classes are the same. This is incorrect.


Leave a Reply