Loading...

Adobe CQ-5 Interview Questions | Part - 1

1) What is CQ5? Why Content Management System is Required? Advantages of CQ5 over other CMS?

CQ5 is a java based content management system from adobe, previously Day CQ5

1)   It is based on a content repository(i.e it uses a content repository to store the content of a website) and use JCR(java content repository) specification to access the content repository.

2)   It uses RESTfulApache Sling framework to map request url to the corresponding node in content repository

3)  It uses powerful OSGi framework internally to allow modular application development. It means  individual pieces of your application(called bundles in terms of OSGi) can be independently started and stopped. CQ5 uses

Apache Felix as the OSGi container. Therefore different parts of cq5 can be independently started and stopped.

 why a content management system is required? Some websites are very dynamic in nature, content needs to be updated frequently, so it is easier to manage the content of such websites using a CMS.

 
Advantages of CQ5 over other CMS:

Implementation of workflows for creating, editing and publishing of content
Managing a repository of digital assets like images, documents and integrating them to the websites.

Usage of search queries to find content no matter where it is stored in your organization.
Setting up easily the social collaboration blogs, groups.

Tagging utility to organize the digital assets such as images.

2)    What is the technology stack of cq5?

Cq5 uses the following technologies :

1)    JCR – java specification for accessing a content repository  JSR-283 specification jcr 2.0 , cq5 uses its own implementation of jcr called CRX. Apache Jackrabbit is an open-source implementation of jcr 2.0 specification.

2)    Apache Sling – RESTful framework to access a jcr over http protocol. It maps the request url to the node in jcr.

3)    OSGi(Apache Felix) – framework for modular application development using java. Each module called bundle can be independently started and stopped.OSGi container which provides implemention classes for OSGi framework.

Architecture_TechnologyStack

3)    What is a content repository? What is JCR?

A Content repository is basically a place where digital content is stored. Generally the structure of the content repository is hierarchial and represented as a tree structure where each node of the tree is used to store content.

Java Content Repository is a specification provided by the java community to access the content repository in a uniform way (platform independent and vendor independent way). The specification was initially released as JSR-170(JCR 1.0) and then later revised version 2 as (JCR-283).The javax.jcr API provides the various classes and interfaces to access a content repository.

4) What is Sling? How is it different from other web-development fameworks? 

Apache Sling is RESTful framework to access a java content repository over http protocol.
It is a content driven framework that is it maps the incoming user request based on URI to the corresponding node in the content repository and depending on the type of the request(GET,POST, etc) executes the corresponding dynamic script.

For example –  consider a scenario where a user is hitting a US website products page and getting the details of product1.

The incoming URL request from user will be

http://www.mywebsite.com/products/product1.html

This would be mapped by the sling resource resolver to a node in the JCR

/content/mywebsite/us/products/product1


5) What is REST? What is a RESTful Framework?

REST stands for Representational State Transfer.REST-style architectures consist of clients and servers. Clients initiate requests to servers; servers process requests and return appropriate responses. Requests and responses are built around the transfer of representations of resources. A resource can be essentially any coherent and meaningful concept that may be addressed. A representation of a resource is typically a document that captures the current or intended state of a resource.

Apache Sling is RESTful framework to access a java content repository over http protocol.
VirtualNuggets 2240012788638643318

Post a Comment

emo-but-icon

Home item

Blog Archive

Popular Posts

Random Posts

Flickr Photo