ExamGecko
Home / Adobe / AD0-E116 / List of questions
Ask Question

Adobe AD0-E116 Practice Test - Questions Answers

Add to Whishlist

List of 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?

1 . Use console at /system/console/crypto to encrypt the value
1 . Use console at /system/console/crypto to encrypt the value
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
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
When loading the value in the code, call CryptoSupport.unprotect(_) before using the value
When loading the value in the code, call CryptoSupport.unprotect(_) before using the value
1 . Use console at /system/console/configMgr and tick the checkbox "encrypt" before saving a configuration
1 . Use console at /system/console/configMgr and tick the checkbox "encrypt" before saving a configuration
Use encrypted values work across all instances
Use encrypted values work across all instances
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
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
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
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
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
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
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
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
Sensitive information is automatically decrypted using the CryptoSupport OSGi service before the value is returned
Sensitive information is automatically decrypted using the CryptoSupport OSGi service before the value is returned
Suggested answer: A
asked 02/10/2024
Kabi Bashala
41 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"?

Use the "Start" action for the bundle in the Apache Felix Web Console
Use the "Start" action for the bundle in the Apache Felix Web Console
Ensure all OSGi requirements are met and re-deploy using Maven
Ensure all OSGi requirements are met and re-deploy using Maven
Use the "Update" action for the bundle in the Apache Felix Web Console
Use the "Update" action for the bundle in the Apache Felix Web Console
Reinstall the content package using the package manager
Reinstall the content package using the package manager
Suggested answer: B
asked 02/10/2024
Clive Roberts
50 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?

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

Instantiate a node object with session.getNode(/content/blogs) and then iterate through the child nodes and print the title for each.
Instantiate a node object with session.getNode(/content/blogs) and then iterate through the child nodes and print the title for each.
Use the QueryDebugger to look for all children of /content/blogs and then iterate through the result set and print the title for each.
Use the QueryDebugger to look for all children of /content/blogs and then iterate through the result set and print the title for each.
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.
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.
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.
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.
Suggested answer: B
asked 02/10/2024
Rafael Pabon
53 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?

path/page.foo.bar.html/hello/world
path/page.foo.bar.html/hello/world
path/page.infinity.json.bar.html/world
path/page.infinity.json.bar.html/world
path/page.bar.html/hello/world
path/page.bar.html/hello/world
path/page.bar.html/world
path/page.bar.html/world
Suggested answer: C
asked 02/10/2024
Chang Weishin
32 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?

Add the dependency to the third party bundle in pom.xml of the project bundle
Add the dependency to the third party bundle in pom.xml of the project bundle
Embed the third party bundle in the bundle that depends on it
Embed the third party bundle in the bundle that depends on it
Embed the bundle in a content package to have it automatically deployed
Embed the bundle in a content package to have it automatically deployed
Declare the dependency correctly using a link to the OSGi Bundle Reposirory (OBR)
Declare the dependency correctly using a link to the OSGi Bundle Reposirory (OBR)
Suggested answer: C
asked 02/10/2024
Andreas Krieger
38 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. )

The bundles consuming the service need to import the fully qualified name of the service interface.
The bundles consuming the service need to import the fully qualified name of the service interface.
The bundle providing the service needs to contain an adequate SCR descriptor file.
The bundle providing the service needs to contain an adequate SCR descriptor file.
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.
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.
The service needs to correctly declare metatype information.
The service needs to correctly declare metatype information.
Suggested answer: A, C
asked 02/10/2024
Syed Hasan Rizvi
32 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?

"<div data-one=""foo"" data-two=""2"" data-three=""true""></div>< div data-one="""" data-two=""0"" data-three=""false""></div>"
"<div data-one=""foo"" data-two=""2"" data-three=""true""></div>< div data-one="""" data-two=""0"" data-three=""false""></div>"
"<div data-one=""foo"" data-two=2 data-three=""""></div>< div data-one="""" data-two=0 data-three=""""></div>"
"<div data-one=""foo"" data-two=2 data-three=""""></div>< div data-one="""" data-two=0 data-three=""""></div>"
"<div data-one=""foo"" data-two=""2"" data-three></div>< div data-two=""0""></div>"
"<div data-one=""foo"" data-two=""2"" data-three></div>< div data-two=""0""></div>"
"<div data-one=""foo"" data-two=2 data-three=""""></div>< div data-two=0 data-three=""""></div>"
"<div data-one=""foo"" data-two=2 data-three=""""></div>< div data-two=0 data-three=""""></div>"
Suggested answer: C
asked 02/10/2024
Nicola Grossi
45 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?

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

Question 10

Report Export Collapse

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

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

Related questions