Capgemini Sharepoint Interview

Capgemini Sharepoint Interview


Search:
  1. What is the scope?
  2. How will you change the scheduling the scope?
  3. How will you configure search particular files like .pdf or .docx etc
  4. Sharepoint installed on server by default search is configured or not?
  5. How will you to configure search in particular webapplication?
Webpart:
  1. What is webpart?
  2. What is the difference between visual webpart and normal webpart?
  3. When your deployed the visual webpart what are 4 files going to deploy
  4. Tell me the steps to deploy the solution? other than powershell,stsdam tool is there any other way can we deploy the solution?
  5. With out restart the iis can we deploy any custom solutions (webpart)?
  6. What is the difference between sandbox solutions and form solutions?
Timerjob:
  1. What is the timerjob?
  2. How will you debug the timerjob?
  3. How can you deploy timerjob in multiple servers(sharepoint servers)?
Workflow:
  1. What are the new workflows and events in SP2013?
  2. When you will use sequentional workflow and when will you use statemachine workflows?
  3. How can we reopen existing sharepoint visual studio workflow using sharepoint designer?
  4. what is the difference between (2010,2013) spd workflows and vs workflows?
Event Receivers:
  1. What is the difference between event receiver and workflow?(steps and real time scenarios)
  2. Hierarchies of event receivers
General:
  1. What is feature?
  2. What is the scope?
  3. What is feature stapling?
  4. Any idea about installation sharepoint server and configuration?
  5. Some questions are real time scenarios

Answers

Deploy timerjob in multiple servers(sharepoint servers)
Example Code 1 – Add Job to single Server:
The code below is for a Web Application scoped which will register a job definition on a single server. As Web Application scoped features are activated from Central Administration, it will use the current SPServer (i.e. the Central Admin server).
This is useful for code which modified content in the database, as you only want it to execute a single time.
public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
SPWebApplication webApp = properties.Feature.Parent as SPWebApplication;
SPJobDefinition job = new SPJobDefinition("CustomJobDef", webApp);
}
Example Code 2 – Add Job to All Servers:
The code below is for a Web Application scoped which will register a job definition on all web front end servers in the farm.
This is useful for code which modifies files or server settings, as you need it to execute separately for each server.
public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
SPWebApplication webApp = properties.Feature.Parent as SPWebApplication;
foreach (SPServer server in SPFarm.Local.Servers)
{
if (server.Role == SPServerRole.WebFrontEnd)
{
SPJobDefinition job = new SPJobDefinition("CustomJobDef", webApp, server,SPJobLockType.None);
}
}
}

Comments

Popular posts from this blog

Sites.Selected | Graph API SharePoint Permission

Configure the SharePoint Online App Catalog

Azure Function | Sharepoint List item | Call from Power Automate Flow