ExamGecko

Adobe AD0-E116 Practice Test - Questions Answers

Question list
Search
Search

List of questions

Search

Related questions











Question 1

Report
Export
Collapse

An application contains an OSGi configuration that contains a password.

How should a developer prevent this sensitive information from being stored in plain text in JCR?

A.
1 . Use console at /system/console/crypto to encrypt the value
A.
1 . Use console at /system/console/crypto to encrypt the value
Answers
B.
Either create an encrypted value for each AEM instance and use runmodes to apply the different values or make sure relevant instances share the same master key
B.
Either create an encrypted value for each AEM instance and use runmodes to apply the different values or make sure relevant instances share the same master key
Answers
C.
When loading the value in the code, call CryptoSupport.unprotect(_) before using the value
C.
When loading the value in the code, call CryptoSupport.unprotect(_) before using the value
Answers
D.
1 . Use console at /system/console/configMgr and tick the checkbox "encrypt" before saving a configuration
D.
1 . Use console at /system/console/configMgr and tick the checkbox "encrypt" before saving a configuration
Answers
E.
Use encrypted values work across all instances
E.
Use encrypted values work across all instances
Answers
F.
When loading the value in the code, call CryptoSupport.unprotect(...) before using the value C. 1 . Use console at /system/console/crypto to encrypt the value
F.
When loading the value in the code, call CryptoSupport.unprotect(...) before using the value C. 1 . Use console at /system/console/crypto to encrypt the value
Answers
G.
Either create an encrypted value for each AEM instance and use runmodes to apply the different values or make sure relevant instances share the same master key
G.
Either create an encrypted value for each AEM instance and use runmodes to apply the different values or make sure relevant instances share the same master key
Answers
H.
Sensitive information is automatically decrypted using the CryptoSupport OSGi service before the value is returned D. 1 . Use console at /system/console/configMgr and tick the checkbox "encrypt" before saving a configuration
H.
Sensitive information is automatically decrypted using the CryptoSupport OSGi service before the value is returned D. 1 . Use console at /system/console/configMgr and tick the checkbox "encrypt" before saving a configuration
Answers
I.
Either create an encrypted value for each AEM instance and use runmodes to apply the different values or make sure relevant instances share the same master key
I.
Either create an encrypted value for each AEM instance and use runmodes to apply the different values or make sure relevant instances share the same master key
Answers
J.
Sensitive information is automatically decrypted using the CryptoSupport OSGi service before the value is returned
J.
Sensitive information is automatically decrypted using the CryptoSupport OSGi service before the value is returned
Answers
Suggested answer: A
asked 02/10/2024
Kabi Bashala
36 questions

Question 2

Report
Export
Collapse

A custom bundle of an application is in state "Installed" after deploying it with Maven. What should a developer do to change it to state "Active"?

A.
Use the "Start" action for the bundle in the Apache Felix Web Console
A.
Use the "Start" action for the bundle in the Apache Felix Web Console
Answers
B.
Ensure all OSGi requirements are met and re-deploy using Maven
B.
Ensure all OSGi requirements are met and re-deploy using Maven
Answers
C.
Use the "Update" action for the bundle in the Apache Felix Web Console
C.
Use the "Update" action for the bundle in the Apache Felix Web Console
Answers
D.
Reinstall the content package using the package manager
D.
Reinstall the content package using the package manager
Answers
Suggested answer: B
asked 02/10/2024
Clive Roberts
47 questions

Question 3

Report
Export
Collapse

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.
"public String[] getHeaderLinks(Page page) { final Resource pageContent = page.getContentResource(); final ComponentInheritanceValueMap properties = ComponentInheritanceValueMap(pageContent); return properties.get ( HEADER_PAGE_LIST, String[].class);} "
A.
"public String[] getHeaderLinks(Page page) { final Resource pageContent = page.getContentResource(); final ComponentInheritanceValueMap properties = ComponentInheritanceValueMap(pageContent); return properties.get ( HEADER_PAGE_LIST, String[].class);} "
Answers
B.
"public String[] getHeaderLinks(Resource componentResource) { final ComponentInheritanceValueMap properties = componentResource.adaptTo(ComponentInheritanceValueMap.class); return properties.getInherited ( HEADER_PAGE_LIST, String[].class);} "
B.
"public String[] getHeaderLinks(Resource componentResource) { final ComponentInheritanceValueMap properties = componentResource.adaptTo(ComponentInheritanceValueMap.class); return properties.getInherited ( HEADER_PAGE_LIST, String[].class);} "
Answers
C.
"public String[] getHeaderLinks(Resource componentResource) { final HierarchyNodeInheritanceValueMap properties = new HierarchyNodeInheritanceValueMap( componentResource); return properties.getInherited(HEADER_PAGE_LIST, String[].class);} "
C.
"public String[] getHeaderLinks(Resource componentResource) { final HierarchyNodeInheritanceValueMap properties = new HierarchyNodeInheritanceValueMap( componentResource); return properties.getInherited(HEADER_PAGE_LIST, String[].class);} "
Answers
D.
"public String[] getHeaderLinks(Resource componentResource) { final HierarchyNodeInheritanceVauleMap properties = componentResource.adaptTo(HierarchyNodeInheritanceVauleMap.class); return properties.getInherited ( HEADER_PAGE_LIST, String[].class);} "
D.
"public String[] getHeaderLinks(Resource componentResource) { final HierarchyNodeInheritanceVauleMap properties = componentResource.adaptTo(HierarchyNodeInheritanceVauleMap.class); return properties.getInherited ( HEADER_PAGE_LIST, String[].class);} "
Answers
Suggested answer: C
asked 02/10/2024
franck ferreira
27 questions

Question 4

Report
Export
Collapse

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 the QueryDebugger to look for all children of /content/blogs and then iterate through the result set and print the title for each.
B.
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
C.
Adapt the resourceResolver to the PageManger 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.
C.
Adapt the resourceResolver to the PageManger 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
D.
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.
D.
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
Suggested answer: B
asked 02/10/2024
Rafael Pabon
44 questions

Question 5

Report
Export
Collapse

A developer is working with the following HTL expression in a component rendering script:

${'path/page.infinity.json' @extension = 'html',

removeSelectors = ['foo'],

selectors = ['foo', 'bar'],

prependSuffix = 'hello', suffix = 'world' }

What is the expected output of this expression?

A.
path/page.foo.bar.html/hello/world
A.
path/page.foo.bar.html/hello/world
Answers
B.
path/page.infinity.json.bar.html/world
B.
path/page.infinity.json.bar.html/world
Answers
C.
path/page.bar.html/hello/world
C.
path/page.bar.html/hello/world
Answers
D.
path/page.bar.html/world
D.
path/page.bar.html/world
Answers
Suggested answer: C
asked 02/10/2024
Chang Weishin
30 questions

Question 6

Report
Export
Collapse

A custom AEM application has a run time dependency to a third party OSGi bundle that is NOT included in out-of-the-box AEM. The third party dependency needs to be available for multiple applications and be upgraded separately from the custom AEM application.

How should a developer make sure that the bundle is installed on all environments?

A.
Add the dependency to the third party bundle in pom.xml of the project bundle
A.
Add the dependency to the third party bundle in pom.xml of the project bundle
Answers
B.
Embed the third party bundle in the bundle that depends on it
B.
Embed the third party bundle in the bundle that depends on it
Answers
C.
Embed the bundle in a content package to have it automatically deployed
C.
Embed the bundle in a content package to have it automatically deployed
Answers
D.
Declare the dependency correctly using a link to the OSGi Bundle Reposirory (OBR)
D.
Declare the dependency correctly using a link to the OSGi Bundle Reposirory (OBR)
Answers
Suggested answer: C
asked 02/10/2024
Andreas Krieger
34 questions

Question 7

Report
Export
Collapse

A developer is working on a complex project with multiple bundles. One bundle provides an OSGi service for other bundles. Which two options are necessary to ensure that the other bundles can reference that OSGi service? ( Choose two. )

A.
The bundles consuming the service need to import the fully qualified name of the service interface.
A.
The bundles consuming the service need to import the fully qualified name of the service interface.
Answers
B.
The bundle providing the service needs to contain an adequate SCR descriptor file.
B.
The bundle providing the service needs to contain an adequate SCR descriptor file.
Answers
C.
The bundle providing the service needs to export the java package of the service interface. D. The bundle providing the service needs to contain a whitelist of allowed consumer bundles.
C.
The bundle providing the service needs to export the java package of the service interface. D. The bundle providing the service needs to contain a whitelist of allowed consumer bundles.
Answers
D.
The service needs to correctly declare metatype information.
D.
The service needs to correctly declare metatype information.
Answers
Suggested answer: A, C
asked 02/10/2024
Syed Hasan Rizvi
29 questions

Question 8

Report
Export
Collapse

A developer has a component named foobar with the following file: foobar.html:

< div data-one="${'foo'}" data-two="${2}" data-three="${true}"></div >

< div data-one="${''}" data-two="${0}" data-three="${false}"></div >

What is the output when the component is rendered?

A.
"<div data-one=""foo"" data-two=""2"" data-three=""true""></div>< div data-one="""" data-two=""0"" data-three=""false""></div>"
A.
"<div data-one=""foo"" data-two=""2"" data-three=""true""></div>< div data-one="""" data-two=""0"" data-three=""false""></div>"
Answers
B.
"<div data-one=""foo"" data-two=2 data-three=""""></div>< div data-one="""" data-two=0 data-three=""""></div>"
B.
"<div data-one=""foo"" data-two=2 data-three=""""></div>< div data-one="""" data-two=0 data-three=""""></div>"
Answers
C.
"<div data-one=""foo"" data-two=""2"" data-three></div>< div data-two=""0""></div>"
C.
"<div data-one=""foo"" data-two=""2"" data-three></div>< div data-two=""0""></div>"
Answers
D.
"<div data-one=""foo"" data-two=2 data-three=""""></div>< div data-two=0 data-three=""""></div>"
D.
"<div data-one=""foo"" data-two=2 data-three=""""></div>< div data-two=0 data-three=""""></div>"
Answers
Suggested answer: C
asked 02/10/2024
Nicola Grossi
38 questions

Question 9

Report
Export
Collapse

An AEM site experiences slower page loads. A developer needs to identify the slow running requests. How should a developer analyze the requests with long response times?

A.
Use proxy.jar with the following command java -jar proxy.jar <host> <remoteport> <localport> to debug the webserver and AEM server communication
A.
Use proxy.jar with the following command java -jar proxy.jar <host> <remoteport> <localport> to debug the webserver and AEM server communication
Answers
B.
Use rlog.jar with the following command $ java -jar ../opt/helpers/rlog.jar -n 10 request.log to identify long running requests
B.
Use rlog.jar with the following command $ java -jar ../opt/helpers/rlog.jar -n 10 request.log to identify long running requests
Answers
C.
Download Heapdumps from Tools > Operations > Diagnosis and analyze the Heapdumps using the Memory Analyzer Tool
C.
Download Heapdumps from Tools > Operations > Diagnosis and analyze the Heapdumps using the Memory Analyzer Tool
Answers
D.
Embed /libs/foundation/components/timing component in the Page Component and verify the page load time
D.
Embed /libs/foundation/components/timing component in the Page Component and verify the page load time
Answers
Suggested answer: B
asked 02/10/2024
Sebastian van de Zweerde
43 questions

Question 10

Report
Export
Collapse

Which log file should a developer use to search for exception stacktraces?

A.
< aem-install>/crx-quickstart/logs/error.log
A.
< aem-install>/crx-quickstart/logs/error.log
Answers
B.
< aem-install>/crx-quickstart/logs/request.log
B.
< aem-install>/crx-quickstart/logs/request.log
Answers
C.
< aem-install>/crx-quickstart/logs/access.log
C.
< aem-install>/crx-quickstart/logs/access.log
Answers
D.
< aem-install>/crx-quickstart/logs/info.log
D.
< aem-install>/crx-quickstart/logs/info.log
Answers
Suggested answer: A
asked 02/10/2024
Justin Kim
38 questions
Total 94 questions
Go to page: of 10