Q.
If I wanted to not allow people to delete documents from a document library,
how would I go about it? Ans. You would on the ItemDeleting event set:
properties.Cancel= true.
33)
What is the difference between an asynchronous and synchronous event receivers?An asynchronous event
occurs after an action has taken place, and a synchronous event occurs before
an action has take place. For example, an asynchronous event is ItemAdded, and
its sister synchronous event is ItemAdding.
Q.
How could you append a string to the title of a site when it is provisioned? Ans. In the
OnActivated event:
SPWeb
site = siteCollection.RootWeb;
site.Title
+= "interview";
site.Update();
Q.
Can an event receiver be deployed through a SharePoint feature? Ans. Yes
Q.
What is a content type? Ans. A content type is an information blueprint basically
that can be re-used throughout a SharePoint environment for defining things
like metadata and associated behaviors. It is basically an extension of a
SharePoint list, however makes it portable for use throughout an instance
regardless of where the instantiation occurs, ergo has location independence.
Multiple content types can exist in one document library assuming that the
appropriate document library settings are enabled. The content type will
contain things like the metadata, listform pages, workflows, templates (if a
document content type), and associated custom written functionality.
Q.
Can a content type have receivers associated with it? Ans. Yes, a content
type can have an event receiver associated with it, either inheriting from the
SPListEventReciever base class for list level events, or inheriting from the
SPItemEventReciever base class. Whenever the content type is instantiated, it
will be subject to the event receivers that are associated with it.
Q.
What two files are typically (this is kept generally) included when developing
a content type, and what is the purpose of each? Ans. There is
generally the main content type file that holds things like the content type
ID, name, group, description, and version. There is also the ContentType.Fields
file which contains the fields to include in the content type that has the ID,
Type, Name, DisplayName, StaticName, Hidden, Required, and Sealed elements.
They are related by the FieldRefs element in the main content type file.
Q.
What is an ancestral type and what does it have to do with content types? Ans. An ancestral
type is the base type that the content type is deriving from, such as Document
(0x0101). The ancestral type will define the metadata fields that are included
with the custom content type.
Q.
Can a list definition be derived from a custom content type? Ans. Yes, a list
definition can derive from a content type which can be seen in the schema.XML
of the list definition in the element.
Q.
When creating a list definition, how can you create an instance of the list? Ans. You can create a
new instance of a list by creating an instance.XML file.
Q.
What is a Field Control? Ans. Field controls are simple ASP.NET 2.0 server controls
that provide the basic field functionality of SharePoint. They provide basic
general functionality such as displaying or editing list data as it appears on
SharePoint list pages.
Q.
What base class do custom Field Controls inherit from? Ans. This varies.
Generally, custom field controls inherit from the
Microsoft.SharePoint.WebControls.BaseFieldControl namespace, but you can
inherit from the default field controls.
Q.
What is a SharePoint site definition? What is ghosted (uncustomized) and
unghosted (customized)? Ans. SharePoint site definitions are the core set of
functionality from which SharePoint site are built from, building from the
SiteTemplates directory in the SharePoint 12 hive. Site definitions allow
several sites to inherit from a core set of files on the file system, although
appear to have unique pages, thereby increasing performance and allowing
changes that happen to a site propagate to all sites that inherit from a site
definition. Ghosted means that when SharePoint creates a new site it will
reference the files in the related site definition upon site provisioning.
Unghosted means that the site has been edited with an external editor, and
therefore the customizations are instead stored in the database, breaking the
inheritance of those files from the file system.
Q.
How does one deploy new SharePoint site definitions so that they are made aware
to the SharePoint system? Ans. The best way to deploy site definitions in the
SharePoint 2007 framework is to use a SharePoint solution file, so that the new
site definition is automatically populated to all WFE’s in the SharePoint farm.
Q.
What is an ancestral type and what does it have to do with content types? Ans. An ancestral
type is the base type that the content type is deriving from, such as Document
(0x0101). The ancestral type will define the metadata fields that are included
with the custom content type.
Q.
Can a list definition be derived from a custom content type? Ans. Yes, a list
definition can derive from a content type which can be seen in the schema.XML
of the list definition in the element.
Q.
When creating a list definition, how can you create an instance of the list? Ans. You can create a
new instance of a list by creating an instance.XML file
Q.
Can multiple SharePoint installs point to the same DB? Ans. Multiple
SharePoint installs can use the same database server. Not literally the same
database on that server. That server must be SQL Server 2000 or SQL Server
2005. It cannot be Oracle or another vendor.
1)
What are Web Applications in SharePoint?
An
IIS Web site created and used by SharePoint 2010. Saying an IIS virtual server
is also an acceptable answer.
2)
What is an application pool?
A
group of one or more URLs that are served by a particular worker process or set
of worker processes.
3)
Why are application pools important?
They
provide a way for multiple sites to run on the same server but still have their
own worker processes and identity.
4)
What are zones?
Different
logical paths (URLs meaning) of gaining access to the same SharePoint Web
application.
5)
What are Web Application Policies?
Enables
security policy for users at the Web application level, rather than at the site
collection or site level. Importantly, they override all other security
settings.
6)
What is a site collection?
A
site collection contains a top-level website and can contain one or more
sub-sites web sites that have the same owner and share administration settings.
7)
What are content databases?
A
content database can hold all the content for one or more site collections.
8)
What is a site?
A
site in SharePoint contains Web pages and related assets such as lists, all
hosted within a site collection.
9)
What are My Sites?
Specialized
SharePoint sites personalized and targeted for each user.
10)
What is the difference between Classic mode authentication and Claims-based
authentication?
As
the name implies, classic authentication supports NT authentication types like
Kerberos, NTLM, Basic, Digest, and anonymous. Claims based authentication uses
claims identities against a against a trusted identity provider.
11)
When would you use claims, and when would you use classic?
Classic
is more commonly seen in upgraded 2007 environments whereas claims are the
recommended path for new deployments.
12)
Describe the potential components for both a single server, and multiple
servers, potentially several tiered farms:
A
single-server SharePoint Server 2010 environment leverages a built-in SQL
Server 2008 Express database. The problems with this environment is
scalability, not being able to install the with built-in database on a domain
controller, the database cannot be larger than 4 GB, and you cannot use User
Profile Synchronization in a single server with built-in database installation.
An
example of a multiple tier farm would be a three-tier topology, considered one
of the more efficient physical and logical layouts to supports scaling out or
scaling up and provides better distribution of services across the member
servers of the farm. This is considered a good architecture since one can add Web
servers to the Web tier, add app servers to the application tier, and add
database servers to the database tier.
No comments:
Post a Comment