ExamGecko
Home Home / Adobe / AD0-E103

Adobe AD0-E103 Practice Test - Questions Answers, Page 6

Question list
Search
Search

List of questions

Search

Related questions











A developer wants to create a Client Library that will only be included on touch enabled devices.

What action should the developer take to achieve this?

A.
Add the line “#base=touch” to the js.txt and css.txt files in the Client Library Folder.
A.
Add the line “#base=touch” to the js.txt and css.txt files in the Client Library Folder.
Answers
B.
Create a resource folder called “touch” under the Client Library Folder.
B.
Create a resource folder called “touch” under the Client Library Folder.
Answers
C.
Set the channels property on the Client Library Folder to “touch”.
C.
Set the channels property on the Client Library Folder to “touch”.
Answers
D.
Pass the parameter user-agent=’touch’ when referencing the Client Library.
D.
Pass the parameter user-agent=’touch’ when referencing the Client Library.
Answers
Suggested answer: B

A developer is working on a project locally and needs to install packages manually. The deployments to the localhost must be automated to speed up development. This functionality must be toggled on and off, depending on the needs of the developer.

Which step should the developer take to achieve this?

A.
Configure the maven install plugin by defining the target URL, username, and password as maven properties.
A.
Configure the maven install plugin by defining the target URL, username, and password as maven properties.
Answers
B.
Run maven with the deploy phase. Maven will install the package on all local AEM instances running without further configuration.
B.
Run maven with the deploy phase. Maven will install the package on all local AEM instances running without further configuration.
Answers
C.
Add a maven profile and configure the content package maven plugin within this profile.
C.
Add a maven profile and configure the content package maven plugin within this profile.
Answers
D.
Write a script that does a PUT call to AEM each time maven builds a new package.
D.
Write a script that does a PUT call to AEM each time maven builds a new package.
Answers
Suggested answer: A

Which xml tag is used within the vault package definition to add a new path to a content package?

A.
<filter>
A.
<filter>
Answers
B.
<content>
B.
<content>
Answers
C.
<path>
C.
<path>
Answers
D.
<rule>
D.
<rule>
Answers
Suggested answer: A

Explanation:

Reference: https://docs.adobe.com/content/help/en/experience-manager-learn/getting-started-wknd-tutorial-develop/project-setup.html

Refer to the following Client Library node structure.

The js.txt looks like

The JavaScript is NOT present in the Client Library when it is loaded.

What should a developer do to resolve this issue?

A.
Add #base=js as the first line in the js.txt file.
A.
Add #base=js as the first line in the js.txt file.
Answers
B.
Change the js folder to a Client Library node and add the property categories=”[clientlibs.example]”.
B.
Change the js folder to a Client Library node and add the property categories=”[clientlibs.example]”.
Answers
C.
Split the js and css into 2 Client Libraries since they can’t be in the same Client Library.
C.
Split the js and css into 2 Client Libraries since they can’t be in the same Client Library.
Answers
D.
Change the js folder to a Client Library node and embed it on the clientlibs node.
D.
Change the js folder to a Client Library node and embed it on the clientlibs node.
Answers
Suggested answer: D

A developer creates an OSGi service to access JCR content. Refer to the code snippet from the OSGi service below.

Bundle ID = com.adobe.aem.samples-bundle

Which set of steps should the developer take to make sure that the code works?

A.
1. Create an AEM User called serviceUser with appropriate ACLs.
A.
1. Create an AEM User called serviceUser with appropriate ACLs.
Answers
B.
Modify the Apache Sling Service User Mapper Service Amendment.
B.
Modify the Apache Sling Service User Mapper Service Amendment.
Answers
C.
Set user.mapping to com.adobe.aem.samples-bundle:sample-service=serviceUser. B. .1. Create an AEM User called serviceUser with appropriate ACLs.
C.
Set user.mapping to com.adobe.aem.samples-bundle:sample-service=serviceUser. B. .1. Create an AEM User called serviceUser with appropriate ACLs.
Answers
D.
Modify the Apache Sling Service User Mapper Service.
D.
Modify the Apache Sling Service User Mapper Service.
Answers
E.
Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser. C. 1. Create a System User called systemUser with appropriate ACLs.
E.
Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser. C. 1. Create a System User called systemUser with appropriate ACLs.
Answers
F.
Modify the Apache Sling Service User Mapper Service.
F.
Modify the Apache Sling Service User Mapper Service.
Answers
G.
Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser. D. 1. Create a System User called systemUser with appropriate ACLs.
G.
Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser. D. 1. Create a System User called systemUser with appropriate ACLs.
Answers
H.
Modify the Apache Sling Service User Mapper Service Amendment.
H.
Modify the Apache Sling Service User Mapper Service Amendment.
Answers
I.
Set user.mapping to com.adobe.aem.samples-bundle:sample-service=systemUser.
I.
Set user.mapping to com.adobe.aem.samples-bundle:sample-service=systemUser.
Answers
Suggested answer: A

A developer wants to automatically truncate request log files once they exceed 10 MB.

Which OSGi configuration should the developer modify?

A.
Apache Sling Customizable Request Data Logger
A.
Apache Sling Customizable Request Data Logger
Answers
B.
Adobe Granite Log Analysis Service
B.
Adobe Granite Log Analysis Service
Answers
C.
Apache Sling Logging Writer Configuration
C.
Apache Sling Logging Writer Configuration
Answers
D.
Apache Sling Logging Configuration
D.
Apache Sling Logging Configuration
Answers
Suggested answer: C

A developer needs to implement a header component for a website. The component has the following requirements:

The component should be configured once on the page highest in the hierarchy.

The header component on pages lower in the hierarchy should look the same and show the same data.

If necessary, the configuration can be overwritten on a child page.

The component should show a list of links that are configured in the header component.

Which code snippet for returning the list of pages should the developer use?

A.

A.
A.
Answers
B.
B.
Answers
C.
C.
Answers
Suggested answer: A

A Client-Side Library has the category “library.example”.

Which HTL statement should a developer use to reference only the CSS files of this Client-Side Library?

A.
<sly data-sly-use.clientlib=”/libs/granite/sightly/templates/clientlib.html” data-sly-call=”${clientlib.css @ categories=’library.example’}”/>
A.
<sly data-sly-use.clientlib=”/libs/granite/sightly/templates/clientlib.html” data-sly-call=”${clientlib.css @ categories=’library.example’}”/>
Answers
B.
<sly data-sly-use.clientlib=”/libs/granite/sightly/templates/clientlib.html” data-sly-call=”${clientlib.css @ category=’library.example’}”/>
B.
<sly data-sly-use.clientlib=”/libs/granite/sightly/templates/clientlib.html” data-sly-call=”${clientlib.css @ category=’library.example’}”/>
Answers
C.
<sly data-sly-use.clientlib=”/libs/granite/sightly/templates/clientlib.html” data-sly-call=”${clientlib.all @ categories=’library.example.css’}”/>
C.
<sly data-sly-use.clientlib=”/libs/granite/sightly/templates/clientlib.html” data-sly-call=”${clientlib.all @ categories=’library.example.css’}”/>
Answers
D.
<sly data-sly-use.clientlib=”/libs/granite/sightly/templates/clientlib.html” data-sly-call=”${clientlib.all @ type=’css’, categories=’library.example’}”/>
D.
<sly data-sly-use.clientlib=”/libs/granite/sightly/templates/clientlib.html” data-sly-call=”${clientlib.all @ type=’css’, categories=’library.example’}”/>
Answers
Suggested answer: C

Explanation:

Reference: https://aemcq5pedia.wordpress.com/author/aempediaalpha/page/2/

A developer needs to install a content package on AEM environment. However, a content package with the same name is already installed.

What would you be the safest way for the developer to install the content package to make sure only the changes of the new content package get applied?

A.
Use the “Force Upload option when uploading the new content package.
A.
Use the “Force Upload option when uploading the new content package.
Answers
B.
Uninstall the existing content package before installing the new content package.
B.
Uninstall the existing content package before installing the new content package.
Answers
C.
Upload the content package to the CRX Package Share before installing it.
C.
Upload the content package to the CRX Package Share before installing it.
Answers
D.
Install the content package using the OSGi web console.
D.
Install the content package using the OSGi web console.
Answers
Suggested answer: D

Explanation:

Reference: https://helpx.adobe.com/experience-manager/6-3/sites/administering/using/package-manager.html

A developer is creating a custom component on the page /latestBlogs.html that needs to list all the titles of the blogs pages under /content/blogs.

How does this component get the list of child pages?

A.
Instantiate a node object with session.getNode(/content/blogs) and then iterate through the child nodes and print the title for each.
A.
Instantiate a node object with session.getNode(/content/blogs) and then iterate through the child nodes and print the title for each.
Answers
B.
Use PageManager.getPage(“/content/blogs”) of the static PageManager class to instantiate a Page object and then iterate through the child pages and print the title for each.
B.
Use PageManager.getPage(“/content/blogs”) of the static PageManager class to instantiate a Page object and then iterate through the child pages and print the title for each.
Answers
C.
Use the QueryDebugger to look for all children of /content/blogs and then iterate through the result set and print the title for each.
C.
Use the QueryDebugger to look for all children of /content/blogs and then iterate through the result set and print the title for each.
Answers
D.
Adapt the resourceResolver to the PageManager service, then use the getPage(/content/blogs) to instantiate a Page object and then iterate through the child pages and print the title for each.
D.
Adapt the resourceResolver to the PageManager service, then use the getPage(/content/blogs) to instantiate a Page object and then iterate through the child pages and print the title for each.
Answers
Suggested answer: B

Explanation:

Reference: https://helpx.adobe.com/experience-manager/6-2/sites/developing/using/reference-materials/javadoc/com/day/cq/wcm/api/PageManager.html

Total 92 questions
Go to page: of 10