Full AD0-E116 Practice Test and 95 unique questions with explanations waiting just for you! [Q46-Q62]

Share

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

Adobe Experience Manager Dumps AD0-E116 Exam for Full Questions - Exam Study Guide

NEW QUESTION 46
A developer wants to consume AEM Page Data in Single Page Application. The Single Page Application is coded to understand JSON format. Only page content should be exposed through JSON. All the existing components are based on foundation components.
Which change should the developer make in the existing components to support this requirement?

  • A. Invoke the page URL with the extension .json to get the values to construct the required output
  • B. Create a custom sling event handler to handle JSON requests
  • C. Add JSON as the default extension in Apache Sling Servlet?Script Resolver and Error handler Configuration
  • D. Implement a Sling Model Exporter for the components

Answer: D

Explanation:
https://sling.apache.org/documentation/the-sling-engine/servlets.html

 

NEW QUESTION 47
A developer needs an existing workflow to run only when pages are created under a certain folder.
What should the developer create to achieve this?

  • A. A Launcher with the field condition that has the value jcr:content/page
  • B. A Launcher with the field exclude that has the value jcr:nodeType==cq:Page
  • C. A Launcher with the field path pointing to the folder and nodetype field have the value cq:Page
  • D. A Launcher with the field path pointing to the folder and condition field and have the value jcr:content/jcr:primaryType==cq:Page

Answer: C

 

NEW QUESTION 48
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 49
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. Set the channels property on the Client Library Folder to "touch"
  • B. Pass the parameter user-agent='touch' when referencing the Client Library
  • C. Create a resource folder called "touch" under the Client Library Folder
  • D. Add the line "#base=touch" to the js.txt and css.txt files in the Client Library Folder

Answer: A

 

NEW QUESTION 50
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 51
A developer needs to create a banner component. This component shows an image across the full width of the page. A title is shown on top of the image. This text can be aligned to the left, middle, or right. The core components feature a teaser component which matches almost all requirements, but not all.
What is the most maintainable way for the developer to implement these requirements?

  • A. Inherit from the teaser core component.
  • B. Use and configure the teaser core component.
  • C. Overlay the teaser core component.
  • D. Create a new custom component from scratch.

Answer: A

Explanation:
Reference:
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/components/teaser.html

 

NEW QUESTION 52
A developer wants to extend AEM Core Components to create a custom Carousel Component.
How should the developer extend the Core Components?

  • A. Use the sling:resourceType property to point to the core component.
  • B. Copy the Core Carousel component to /apps/<project> folder.
  • C. Make changes to the original component and assign a component group.
  • D. Use the sling:resourceSuperType property to point to the core component.

Answer: D

 

NEW QUESTION 53
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 54
A banking AEM application contains functionality to calculate a mortgage rate based on user input. A servlet in place calculates the result in the backend. A call to an internal third-party REST service is required to retrieve the average object value based on a given zip code.
The following three service interfaces are used:
MortgageCalculationServlet, MortgageCalculationService and ObjectValueLookupRestService where MortgageCalculationServlet has a dependency to MortgageCalculationService and MortgageCalculationService has a dependency to ObjectValueLookupRestService.
The calculation has many combinations of input parameters and edge cases, so the JUnit coverage must be as high as possible.
Which two strategies should the developer use to ensure testability of the application code? (Choose two)

  • A. Use the standard OSGi @Reference annotation to wire the dependencies in application code
  • B. Use BundleContext.getServiceReference(...) and BundleContext.getService(...) in application code to look up for the required services just before usage
  • C. Deploy a third party dependency injection container to wire dependencies more efficiently in application code
  • D. Use static methods to avoid boilerplate in application code
  • E. Use a mock framework to be able to create and inject mocks in the test code

Answer: A,E

 

NEW QUESTION 55
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 56
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 57
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 58
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 59
In OSGi bundle Activator.java is registered through a service DevelopInfo.java DeveloperInfo.java

Activator.java

Maven install generates an error during deployment. Refer to the error information below:

Which action should the developer take to resolve the build error?

  • A. Interface DeveloperInfo does NOT have any method.
  • B. The required Maven repository for OSGi is missing.
  • C. @Service annotation is missing in DeveloperInfo.java.
  • D. Activator class is NOT implementing DeveloperInfo interface.

Answer: D

 

NEW QUESTION 60
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 61
Refer to the following Client Library node structure.
+clientlibs
- jcr:primaryType="cq:ClientLibraryFolder"
- categories="[clientlibs.example]"
+ js.txt
- jcr:primaryType="nt:file"
+ css.txt
- jcr:primaryType="nt:file"
+ js
- jcr:primaryType="nt:folder"
- javascript1.js
- javascript2.js
The js.txt looks like
javascript1.js
javascript2.js
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
  • B. Change the js folder to a Client Library node and add the property categories = "[clientlibs.example]"
  • C. Change the js folder to a Client Library node and embed it on the clientlibs node
  • D. Split the js and css into 2 Client Libraries since they can't be in the same Client Library

Answer: A

 

NEW QUESTION 62
......

Authentic Best resources for AD0-E116 Online Practice Exam: https://www.examslabs.com/Adobe/Adobe-Experience-Manager/best-AD0-E116-exam-dumps.html

Get the superior quality AD0-E116 Dumps Questions from ExamsLabs: https://drive.google.com/open?id=1rXU-s3bQckmWKId5lHW1GR61MTI2vIwY