31+ Adobe AEM (CQ) Interview Questions And Answers

Spread the love

AEM Interview Questions

Question 1. What Is Adobe Cq5?

Adobe CQ5(often known as Adobe Experience Manager) is a java primarily based content administration system from adobe. It is predicated on a content repository to retailer the content of a web site and use JCR(java content repository) specification to entry 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 highly effective OSGi framework internally to permit modular utility improvement. It means particular person items of your utility(referred to as bundles by way of OSGi) could be independently began and stopped. It makes use of Apache Felix because the OSGi container. Therefore completely different components of cq5 could be independently began and stopped.

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

Adobe CQ5 makes use of the next applied sciences : JCR – Java specification for accessing a content repository JSR-283 specification jcr 2.0 , cq5 makes use of its personal implementation of jcr referred to as CRX. Apache Jackrabbit is an open-source implementation of jcr 2.Zero specification. Apache Sling – RESTful framework to entry a jcr over http protocol.

It maps the request url to the node in jcr. OSGi(Apache Felix) – Framework for modular utility improvement utilizing java. Each module referred to as bundle could be independently began and stopped.OSGi container which gives implemention lessons for OSGi framework.

Question 3. Why A Content Management System Is Required In Cq?

Now a days web sites are very dynamic in nature, content must be up to date very steadily, So, it’s simpler to handle the content of such web sites utilizing a CMS.

Question 4. What Are The Advantages Of Cq5 Over Other Cms?

Below are the benefits of CQ5 over different CMS(Content administration System):- Implementation of workflows for creating, enhancing and publishing of content. Managing a repository of digital belongings like photos, paperwork and integrating them to the web sites.

Usage of search queries to search out content irrespective of the place it’s saved in your group. Setting up simply the social collaboration blogs, teams. Tagging utility to prepare the digital belongings akin to photos.

Question 5. Explain Architecture Of Cq5 Application?

A CQ template lets you outline a constant type for the pages in your utility. A template contains of nodes that specify the web page construction.

Question 6. What Is Aem?

Adobe Experience Manager (AEM), is a java primarily based content administration system that’s provided from Adobe. It was beforehand referred to as Day CQ5, however was acquired from Adobe in 2010. AEM is predicated on a content repository and makes use of the JCR to entry the content within the repository.

AEM makes use of the Apache Sling framework to map request url to the corresponding node within the content repository. It additionally makes use of the OSGI framework to internally enable modular utility improvement.

Question 7. What Are The Advantages Of Aem Over Another Cms?

One large benefit of AEM over one other CMS is the way it integrates with different merchandise from Adobe and with the Adobe Marketing Cloud. AEM comes in-built with options like workflows to manage content within the CMS, using search queries to search out something you might be searching for, organising social collaboration, tagging content, and a option to handle your digital content.

AEM additionally features a option to handle cellular purposes, cellular web sites, e-commerce, and marketing marketing campaign administration.

Question 8. What Is The Technology Stack That Cq5 Is Based On?

The CQ5 know-how stack is predicated on three applied sciences. These applied sciences are: Apache Sling, OSGI (Apache Felix), and the Java Content Repository (JCR). Apache Sling is a RESTful framework that’s used to entry a jcr over http protocol. It will then map that request url to the node within the jcr. OSGI is a framework that’s used for modular utility improvement utilizing Java.

Each module, which known as a bundle, could be stopped and began independently throughout runtime. The Java Content Repository makes use of the JSR-170 API to entry the content repository through the use of Java independently of the bodily implementation. CQ5 makes use of its personal implementation of the jcr referred to as CRX.

Question 9. What Is The Role Of The Dispatcher?

The dispatcher is AEM’s caching and/or load balancing software. By utilizing the dispatcher it might additionally assist defend your AEM server from assault since it is going to be utilizing cached pages. The objective of the dispatcher is to cache as a lot content as potential, so it doesn’t must entry the format engine. Load balancing is the follow of distributing computational load of the web site throughout a number of cases of AEM.

The advantages of utilizing the dispatcher as a load balancing software is so that you simply acquire elevated processing energy because the dispatcher shares doc requests between a number of cases of AEM, and to have elevated fail-safe protection. This is completed by if the dispatcher doesn’t obtain responsesfrom an occasion, it is going to mechanically relay the request to a different occasion.

Question 10. What Is Sightly?

Sightly is an HTML templating language that was launched in AEM 6.0. It is supposed to take the place of JSP information and is the popular templating system for HTML. The title sightly means “pleasing to the eye”, and its focus is to maintain your markup lovely and maintainable.

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

A content administration system is a chunk of software program that’s used to create and handle paperwork and Web websites. Many web sites are dynamic, so their content must be up to date steadily. In order handle these adjustments effectively, it’s suggest {that a} content administration system be used. Which is why AEM is a content administration system.

Question 12. What Is Restful?

Representational State Transfer (REST) is an architectural type and an strategy to communications that’s usually used within the improvement of internet companies.

It depends on a stateless, shopper server, cacheable communications protocol. RESTful purposes use HTTP requests to post knowledge, learn knowledge, and delete knowledge.The six architectural constraints of REST are: uniform interface, stateless, cacheable, shopper server, layered system, and code on demand.

Question 13. What Are The Benefits Of Using Osgi?

The essential advantages of utilizing OSGI are:

It reduces the complexity of the system by having the whole lot in bundles.
It makes the elements loosely coupled and straightforward to handle since they are often put in, deleted, up to date, began, and stopped at run time.
It will increase the efficiency of the system since components of the appliance that aren’t in use, don’t have to be loaded within the reminiscence.

Question 14. What Is The Listener Property In Aem?

The listener property in AEM for a element is used to outline what occurs earlier than or after an motion on the element. This is added through the use of the “cq:listeners” node with a node kind of “cq:EditListenersConfig”. The listener property will also be added to any widget in AEM.

In order so as to add a listener to that widget you simply want so as to add so as to add a node that known as “listeners” with a sort of “nt:unstructured”. Then you simply want so as to add little one nodes to the “listeners” node which can be occasions of that widget. You can discover a listing of occasions for every widget by looking out CQ Widget API documentation.

Question 15. How Do You Load Digital Assets In Dam?

You can add digital belongings to your dam through the use of the graphical consumer interface or by way of WebDav entry.

If you might be utilizing the graphical consumer interface, you’d simply browse for the chosen information you wish to add, after which cq will create the metadata for these belongings within the dam folder. You would usually use the WebDav choice whenever you need to add a big quantity or belongings directly.

Question 16. How Do You Build A Bundle Through Crxde?

You can construct a bundle by way of crxde by navigating to the supply folder of your undertaking positioned underneath “apps”. Once you do that, proper click on on the “src” folder and select to create a bundle.

This will open the wizard that may stroll you thru creating your bundle. It is beneficial that you simply not use crxde to create OSGI bundles for AEM. Instead you have to be utilizing Maven.

Question 17. What Is The Purpose Of The Activator.java File?

The objective of the Activator.java file is that it’s to be notified any time there are bundle begin and cease occasions for that bundle. The Activator.java file is an optionally available listener class that’s created whenever you create a bundle by way of crxde.

Question 18. What Is A Cq5 Overlay/override Component?

The overlay/override element is used whenever you need to use an out of the field element in AEM and also you need to add additional options to it and also you need to change it throughout all cases of that element. For instance if you wish to add options to the out of the field “text” element, however you don’t need to create a brand new element, you’d need to copy the “text” element from “libs/foundation/components” to “apps/foundation/components” and maintain the identical folder construction that’s used. When that is carried out, any adjustments that carried out to this new element shall be mirrored within the out of the field “text” element, with out altering the unique code underneath “libs”. It is mostly not a great follow to change the unique code, which is why CQ presents the flexibility to make use of overlays.

Question 19. What Is The Difference Between A Dialog And A Design Dialog?

A dialog is a key component of the element as a result of they supply an interface for authors to configure and supply enter to that element.

This enter shall be saved on the web page degree within the jcr. A design dialog is a dialog that may solely show if you find yourself in design mode in AEM. The enter that’s obtained right here shall be saved on the template degree and shall be accessed throughout the entire website.

Question 20. What Is Extending A Component?

Extending a element is whenever you need to create a brand new element that won’t override a base element, however can have the identical options as the unique in an effort to change or construct upon that element.

In order to increase a element, you could set“sling:resourceSuperType” of the element to the bottom element you wish to prolong. By doing this, you’ll inherit the whole lot from the bottom element.

Question 21. How Does Sightly Differ From Other Templating Systems?

Sightly differs from different templating programs in 3 ways. Sightly is safe by default, it presents separation of issues, and sightly is HTML5 as a result of it’s a legitimate HTML5 file. Sightly is safe by default as a result of it mechanically filters and escapes all variables being output to the presentation layer to forestall cross-site-scripting vulnerabilities. Sightly presents seperation of concern as a result of it’s purposely restricted to make sure that an actual programming language is used to specific the corresponding logic. This is completed by way of the Use-API sample.

Question 22. Can You Create A Page Without A Template?

Pages are normally created by deciding on a template for the web page whenever you create them within the Website console. However, a web page could be created manually within the crxde through the use of the identical properties which can be created whenever you make a web page within the Website console.

For instance, in crxde underneath the content folder, create a node with the next kind “cq:Page” and put it aside. Then add a toddler node with the next kind “cq:PageContent”. Then you’ll be able to add the required properties to point out any elements you need displayed on the web page. It is mostly not good follow to create pages manually.

Question 23. What Are Xtypes And How Are They Useful In Aem?

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

An instance of an xytpe is if you find yourself creating your dialog in your element, and also you need the creator to have the ability to enter textual content, you’d add a “cq:Widget” that has an xtype property of “textfield”.

Question 24. How Do You Add Properties To The Page Properties Dialog?

You can add properties to your web page properties dialog by copying the dialog positioned underneath “libs/foundation/components/page/dialog” and including it to your web page template. This will will let you add new tabs and add new properties that you want to the creator to chooses from for pages that use that template.

You may modify the unique web page dialog as properly to get the identical outcome, nevertheless it’s not beneficial.

Question 25. What Is The Difference Between The Author And Publish Environment?

A manufacturing atmosphere normally has two distinction cases of AEM operating. One is the creator occasion, and the opposite is the publish occasion. These two cases are normally saved in two completely different settings.

The creator occasion is the place you’ll enter and handle content in your web site. This is the place you’ll administer your website as properly. The creator atmosphere is normally saved behind a firewall. The publish occasion is the place you’ll make your content accessible in your focused viewers. The publish atmosphere is normally saved in a Demilitarized Zone (DMZ).

Question 26. What Is A Replication Agent?

A replication agent is used to publish lively content from the creator atmosphere to the publish atmosphere, to flush content from the dispatcher cache, and return consumer enter from the publish atmosphere to the creator atmosphere. The replication brokers are central to AEM.

Question 27. What Is Resource Mapping?

Resource mapping is used to outline redirects, self-importance URLs and digital hosts for AEM. You can use useful resource mapping to prefix all requests with “/content” so the interior construction of the AEM website is hidden out of your guests. You also can use useful resource mapping to outline a redirect so that each one requests to the gateway web page of your website are redirected to a different website.

Question 28. What Is Resource Resolution In Sling?

Resource decision in Sling is how Sling takes a URL and makes an attempt to resolve it to a script. This is completed by extracting info from the URL. Here is an instance

URL: http://myhost/tools/spy.printable.a4.html/a/b?x=12

Question 29. It Can Be Broken Down As Follows:

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

http:// myhost instruments/spy .printable.a4. html / a/b ? x=12

Sling makes use of the content path that’s extracted from the request to find the useful resource within the JCR. When this useful resource is positioned, the sling useful resource kind is extracted, after which it’s used to positioned the script for use for rendering that content.

Question 30. What Design Patterns Are Used In Aem?

Since AEM is constructed utilizing OSGI, most of the design patterns for OSGI are legitimate. Some of those design patterns are Singleton (Service), Adapter Service, Resource Adapter Service, and Whiteboard. Also, since AEM is modular, you need to be capable to use any design sample in your utility.

Question 31. What Is Reverse Replication?

Reverse replication is the method of replicating content from publish atmosphere to the creator atmosphere. In order to perform this you want a reverse replication agent in your creator occasion that’s configured to get content from the publish atmosphere outbox.

Spread the love