Latest [Nov 14, 2021] AD0-E116 Exam with Accurate Adobe Experience Manager Developer Expert PDF Questions [Q11-Q34]

Share

Latest [Nov 14, 2021] AD0-E116 Exam with Accurate Adobe Experience Manager Developer Expert PDF Questions

Take a Leap Forward in Your Career by Earning Adobe 95 Questions


Adobe AD0-E116 Exam Syllabus Topics:

TopicDetails
Topic 1
  • Given a scenario, determine the correct method to Create and manage custom OAK indices
  • Identify the steps to create and manage AEM dispatcher configurations
Topic 2
  • Recommend & implement solutions to sync content/configurations across AEM environments
  • Identify the steps to set up and maintain front-end and back-end dependency management
Topic 3
  • Determine the correct steps to implement SPA structure and components
  • Given a design, create complex components including the HTL, models, and services
Topic 4
  • Determine the correct steps to configure OOTB SAML and LDAP integration
  • Determine the correct steps to configure multi-tenancy
Topic 5
  • Determine the correct method to create unit tests and map mock data
  • Given a scenario, determine the approach for any third-party integration
Topic 6
  • Determine the approach to implement a headless or hybrid implementation
  • Explain how to create and manage OSGi configurations
Topic 7
  • Determine the correct usage of each archetype when building projects
  • Given a scenario, determine the correct method to develop workflows
Topic 8
  • Determine the steps required around planning and implementing AEM upgrades and repository migration activities/tasks
  • Explain the setup steps around release management

 

NEW QUESTION 11
One content package of a custom application contains the following content paths.

The server also contains the content path /apps/myproj/configuration that must NOT be touched when installing the package.
Which two filter definitions should a developer use to always update only the contained paths upon installation in the server? (Choose two.)

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

Answer: D,E

 

NEW QUESTION 12
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. 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.
  • C. 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.
  • 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: B

 

NEW QUESTION 13
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. Implement a Sling Model Exporter for the components
  • B. Add JSON as the default extension in Apache Sling Servlet?Script Resolver and Error handler Configuration
  • C. Invoke the page URL with the extension .json to get the values to construct the required output
  • D. Create a custom sling event handler to handle JSON requests

Answer: A

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

 

NEW QUESTION 14
A developer needs to upgrade existing components (Proxy Components) based on Core Components Version 1(v1) to Core Components Version 2(v2).
How should the developer upgrade to V2 Core Components?

  • A. Modify the sling:resourceSuperType property on the V1 core components to point to V2 Component
  • B. Proxy Components will be automatically upgraded to the V2 Core Component on AEM Restart
  • C. Create a new Proxy Component and set sling:resourceType property to V2 Core Component
  • D. Modify the sling:resourceSuperType property on the proxy component to point to V2 Component

Answer: D

 

NEW QUESTION 15
A custom AEM application is using the PageManager API.
What should a developer add to make the application compile and run correctly in AEM?

  • A. a maven dependency to bundle cq-wcm-core to the application bundle
  • B. a maven dependency to AEM uber-jar to the content package
  • C. a maven dependency to bundle cq-wcm-api to the content package
  • D. a maven dependency to AEM uber-jar to the application bundle

Answer: D

 

NEW QUESTION 16
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 C
  • C. Option B
  • D. Option D

Answer: D

 

NEW QUESTION 17
After adding new features, a developer's environment is experiencing slowness before ultimately running out of memory. The initial log analysis points towards a large number of open sessions.
Which action should the developer take to further monitor the overall session count on this AEM instance?

  • A. Go to <aem-install>/crx-qiuckstart/logs/strderr/log, use the following command grep -o 'CRXSessionImpl' strderr.log| wc -l.
  • B. Go to Web Console > Status > Threads, verify the overall thread count.
  • C. Run the following command to generate thread dumps jstack -l <pid> >> threaddumps.log, analyze thread dumps to find long running sessions.
  • D. Go to Tools > Operations > Monitoring. Create a new report based on Number of Active Sessions as metric.

Answer: A

 

NEW QUESTION 18
Too many pages are invalidated in the dispatcher cache when a page is published.
What is most likely causing this issue in the dispatcher configuration?

  • A. Sticky session are NOT configured properly, resulting in requests being delivered to the wrong server.
  • B. File globbing in the dispatcher configuration is NOT correct.
  • C. The OS file system permissions are NOT properly configured.
  • D. The level of cache invalidation is NOT appropriate for the published content model.

Answer: D

 

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

Answer: B,E

 

NEW QUESTION 20
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 bundle providing the service needs to contain an adequate SCR descriptor file.
  • B. The bundle providing the service needs to export the java package of the service interface.
  • C. The service needs to correctly declare metatype information.
  • D. The bundles consuming the service need to import the fully qualified name of the service interface.
  • E. The bundle providing the service needs to contain a whitelist of allowed consumer bundles.

Answer: B,D

 

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

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

Answer: B

 

NEW QUESTION 22
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
    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
  • B. 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
  • C. 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
  • D. 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

Answer: A

 

NEW QUESTION 23
A developer created an editable template with a Layout Container. The developer needs to restrict the Layout Container to just one column layout.
What should the developer do to the editable template to enforce this restriction?

  • A. Using Template Editor, lock the Structure Component for the template
  • B. Using Template Editor, set the responsive settings to 1 column for Layout Container Policy
  • C. Overlay wcm.foundation.components.page.responsive Client Library and set @max_col to 1
  • D. Add responsive column control component to the template and set column type to 1

Answer: B

 

NEW QUESTION 24
A developer creates a Sling Servlet. The Sling Servlet is bound to a path (/service/sling/sample). Refer to the resulting code below.
@Component (immediate=true, service = {Servlet.class})
@SlingServletPaths(value = {"/service/sling/sample"})
What should the developer do to make the servlet access controlled using the default ACLs?

  • A. Add @SlingServletPrefix (value = "/apps") annotation
  • B. Add @SlingServletName(servletName = "AccessControlServlet") annotation
  • C. Use @SlingServletResourceTypes instead of @SlingServletPaths
  • D. Modify @SlingServletPaths(value = {"/bin/sling/sample"})

Answer: C

 

NEW QUESTION 25
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. Split the js and css into 2 Client Libraries since they can't be in the same Client Library
  • D. Change the js folder to a Client Library node and embed it on the clientlibs node

Answer: A

 

NEW QUESTION 26
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 moved to the initial section of the editable template.
  • B. The content is deleted after confirmation from the template author.
  • C. The content stays in the same place but it ignored on pages using the template.
  • D. The content is copied to the initial section of the editable template.

Answer: A

 

NEW QUESTION 27
A developer installs the latest Service pack to a local AEM author instance.
How should the developer install this package on the publish instance?

  • A. Replicate from package manager of author instance
  • B. Use upload/install from OSGi console of author instance
  • C. Replicate from package manager of publish instance
  • D. Use upload/install from OSGi console of publish instance

Answer: A

 

NEW QUESTION 28
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. Change the defaultInjectionStrategy of the Truncation Sling Model to DefaultInjectionStrategy.REQUIRED.
  • B. Add the @Default annotation to the 'chatLimit' variable in the Sling Model.
  • C. Replace the defaultValue="0" attribute of the charLimit field in the dialog with defaultValue="{Long}0".
  • D. Replace the defaultValue="0" attribute of the 'charLimit' field in the dialog with min="0".

Answer: B

 

NEW QUESTION 29
A developer developed a workflow that makes a copy of every node created or modified under a certain path to a different one. The workflow launches but the nodes are not copied over.
Which two methods should the developer use to resolve this issue? (Choose two.)

  • A. Go to Workflow Launchers and create a new launcher for the workflow even if one already exists.
  • B. Go to Workflow instances screen and verify that the instance of the workflow is present and check its status.
  • C. Go to Package Manager screen and reinstall the bundle that contains the workflow so it restarts.
  • D. Go to Workflow Failures screen and check if any instances of the workflow are present.
  • E. Go to Workflow Models screen, then delete and recreate the workflow.

Answer: B,D

 

NEW QUESTION 30
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 C
  • B. Option A
  • C. Option B
  • D. Option D

Answer: B

 

NEW QUESTION 31
AEM is installed in $AEM_HOME.
In which subfolder are the command line startup and shutdown scripts located?

  • A. $AEM_HOME/crx-quickstart/opt/
  • B. $AEM_HOME/crx-quickstart/bin/
  • C. $AEM_HOME/
  • D. $AEM_HOME/crx-quickstart/scripts

Answer: B

 

NEW QUESTION 32
A Client-Side Library has the category "library.example".
Which HTL statement should a developer use to reference only the CSS files of this Client-Side library

  • A. <sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html" data-sly-call="${clientlib.css @ category='library.example'}"/>
  • B. <sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html" data-sly-call="${clientlib.all @ categories='library.example.css'}"/>
  • C. <sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html" data-sly-call="${clientlib.css @ categories='library.example'}"/>
  • D. <sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html" data-sly-call="${clientlib.all @ type='css' categories='library.example'}"/>

Answer: C

 

NEW QUESTION 33
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
  • 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.xyz

Answer: A

 

NEW QUESTION 34
......

Authentic Best resources for AD0-E116 Online Practice Exam: https://www.exam4tests.com/AD0-E116-valid-braindumps.html