F P
Quiz by , created more than 1 year ago

AEM

45
0
0
F P
Created by F P almost 4 years ago
Close

AEM 2

Question 1 of 53

1

A project depends on package x,y,z from another OSGi bundle. The bundle-plugin Import Package configuration is as follows:
Import-Package: x,y,z; version=”[1.2,2)”
Which versions are accepted by the configuration?

Select one or more of the following:

  • Versions between 1.2 and 2, excluding versión 1.2, including version 2

  • Versions between 1.2 and 2, excluding versión 1.2 and 2

  • Versions between 1.2 and 2, including versión 1.2, excluding version 2

  • Version 1.2 and version 2.

Explanation

Question 2 of 53

1

A developer is adding the ?debugClientLibs=true parameter to a request. How should the generated client libraries be changed?

Select one or more of the following:

  • The client libraries will contain generated contents indicating the file name that contains the following embedded content.

  • The client libraries will contain an @import statement showing the file name to be embedded.

  • The client libraries will contain an @include statement showing the file name to be embedded

  • The client libraries will NOT be generated and the individual CSS and JS will be loaded instead

Explanation

Question 3 of 53

1

A developer has installed an AEM instance on a Windows server running with author runmode. The developer needs to change the runmode to publish…. What steps should the developer take?

Select one of the following:

  • Edit the crx-quickstart/launchpad/sling.properties file and change sling.runmodes to publish

  • Rename the AEM JAR file to aem-publish-p4503.jar

  • The runmode CANNOT be changed from author to publish after initial install

  • Edit the crx-quickstart/bin/start.bat and change the CQ_RUNMODE to publish

Explanation

Question 4 of 53

1

A developer needs to change the default token expiration from 12 hours to 14 days. Which OSGi configuration should the developer modify?

Select one of the following:

  • Apache jackrabbit oak TokenConfiguration

  • Adobe CRX Token Authentication handler: Cleanup task

  • Day CRX Token Authentication Handler

  • Adobe Granite Access Token Provider

Explanation

Question 5 of 53

1

A developer defines the following SCR annotation:

SlingServlet(
paths={“/service/sampleservlet.json”},
resourceTypes={“sling/servlet/default”},
extensions={“json”},
label=”Sample Servlet”,
metatype=”true”,
selectors={“sample”})

Which statement supports a servlet using the SCR annotation above? (Choose two)

Select one or more of the following:

  • If neither “paths” nor “resourceTypes” is set, the Servlet Service is ignored.

  • “extensions” property takes precedence over “selectors” property.

  • If “methods” property is missing, the value defaults to POST, regardless of which methods are implemented/handled by the servlet

  • Registration properties “resourceTypes”, “selectors”, “extensions” and methods are ignored because the “paths” properties is set.

Explanation

Question 6 of 53

1

A folder and a child node are created in the repository with the following steps.
Create a folder with “config.stage.publish” as its name and “sling:Folder” as its type.
Create a child node with “sling:OsgiConfig” as its type
Which statement best describes what the developer is trying to accomplish?

Select one of the following:

  • Create and manage an OSGi configuration for the Stage Publish instance.

  • Create and manage an AEM Packages for the Stage Publish instance

  • Create and manage an Client library for the Stage Publish instance

  • Create and manage an Sling Mappings for the Stage Publish instance

Explanation

Question 7 of 53

1

A new project is required to connect an external MySQL datasource. Which OSGi Service should the developer configure to accomplish this?

Select one of the following:

  • Connections to relational databases are NOT possible

  • Apache Sling connection datasource

  • Apache Sling JNDI datasource

  • Day Commons JDBC Connection pool

Explanation

Question 8 of 53

1

A developer is using a maven project to manage dependencies and builds for an AEM application. The developer adds a new dependency for an external library. After building the project and deploying it to AEM, the bundle does NOT load due to a missing dependency on the external library …. change is required in the bundle POM file to fix this issue?

Select one of the following:

  • Add the external library package to the Include-resource configuration of the maven-bundle-plugin to make include the external library classes as part of the bundle.

  • Add the external library package to the Private-resource configuration of the maven-bundle-plugin to make include the external library classes as part of the bundle.

  • Add the external library package to the Export-resource configuration of the maven-bundle-plugin to make include the external library classes as part of the bundle.

  • Add the external library package to the Import-resource configuration of the maven-bundle-plugin to make include the external library classes as part of the bundle.

Explanation

Question 9 of 53

1

A parent pom.xml contains the following dependency in the dependencyManagement section:
<dependency>
<groupId>javax.jcr</groupId>
<artifactId>jcr</artifactId>
<version>2.0</version>
<scope>provided</scope>
</dependency>
What are two functions of the dependencyManagement in the common parent pom.xml file? (choose two)

Select one or more of the following:

  • To limit the transitivity of a dependency

  • To control the versions of artifacts used in transitive dependencies.

  • To identify dependencies of the project.

  • To consolidate and centralize the management of dependency versions

Explanation

Question 10 of 53

1

A developer needs to obtain a property value created with a design dialog. Which sintax should the developer use in the developers AEM component .jsp script to obtain this property value?

Select one of the following:

  • properties.get(“propertyName”, “”);

  • currentStyle.get(“propertyName”, “”);

  • currentNode.getDesignProperty(“propertyName”, “”);

  • currentPage.getDesignDialog(“propertyName”, “”);

Explanation

Question 11 of 53

1

A company is configuring an AEM server for their internal web site. The site will contain proprietary and confidential information. The company re… authentication before accesing the content. They plan to use their existing SAML-based SSO service to accomplish this. The developer has config… the Adobe Granite SAML 2.0 Authentication. Handler service and added the signing key to the repository. When users try to access the site, they ...ted to the company SSO login page. After entering their credentials and being redirected to AEM they receive a 403 Forbidden Error Page. ...nal configuration may be required?

Select one of the following:

  • The Apache Sling Referrer Filter configuration may need to include the SSO server in the allowed hosts.

  • The Day CQ Login Selector Handler configuration may need to include the correct default login page path.

  • The Apache Sling Authentication Service may need to include the /saml_login path in the Authentication Requirements to configuration

  • The Adobe Granite SAML 2.0 Authentication Handler may have the incorrect IDP URL configured.

Explanation

Question 12 of 53

1

Which command starts AEM listening for a debug connection on port 8765?

Select one of the following:

  • java -jar -XX:MaxPermSize=1024m -Xmx4096M aem-author8765.jar -fork -debug 4502

  • java -Xdebug -Xrunjdwp:transport=dt_socket,address=8765,suspend=n,server=y -Xmx1024M -XX:MaxPermSize=256M -jar aem-author62.jar

  • java -jar -XX:MaxPermSize=1024m -Xmx4096M aem-author8765.jar -fork

  • java -Xdebug -Xrunjdwp:transport=dt_socket,suspend=n,server=y -Xmx1024M -XX:MaxPermSize=256M -jar aem-author62.jar

Explanation

Question 13 of 53

1

A developer has an AEM project generated with a Maven archetype. This developer uses Git to manage the source code. What are two reasons to ignore files by adding them to the .gitignore file? (choose two)

Select one or more of the following:

  • All content.xml files should be ignored because their changes are captured by the server already.

  • Clientlibs css.txt and js.txt should be excluded because they are outside of the code base and their changes should NOT be captured.

  • Generated files should be ignored because their changes may NOT have a direct relationship with the evolution of the code base.

  • IDE-specific files should be ignored because developer environments may NOT be exactly the same.

Explanation

Question 14 of 53

1

A developer creates a new component. This component has a client library as part of the component under the apps folder. The AEM publish instance is behind a dispatcher that blocks access to the /apps folder for security. The developer creates a project client library under the /etc folder, which … accessible throught the dispatcher. How should the developer make use of the new client library?

Select one of the following:

  • Add the component client library category to the embed property of the project client library.

  • Add the component client library path to the embed property of the project client library.

  • Add the component client library path to the dependencies property of the project client library.

  • Add the component client library category to the dependencies property of the project client library.

Explanation

Question 15 of 53

1

Which three statements about configuring OSGi services via content nodes are correct? (choose three)

Select one or more of the following:

  • Configurations exposed via the content nodes can be a security risk.

  • Configurations exposed via the content nodes can be packaged and deployed with the code

  • Configurations exposed via the content nodes can be of type sling:OsgiConfig.

  • Configurations exposed via the content nodes can be based on run modes.

Explanation

Question 16 of 53

1

Which should a developer do by using templates instead of using components?

Select one of the following:

  • Manipulate a page with multiple instances of itself.

  • Restricts its usage within specified paths

  • Create a pre-populated page using the Page Wizard.

  • Contain other components within itself

Explanation

Question 17 of 53

1

Which three objects are defined from the default global.jsp (/libs/foundation/global.jsp) (choose three)

Select one or more of the following:

  • currentDesign

  • currentNode

  • currentPage

  • currentResource

Explanation

Question 18 of 53

1

A developer needs to create a background service that require access to the content repository. What is the recommended approach to create a session object?

Select one of the following:

  • Use SlingRepository.loginService(String subServiceName, String workspace) method and define User Mapping in Felix Console

  • Use SlingRepository.login(java.lang.String workspaceName) method where workSpaceName points to the current workspace.

  • Use SlingRepository.login(Credentials credentials, java.lang.String workspaceName) method where credentials contains Administrator credentials.

  • Use slingRespository.loginAdministrative(String workspace) method where workspace is the current or default workspace.

Explanation

Question 19 of 53

1

A client needs to implement Closed User Group Functionality on AEM. Caching needs to be enabled for the CUG pages. Which three changes need made in the dispatcher.any file to meet the requirement? (Choose three)

Select one or more of the following:

  • Set the cache rules to explicitly allow caching for CUG Pages.

  • Set /allowAuthorized to 0

  • Set /virtualhosts directive and point it to the CUG login pages.

  • Create a second farm to cache non-CUG pages

  • Configure /sessionmanagment directive by defining /directory attribute

Explanation

Question 20 of 53

1

A developer has updated their custom page template to include a new component as part of the page. When viewing an existing page using this template, the new component is NOT added to the page. What might be causing this issue?

Select one of the following:

  • The jsp classes need to be rebuilt after updating the template to make sure the latest component updates will be used

  • Changes to a template will only affect new pages created with this template.

  • The page content has been cached and the browser cache should be cleared.

  • The component configuration is incorrect in the template preventing it from being added.

Explanation

Question 21 of 53

1

In a Replication Agent Configuration, for what should the transport user be used?

Select one of the following:

  • To specify a hostname of the proxy used for transport.

  • To select specific content for replication

  • To specify a unique name for the replication agent.

  • To specify the user name to be used for accessing the publisher.

Explanation

Question 22 of 53

1

A developer is creating an OSGi Service for a project. The component java code includes the annotation @Component(name=”com.sample.services.SampleService”, Label=”Sample Service”, description=”A sample service”, immediate=true, metatype=true). Which statement explains how this annotation allows configuration of the service in the OSGi console?

Select one of the following:

  • Metatype must be true to expose the service properties as configuration parameters.

  • A name must be set to define the class to use for the service configuration.

  • Immediate must be true to enable the service and allow access to the configuration.

  • A label must be set to identify the service.

Explanation

Question 23 of 53

1

A developer needs to send notification emails from a system OSGi service in AEM. Which service does the developer need to configure from the configuration manager in the Felix Web Console and why?

Select one of the following:

  • Task Email Notification Service as it triggers task email notifications.

  • Day CQ Mail Service as it contains mail server information

  • Day CQ Workflow Email Notification Service as it triggers workflow email notifications.

  • Day CQ Mailing Service as it contains mailing list information

Explanation

Question 24 of 53

1

A developer needs to overlay the out-of-the-box textimage component under /libs/foundation/components/textimage. The new component will be named mytextimage and live under /apps/myproject/components/mytextimage. Which two ways should the developer overlay the textimage component? (choose two)

Select one or more of the following:

  • Rendering a different JSP by creating ../mytextimage/textimage.jsp

  • Providing different dialogs by creating ../mytextimage/cq:dialog and ../mytextimage/dialog nodes

  • Changing the HTML styling by creating ../mytextimage/textimage.css

  • Displaying a different icon by creating ../mytextimage/icon.png

Explanation

Question 25 of 53

1

A developer needs to extend and out-of-the-box component that has four tabs in the component dialog: “Basic”, “Advanced”, “Permissions” and “CloudServices”
<items jcr:primarytype=”nt:unstructured”>
….
slingHideChildren=Permission,CloudServices
Which two statements support the dialog shown that the developer has extended?

Select one or more of the following:

  • Basic and Advance tabs remain unchanged

  • Permissions and cloudservices tabs are hidden from the dialog including its children

  • Permissions and cloudservices tabs are hidden from the dialog including its children. The properties of the node will be maintained

  • Permissions and cloudservices tabs are hidden from the dialog including its children, as well as all of its properties.

  • Basic and Advance tabs are removed from the dialog.

Explanation

Question 26 of 53

1

A developer needs to create a website with Catalog and Product pages. The Product Page Template should be visible only under a page created by using a catalog template.
Which attribute should the developer set?

Select one of the following:

  • allowedChildren property on the Catalog page Template

  • allowedPaths property on the Product Page template

  • allowedTemplates property on the Product Page template.

  • allowedPaths property on the Catalog page template

Explanation

Question 27 of 53

1

A developer updates the maven project with the following filter:
<root>/content/sample</root>
<mode> merge</mode>
What is most accurately describes what happens when the package is deployed to an existing AEM server?

Select one of the following:

  • Only content that is in both AEM and the package is updated. All other content is removed.

  • Content in AEM is removed. Only the content in the package is added.

  • Content that exists in AEM and the package is updated and the new content in the package is added. Content that exists in AEM but not the package is NOT added.

  • Content that exists in the package but NOT AEM is added. All other content is not changed.

Explanation

Question 28 of 53

1

Which log file should a developer choose to check the response time for a page?

Select one of the following:

  • <cq-install-dir>/crx-quickstart/logs/error.log

  • <cq-install-dir>/crx-quickstart/logs/stdout.log

  • <cq-install-dir>/crx-quickstart/logs/request.log

  • <cq-install-dir>/crx-quickstart/logs/server.log

Explanation

Question 29 of 53

1

Which xtype should a developer use to reuse a part of a dialog in another dialog?

Select one of the following:

  • ….erencextype

  • cqinclude

  • referencedialog

  • cqwidgetdialog

Explanation

Question 30 of 53

1

What runmode should be used to run AEM in production Ready Mode?

Select one of the following:

  • production

  • publish

  • nosamplecontent

Explanation

Question 31 of 53

1

A developer needs to limit what templates can be used to create child pages under a given page. The developer needs to set a property on in the jcr:content node of the page to specify the list of templates that can be allowed as child pages. Which property should the developer use to develop the list of templates?

Select one of the following:

  • cq:allowedChildren

  • cq:allowedParents

  • cq:allowedPaths

  • cq:allowedTemplates

Explanation

Question 32 of 53

1

What are three useful features of clientlibs? (choose three)

Select one or more of the following:

  • They allow a developer to import files by categories

  • Clientlibs help modularize CSS and Javascript files by letting developers organize them by component

  • Developers can add additional organization by allowing subdirectories to be defined in clientlibs through text files.

  • Javascript functions are automatically namespaced with the component name it if lives within a component's clientlib.

  • Creating clientlibs contains all of the service files needed to display it on a web page.

Explanation

Question 33 of 53

1

What should be used to integrate and store repository content in a version control system like subversion?

Select one of the following:

  • Apache Maven

  • OSGi bundles

  • JackRabbit Filevault (VLT)

  • Granite components

Explanation

Question 34 of 53

1

A developer needs to create a configuration node to manage the settings for a custom service. The service class is com.sample.services.SampleService. Which two options must be considered to create and name the configuration node? (Choose two)

Select one or more of the following:

  • The configuration node should be stored in /apps/myapp/config

  • The configuration node should be stored in /etc/system/config

  • The configuration node must be named com.sample.services.SampleService.config

  • The configuration node must be named com.sample.services.SampleService

Explanation

Question 35 of 53

1

An AEM developer discovers the following symptoms in their local AEM environment.
A general slowdown of the system
In log files, there are several CacheManager: resizeAll entries
System occasionally runs out of memory
What is the typical cause of these symptoms?

Select one of the following:

  • The replication and reverse replication both point to the same instance of AEM.

  • The replication agent on the instance is pointed to the same instance of AEM.

  • Several JCR sessions run on the system that are unclosed.

  • A known issue has been encountered that causes an infinite replication cycle of a document.

Explanation

Question 36 of 53

1

Which option denotes the correct format to specify the value for “name” attribute (specified on a node of type cq:Widget)?

Select one of the following:

  • ./<property-name>example:/title

  • <property-name>example: .title

  • <property-name>example: title

  • ./<property-name>example:./title

Explanation

Question 37 of 53

1

Which attribute of the Component annotation should be used to define a service factory?

Select one of the following:

  • ConfigurationServiceFactory=true

  • ServiceFactory=true

  • factory=true

  • configurationFactory=true

Explanation

Question 38 of 53

1

A developer includes “configurationFactory=true” in the @Component definition using SCR annotations. What are two reasons that the developer performs this task? (choose two)

Select one or more of the following:

  • To configure an existing OSGi service

  • To create service factories

  • To specify the factory that will create the OSGi component

  • To manage multiple instances of OSGi services

Explanation

Question 39 of 53

1

Dispatcher caching is NOT optimally configured. What is the result?

Select one of the following:

  • … sive caching speeds up the fetching of documents that are regularly updated.

  • Not enough caching may lead to increased bandwidth and cause unnecessary load when rendering the document.

  • Caching certain files can cause errors in Dispatcher’s Content Repository

  • Failing to configure HTTP methods, causes HTML forms to fail to submit data.

Explanation

Question 40 of 53

1

A system administrator defines the following runmodes for an AEM server: author,foo,dev. A developer wants to have a specific Apache Sling Logging Logger configuration for all instances running only in runmode foo. Which steps are required to achieve this use case?

Select one of the following:

  • Create a nt:folder node with the name config.author.foo and create the sling.OsgiConfig node underneath.

  • Create a nt:folder node with the name config.author and create the sling.OsgiConfig node underneath.

  • Create a nt:folder node with the name config and create the sling.OsgiConfig node underneath.

  • Create a nt:folder node with the name config.foo and create the sling.OsgiConfig node underneath.

Explanation

Question 41 of 53

1

Which is the default logging level of the root logger when AEM is first deployed?

Select one of the following:

  • ERROR

  • INFO

  • WARN

  • DEBUG

Explanation

Question 42 of 53

1

In a Replication Agent Configuration, for what should the transport user be used?

Select one of the following:

  • To specify a hostname of the proxy used for transport.

  • To select specific content for replication

  • To specify a unique name for the replication agent.

  • To specify the user name to be used for accessing the publisher.

Explanation

Question 43 of 53

1

An AEM developer discovers the following symptoms in their local AEM environment.
A general slowdown of the system
In log files, there are several CacheManager: resizeAll entries
System occasionally runs out of memory
What is the typical cause of these symptoms?

Select one of the following:

  • The replication and reverse replication both point to the same instance of AEM.

  • The replication agent on the instance is pointed to the same instance of AEM.

  • Several JCR sessions run on the system that are unclosed.

  • A known issue has been encountered that causes an infinite replication cycle of a document.

Explanation

Question 44 of 53

1

A developer sets up a typical AEM project using a Maven archetype.
The project has the following modules: core, ui.apps, ui.content, it.test, it.launcher.
The project has a pom.xml file. The parent project also has a pom.xml file.
What three objectives of the parent´s pom.xml file offer?

Select one or more of the following:

  • The developer can quickly build all modules simultaneously or exclude modules as needed.

  • Defining versions of plugins and dependencies can be centralized within the parent´s pom.xml file.

  • The target AEM server to where the jar files can be deployed is conveniently defined at once for all modules.

  • The parent project can unify the target folders of each module so that only a single jar file is needed.

  • The parent pom.xml file contains references to the parent project´s source code that must be used by all modules.

Explanation

Question 45 of 53

1

A developer needs to create a dialog for touch UI. What type should be used, and how should the node for the dialog be named? (Choose two)

Select one or more of the following:

  • A field in the Touch UI dialog should be of primary type nt:unstructured and built using Granite components.

  • A field in the Touch UI dialog should be of primary type cq:Widget and built using Granite components.

  • The node for the dialog must be named “cq:dialog”.

  • The node for the dialog must be named “dialog”

Explanation

Question 46 of 53

1

No contents are being saved in the dispatcher cache after visiting the following url:
http://wwww.acme.org/userinfo.json?q=
Given the following dispatcher log:
[Fri, Apr 8 13:14:04 2016][D][1376(1532)] Checking [/content/acme/userinfo.json]
[Fri, Apr 8 13:14:04 2016][D][1376(1532)] Caching disabled due to query string: q=
[Fri, Apr 8 13:14:04 2016][D][1376(1532)] cache-action for [/content/acme/userinfo.json]: NONE
What the problem is and how should the Dispatcher be configured to address this issue?

Select one of the following:

  • Contents were NOT automatically invalidated when content is updated, developer should add an entry in “/invalidate” section.

  • Query String prevents contents from being cached, the developer should add an entry in the “/ignoreUrlParams” section.

  • Dispatcher rejected the URL which the query string, the developer should add an entry in the “/filters“ section.

  • URL contains an authorization header and content can NOT be cached, the developer should convert the query string to selectors.

Explanation

Question 47 of 53

1

A Stage Author instance is set up so that it is only available through the dispatcher using the default port. A developer deploys the Maven project generated using multimodule-content-package archetype to Stage Author instance via the following command line using Maven:
mvn clean install –PautoInstallPackage –Daem-host=author.stage.acme.com –Daem-port=80.
Why is port 80 used?

Select one of the following:

  • As the default port of the publish instance.

  • As the default port of the author instance.

  • As the default port of the stage instance.

  • As the default port of the dispatcher instance.

Explanation

Question 48 of 53

1

How are the resources called that are passed through a workflow?

Select one of the following:

  • Payload

  • WorkItem

  • Transaction

  • Lifecycle

Explanation

Question 49 of 53

1

A developer sets up and builds an AEM project using Maven.
What are the three reasons for using Maven? (Choose three)

Select one or more of the following:

  • No configuration is required when an AEM project is generated using Maven archetypes.

  • Maven´s pom.xml file allows a developer to track dependency and plugin versions used.

  • Maven archetypes can quickly create a basic project structure for AEM projects.

  • It has the ability to automatically and quickly detect all running AEM instances on a local machine.

  • It is a widely supported build tool.

Explanation

Question 50 of 53

1

An AEM Server is experiencing a degradation in Query Perfomance. The AEM Client Care team suggests obtaining the Debug logs for the Query Builder for API. What is a recommended approach to obtain the Debug logs?

Select one of the following:

  • Start AEM Server in Debug mode by using –Xdebug command line parameter.

  • Create an Apache Sling Logging Logger Configuration and set a Debug on com.day.cq.search

  • Set a system wide debug log level by using loglevel=debug command line parameter.

  • Create an Apache Sling Logging Writer Configuration and set a Debug on com.day.cq.search.

Explanation

Question 51 of 53

1

A developer needs to manage org.apache.sling.commons.log.LogManager.factory.config configuration factory for Production Publish Instance.
The developer manages the configuration in the following repository location:
apps/myapp/config.prod.publish/org.apache.sling.commons.log.LogManager.factory.config-myapp.xml.
What are two reasons for managing the configuration in this location? (Choose two.)

Select one or more of the following:

  • config identifies configuration factory

  • –myapp identifies the instance of the configuration factory.

  • prod.publish applies to specific run modes

  • org.apache.sling.commons.log.LogManager.factory.config identifies the Component ID

Explanation

Question 52 of 53

1

A developer needs to create a custom log file via the repository. The developer creates the configuration folder (sling:Folder) and adds the Apache Sling Logging Logger Configuration node: org.apache.sling.commons.log.LogManager.factory.config<indentifier>. Which statement about the parameter is true?

Select one of the following:

  • The <identifier> value must be a GUID.

  • The <identifier> value is optional free text that should be added to identify the instance.

  • The <identifier> value must contain only letters and numbers.

  • The <identifier> value is mandatory free text that should be added identify the instance.

Explanation

Question 53 of 53

1

An author sees behaviors where some links on page are marked as invalid or NOT being rendered properly. What should the developer do in the Configuration Manager in the Felix Web Console to make sure that links render correctly.

Select one of the following:

  • “Disable Rewriting” in Day CQ Link Checker Transformer

  • “Disable Debug” mode In Adobe Granite HTML Library Manager

  • “Cache Broken Internal Links” in Day CQ Link Checker Service.

  • “Disable Checking” in Day CQ Link Checker Transformer.

Explanation