SharePoint REST API – Interview Questions

SharePoint REST API is an interface which allows communication between server and client.

Hello friends, in this article we will learn SharePoint REST API in details. To make this article more interesting, we will use question-answer pattern here. Let’s get started.

1) What is API?

API stands for Application Program Interface. We can define API as an interface between two different applications so that they can communicate with each other.

2) What is REST?

  • REST stands for Representational State Transfer.
  • REST is an architectural style (general and reusable solution) providing standards between computer systems on the web, making them easier to communicate with each other.

3) What is SharePoint REST API?

SharePoint REST API

  • SharePoint REST API is an interface which allows communication between the SharePoint server and client machine.
  • Using SharePoint REST APIs, users can interact remotely with SharePoint data by using any technology that supports REST web requests.

4) How SharePoint REST API service works?

  1. We/developer construct and send a RESTful HTTP request by using the OData standards.
  2. Then client.svc web service handles the HTTP request and serves the appropriate response in either Atom or JSON format.
  3. The client application must then parse that response.

    SharePoint REST API
    How SharePoint REST API works?

5) In which format does REST API gives output?

REST API gives output in JSON or Atom.

Recommended articles:

  1. CRUD Operations using REST API in SharePoint
  2. SharePoint Interview Questions
  3. SharePoint Content Types – Best Explained
  4. SharePoint Site Columns – Best Explained
  5. How to Make Conditionally Mandatory Field in SharePoint 2013

I hope you liked this article. If you have any queries, please use below comments section for the same. Please like our facebook page and subscribe to our newsletter for future updates. Have a nice day! tada…

SharePoint Interview Questions

Hello friends, I am having 3.5 years of experience in SharePoint. I have worked on various SharePoint platforms like SharePoint 2010, 2013, 2016 and SharePoint Online (Office 365).

In this article, I will try to list down all the SharePoint Interview questions. I will try to keep updating this page regularly (Last update: 16th Jan 2019).

We will divide these SharePoint interview questions into different sections as follows:

Basic SharePoint Interview Questions

1. What is SharePoint?

SharePoint is a platform developed by Microsoft which is being widely used to share, communicate, store and collaborate the content, documents, and records.

2. Why do we use SharePoint?

It provides various features like

  • we can easily share the content with the users
  • storing and managing data
  • easy to manage user access
  • we can build workflows to easy the business processes

3. What is SharePoint List?

SharePoint list is a collection of records related to an entity. These records in the list are termed as items. SharePoint list provides a feature to add a different type of fields which are termed as list columns.

4. What is the SharePoint Document Library?

A document library allows users to easily store, upload, share, collaborate, and track documents or files. Similar to lists, we can create columns in a document library which represents the metadata for the uploaded documents.

5. What is a Content type?

According to Microsoft, A content type is a reusable collection of metadata (columns), workflow, behavior, and other settings for a category of items or documents in a SharePoint list or document library. Content types enable you to manage the settings for a category of information in a centralized, reusable way.

Also check detailed article: Content types in SharePoint.

6. What is Site column?

According to Microsoft, “A site column is a reusable column definition, or template, that you can assign to multiple lists across multiple SharePoint sites. Site columns are useful if your organization wants to establish some consistent settings across lists and libraries.”

Also check detailed article: Site columns in SharePoint

7. What is Check-out?

When any user check-out the document, no one else can edit that document unless it is checked-in back by that previous user. At a time only one user can check-out the file. During the check-out period, other users can open the document in read-only mode.

In case any user forgot to check-in the document, site collection administrator has privileges to take the ownership of those checked-out documents.

8. What is Check-in?

When a user check-in the document, the changes made in the document will be visible by other users. Once the file is check-in, it can be check-out by other users.

9. What is the difference between SharePoint 2010 and SharePoint 2013?

a) The major difference between 2010 and 2013 is sandbox solution and App model

b) We know that in 2010, sandbox solutions were introduced to remove issues related to full trust farm solutions which we were using in 2007.

All code in full trust app runs in SharePoint’s own server process. Any corruption has the potential to crash the entire farm.

c) To avoid these issues, Microsoft introduced sandbox solutions in 2010. Sandbox apps do not run with full trust and cannot elevate their privileges.

They run in the separate isolated process to prevent them from corrupting servers farms own process

d) Sandbox apps are deployed and managed at the site collection level and can access resources within a local site collection, They cant access resources within farm not even by using Client object model.

e) The code in sandbox solution still runs in SharePoint farms thus poorly written ones can still affect performance

f) Sandbox solution that corrupt their own memory or use too many resources may be restarted automatically further reducing server resources.

g) In 2013 we have many new exciting features such as social feed, SharePoint apps, cross-site publishing, etc.

10. What is the difference between SharePoint Online and SharePoint On-premise?

Online On-premise
1) No need of hardware to buy. All updates and patches are taken care by Microsoft 1) Resource requirement: you need more resources to maintain the server, to add updates and patches. This means a requirement of more people and hardware.
2) Information stored in the cloud 2) Information lies in your local environment
3) Cost is less and is billed monthly per user. 3) Cost is more as it requires more resources, hardware, and maintenance
4) Powershell control is reduced as compared to on-premise. 4) More PowerShell control

11. What is the difference between SharePoint 2010 workflow and 2013 workflow?

2010 Workflows 2013 Workflows
1) .net version 3.5 1) .net version 4.0
2) Workflows are hosted by SharePoint itself. 2) Workflows are hosted outside SharePoint on Azure.
It runs as a separate service, and communication of workflow with SharePoint will happen via REST/ CSOM or OAuth.
3) Workflow data is stored in the content database 3) Workflow definitions reside within SharePoint and the actual workflow is stored on windows azure.
4) Issues with scale and large deployments 4) As workflow are decoupled from SharePoint runtime, it provides better scalability, stability, and transparency
5) Only 2010 workflows 5) Both 2010 and 2013 workflows are available
6) Fewer actions as compared to 2013 6) Added new actions like loops, stages, etc. State-machine workflows feature.

12. What are Event Receivers?

The event receiver is simply a method that is called when a triggering action occurs on a specified SharePoint object.

  • Two types of event receivers:

a) Synchronous: Events are executed before the action is executed on the content database.

b) Asynchronous: Events are executed after the action is executed on the content database.

13. Difference between event receiver and workflow?

Event receiver Workflows
1) Can be executed before or after an operation 1) Can be executed only after the operation
2) Cannot be run manually 2) Can run manually
3) You can cancel the operation like adding an item 3) You cannot cancel the action as the item is already added.
4) You can create an event receiver only in Visual Studio 4) You can use any tool like SharePoint designer, Visual Studio, Visio, 3rd party apps, etc.
5) No UI interaction 5) Can use forms like initiation form, association form, etc.
6) Can be run for a very short period of time. 6) Can run for days, weeks or even years.
7) Will not survive after server reboots 7) Will survive after server reboots

14. What is the Timer job?

A timer job is a periodically executed task inside a SharePoint server. It provides us with a task execution environment.

15. What is REST API in SharePoint?

REST is an architectural style (general and reusable solution) providing standards between computer systems on the web, making them easier to communicate with each other.

SharePoint REST API is an interface which allows communication between the SharePoint server and client machine.

Using SharePoint REST APIs, users can interact remotely with SharePoint data by using any technology that supports REST web requests.

Also check details article: SharePoint REST API