Latest [Oct 23, 2021] Adobe AD0-E116 Exam Practice Test To Gain Brilliante Result
Take a Leap Forward in Your Career by Earning Adobe AD0-E116
NEW QUESTION 54
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/configMgr and tick the checkbox "encrypt" before saving a configuration
2. Use encrypted values work across all instances
3. When loading the value in the code, call CryptoSupport.unprotect(...) before using the value - B. 1. Use console at /system/console/crypto to encrypt the value
2. 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
3. Sensitive information is automatically decrypted using the CryptoSupport OSGi service before the value is returned - C. 1. Use console at /system/console/crypto to encrypt the value
2. 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
3. When loading the value in the code, call CryptoSupport.unprotect(_) before using the value - D. 1. Use console at /system/console/configMgr and tick the checkbox "encrypt" before saving a configuration
2. 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
3. Sensitive information is automatically decrypted using the CryptoSupport OSGi service before the value is returned
Answer: C
NEW QUESTION 55
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 service needs to correctly declare metatype information.
- B. The bundle providing the service needs to contain an adequate SCR descriptor file.
- C. The bundle providing the service needs to contain a whitelist of allowed consumer bundles.
- D. The bundle providing the service needs to export the java package of the service interface.
- E. The bundles consuming the service need to import the fully qualified name of the service interface.
Answer: D,E
NEW QUESTION 56
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 57
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 58
A developer needs to change the label "Sites" in the navigation of AEM author to "Websites".
Which action should the developer take to achieve this?
- A. Create a new node /apps/cq/core/content/nav/sites and update the property jcr:itle
- B. Modify the node /libs/cq/core/content/nav/sites by updating the jcr:title property
- C. Change the code of /libs/granite/ui/components/shell/clientlibs/shell/js/globalnav.js to display the new value
- D. Modify the code of /libs/granite/ui/components/shell/globalnav/overlay/overlay.jsp to display the new value
Answer: A
NEW QUESTION 59
After a recent code deployment, an AEM site is experiencing longer than usual query execution time. The deployment package contained some new Lucene index definitions. A developer needs to identify the long running queries and confirm that the new index definitions are getting applied correctly.
Which action should the developer take to investigate this problem?
- A. Goto Tools > Operations > Diagnosis > Query Performance > Slow Queries. Select a Query and Click on Explain
- B. Goto Tools > Operations > Diagnosis > Log Messages. Configure DEBUG log level on com.day.cq.search to monitor search queries.
- C. Goto Tools > Operations > Diagnosis > Index Manager. Select the new Indexes and run a consistency check.
- D. Goto Tools > Operations > Diagnosis > Download Thread Dumps. Analyze the Thread Dumps to identify long running requests.
Answer: A
NEW QUESTION 60
A developer creates a custom Client Library named foobar.
This Client Library embeds 5 other Client Libraries and contains 10 JavaScript source files. One of these files, called foo.js, has a bug on line 8 which causes an exception. The Client Library is throwing this exception on line 1350 when it is included on a webpage.
How should a developer find the exact line in foo.js where the exception has been thrown?
- A. 1. Add the query parameter debugClientLibs=true to the request.2. Use the browser JavaScript debugging tools.
- B. 1. Temporarily remove the embedded Client Libraries of the foobar Client Library.2. Use the browser JavaScript debugging tools.
- C. 1. Add the selector debugClientLibs to the page request.2. Check the JavaScript exception log in the OSGi web console.
- D. 1. Enable JS/CSS minification in OSGi configuration console for HTML Library Manager.2. Check the JavaScript exception log in the OSGi web console.
Answer: A
NEW QUESTION 61
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 62
Which log file contains AEM application request and response entries?
- A. history.log
- B. audit.log
- C. response.log
- D. request.log
Answer: D
NEW QUESTION 63
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 64
A developer is working on a dialog for a contact list component. The dialog has the following requirements:
1. The list of contacts must include one or more entries.
2. Contact details must include a full name.
3. Contact details must include an email address
4. Contact details can optionally include a short bio
5. Authors need to be able to rearrange the contacts in the list
Which dialog configuration should the developer use to meet all of these requirements?



- A. Option A
- B. Option D
- C. Option B
- D. Option C
Answer: A
NEW QUESTION 65
A developer wants to automatically truncate request log files once they exceed 10 MB.
Which OSGi configuration should the developer modify?
- A. Adobe Granite Log Analysis Service
- B. Apache Sling Logging Configuration
- C. Apache Sling Logging Writer Configuration
- D. Apache Sling Customizable Request Data Logger
Answer: C
Explanation:
Reference:
https://sling.apache.org/documentation/development/logging.html
NEW QUESTION 66
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 67
A developer needs to configure sets of values according to the following parameters:
- Varies for different staging environments
- Varies for different content paths
- Diffets between author and publish
Which implementation strategy should the developer use to meet these requirements?
- A. One OSGi configuration for the set of values with runmodes
- B. A custom cloud condifuration
- C. A JCR property at the content root node of the site with inheritedPageProperties
- D. A context aware configuration with buckets using an OSGi configuration
Answer: D
NEW QUESTION 68
How should a developer configure the replication agent to flush the dispatcher cache for a newly activated page?
- A. Create a new replication agent and set transport URI to point to the dispatcher
- B. Set the serialization type property of the default agent to dispatcher flush
- C. Create a dispatcher flush agent in publish instance
- D. Create a reverse replication agent on the author instance
Answer: C
NEW QUESTION 69
What is the artifact ID of the maven dependency that contains all core AEM APIs?
- A. uber-jar
- B. aem-jar
- C. api-jar
- D. core-jar
Answer: A
Explanation:
Reference:
https://helpx.adobe.com/ro/experience-manager/6-
3/sites/developing/using/ht-projects-maven.html
NEW QUESTION 70
The structure section of an editable template has a locked component.
What happens to the content of that component when a developer unlocks it?
- A. The content is copied to the initial section of the editable template.
- B. The content is deleted after confirmation from the template author.
- C. The content is moved to the initial section of the editable template.
- D. The content stays in the same place but it ignored on pages using the template.
Answer: C
NEW QUESTION 71
A developer creates a custom component. The component dialog includes the following two fields:
he component should display the first 'X' characters of the text entered in the 'text' input where 'X' is the number entered in the 'charLimit' input. If zero, or no value, is entered in the 'charLimit' input then the text should be unaltered. The developer creates the following Sling Model to perform the trancation:
A Null Pointer Exception occurs if NO charLimit values is set in the component dialog.
What should the developer do to resolve this issue?
- A. Add the @Default annotation to the 'chatLimit' variable in the Sling Model.
- B. Replace the defaultValue="0" attribute of the charLimit field in the dialog with defaultValue="{Long}0".
- C. Replace the defaultValue="0" attribute of the 'charLimit' field in the dialog with min="0".
- D. Change the defaultInjectionStrategy of the Truncation Sling Model to DefaultInjectionStrategy.REQUIRED.
Answer: A
NEW QUESTION 72
......
Authentic Best resources for AD0-E116 Online Practice Exam: https://www.getvalidtest.com/AD0-E116-exam.html