AEM 2

Description

AEM
F P
Quiz by F P, updated more than 1 year ago
F P
Created by F P over 3 years ago
43
0

Resource summary

Question 1

Question
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?
Answer
  • 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.

Question 2

Question
A developer is adding the ?debugClientLibs=true parameter to a request. How should the generated client libraries be changed?
Answer
  • 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

Question 3

Question
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?
Answer
  • 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

Question 4

Question
A developer needs to change the default token expiration from 12 hours to 14 days. Which OSGi configuration should the developer modify?
Answer
  • Apache jackrabbit oak TokenConfiguration
  • Adobe CRX Token Authentication handler: Cleanup task
  • Day CRX Token Authentication Handler
  • Adobe Granite Access Token Provider

Question 5

Question
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)
Answer
  • 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.

Question 6

Question
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?
Answer
  • 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

Question 7

Question
A new project is required to connect an external MySQL datasource. Which OSGi Service should the developer configure to accomplish this?
Answer
  • Connections to relational databases are NOT possible
  • Apache Sling connection datasource
  • Apache Sling JNDI datasource
  • Day Commons JDBC Connection pool

Question 8

Question
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?
Answer
  • 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.

Question 9

Question
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)
Answer
  • 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

Question 10

Question
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?
Answer
  • properties.get(“propertyName”, “”);
  • currentStyle.get(“propertyName”, “”);
  • currentNode.getDesignProperty(“propertyName”, “”);
  • currentPage.getDesignDialog(“propertyName”, “”);

Question 11

Question
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?
Answer
  • 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.

Question 12

Question
Which command starts AEM listening for a debug connection on port 8765?
Answer
  • 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

Question 13

Question
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)
Answer
  • 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.

Question 14

Question
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?
Answer
  • 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.

Question 15

Question
Which three statements about configuring OSGi services via content nodes are correct? (choose three)
Answer
  • 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.

Question 16

Question
Which should a developer do by using templates instead of using components?
Answer
  • 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

Question 17

Question
Which three objects are defined from the default global.jsp (/libs/foundation/global.jsp) (choose three)
Answer
  • currentDesign
  • currentNode
  • currentPage
  • currentResource

Question 18

Question
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?
Answer
  • 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.

Question 19

Question
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)
Answer
  • 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

Question 20

Question
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?
Answer
  • 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.

Question 21

Question
In a Replication Agent Configuration, for what should the transport user be used?
Answer
  • 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.

Question 22

Question
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?
Answer
  • 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.

Question 23

Question
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?
Answer
  • 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

Question 24

Question
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)
Answer
  • 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

Question 25

Question
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?
Answer
  • 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.

Question 26

Question
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?
Answer
  • 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

Question 27

Question
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?
Answer
  • 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.

Question 28

Question
Which log file should a developer choose to check the response time for a page?
Answer
  • <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

Question 29

Question
Which xtype should a developer use to reuse a part of a dialog in another dialog?
Answer
  • ….erencextype
  • cqinclude
  • referencedialog
  • cqwidgetdialog

Question 30

Question
What runmode should be used to run AEM in production Ready Mode?
Answer
  • production
  • publish
  • nosamplecontent

Question 31

Question
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?
Answer
  • cq:allowedChildren
  • cq:allowedParents
  • cq:allowedPaths
  • cq:allowedTemplates

Question 32

Question
What are three useful features of clientlibs? (choose three)
Answer
  • 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.

Question 33

Question
What should be used to integrate and store repository content in a version control system like subversion?
Answer
  • Apache Maven
  • OSGi bundles
  • JackRabbit Filevault (VLT)
  • Granite components

Question 34

Question
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)
Answer
  • 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

Question 35

Question
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?
Answer
  • 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.

Question 36

Question
Which option denotes the correct format to specify the value for “name” attribute (specified on a node of type cq:Widget)?
Answer
  • ./<property-name>example:/title
  • <property-name>example: .title
  • <property-name>example: title
  • ./<property-name>example:./title

Question 37

Question
Which attribute of the Component annotation should be used to define a service factory?
Answer
  • ConfigurationServiceFactory=true
  • ServiceFactory=true
  • factory=true
  • configurationFactory=true

Question 38

Question
A developer includes “configurationFactory=true” in the @Component definition using SCR annotations. What are two reasons that the developer performs this task? (choose two)
Answer
  • 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

Question 39

Question
Dispatcher caching is NOT optimally configured. What is the result?
Answer
  • … 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.

Question 40

Question
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?
Answer
  • 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.

Question 41

Question
Which is the default logging level of the root logger when AEM is first deployed?
Answer
  • ERROR
  • INFO
  • WARN
  • DEBUG

Question 42

Question
In a Replication Agent Configuration, for what should the transport user be used?
Answer
  • 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.

Question 43

Question
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?
Answer
  • 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.

Question 44

Question
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?
Answer
  • 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.

Question 45

Question
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)
Answer
  • 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”

Question 46

Question
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?
Answer
  • 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.

Question 47

Question
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?
Answer
  • 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.

Question 48

Question
How are the resources called that are passed through a workflow?
Answer
  • Payload
  • WorkItem
  • Transaction
  • Lifecycle

Question 49

Question
A developer sets up and builds an AEM project using Maven. What are the three reasons for using Maven? (Choose three)
Answer
  • 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.

Question 50

Question
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?
Answer
  • 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.

Question 51

Question
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.)
Answer
  • 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

Question 52

Question
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?
Answer
  • 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.

Question 53

Question
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.
Answer
  • “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.
Show full summary Hide full summary

Similar

Principles for teaching
karen barranco
Welcome to GoConqr!
maya velasquez
Rooftops 1 - Unit 3 Transport vocabulary
Remei Gomez Gracia
Rooftops 3 - Unit 2 Vocabulary Clothes
Remei Gomez Gracia
Theories of teaching in language teaching
Elisa Gomez
Verb To Be
Julie Basto
Language Teaching Materials and the (Very) Big Picture
MARIANA ISABEL PEINADO NAVARRO
Sesión 1_2 Food for animals - Grass&Meat
Javi Gaviño
TESOL test
Maximo Mejia
APHASIAS
Joana Manjarrez
Countries and Nationalities
Pamela Susset Vázquez Sánchez