| Exam Code/Number: | 70-503Join the discussion |
| Exam Name: | TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation |
| Certification: | Microsoft |
| Question Number: | 270 |
| Publish Date: | Oct 15, 2025 |
|
Rating
100%
|
|
You are creating a distributed application with Windows Communication Foundation by using Microsoft .NET Framework 3.5.
The distributed application topology includes client applications, routers, and services. Communication between the client applications and the services require authentication, confidentiality, and integrity.
You need to ensure that routers are not able to read the contents of the messages. You must achieve this goal without customizing the binding configuration.
Which binding should you use?
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5.
The WCF service must authenticate the client applications by validating credit card numbers and expiry dates. You write the following code segment. (Line numbers are included for reference only.)
01 class CreditCardTokenAuthenticator: SecurityTokenAuthenticator
02 {
03 // Implementation of other abstract methods comes here.
04 protected override ReadOnlyCollection<IAuthorizationPolicy> ValidateTokenCore(SecurityToken token)
05 {
06 CreditCardToken creditCardToken = token as CreditCardToken;
07 }
09 private bool IsCardValid(string cardNumber, 13 DateTime expirationDate)
10 {
11 // Validation code comes here.
12 }
13 }
You need to implement custom authentication for the WCF service. Which code segment should you insert at line 07?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to expose two different service endpoints that have the same address.
Which configuration setting should you use?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You write the following code fragment for the configuration setting. (Line numbers are included for reference only.)
01 <wsHttpBinding>
02 <binding name="simple">
04 </binding>
05 </wsHttpBinding>
You need to ensure that the service uses transport security and allows access to anonymous client applications. Which code fragment should you insert at line 03?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You need to ensure that the service can send data in the following format to the client applications.
<Account ld="">
<Name> </Name>
<Balance Currency=""> </Balance> </Account>
Which code segment should you use?