AEM 2

Beschreibung

AEM
F P
Quiz von F P, aktualisiert more than 1 year ago
F P
Erstellt von F P vor mehr als 4 Jahre
46
0

Zusammenfassung der Ressource

Frage 1

Frage
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?
Antworten
  • 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.

Frage 2

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

Frage 3

Frage
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?
Antworten
  • 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

Frage 4

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

Frage 5

Frage
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)
Antworten
  • 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.

Frage 6

Frage
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?
Antworten
  • 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

Frage 7

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

Frage 8

Frage
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?
Antworten
  • 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.

Frage 9

Frage
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)
Antworten
  • 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

Frage 10

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

Frage 11

Frage
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?
Antworten
  • 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.

Frage 12

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

Frage 13

Frage
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)
Antworten
  • 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.

Frage 14

Frage
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?
Antworten
  • 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.

Frage 15

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

Frage 16

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

Frage 17

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

Frage 18

Frage
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?
Antworten
  • 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.

Frage 19

Frage
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)
Antworten
  • 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

Frage 20

Frage
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?
Antworten
  • 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.

Frage 21

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

Frage 22

Frage
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?
Antworten
  • 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.

Frage 23

Frage
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?
Antworten
  • 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

Frage 24

Frage
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)
Antworten
  • 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

Frage 25

Frage
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?
Antworten
  • 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.

Frage 26

Frage
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?
Antworten
  • 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

Frage 27

Frage
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?
Antworten
  • 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.

Frage 28

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

Frage 29

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

Frage 30

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

Frage 31

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

Frage 32

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

Frage 33

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

Frage 34

Frage
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)
Antworten
  • 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

Frage 35

Frage
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?
Antworten
  • 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.

Frage 36

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

Frage 37

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

Frage 38

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

Frage 39

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

Frage 40

Frage
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?
Antworten
  • 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.

Frage 41

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

Frage 42

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

Frage 43

Frage
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?
Antworten
  • 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.

Frage 44

Frage
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?
Antworten
  • 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.

Frage 45

Frage
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)
Antworten
  • 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”

Frage 46

Frage
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?
Antworten
  • 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.

Frage 47

Frage
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?
Antworten
  • 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.

Frage 48

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

Frage 49

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

Frage 50

Frage
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?
Antworten
  • 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.

Frage 51

Frage
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.)
Antworten
  • 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

Frage 52

Frage
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?
Antworten
  • 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.

Frage 53

Frage
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.
Antworten
  • “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.
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

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
TESOL test
Maximo Mejia
Language Teaching Materials and the (Very) Big Picture
MARIANA ISABEL PEINADO NAVARRO
Sesión 1_2 Food for animals - Grass&Meat
Javi Gaviño
APHASIAS
Joana Manjarrez
Countries and Nationalities
Pamela Susset Vázquez Sánchez