WCF and .NET Web Services
This quiz covers Windows Communication Foundation (WCF), REST and SOAP web services, service contracts, hosting, security, endpoints, and various components of .NET service-oriented architecture.
Questions
Which of the following is/are applicable for REST service?
- This service uses the TCP protocol for its communication.
- This service will allow the client (written in different language) to access or modify the resource in the server using URL.
- This service involves building Resource-Oriented Architecture (ROA).
- Both 2 and 3
- Both 1 and 2
Which of the following is/are applicable for SOAP (Simple Object Access Protocol) web service?
- This service has a package that contains message information and is delivered by HTTP.
- In this service, the Plain raw XML message is used for communication.
- SOAP has much interoperability.
- All of the these
- Both 1 and 3
Which of the following informations does the 'Service contracts' include in WCF architecture?
- It describes about the operation that service can provide.
- Service contracts are created using Service and Operational Contract attribute.
- It defines the data types that are passed to and from service.
- Default SOAP message format is provided by the WCF runtime for communication between Client and service.
- Both 1 and 2
Which of the following is/are correct about 'Service Runtime' in WCF service architecture?
- It specifies what occurs and when internal error occurs on the service.
- It tells how and whether metadata is available to outside world.
- It specifies how many instances of the service has to be created while running.
- All of the these
- Both 1 and 2
Which of the following statements is/are applicable for the Windows Activation Service(WAS) in WCF hosting?
- WAS is used to provide message-based activation over other protocols such as TCP and named pipes.
- WAS service can be self hosted as console application, Win Forms or WPF application with graphical UI.
- It does not require Host code to activate the service as it automatically activates service code.
- This service does not use any communication protocol.
- Both 1 and 2
Which of the following services is/are not provided by WCF?
- Service Orientation
- Service Metadata
- Data Contracts
- Security
- Data manipulation
Which of the following is/are applicable for Windows Communication foundation (WCF)?
- WCF is a framework for building service-oriented applications.
- In WCF, one can send data as asynchronous messages from one service endpoint to another.
- WCF is designed to offer a manageable approach to creating Web services and Web service clients.
- WCF is used in business transactions.
- All of the these
Which of the following is/are applicable for 'Host Environment' in WCF Service components?
- The Host environment can be a Console application or a Windows Service, or a Windows Forms application.
- It has service class that implements some service as a set of methods.
- It specifies an address that defines where the endpoint is hosted.
- It specifies the url of the service.
- All of the these
Which of the following is/are correct about 'Data Contracts' in WCF services?
- It includes code-friendly methods of supplying the contracts, one wants to enforce.
- It makes enable to create service oriented applications.
- It supports publishing service metadata using formats specified such as WSDL, XML Schema, and WS-Policy.
- It is used to encrypt the messages and one can require users to authenticate themselves before being allowed to receive messages.
- Both 1 and 4
Which of the following statements is/are correct about WCF supporting tools?
- WCF support AJAX and REST
- WCF supports various transactions.
- WCF does not have extensibility.
- Both 2 and 3
- Both 1 and 2
Which of the following is/are applicable for Web Services?
- Web service is a part of WCF.
- Web Service can be hosted in IIS, windows activation service, self-hosting, and Windows service.
- WCF offers much more flexibility and portability to develop a service as compared to web service.
- All of the these
- Both 1 and 3
Which of the following is/are correct about 'Service Metadata' feature in WCF?
- It can be used to automatically generate and configure clients for accessing WCF services.
- It can be published over HTTP and HTTPS or using the Web Service Metadata Exchange standard.
- It is used to exchange the messages.
- All of the these
- Only 1 and 2 are correct.
Which of the following is/are applicable to Binding service in WCF?
- It describes how client will communicate with service.
- It provides encoding for the transmission of messages and attachments.
- It defines informations, such as security, transaction or reliable messaging capability.
- All of the these
- Both 1 and 3
What is the role of Endpoints in the WCF service component?
- It specifies an address that defines where the endpoint is hosted.
- It is Console application or a Windows Service, or a Windows Forms application.
- It has service class that implements some service as a set of methods.
- Endpoints determines the security of service.
- Both 1 and 4
Which of the following is/are correct about 'Security' feature in WCF services?
- It includes code-friendly methods of supplying the contracts one wants to enforce.
- It enables to create service oriented applications.
- It supports publishing service metadata using formats specified such as WSDL, XML Schema, and WS-Policy.
- It is used to encrypt the messages and one requires users to authenticate themselves before being allowed to receive messages.
- None of the these