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 access control to Web services is part of your responsibility. To this end you are currently exposing an existing class as an Extensible Markup Language (XML) Web service. You need to ensure that this Web service is accessible exclusively accessible to Web service clients within the Domain.com domain. To comply with this requirement you need to change the access modifiers on methods that must be exposed as Web methods.

What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
For each Web method, use the Internal or Friend Access modifier.

B.
For each Web method, use the Private Access modifier.

C.
For each Web method, use the Public Access modifier.

D.
For each Web method, use the Protected Access modifier.

Explanation:
Since only Public methods can be exposed as Web methods, you should make use of the Public Access modifier for each Web method.
Incorrect answers:
A: You cannot use the Internal or Friend Access method, only Public Access method can be exposed as Web methods.
B: You cannot use the Private Access method, only Public Access method can be exposed as Web methods.
D: You cannot use the Protected Access method, only Public Access method can be exposed as Web methods.


Leave a Reply