[Dec 06, 2021] AD0-E116 Ultimate Study Guide - ExamcollectionPass [Q55-Q79]

Share

[Dec 06, 2021] AD0-E116 Ultimate Study Guide -  ExamcollectionPass

Ultimate Guide to Prepare AD0-E116 Certification Exam for Adobe Experience Manager in 2021


Adobe AD0-E116 Exam Syllabus Topics:

TopicDetails
Topic 1
  • Determine the correct steps to implement SPA structure and components
  • Given a design, create complex components including the HTL, models, and services
Topic 2
  • Determine the correct method to create unit tests and map mock data
  • Given a scenario, determine the approach for any third-party integration
Topic 3
  • Determine the steps required around planning and implementing AEM upgrades and repository migration activities/tasks
  • Explain the setup steps around release management
Topic 4
  • Determine the correct usage of each archetype when building projects
  • Given a scenario, determine the correct method to develop workflows
Topic 5
  • Determine the approach to implement a headless or hybrid implementation
  • Explain how to create and manage OSGi configurations
Topic 6
  • Determine the correct steps to configure OOTB SAML and LDAP integration
  • Determine the correct steps to configure multi-tenancy
Topic 7
  • 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 8
  • 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

 

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 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 56
A developer creates an OSGi service to access JCR content. Refer to the code snippet from the OSGi service below.
public class AccessRepository {
private static final String SERVICE_ACCOUNT_IDENTIFIER = "sample-service";
...
private final String getServiceUser() {
final Map<string, object=""> authInfo = Collections.singletonMap(ResourceResolverFactory.SUBSERVICE, (Object) SERVICE_ACCOUNT_IDENTIFIER); ResourceResolver serviceResolver = resourceResolverFactory.getServiceResourceResolver(authInfo))
...
}
}
Bundle ID = com.adobe.aem.samples-bundle
Which set of steps should the developer take to make sure that the code works?

  • A. "1. Create an AEM User called systemUser with appropriate ACLs
    2. Modify the Apache Sling Service User Mapper Service Amendment
    3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser"
  • B. "1. Create a System User called systemUser with appropriate ACLs
    2. Modify the Apache Sling Service User Mapper Service
    3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser"
  • C. "1. Create an AEM User called systemUser with appropriate ACLs
    2. Modify the Apache Sling Service User Mapper Service
    3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser"
  • D. "1. Create a System User called systemUser with appropriate ACLs
    2. Modify the Apache Sling Service User Mapper Service Amendment
    3. Set user.default to com.adobe.aem.samples-bundle:sample-service=systemUser"

Answer: B

 

NEW QUESTION 57
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 58
A developer creates the following code snippet to implement a simple polling importer to fetch stock prices from an external source:

The polling importer needs to fetch stock prices for a specific stock symbol and needs to be triggered every 5 minutes.
Which node structure should the developer create in CRX to make sure that the code shown is executed successfully?

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

Answer: C

Explanation:

 

NEW QUESTION 59
Which log file contains AEM application request and response entries?

  • A. request.log
  • B. response.log
  • C. history.log
  • D. audit.log

Answer: A

 

NEW QUESTION 60
An application runs specific license checks against certain DAM assets every day. It should send an email to a configured list if it finds warnings, and mark the asset accordingly. A service component that uses the Apache Sling Scheduler Service is created. DAM assets that must NOT be used anymore are hidden using ACLs and the license check must re-check them.
How should a developer obtain a resource resolver that can read and update the DAM assets?

  • A. Create a configuration for PID org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended-damaccess that references a pre-created service user with r/w permissions and use ResourceResolverFactory.getServiceResourceResolver(...).
  • B. Configure the user admin in PID org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl as user.default and make sure the service user exists and has jcr:read and jcr:write permissions.
  • C. Set up a cron job with curl calls with the admin user and use request.getResourse().getResourceResolver().
  • D. Create a configuration line in PID com.day.cq.security.ACLSetup for the user that you obtain a session for via ResourceResolverFactory.getResourceResolver(...).

Answer: B

 

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

Answer: D

 

NEW QUESTION 62
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 63
In which two ways can a developer keep simple and maintanable CRX Access Control Lists? (Choose two) Use Deny statements extensively

  • A. Delete the `everyone` group
  • B. Use Deny statements sparingly
  • C. Assign access rights user by user
  • D. Assign access rights to user groups rather than users

Answer: A,C

 

NEW QUESTION 64
A custom AEM application contains a service component that needs to access the JCR repository within the activate method. The activate method uses ResourceResolverFactory.getServiceResourceResolver(...) without specifying a sub service name.
What should a developer do to make sure the user service mapping for the service component is available?

  • A. Create a field of type ServiceUserMapper and annotate it with @Reference using ReferencePolicy.STATIC
  • B. Wait for the service ServiceUserMapper via BundleContext.getServiceReference(...)
  • C. Create a field of type ServiceUserMapped and annotate it with @Reference
  • D. Create a field of type ServiceUserMapped and annotate it with @Reference using ReferencePolicy.DYNAMIC

Answer: B

 

NEW QUESTION 65
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 66
A developer creates Editable Templates based on a custom Page component. The developer wants to leverage the Style System within the Editable Templates to allow authors to switch between the Dark and Light Theme. The Style System dialog is NOT enabled for the site.
What should the developer do to resolve this issue?

  • A. Create two new client libraries with a dark and light theme and map them to the Page component.
  • B. Create a new dialog for the custom Page components.
  • C. Set the sling:resourceSuperType property to core/wcm/components/page/v2/page on the Page component.
  • D. Define Style Definitions using Page Policy dialog on Editable Template.

Answer: A

 

NEW QUESTION 67
A custom application contains a service component com.proj.ServiceComponent. A developer needs to configure the string value name and integer value intVal. The actual configuration must be deployed using a content package.
What should the developer do to meet these requirements?

  • A. "Use a file com.proj.ServiceComponent.cfg with content
    name=""Service name""
    intVal=I""5"""
  • B. "Use a file com.proj.ServiceComponent.xml with content
    <?xml version=""1.0"" encoding=""UTF-8""?>
    <jcr:root xmlns:jcr=""http://www.jcp.org/jcr/1.0"" jcr:primaryType=""sling:OsgiConfig"" name=""Service Name"" intVal=""{Integer}5""/>"
  • C. "Use a file com.proj.ServiceComponent.xml with content
    <?xml version=""1.0"" encoding=""UTF-8""?>
    <jcr:root jcr:primaryType=""sling:OsgiConfig""
    name=""Service Name""
    intVal=""5""/>"
  • D. "Use a file com.proj.ServiceComponent.config with content
    name=""Service name""
    intVal=I""5"""

Answer: D

 

NEW QUESTION 68
The following stack trace is written in the error.log file after installing a custom application package.
Could not start bundle com.adobe.cq.sample-bundle [526]. Reason: {}. Will retry.
org.osgi.framework.BundleException: Unable to resolve com.adobe.cq.sample-bundle [526](R 526.0): missing requirement [com.adobe.cq.sample-bundle] osgi.wiring.package What are two different ways that the developer could resolve the OSGi bundle dependency error? (Choose two)

  • A. Go to the project parent pom.xml file and add the dependency with the scope "compile" and instruct the bundle plugin to include the dependency in runtime
  • B. Create a folder named "deploy" under $AEM_HOME/crx-quickstart/ and copy com.example.customlib-3.8.jar in there so AEM uploads it automatically
  • C. Install the jar in AEM via the curl command 'curl -u username:password -F file=@"./com.example.customlib-3.8.jar" -F name="Dependency" -F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp --progress-bar -o upload.txt'
  • D. Upload the file com.example.customlib-3.8.jar into /apps/<project>/libs folder in CRX DE to make it available for the OSGi bundle
  • E. Go to the Dependency Finder in the System Console to find if another bundle is exporting a similar version of the classes and change the project pom.xml to match the same version

Answer: A,E

 

NEW QUESTION 69
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 70
A developer has a component named foobar with the following file:
FooBar.java
import com.adobe.cq.sightly.WCMUsePojo;
public class FooBar extends WCMUsePojo; {
@Override
public void activate() throws Exception {}
public String getLink() {
return "http://www.foo'bar.com";
}
public String getText() {
return "foo'bar";
}
}
foobar.html
<div data-sly-use.fooBar="FooBar">
<a href="${fooBar.link}" title="${fooBar.text}">
${fooBar.text}
</a>
</div>
What is the output when the component is rendered?

  • A. "<div>
    <a href=""https://www.foo%27bar.com"" title=""foo'bar"">
    foo&#39;bar
    </a>
    </div>"
  • B. "<div>
    <a href=""https://www.foo%27bar.com"" title=""foo&#39;bar"">
    foo'bar
    </a>
    </div>"
  • C. "<div>
    <a href=""https://www.foo%27bar.com"" title=""foo&#39;bar"">
    foo&#39;bar
    </a>
    </div>"
  • D. "<div>
    <a href=""https://www.foo&#39;bar.com"" title=""foo&#39;bar"">
    foo&#39;bar
    </a>
    </div>"

Answer: C

 

NEW QUESTION 71
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 72
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. @Service annotation is missing in DeveloperInfo.java.
  • B. Interface DeveloperInfo does NOT have any method.
  • C. Activator class is NOT implementing DeveloperInfo interface.
  • D. The required Maven repository for OSGi is missing.

Answer: C

 

NEW QUESTION 73
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?

  • A. Add the dependency to the third party bundle in pom.xml of the project bundle
  • B. Embed the third party bundle in the bundle that depends on it
  • C. Embed the bundle in a content package to have it automatically deployed
  • D. Declare the dependency correctly using a link to the OSGi Bundle Reposirory (OBR)

Answer: C

 

NEW QUESTION 74
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
    @Via(""jcr:title"")
    @Default(values = """")
    private String titile;"
  • B. "@ValueMapValue
    @Via(""jcr:title"")
    @Required
    private String titile;"
  • C. "@ValueMapValue
    @Named(""jcr:title"")
    @Required
    private String titile;"
  • D. "@ValueMapValue
    @Named(""jcr:title"")
    @Default(values = """")
    private String titile;"

Answer: D

 

NEW QUESTION 75
A service component periodically retrieves content from an external REST interface and saves the information in JCR. The REST endpoint is configured via an OSGi service property. There is one URL for production (runmode prod) and another URL for all other environments.
How should a developer configure the OSGi service?

  • A. Underneath /apps/<project>/settings, create the sub folders global and prod and node with name <PID>.conf each and configure the properties via node properties.
  • B. Underneath /config/<project>/settings, create the sub folders config and config.prod and a file with the name <PID>.config each and list the properties as key value pairs in there.
  • C. Underneath /apps/<project>, create the sub folders config and config.prod and a file with the name <PID>.config each and list the properties as key value pairs in there.
  • D. Underneath /config/<project>/settings, create the sub folders config.default and config.prod and a file with the name <PID>.config each and list the properties as key value pairs in there.

Answer: C

 

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

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

Answer: C

 

NEW QUESTION 77
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. Add the line "#base=touch" to the js.txt and css.txt files in the Client Library Folder
  • 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. Set the channels property on the Client Library Folder to "touch"

Answer: D

 

NEW QUESTION 78
A developer has a component foobar that consists of the files listed below:
script-a.js

script-b.js

foobar.html

What is the output when this component is rendered?

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

Answer: B

 

NEW QUESTION 79
......

Adobe Experience Manager Fundamentals-AD0-E116 Exam-Practice-Dumps: https://www.examcollectionpass.com/Adobe/AD0-E116-practice-exam-dumps.html