YouTube Icon

Interview Questions.

Top 31 Adobe Aem/cq Interview Questions - Jul 25, 2022

fluid

Top 31 Adobe Aem/cq Interview Questions

Q1. What Is The Technology Stack Used In Cq5 Or Aem(adobe Experience Manager)?

Adobe CQ5 uses the subsequent technologies : JCR – Java specification for accessing a content material repository JSR-283 specification jcr 2.0 , cq5 uses its very own implementation of jcr known as CRX. Apache Jackrabbit is an open-source implementation of jcr 2.0 specification. Apache Sling – RESTful framework to get entry to a jcr over http protocol.

It maps the request url to the node in jcr. OSGi(Apache Felix) – Framework for modular software development using java. Each module known as package may be independently began and stopped.OSGi box which presents implemention classes for OSGi framework.

Q2. What Is A Cq5 Overlay/override Component?

The overlay/override component is used while you want to apply an out of the field component in AEM and you want to feature extra features to it and you need to change it throughout all instances of that element. For example in case you need to feature capabilities to the out of the container “text” thing, but you don’t want to create a brand new aspect, you'll need to duplicate the “text” aspect from “libs/basis/components” to “apps/foundation/components” and preserve the identical folder structure this is used. When that is completed, any adjustments that executed to this new thing could be meditated inside the out of the box “text” issue, with out changing the original code underneath “libs”. It is usually now not a great practice to adjust the unique code, that is why CQ gives the capacity to apply overlays.

Q3. What Design Patterns Are Used In Aem?

Since AEM is built the usage of OSGI, most of the layout patterns for OSGI are valid. Some of those layout styles are Singleton (Service), Adapter Service, Resource Adapter Service, and Whiteboard. Also, for the reason that AEM is modular, you ought to be capable of use any layout sample on your software.

Q4. What Is Resource Resolution In Sling?

Resource decision in Sling is how Sling takes a URL and attempts to solve it to a script. This is executed through extracting information from the URL. Here is an example

URL:

http://myhost/equipment/spy.Printable.A4.Html/a/b?X=12

Q5. How Do You Add Properties To The Page Properties Dialog?

You can upload properties to your page properties dialog via copying the conversation located beneath “libs/foundation/additives/page/conversation” and adding it for your web page template. This will allow you to add new tabs and add new residences which you would really like the writer to chooses from for pages that use that template.

You ought to alter the authentic page dialog as well to get the identical end result, but it is not encouraged.

Q6. What Are The Advantages Of Aem Over Another Cms?

One huge benefit of AEM over any other CMS is how it integrates with different products from Adobe and with the Adobe Marketing Cloud. AEM comes constructed in with features like workflows to control content material in the CMS, the usage of search queries to locate something you're looking for, putting in social collaboration, tagging content material, and a manner to control your virtual content material.

AEM additionally consists of a way to manage cell programs, cell web sites, e-trade, and marketing campaign control.

Q7. How Do You Load Digital Assets In Dam?

You can upload digital property to your dam by way of the use of the graphical user interface or via WebDav access.

If you're the use of the graphical consumer interface, you will just browse for the selected documents you would like to add, after which cq will create the metadata for the ones assets within the dam folder. You would typically use the WebDav alternative while you need to add a big variety or assets right now.

Q8. What Is Adobe Cq5?

Adobe CQ5(also known as Adobe Experience Manager) is a java based totally content material control machine from adobe. It is based on a content material repository to save the content of a internet site and use JCR(java content repository) specification to get admission to the content repository.

It makes use of RestfulApache Sling framework to map request url to the corresponding node in content repository It makes use of effective OSGi framework internally to allow modular utility development. It me character portions of your application(called bundles in terms of OSGi) may be independently started out and stopped. It makes use of Apache Felix because the OSGi field. Therefore one of a kind parts of cq5 can be independently started and stopped.

Q9. What Are Xtypes And How Are They Useful In Aem?

In the ExtJS language an xtype is a symbolic call given to a category. In AEM these xtypes are widgets that used in the advent of components. AEM comes with a bunch of widgets which can be available out of the field. You also can create and outline your personal xtype for use in AEM.

An example of an xytpe is while you are creating your conversation in your factor, and you want the writer if you want to input textual content, you would add a “cq:Widget” that has an xtype property of “textfield”.

Q10. What Is The Listener Property In Aem?

The listener property in AEM for a factor is used to outline what occurs before or after an action at the element. This is brought via the usage of the “cq:listeners” node with a node form of “cq:EditListenersConfig”. The listener assets also can be introduced to any widget in AEM.

In order to feature a listener to that widget you simply want to add to feature a node this is called “listeners” with a sort of “nt:unstructured”. Then you simply need to feature baby nodes to the “listeners” node which are events of that widget. You can discover a listing of events for each widget with the aid of looking CQ Widget API documentation.

Q11. What Is A Replication Agent?

A replication agent is used to put up active content material from the writer surroundings to the put up surroundings, to flush content from the dispatcher cache, and go back user enter from the post environment to the author surroundings. The replication retailers are crucial to AEM.

Q12. How Does Sightly Differ From Other Templating Systems?

Sightly differs from different templating structures in three approaches. Sightly is relaxed via default, it offers separation of worries, and sightly is HTML5 because it's miles a legitimate HTML5 record. Sightly is comfy through default because it routinely filters and escapes all variables being output to the presentation layer to prevent go-web page-scripting vulnerabilities. Sightly offers seperation of challenge because it's far purposely restrained to make certain that a real programming language is used to specific the corresponding logic. This is accomplished thru the Use-API sample.

Q13. What Is Sightly?

Sightly is an HTML templating language that become introduced in AEM 6.@It is supposed to take the area of JSP documents and is the preferred templating gadget for HTML. The name sightly me “pleasing to the eye”, and its consciousness is to hold your markup beautiful and maintainable.

Q14. What Are The Benefits Of Using Osgi?

The primary blessings of the usage of OSGI are:

It reduces the complexity of the device by using having the whole thing in bundles.

It makes the components loosely coupled and easy to manage considering they may be mounted, deleted, updated, started, and stopped at run time.

It increases the overall performance of the gadget given that elements of the software that aren't in use, do no longer need to be loaded inside the memory.

Q15. What Is Resource Mapping?

Resource mapping is used to outline redirects, arrogance URLs and digital hosts for AEM. You can use useful resource mapping to prefix all requests with “/content” so the inner structure of the AEM web site is hidden out of your site visitors. You can also use resource mapping to define a redirect so that all requests to the gateway web page of your website are redirected to every other website online.

Q16. What Is The Technology Stack That Cq5 Is Based On?

The CQ5 era stack is primarily based on three technology. These technologies are: Apache Sling, OSGI (Apache Felix), and the Java Content Repository (JCR). Apache Sling is a RESTful framework this is used to access a jcr over http protocol. It will then map that request url to the node inside the jcr. OSGI is a framework this is used for modular application development the usage of Java.

Each module, that is referred to as a bundle, can be stopped and began independently during runtime. The Java Content Repository uses the JSR-one hundred seventy API to get entry to the content material repository by means of the use of Java independently of the bodily implementation. CQ5 uses its personal implementation of the jcr known as CRX.

Q17. What Is The Role Of The Dispatcher?

The dispatcher is AEM’s caching and/or load balancing device. By using the dispatcher it can also help shield your AEM server from attack in view that it is going to be the usage of cached pages. The aim of the dispatcher is to cache as plenty content as viable, so it does not want to get entry to the layout engine. Load balancing is the exercise of dispensing computational load of the website across several times of AEM.

The advantages of the usage of the dispatcher as a load balancing tool is so you advantage increased processing electricity because the dispatcher stocks file requests among numerous times of AEM, and to have accelerated fail-safe insurance. This is achieved by means of if the dispatcher does no longer get hold of responsesfrom an example, it will routinely relay the request to every other instance.

Q18. What Is Restful?

Representational State Trfer (REST) is an architectural style and an technique to communications this is frequently used in the improvement of internet services.

It relies on a stateless, customer server, cacheable communications protocol. RESTful packages use HTTP requests to post information, study data, and delete facts.The six architectural constraints of REST are: uniform interface, stateless, cacheable, customer server, layered machine, and code on demand.

Q19. What Is The Difference Between A Dialog And A Design Dialog?

A conversation is a key detail of the component due to the fact they provide an interface for authors to configure and offer input to that thing.

This enter may be saved on the page degree within the jcr. A design conversation is a conversation with the intention to simplest display whilst you are in design mode in AEM. The enter that is acquired right here may be stored at the template level and will be accessed across the entire website.

Q20. Why Is A Content Management System (cms) Required?

A content management gadget is a bit of software program this is used to create and manipulate documents and Web websites. Many websites are dynamic, so their content wishes to be up to date regularly. In order control these modifications efficiently, it is advocate that a content control gadget be used. Which is why AEM is a content control machine.

Q21. What Are The Advantages Of Cq5 Over Other Cms?

Below are the blessings of CQ5 over other CMS(Content management System):- Implementation of workflows for creating, modifying and publishing of content material. Managing a repository of virtual belongings like pictures, files and integrating them to the websites.

Usage of seek queries to find content material regardless of wherein it's far stored for your organization. Setting up effortlessly the social collaboration blogs, organizations. Tagging software to organize the virtual assets inclusive of photographs.

Q22. Explain Architecture Of Cq5 Application?

A CQ template permits you to outline a regular fashion for the pages to your application. A template comprises of nodes that designate the web page structure.

Q23. What Is The Difference Between The Author And Publish Environment?

A production surroundings commonly has two distinction instances of AEM jogging. One is the writer instance, and the opposite is the post instance. These  times are generally saved in two exclusive settings.

The writer instance is where you'll enter and control content material on your website. This is where you'll administer your web page as properly. The creator environment is usually saved behind a firewall. The submit example is in which you'll make your content material to be had for your targeted audience. The put up surroundings is commonly saved in a Demilitarized Zone (DMZ).

Q24. What Is The Purpose Of The Activator.Java File?

The reason of the Activator.Java document is that it is to be notified any time there are bundle start and stop events for that package deal. The Activator.Java file is an non-compulsory listener class that is created whilst you create a package deal via crxde.

Q25. Can You Create A Page Without A Template?

Pages are usually created by selecting a template for the page when you create them within the Website console. However, a page may be created manually within the crxde by way of the use of the same houses which are created while you make a page within the Website console.

For example, in crxde underneath the content folder, create a node with the following type “cq:Page” and keep it. Then add a baby node with the subsequent kind “cq:PageContent”. Then you could add the required houses to expose any components you need displayed at the web page. It is normally not excellent practice to create pages manually.

Q26. What Is Extending A Component?

Extending a factor is when you want to create a new component with a view to not override a base aspect, but could have the equal functions because the authentic so that you can trade or construct upon that aspect.

In order to increase a factor, you need to set“sling:resourceSuperType” of the component to the bottom element you would like to extend. By doing this, you'll inherit everything from the bottom element.

Q27. Why A Content Management System Is Required In Cq?

Now a days web sites are very dynamic in nature, content material needs to be updated very frequently, So, it is easier to manipulate the content of such websites the usage of a CMS.

Q28. How Do You Build A Bundle Through Crxde?

You can construct a package deal thru crxde by using navigating to the source folder of your venture positioned beneath “apps”. Once you do that, right click at the “src” folder and select to create a package.

This will open the wizard with a view to walk you through creating your package deal. It is usually recommended which you no longer use crxde to create OSGI bundles for AEM. Instead you ought to be using Maven.

Q29. It Can Be Broken Down As Follows:

Protocol Host Content path Selector(s) Extension Suffix Param(s)

http:// myhost gear/secret agent .Printable.A@html / a/b ? X=12

Sling uses the content material path that is extracted from the request to locate the useful resource inside the JCR. When this resource is positioned, the sling resource kind is extracted, after which it's far used to placed the script for use for rendering that content.

Q30. What Is Aem?

Adobe Experience Manager (AEM), is a java based content material management device that is offered from Adobe. It changed into previously known as Day CQ5, but changed into received from Adobe in 20@AEM is primarily based on a content material repository and uses the JCR to get entry to the content inside the repository.

AEM uses the Apache Sling framework to map request url to the corresponding node within the content material repository. It additionally uses the OSGI framework to internally allow modular utility development.

Q31. What Is Reverse Replication?

Reverse replication is the process of replicating content from publish surroundings to the author surroundings. In order to perform this you want a opposite replication agent on your creator example that is configured to get content from the put up environment outbox.




CFG