Interview Questions
Interview Questions
Ans: Sling Models are Objects or POJO classes mapped automatically to Sling objects and allow
us to access jcr node property values directly into java classes.
Ans: Please explain the complex component you have developed int your latest project
3. How to debug if the component enhancement changes are not reflected on a page?
Ans: In AEM author switch from edit mode to developer mode and check for runtime errors. If
you found any fix those other wise check either your package was deployed, and bundle was
started successfully.
4. What is Sightly and what is use of “use” & “resource” where to use it?
Ans: In AEM Sightly is referred as HTML. In other words, Server-Side Template for HTML System.
This will decide the output sent to browser with some basic presentation logic.
data-sly-use :- It initializes a helper object and exposes it through a variable. Helper object can
be from JavaScript or Java. JavaScript object can be utilized using file name. Java Object can be
utilized using fully qualified class name.
data-sly-resource :- It includes the result of rendering the indicated resource through the sling
resolution and rendering process. It uses path provided to resolve.
6. The url is loading fine in publish environment but it’s not working in Dispatcher what is the
issue?
10. If you have created the component in sling model then how you get JSON format, which
how will you call in .html file and explain it?
11. What is workflow and custom workflow step creation please explain?
12. What is OSGI?
13. What is difference between Jar & Bundle? How it will register in pom.xml?
15. What are the challenges you faced while developing a component?
16. If you cleared cache for 100 files yesterday night so the same files trying to clear cache by
today? What is the change you observed?
17. If two bundles are available so which manifest.MF file will load first?
18. If you have created sling:OsgiConfig nodes in both config &config.author locations so
which configuration will load first?
Ans. Configuration in config.author will load first. In the absence of config.author configuration
config will take precedence.
28. what is the use of creating many @reference into components and will it be created one
object or more?
33. how to create validations for a phone number into a component and get a popup message
if anything is wrong?
34. how to retrieve content from parent to child when we have one child page and have many
components are available in a parent and child page?
Ans. To retrieve values we can use properties.{paramName} in the absence of Sling Model.
41. When we hit a path like www.---.com/bin/virtusa, which will return 404 exception so how
will it resolve it?
44. What is the use of OCD & Designate and attribute definition?
45. How to create a workflow and explain the scenario, which you have implemented in your
project?
50. If we cannot create a variable with @inject then is there any way to create that variable in
slingmodel? -@named
55. Which OSGI bundle should be disabled to restrict we-based log viewing?
56. When installing internet information Service, which application development feature
needs to be enabled to work the AEM Dispatcher?
Which are the three best practice statements are true regarding permissions and privileges? (Select
three) *
A,B,D
If you want to restrict the size of a custom log file and enable log file rotation, which apache sling
configuration has to be changed in the AEM console? *
What are ACL node permissions for a node store in the JCR *
Overlay is to extend the component functionality through the use of resource hierarchy and
super types. Extending is to override default component functionality.
sling.servlet.resourceTypes
Which three statements are true when an AEM author instance is started in debug mode? (Choose
three) *
A,C,D
<div data-sly-use="include.jsp"></div>
Which two URLs will show the server logs? (Choose two) *
B,C
You are logged in as userA and you are impersonating user, how are your activities logged in the
access.log? *
You add "sling.run.modes=publish/f in sling.properties and start the instance using the command
"java -jar aem-6-p4502.jar -r author". In which mode will the instance start? *
Publish
Which property is deprecated while resolving a template (T) that can be used as a template for page
(P)? *
An author and publish instance has a shared data store with a very large number of assets. Which
type of replication is recommended to avoid duplication of data? *
Binaryless replication.
You create an nt:unstructured node inside the apps in CRXDE Lite and then you create a folder inside
the apps and click save. What is the expected behavior? *
Which three AEM jar names will start AEM in author mode? (Choose three) *
B,C,D
Which Maven plugin allows direct installation of the bundle into AEM? *
maven-sling-plugin
Which statement regarding an AEM instance started with author run-mode is correct? *
How do you specify the dependency of Junit with any version greater than or equal to 3.8? *
B
In a typical Maven project, you will have a content module that contains a file
src/main/content/META-INF/vault/filter.xml which defines the filters for the AEM package built by
Maven. Your project has the structure below. Select the correct filter entry that would be included in
the src/main/content/META-INF/vault/filter.xml file.
<filter root=7etc/designs/myproject7>
9.Replication agents, have you configured replication agents, How exactly reverse replication works?
20.if you have any issues with sightly how you resolve it?
21.How to add a prefix to url in aem(resouce mapping)?
1)What is the difference between valuemap and hashmap in real time scenario?
2)if i return the values using valuemap from java class to html how i will iterate in sightly?
5)I have my page.In that page i have my form.i submitted the form.While submitting i have created
the nodes in backend in jcr level.
While clicking the button i dont want to use servlet.How will u achieve it?(i do't want to use aem api
and web services).
6)what is the use of post.jsp,get.html in crx de?how will u proceed with post.jsp?
7)i have jcr api,sling api? i can get the values by using both in backend?What are the methods are
used in jacr api and
sling api?
8)you have a requirement to read the node from backend and display on the page?which method
will u follow?(sling api)_why?
10)In the technology stack for making the aem they included apache sling and java content
repository why?
12)Can i get the selector in html page?Can i get the selector in sightly?Can i get the selector in java?
what is the use of selectors?
14)what is the use of sling models if we have wcmusepojo?if i adapt one component with sling
model what happen?
15)can we call a servlet inside osgi service?can we call a service inside osgi service?can we call osgi
service inside wcmusepojo?
16)calling the service inside slingmodel what u will do?inside wcmusepojo?any other option other
than sling script helper in wcmusepojo?
17)what is bundle context?using bundle context can i get the service inside wcmusepojo?
18)what is the difference between httpsession and slinghttpsession?what is the difference between
jcrsession and slinghttpsession?
19)Can u tell me one complex component which u will work in ur projects?explain the functionality?
21)i want to hit a servlet using aem page in browser url?what we want me to do it?
22)what is the difference between html5 and html 1,2,3 and 4?how could i identify whether it is
html5 or other older versions?
24)can i have multiple ids in single page?if i get the text box value what will u write in java script?
syntax?can we use by name ?
25)what is gengarden?
28)list out the event listners in aem?can i write cq:listners under touch dialogue?did u create a touch
dialogue?
35)if i want to add google jar into my aem?how will you add?i want to use it at run time?
36)what is the difference between dialogue and design dialogue?have u created design dialogue in
aem?
37)what is the use of sonar?what is the use of jenkins?did u integrate jenkins to ur project?
39)in svn i have grant and i want to create a tag? what u will do?
40)I want to write a schedular in aem? how will u write?that schedular will interact with my jcr ?how
will u done?
1.Explain about cq architecture?
6.How to find out which dialog was sent the store request touch ui or classic ui?
13.expain adapTo?
28.6.1 we are useing jsp and migrated 6.2 we are useing slightly what is benfit we are getting?
29.Scenario 1:: If end user upload an image and how will you check and get the image and you have
to pass it to other instance. how will u achieve it?
30.Scenario 2:: If a home page having a component which is having video(carousel),banner which
has image,text and developed in 5.6 by writing jsp.Now you want to migrate to 6.1 and developed
the same component using sightly.How will you achieve the task?
42.What is the latest version of aem? What are features of aem 6.3?
43.Explain MSM?
45.Scenario 3:: If customer wants to create a Registration Form and that will be your component
and the user fills the form and submit the form. The details of the form will be stored as node
property in content hirarchy.There will be a schedular and that will run for every 5 hours and that
will read the registratiion details and stored. The user details will send to the user email which is
registered. How will u achevie it?Explain it from the scratch that is how do you create a component
and acheve it?
48.What is the difference between allowed path,allowed children and allowed parents?
49.How do you overlay components? what is the difference between overlaying and sling resource
super type?
50.what is the use of design dilog? where that values will be stored?
51.out of box page component have content.jsp,body.jsp and my customised page component also
havingthe same jsp;same i have used sling resource type property in customised component ,i have
refered as a out of box component
2)i don't have content .jsp in my customized component then whitch one will execute first?
52.you have worked on jcr api?what kind of apis you are working? can you explain where you have
used as per requirements.
53.have you created any component from touch ui? have you faced any issues while creating touch
ui components like multi field? can you explain any issue clearly?
54.we have so many pre defined servicess in our osgi,can you explain any one whitch you are used?
55.how you will call servlet to jsp? how you will call that servlet to sightly?
56.you have created a custom rool out config? can explain it!
57.how you make relation ? other han maven ? (any other tools...!)
when you deploy the code it will go to your dev environment?or? via maven only you deploy code in
dev environ ment.
62.Configurations in AEM
65.Explain any Complex component you faced == -- > Multifield & those rending values
- How you can establish connections wit the resources from JCR content
- Which API you have used == -- > Use & Node API
>child1 node
>child2 node
>child3 node
>child...10 node
67.Error Handler
70.Scenario :: Webservices will give an JSON object array, how can you get that & show on the page
72.Scenario 6::
--> We have created an Editable Component according to client requirements AUTHOR can edit (or)
Modify but cant delete that Component. Is there a Possibility of Achieving this scenario?
--> If we use the same component in two pages, In the home page we can edit it, but in another
page we should be able to delete it. how?
73.Based on what criteria you decide to develop an authorable component from scratch?
75.Scenario 7::
--> In a component Dialogue there are two tabs, One tab should contain the dropdown of all cities
names, Other tab should contain the area names in the particular city we have selected?
--> Why Sling Safe Servlet, why not Sling all method servlet?
--> What is the advantage of going with sling safe method over sling all method? (BOTH OF THEM
HAVE DOGET METHOD)
--> How are tab1 and tab2 linked together? (How is MAPPING possible)
--> In the javascript do i need to do that on node level (or) should i use event listeners something like
that?
--> What are the advantages of of Query Builder over xpath and others?
--> Suppose we have written a query so that we will get 50 results, If we want to Limit the results,
Will Query Builder be useful?
77.In your company do you Upload Assets Manually(or) do u have some kind of application that can
programatically upload digital assets?
--> Once you upload the digital assets what do u think happens in the background[like renditions are
formed automatically]?
--> What is the significance of this renditions & why does adobe allow this renditions?
--> Do u think that there is an application in the background that is responsible for generating these
renditions?
78.Once you upload 10, 20 digital assets, do u think for every digital asset workflow creates separate
instance (or) only single instance handles all the digital assets?
--> Where you can define (or) U can use out of box configuration?
81.Implementation of indexing?
83.In EVENT LISTENER and EVENT HANDLER which one is more preferable?
84.Scenario ::8
--> We have two components, one component has Dialogue Editor and other component has Design
Dialogue, You are using both components on same page multiple times,
How many instances will be created for component with dialogue and how many for design
dialogue?
85.We have two components, one component with image dialogue editor, another component with
design dialogue and will display image, what will u go with dialogue editor or design dialogue?
86.In MSM Imolementation, are u using any third party service for translation?
87.In which scenario i can go with participant step or Dynamic participant step?
88.To deal with dynamic value, what kind of configuration we can do in the dispatcher level?
--> Dispatcher has option called rendering load balancing, what is the property we have to configure
in dispatcher level for the load balancing?
--> Suppose m sending request, do u think that request header(content length or content type) are
required to mention in dispatcher level?
--> we have two different website, how will u arrange dispatcher module for these two different
website?(Will u use one dispatcher file or more)
--> Suppose u have 100 different websites, as per ur suggestion we have to maintain 1 dispatcher
file, suppose u have faced some issue in dispatcher level, do u think it will be easy to
--> Suppose u are using two different dispatcher file, how will dispatcher will identify these two
dispatcher file, do u think we need provide the entry?
--> Suppose think that we have done the entry, how do u think dispatcher works top to bottom (or)
bottom to top fashion?
90.in search component have u added custom predicates?(Custom search component or out of the
box search component)
--> In dialog editor u want to display dropdown aswell text field, u sould club them together, what is
the approach to design this custom x-type?
--> In dam admin or site admin we can see search option, are aware of the search predictaes getting
populated, what is the approach to add predicate?
92.IN JAVA POV, Is it possible to create a map between java model and content repository model?
96.iparsys?
100.what is preprocessor?
-> countries in dropdown(it has to load states in that paticular country)[what is your approach to
achieve it]
-> question on @properties-- how you change those properties after deployment of bundle(we can
change in configMgr or we can change in config folder in crxde)[which way you suggest]
-> you have some configurations,how you can make those configuration can be available in author
but not in publish?
-> if you made some changes in eclipse and some changes in crxde, how you commit those changes
in git?(mainly asked about how to checkin crxde changes in git)