Corporate Training
Request Demo
Click me
Menu
Let's Talk
Request Demo

Interview Questions for Adobe Experience Manager AEM

by Bhavya Sri, on May 23, 2017 5:37:43 PM

 Interview Questions for Adobe Experience Manager AEM

Q1. What is AEM?

Ans: Adobe Experience Manager (AEM), is a java based content management system that is offered from Adobe. It was previously called Day CQ5, but was acquired from Adobe in 2010. AEM is based on a content repository and uses the JCR to access the content in the repository. AEM uses the Apache Sling framework to map request url to the corresponding node in the content repository. It also uses the OSGI framework to internally allow modular application development.

Q2. What are the advantages of AEM over another CMS?

Ans: One big advantage of AEM over another CMS is how it integrates with other products from Adobe and with the Adobe Marketing Cloud. AEM comes built in with features like workflows to control content in the CMS, the use of search queries to find anything you are looking for, setting up social collaboration, tagging content, and a way to manage your digital content.
AEM also includes a way to manage mobile applications, mobile websites, e-commerce, and marketing campaign management.

Q3. What is the technology stack that CQ5 is based on?

Ans: The  stack is based on three technologies. These technologies are: Apache Sling, OSGI (Apache Felix), and the Java Content Repository (JCR). Apache Sling is a RESTful framework that is used to access a jcr over http protocol. It will then map that request url to the node in the jcr. OSGI is a framework that is used for modular application development using Java. Each module, which is called a bundle, can be stopped and started independently during runtime. The Java Content Repository uses the JSR-170 API to access the content repository by using Java independently of the physical implementation. CQ5 uses its own implementation of the jcr called CRX.

Q4. What is the role of the dispatcher?

Ans: The dispatcher is AEM’s caching and/or load balancing tool. By using the dispatcher it can also help protect your AEM server from attack since it will be using cached pages. The goal of the dispatcher is to cache as much content as possible, so it does not need to access the layout engine. Load balancing is the practice of distributing computational load of the website across several instances of AEM. The benefits of using the dispatcher as a load balancing tool is so that you gain increased processing power since the dispatcher shares document requests between several instances of AEM, and to have increased fail-safe coverage. This is accomplished by if the dispatcher does not receive responsesfrom an instance, it will automatically relay the request to another instance.

Q5. What is sightly?

Ans: Sightly is an HTML templating language that was introduced in AEM 6.0. It is meant to take the place of JSP files and is the preferred templating system for HTML. The name sightly means “pleasing to the eye”, and its focus is to keep your markup beautiful and maintainable.

Q6. Why is a Content Management System (CMS) required?

Ans: A content management system is a piece of software that is used to create and manage documents and Web sites. Many websites are dynamic, so their content needs to be updated frequently. In order manage these changes efficiently, it is recommend that a content management system be used. Which is why AEM is a content management system.

Q7. What is RESTful?

Ans: Representational State Transfer (REST) is an architectural style and an approach to communications that is often used in the development of web services. It relies on a stateless, client server, cacheable communications protocol. RESTful applications use HTTP requests to post data, read data, and delete data.The six architectural constraints of REST are: uniform interface, stateless, cacheable, client server, layered system, and code on demand.

Q8. What are the benefits of using OSGI?

Ans: The main benefits of using OSGI are:

  • It reduces the complexity of the system by having everything in bundles.
  • It makes the components loosely coupled and easy to manage since they can be installed, deleted, updated, started, and stopped at run time.
  • It increases the performance of the system since parts of the application that are not in use, do not need to be loaded in the memory.

Q9. What is the listener property in AEM?

Ans: The listener property in AEM for a component is used to define what happens before or after an action on the component. This is added by using the “cq:listeners” node with a node type of “cq:EditListenersConfig”. The listener property can also be added to any widget in AEM. In order to add a listener to that widget you just need to add to add a node that is called “listeners” with a type of “nt:unstructured”. Then you just need to add child nodes to the “listeners” node that are events of that widget. You can find a list of events for each widget by searching CQ Widget API documentation.

Q10. How do you load digital assets in dam?

Ans: You can add digital assets to your dam by using the graphical user interface or through WebDav access. If you are using the graphical user interface, you would just browse for the selected files you would like to add, and then cq will create the metadata for those assets in the dam folder. You would generally use the WebDav option when you want to upload a large number or assets at once.

Q11. How do you build a bundle through crxde?

Ans: You can build a bundle through crxde by navigating to the source folder of your project located under “apps”. Once you do this, right click on the “src” folder and choose to create a bundle. This will open the wizard that will walk you through creating your bundle. It is recommended that you no longer use crxde to create OSGI bundles for AEM. Instead you should be using Maven.

Q12. What is the purpose of the Activator.java file?

Ans: The purpose of the Activator.java file is that it is to be notified any time there are bundle start and stop events for that bundle. The Activator.java file is an optional listener class that is created when you create a bundle through crxde.

Q13. What is a CQ5 overlay/override component?

Ans: The overlay/override component is used when you want to use an out of the box component in AEM and you want to add extra features to it and you want to change it across all instances of that component. For example if you want to add features to the out of the box “text” component, but you don’t want to create a new component, you would want to copy the “text” component from “libs/foundation/components” to “apps/foundation/components” and keep the same folder structure that is used. When this is done, any changes that done to this new component will be reflected in the out of the box “text” component, without changing the original code under “libs”. It is generally not a good practice to modify the original code, which is why CQ offers the ability to use overlays.

Q14. What is the difference between a dialog and a design dialog?

Ans: A dialog is a key element of the component because they provide an interface for authors to configure and provide input to that component. This input will be stored at the page level in the jcr. A design dialog is a dialog that will only display when you are in design mode in AEM. The input that is received here will be stored at the template level and will be accessed across the whole site.

Q15. What is extending a component?

Ans: Extending a component is when you want to create a new component that will not override a base component, but will have the same features as the original so that you can change or build upon that component. In order to extend a component, you must set“sling:resourceSuperType” of the component to the base component you would like to extend. By doing this, you will inherit everything from the base component.

 

Q16. How does sightly differ from other templating systems?

Ans: Sightly differs from other templating systems in three ways. Sightly is secure by default, it offers separation of concerns,  Sightly is secure by default because it automatically filters and escapes all variables being output to the presentation layer to prevent cross-site-scripting vulnerabilities. Sightly offers seperation of concern because it is purposely limited to ensure that a real programming language is used to express the corresponding logic. This is done through the Use-API pattern.

Q17. Can you create a page without a template?

Ans: Pages are usually created by selecting a template for the page when you create them in the Website console. However, a page can be created manually in the crxde by using the same properties that are created when you make a page in the Website console. For example, in crxde under the content folder, create a node with the following type “cq:Page” and save it. Then add a child node with the following type “cq:PageContent”. Then you can add the required properties to show any components you want displayed on the page. It is generally not good practice to create pages manually.

Q18. What are xtypes and how are they useful in AEM?

Ans: In the ExtJS language an xtype is a symbolic name given to a class. In AEM these xtypes are widgets that used in the creation of components. AEM comes with a bunch of widgets that are available out of the box. You can also create and define your own xtype to be used in AEM. An example of an xytpe is when you are creating your dialog for your component, and you want the author to be able to enter text, you would add a “cq:Widget” that has an xtype property of “textfield”.

Q19. How do you add properties to the Page Properties dialog?

Ans: You can add properties to your page properties dialog by copying the dialog located under “libs/foundation/components/page/dialog” and adding it to your page template. This will allow you to add new tabs and add new properties that you would like the author to chooses from for pages that use that template.
You could modify the original page dialog as well to get the same result, however it is not recommended.

Q20. What is the difference between the Author and Publish environment?

Ans: A production environment usually has two difference instances of AEM running. One is the author instance, and the other is the publish instance. These two instances are usually kept in two different settings. The author instance is where you will enter and manage content for your website. This is where you will administer your site as well. The author environment is usually kept behind a firewall. The publish instance is where you will make your content available for your targeted audience. The publish environment is usually kept in a Demilitarized Zone (DMZ).

Q21. What is a replication agent?

Ans: A replication agent is used to publish active content from the author environment to the publish environment, to flush content from the dispatcher cache, and return user input from the publish environment to the author environment. The replication agents are central to AEM.

Q22. What is resource mapping?

Ans: Resource mapping is used to define redirects, vanity URLs and virtual hosts for AEM. You can use resource mapping to prefix all requests with “/content” so the internal structure of the AEM site is hidden from your visitors. You can also use resource mapping to define a redirect so that all requests to the gateway page of your site are redirected to another site.

Q23. What design patterns are used in AEM?

Ans: Since AEM is built using OSGI, many of the design patterns for OSGI are valid. Some of these design patterns are Singleton (Service), Adapter Service, Resource Adapter Service, and Whiteboard. Also, since AEM is modular, you should be able to use any design pattern in your application.

Q24. What is reverse replication?

Ans: Reverse replication is the process of replicating content from publish environment to the author environment. In order to accomplish this you need a reverse replication agent on your author instance that is configured to get content from the publish environment outbox.

Q25. What is the technology stack used in cq5 or AEM (Adobe Experience Manager)?

Ans: Adobe CQ5 uses the following technologies:

  • 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.
  • Apache Sling – RESTful framework to access a jcr over http protocol. It maps the request url to the node in jcr.
  • OSGi (Apache Felix) – Framework for modular application development using java. Each module called bundle can be independently started and stopped. OSGi container which provides implementation classes for OSGi framework.

Q26. What is a Template?

Ans: A CQ template enables you to define a consistent style for the pages in your application. A template comprises of nodes that specify the page structure.

Q27. What is a Component?

Ans: Components are re-usable modules that implement specific application logic to render the content of your web site. You can think of a component as a collection of scripts (for example, JSPs, Java servlets, and so on).

Q28. Where does the cache directory exists for CQ5?

Ans: The Dispatcher uses a Cache Directory for caching static content. The cached documents are created in the root of a web-server.

Q29. Why a content management system is required in CQ?

Ans: Now a days websites are very dynamic in nature, content needs to be updated very frequently, so, it is easier to manage the content of such websites using a CMS.

Q30. What are the advantages of CQ5 over other CMS?

Ans: Below are the advantages of CQ5 over other CMS (Content management System):

  • 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.

Q31. What is a Template?

Ans: A CQ template enables you to define a consistent style for the pages in your application. A template comprises of nodes that specify the page structure.

Q32.  What is a Component?

Ans: Components are re-usable modules that implement specific application logic to render the content of your web site. You can think of a component as a collection of scripts (for example, JSPs, Java servlets, and so on).

Q33.  Why we need to include global.jsp if we are creating a component in jsp?

Ans: The global.jsp script which adobe provides by default declares Sling, AEM and JSTL taglibs to make component creation easy in AEM.

Q34. Which script you should include to display sidekick?

Ans: init.jsp should be included in our jsp or script file to display sidekick.

Q35. What is the use of EditConfig node in creating a component?

Ans: A cq: EditConfig node is used to define the behavior of the component

Q36. What are the basic SCR Annotations used for creating an OSGI component?

Ans: Basic SCR Annotation used for developing a component or service in osgi are:

Component: defines the class as a component.

Service: defines the service interface that is provided by the component.

Reference: injects a service into the component.

Property: defines a property that can be used in the class.

Q37. Difference between Dialog and Design Dialog?

Ans: Both dialog and design dialog are used by the user to configure the component.

Design Dialog: of a component can be seen/edited in design mode of the page. Design dialog is present at template level so all the page of the template will share same design dialog.

Dialog: of a component is present at page level so each component instance will have its own dialog and information entered in dialog will be stored under content folder.

Q38. Where dialog and design dialogue data is stored?

Ans:

  • Design dialog data is stored under /etc./designs folder.
  • Dialog data is stored under /content folder.

Q39. What is Adaptive Form? Explain Adaptive Form? What do you mean by Adaptive Form?

Ans: Adaptive forms, is used to break down a form into logical sections, basically it enables end users to focus on filling out the form. When we require to take input from user we use Adaptive Form.

Topics:interview questions and answers for Adobe Experieninterview questions for AEMInformation Technologies (IT)

Comments

Subscribe

Top Courses in Python

Top Courses in Python

We help you to choose the right Python career Path at myTectra. Here are the top courses in Python one can select. Learn More →

aathirai cut mango pickle

More...