Updated Sep-2021 Exam Engine or PDF for the Adobe AD0-E116 test to help you quickly prepare for the Adobe exam! [Q14-Q37]

Share

Updated Sep-2021 Test Engine or PDF for the Adobe AD0-E116 test to help you quickly prepare for the Adobe exam!

Full AD0-E116 Practice Test and 95 unique questions with explanations waiting just for you, get it now!

NEW QUESTION 14
A developer needs to analyze log messages for custom Java application. The developer writes the following Java class:

The developer creates a custom log named custom.log with a debug level in OSGi web console for Java package com.abc.xyz.

Where should the developer look in the OSGi web console to view the above message?

  • A. Sling -> Metrics and click logs/custom.log
  • B. OSGi -> Log Service and click logs/custom.log
  • C. AEM -> Log Support and click logs/custom.log
  • D. Sling-> Log Support and click logs/custom.log

Answer: D

 

NEW QUESTION 15
The custom AEM application needs to keep a flat list of all page paths underneath /content/thesite in memory for a real-time integration with high performance requirements.
The developer has the following intermediate state of the class:

What action should the developer take to meet these requirements?

  • A. Option A
  • B. Option D
  • C. Option B
  • D. Option C

Answer: A

 

NEW QUESTION 16
The developer is presented with a component "Component A" which inherits from a component "Component B".
The dialog of Component A on path ../cq:dialog/../../items looks like:
+ align
- jcr:primaryType="nt:unstructured"
- sling:resourceType="granite/ui/components/coral/foundation/form/select"
- fieldLabel="Align Text"
- name="./align"
The dialog of Component B on path ../cq:dialog/../../items looks like:
+ title
- jcr:primaryType="nt:unstructured"
- sling:resourceType="granite/ui/components/coral/foundation/form/textarea"
- fieldLabel="Title"
- name="./title"
+ description
- jcr:primaryType="nt:unstructured"
- sling:resourceType="granite/ui/components/coral/foundation/form/textarea"
- fieldLabel="Description"
- name="./description"
The requirement for the dialog is that the *Align Text* field is shown after the *Title* field.
What should the developer do without changing Component B?

  • A. Extend Component B with the functionality of Component A
  • B. Move the align node from Component A to Component B and order them according the requirements.
  • C. Add the property sling:orderBefore="description" to the align node.
  • D. Move all the nodes under the item node from Component B to Component A and order them according the requirements.

Answer: C

 

NEW QUESTION 17
A developer is working on the following Sling Model that is being used in a component.
@Model(adaptables = SlingHttpServletRequest.class, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL) public class SampleModel {
@Inject
private Page currentPage;
private boolead matchingTitle;
@PostConstruct
private void init(){
matchingTitle = title.equals(currentPage.getName());
}
public boolean isMatchingTitle(){
return matchingTitle;
}
}
The model must check if the configured value of the jct:title property for the component matches the same name of the current page. If the jcr:title property of the component has NOT been configured, then isMatchingTitle() must return false.
How should the developer inject the title property in this model?

  • A. "@ValueMapValue
    @Named(""jcr:title"")
    @Default(values = """")
    private String titile;"
  • B. "@ValueMapValue
    @Via(""jcr:title"")
    @Required
    private String titile;"
  • C. "@ValueMapValue
    @Via(""jcr:title"")
    @Default(values = """")
    private String titile;"
  • D. "@ValueMapValue
    @Named(""jcr:title"")
    @Required
    private String titile;"

Answer: A

 

NEW QUESTION 18
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. Ensure all OSGi requirements are met and re-deploy using Maven
  • B. Use the "Update" action for the bundle in the Apache Felix Web Console
  • C. Reinstall the content package using the package manager
  • D. Use the "Start" action for the bundle in the Apache Felix Web Console

Answer: A

 

NEW QUESTION 19
A developer needs to implement a service component that should be manually configured by operations to react on operational circumstances. The service component should NOT be active by default. The service has the properties myservice.name (one string value) and myservice.stringValues (a list of the string values) to be configured.
The developer needs to use OSGi Metatype annotations to make those properties configurable in the Apache Felix Web Console.
Which set of steps should the developer take to meet these requirements?

  • A. 1. Create an annotation interface as inner class of the service component and annotate it with @ObjectClassDefinition.2. Apply @AttributeDefinition for the methods myservice.name and myservice.stringValues.3. Use the @Component annotation with configurationPolicy = ConfigurationPolicy.REQUIRE on the service component.4. Use the @Designate annotation to link the service component to the created configuration annotation interface.5. Use the activate method of the service component class to get the configuration annotation interface class injected.
  • B. 1. For the class fields myserviceName and myserviceStringValues, add a @Property annotation each with names set to myservice.name and myservice.stringValues respectively.2. Use the @Component annotation with configurationFactory = true on the service component class.3. Use the @Service service component class.4. The configuration is automatically injected into the field by the service component runtime.
  • C. 1. Create an annotation interface as inner class of the service component and annotate it with @ObjectClassDefinition.2. Apply @AttributeDefinition for the methods myservice_name and myservice_stringValues.3. Use the @Component annotation with configurationPolicy = ConfigurationPolicy.REQUIRE on the service component.4. Use the @Designate annotation to link the service component to the created configuration annotation interface.5. Use the activate method of the service component class to get the configuration annotation interface class injected.
  • D. 1. For the class fields myserviceName and myserviceStringValues, add a @AttributeDefinition annotation each with names set to myservice.name and myservice.stringValues respectively.2. Use the @Component annotation with configurationFactory = true on the service component class.3. Use the @Service service component class.4. Use the activate method of the service component class to get the configuration annotation interface class injected.

Answer: C

 

NEW QUESTION 20
For each CRX node in the hierarchy, which actions can be configured using the user admin interface?

  • A. Read, Write, Delete, Edit ACL, Replicate
  • B. Read, Write, Read ACL, Edit ACL, Replicate
  • C. Read, Modify, Create, Delete, Read ACL, Edit ACL
  • D. Read, Modify, Create, Delete, Read ACL, Edit ACL, Replicate

Answer: D

 

NEW QUESTION 21
A developer creates two custom classes. ClassA has the following code:
package com.aem.abc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ClassA {
private static final Logger logger = LoggerFactory.getLogger(this.getClass()); public void classAMethod() { logger.debug("Message from Class A method");
}
}
The developer creates a custom log custom.log with debug level in OSGi sling log support for the Java package com.aem.abc. The developer adds another class ClassB with the following code:
package com.aem.xyz;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ClassB {
private static final Logger logger = LoggerFactory.getLogger(this.getClass()); public void classBMethod() { logger.debug("Message from Class B method");
}
}
Which action must the developer take to see the log messages in the same file from both classes?

  • A. Configure custom.log in OSGi web console -> Sling -> Log Support and replace com.aem.abc with com.aem.xyz
  • B. Configure custom.log in OSGi web console -> Sling -> Log Support and replace com.aem.xyz with com.aem.abc
  • C. Create separate a log file in the OSGi web console -> Sling -> Log Support for logger com.aem.xyz
  • D. Configure custom.log in OSGi web console -> Sling -> Log Support and replace com.aem.abc with com.aem

Answer: D

 

NEW QUESTION 22
A developer is creating a new OSGi bundle com.custom.package.b to expose new services.
com.custom.package.a is already installed and active in the system and has the following package definition:

The system console shows the following package availability:

Bundle com.custom.package.b to be installed has the following package definition:

What will happen when the developer uploads the bundle com.custom.package.b into the system?

  • A. The bundle will install but fail the activation due to unsatisfied dependency com.sample.package.b.
  • B. The bundle will install but fail the activation due to unsatisfied dependencies com.sample.package.b and com.sample.package.c.
  • C. The bundle will install and activate successfully.
  • D. The bundle will install but fail the activation due to unsatisfied dependency com.sample.package.c.

Answer: B

 

NEW QUESTION 23
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=""""></div>
    <div data-two=0 data-three=""""></div>"
  • B. "<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-one="""" data-two=0 data-three=""""></div>"
  • D. "<div data-one=""foo"" data-two=""2"" data-three=""true""></div>
    <div data-one="""" data-two=""0"" data-three=""false""></div>"

Answer: B

 

NEW QUESTION 24
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.bar.html/world
  • B. path/page.bar.html/hello/world
  • C. path/page.foo.bar.html/hello/world
  • D. path/page.infinity.json.bar.html/world

Answer: B

 

NEW QUESTION 25
A developer is working on an HTL script for a custom component. The script has the following requirements:
* This script must list the title of every child page of the current page.
* If a child page does not have any children, then its title should link directly to that page.
* If a child page has children, then the title of every one of its children should be listed be-neath its title.
* The title of every grandchild page should link directly to that page.
Which HTL script should the developer use to meet these requirements?

  • A. Option D
  • B. Option B
  • C. Option A
  • D. Option C

Answer: B

 

NEW QUESTION 26
A developer needs to install a content package on an AEM environment. However a content package with the same name is already installed.
What would 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. Uninstall the existing content package before installing the new content package
  • B. Upload the content package to the CRX Package Share before installing it
  • C. Install the content package using the OSGi web console
  • D. Use the "Force Upload" option when uploading the new content package

Answer: A

 

NEW QUESTION 27
Which maven plugin is required to install a content package on a local AEM environment using maven?

  • A. Content Package Maven Plugin
  • B. Maven Install Plugin
  • C. Maven Bundle Plugin
  • D. FileVault Package Maven Plugin

Answer: A

 

NEW QUESTION 28
A developer is installing a content package with the package manager. The developer needs to restrict the approximate number of nodes in a batch that is saved to persistent storage in one transaction.
How should the developer modify the number of transient nodes to be triggered until automatic saving?

  • A. Modify the export package manifest header and copy the content package to AEM installation folder.
  • B. AEM instances automatically modify the number of transient nodes based on the load balancing.
  • C. Select the option MergePreserve for the Access Control Handling drop-down in the Install Package dialog-box.
  • D. Change the value of Save Threshold in the Install Package dialog-box.

Answer: D

Explanation:
Reference:
https://helpx.adobe.com/ro/experience-manager/kt/sites/using/gettingstarted- wknd-tutorial-develop/part1.html

 

NEW QUESTION 29
Two AEM publish instances feed a single Dispatcher.
Which part of the Dispatcher configuration should a developer review to ensure both AEM publish instances are used?

  • A. farms
  • B. virtualhosts
  • C. cache
  • D. filter

Answer: A

 

NEW QUESTION 30
A developer needs to ensure that the path /content/<proj>/segments exists on all environments with the correct initial content that the developer provides in a package. Content that exists in that path should NOT be affected.
Which import mode should the developer use in the filter definition?

  • A. optional
  • B. replace
  • C. update
  • D. merge

Answer: D

 

NEW QUESTION 31
Refer to the following four Client Library Folders.

A developer uses the following:

What is the resulting HTML?

  • A. Option D
  • B. Option C
  • C. Option A
  • D. Option B

Answer: B

 

NEW QUESTION 32
A developer running a local AEM instance and working on an AEM project needs to change a large number of files locally in filesystem. The developer needs to get the changes uploaded to the local AEM instance to verify changes almost immediately in the browser.
What action should the developer take to most efficiently meet these requirements?

  • A. Build a Content Package using maven and deploy it after each change
  • B. Access CRXDE and upload the files through the interface
  • C. Make the changes in CRXDE, create a content package, download it and expand it into the working directory after each change
  • D. Install FileVault bundle in the AEM instance and register the local working directory for synchronization

Answer: D

 

NEW QUESTION 33
A developer is creating a custom method. This method must return a String property y from child x. the method must use only Sling APIs.
How should the developer retrieve property y of node x, and node x may or may NOT exist?

  • A. Option A
  • B. Option D
  • C. Option B
  • D. Option C

Answer: B

 

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

  • A. <content>
  • B. <rule>
  • C. <path>
  • D. <filter>

Answer: D

 

NEW QUESTION 35
A developer creates an AEM editable template that includes a Layout Container. When the developer creates a page using this template, the Layout Container placeholder does NOT appear.
What is causing this issue?

  • A. The page template has NOT been published.
  • B. The Layout Container has NOT been unlocked.
  • C. The page template has NOT been enabled.
  • D. The Layout Container does NOT have a policy.

Answer: B

 

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

  • A. <aem-install>/crx-quickstart/logs/error.log
  • B. <aem-install>/crx-quickstart/logs/info.log
  • C. <aem-install>/crx-quickstart/logs/request.log
  • D. <aem-install>/crx-quickstart/logs/access.log

Answer: A

 

NEW QUESTION 37
......

Get Latest AD0-E116 Dumps Exam Questions: https://drive.google.com/open?id=1km_sw16JaKCjkD-wtspp6uLHRJOiRoTU

Full AD0-E116 Practice Test and 95 unique questions with explanations waiting just for you, get it now: https://www.vcetorrent.com/AD0-E116-valid-vce-torrent.html