You are on page 1of 24

Top 14 wcf interview questions and

answers
If you need top 7 free ebooks below for your job interview, please visit:
4career.net
• Free ebook: 75 interview questions and answers
• Top 12 secrets to win every job interviews
• 13 types of interview quesitons and how to face them
• Top 8 interview thank you letter samples
• Top 7 cover letter samples
• Top 8 resume samples
• Top 15 ways to search new jobs

Interview questions and answers – free pdf download

Page 1 of 24

Tell me about yourself?
This is probably the most asked
question in wcf interview. It breaks the
ice and gets you to talk about
something you should be fairly
comfortable with. Have something
prepared that doesn't sound rehearsed.
It's not about you telling your life story
and quite frankly, the interviewer just
isn't interested. Unless asked to do so,
stick to your education, career and
current situation. Work through it
chronologically from the furthest back
to the present.

Interview questions and answers – free pdf download

Page 2 of 24

Contract that defines what the service does and a Binding that defines how to communicate with the service. The Endpoint is the fusion of Address.Clients will use this location to communicate with our service. 1. Contract and Binding. Contract : Specifies the interface between client and the server.What is endpoint in WCF? or What is three major points in WCF? Every service must have Address that defines where the service resides. Interview questions and answers – free pdf download Page 3 of 24 . 2. Contract and Binding is called Endpoint. In WCF the relationship between Address. 3. Binding : Specifies how the two paries will communicate in term of transport and encoding and protocols.It’s a simple interface with some attribute. Address : Specifies the location of the service which will be like http://Myserver/MyService.

and the ability to build strong customer relationships. This allows me to use my knowledge and break down information to be more userfriendly." Interview questions and answers – free pdf download Page 4 of 24 . skills and traits.What Can You Do for Us That Other Candidates Can't? What makes you unique? This will take an assessment of your experiences. Summarize concisely: "I have a unique combination of strong technical skills.

Note this is not a general solution for serialization as unidirectional mode may be insufficient for many use cases.How do I serialize entities using WCF? LINQ to SQL supports serialization as XML via WCF by generating WCF serialization attributes and special serialization specific logic during codegeneration. You can turn on this feature in the designer by setting serialization mode to ‘Unidirectional’. Interview questions and answers – free pdf download Page 5 of 24 .

all services expose contracts. and are useful in interoperability cases and when there is an existing message format we have to comply with. Message contracts : Allow the service to interact directly with messages. Data contracts : Define which data types are passed to and from the service. WCF defines four types of contracts. and how the service handles and propagates errors to its clients. 1. Fault contracts : Define which errors are raised by the service. Interview questions and answers – free pdf download Page 6 of 24 . 3. 2. but we can easily define explicit opt-in data contracts for custom types. Service contracts : Describe which operations the client can perform on the service. WCF defines implicit contracts for built-in types such as int and string. 4. The contract is a platform-neutral and standard way of describing what the service does. Message contracts can be typed or untyped.What is contracts in WCF? In WCF.

msmq://localhost/MyMsMqServic e Interview questions and answers – free pdf download Page 7 of 24 .msmq://localhost/private/MyMsM qService net. HTTP 2. TCP 3.WCF supports following transport schemas 1.pipe://localhost/MyPipeService net. Peer network 4.tcp://localhost:82/MyService net. MSMQ The sample address for above transport schema may look like http://localhost:81 http://localhost:81/MyService net. IPC (Inter-Process Communication over named pipes) 5.

When we host a service it’s consumed by multiple types of client and it’s very much possible that they have there own protocol of communication. Once we are done the server side coding its time to see make a client by which we can switch between the protocols and see the results. Let’s do a small sample in which we will host the ServiceGetCost on TCP and HTTP protocol. Below is the code snippet of the client side for multi-protocol hosting Interview questions and answers – free pdf download Page 8 of 24 . You must be wondering why to ever host services on two different types of protocol.How can we host a service on two different protocols on a single server? Let’s first understand what this question actually means. Let’s say we have made a service and we want to host this service using HTTP as well as TCP. A good service has the capability to downgrade or upgrade its protocol according the client who is consuming him.

But Services are flexible. If you make a new version of the service then you need to just expose a new end point. Second web services are not flexible. 2.What is the difference WCF and Web services? 1. Interview questions and answers – free pdf download Page 9 of 24 . Web services can only be invoked by HTTP. So services are agile and which is a very practical approach looking at the current business trends. While Service or a WCF component can be invoked by any protocol and any transport type.

Enables greater design flexibility and extensibility of distributed systems architectures. Interview questions and answers – free pdf download Page 10 of 24 . Each Endpoint is a portal (connection) for communication with either clients (applications) or other services. A WCF application is represented as a collection of services with multiple entry points for communications. where all units of functionality are defined as services. A WCF Service is a program that exposes a collection of Endpoints.How does WCF work? Follows the ‘software as a service’ model.

g.Net Language©. windows service 3.What are the main components of WCF? 1. implemented using any . exe. Interview questions and answers – free pdf download Page 11 of 24 . 2.Service: The working logic or offering. E.Endpoints: The way a service is exposed to outside world. process.Host: The environment where the service is parked.

Application config file can be used for setting transaction timeouts. Transactions in WCF allow several components to concurrently participate in an operation. WCF has features that allow distributed transactions. isolated and durable.Explain transactions in WCF. consistent. Interview questions and answers – free pdf download Page 12 of 24 . Transactions are a group of operations that are atomic.

SERIALIZABLE:. REPEATABLE READ: – Locks placed on all data and another transaction cannot read. Interview questions and answers – free pdf download Page 13 of 24 . READ UNCOMMITTED: – An uncommitted transaction can be read.What are different isolation levels provided in WCF? The different isolation levels: 1.Will not read data of a transaction that has not been committed yet 3. 4. 2. This transaction can be rolled back later. READ COMMITTED :.Does not allow other transactions to insert or update data until the transaction is complete.

Contract that defines what the service does and a Binding that defines how to communicate with the service. Contract and Binding is called Endpoint.What is End point ? Every service must have Address that defines where the service resides. Interview questions and answers – free pdf download Page 14 of 24 . In WCF the relationship between Address.

In WCF. This contains the location of the service and transport schemas. every service is associated with a unique address. Interview questions and answers – free pdf download Page 15 of 24 .What is address in WCF and how many types of transport schemas are there in WCF? Address is a way of letting client know that where a service is located.

net • Free ebook: 75 interview questions and answers • Top 12 secrets to win every job interviews • Top 36 situational interview questions • 440 behavioral interview questions • 95 management interview questions and answers • 30 phone interview questions • Top 8 interview thank you letter samples • 290 competency based interview questions • 45 internship interview questions • Top 7 cover letter samples • Top 8 resume samples • Top 15 ways to search new jobs Interview questions and answers – free pdf download Page 16 of 24 .Useful job interview materials: If you need top free ebooks below for your job interview. please visit: 4career.

Top 6 tips for job interview Interview questions and answers – free pdf download Page 17 of 24 .

Look at its site to understand its mission statement. product offerings.Tip 1: Do your homework You'll likely be asked difficult questions during the interview. Preparing the list of likely questions in advance will help you easily transition from question to question.net/job-interviewchecklist-40-points Interview questions and answers – free pdf download Page 18 of 24 . The more you know about a company. Spend time researching the company. Read the company's annual report (often posted on the site). the more you'll know how you'll fit in to it. and management team. Ref material: 4career. review the employee's LinkedIn profiles. A few hours spent researching before your interview can impress the hiring manager greatly. to see if they've been mentioned in the media lately. and search the company on Google News.

 Use positive body language and turn on your charm right from the start.  Start the interview with a handshake.  Determine to establish a rapport with the interviewer right from the start.  Express yourself fluently with clarity and precision. Therefore:  Never arrive late.  Look fabulous. Continue that excellent impression in the days following.Tip 2: First impressions When meeting someone for the first time. give a nice firm press and then some up and down movement. we instantaneously make our minds about various aspects of their personality.  Switch off your mobile before you step into the room.net/top-10-elements-to-make-aInterview questions and answers – free pdf download Page 19 of 24 . and that job could be yours. Useful material: 4career.  Always let the interviewer finish speaking before giving your response. Prepare and plan that first impression long before you walk in the door. dress sharp and make sure you look your best.

Referral. This means that if you know how to exploit a hidden job market. Family. HR emails of potential recruiters… Interview questions and answers – free pdf download Page 20 of 24 . Last recruitment ads from recruiters. Social networks such as Facebook. you can increase your chance of getting the job up to 300%. Twitter…. Field communities. Here are some sources to get penetrating into a hidden job market: Friends. the author shares his experience and useful tips to exploit hidden job market.good-first-impression-at-a-job-interview Tip 3: The “Hidden” Job Market Many of us don’t recognize that hidden job market is a huge one and accounts for 2/3 of total job demand from enterprises. HR communities. Ex-coworkers. In this section.

Tip 4: Do-It-Yourself Interviewing Practice There are a number of ways to prepare for an interview at home without the help of a professional career counselor or coach or a fee-based service. You can practice interviews all by yourself or recruit friends and family to assist you. Useful material: 4career.net/free-ebook75-interview-questions-and-answers Interview questions and answers – free pdf download Page 21 of 24 .

Be specific with your questions. Ask about the company and the industry. Once the interview is over. religion and the like.Tip 5: Ask questions Do not leave the interview without ensuring that you know all that you want to know about the position.net/25-questionsto-ask-employers-during-your-jobinterview Interview questions and answers – free pdf download Page 22 of 24 . Asking questions also can show that you are interested in the job. your chance to have important questions answered has ended. Avoid asking personal questions of the interviewer and avoid asking questions pertaining to politics. Ref material: 4career.

Invite the hiring manager to contact you for additional information.Tip 6: Follow up and send a thank-you note Following up after an interview can help you make a lasting impression and set you apart from the crowd. CPP. This is also an excellent time to send a strategic follow-up letter of interest." Ref material: 4career. expressing excitement.net/top-8interview-thank-you-letter-samples Interview questions and answers – free pdf download Page 23 of 24 . Philip Farina. qualifications and further interest in the position. a security career expert at Manta Security Management Recruiters. says: "Send both an email as well as a hard-copy thank-you note.

Interview questions and answers – free pdf download Page 24 of 24 .