Quiz
AEM 2
Crie uma conta grátis para terminar este quiz
Salve seu progresso e veja sua nota final.
Já tem uma conta? Inicie sessão
Perguntas do quiz (53)
1A 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?- AVersions between 1.2 and 2, excluding versión 1.2, including version 2
- BVersions between 1.2 and 2, excluding versión 1.2 and 2
- CVersions between 1.2 and 2, including versión 1.2, excluding version 2
- DVersion 1.2 and version 2.
2A developer is adding the ?debugClientLibs=true parameter to a request. How should the generated client libraries be changed?
- AThe client libraries will contain generated contents indicating the file name that contains the following embedded content.
- BThe client libraries will contain an @import statement showing the file name to be embedded.
- CThe client libraries will contain an @include statement showing the file name to be embedded
- DThe client libraries will NOT be generated and the individual CSS and JS will be loaded instead
3A 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?
- AEdit the crx-quickstart/launchpad/sling.properties file and change sling.runmodes to publish
- BRename the AEM JAR file to aem-publish-p4503.jar
- CThe runmode CANNOT be changed from author to publish after initial install
- DEdit the crx-quickstart/bin/start.bat and change the CQ_RUNMODE to publish
4A developer needs to change the default token expiration from 12 hours to 14 days. Which OSGi configuration should the developer modify?
- AApache jackrabbit oak TokenConfiguration
- BAdobe CRX Token Authentication handler: Cleanup task
- CDay CRX Token Authentication Handler
- DAdobe Granite Access Token Provider
5A 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)- AIf neither “paths” nor “resourceTypes” is set, the Servlet Service is ignored.
- B“extensions” property takes precedence over “selectors” property.
- CIf “methods” property is missing, the value defaults to POST, regardless of which methods are implemented/handled by the servlet
- DRegistration properties “resourceTypes”, “selectors”, “extensions” and methods are ignored because the “paths” properties is set.
6A 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?- ACreate and manage an OSGi configuration for the Stage Publish instance.
- BCreate and manage an AEM Packages for the Stage Publish instance
- CCreate and manage an Client library for the Stage Publish instance
- DCreate and manage an Sling Mappings for the Stage Publish instance
7A new project is required to connect an external MySQL datasource. Which OSGi Service should the developer configure to accomplish this?
- AConnections to relational databases are NOT possible
- BApache Sling connection datasource
- CApache Sling JNDI datasource
- DDay Commons JDBC Connection pool
8A 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?
- AAdd 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.
- BAdd 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.
- CAdd 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.
- DAdd 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.
9A 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)- ATo limit the transitivity of a dependency
- BTo control the versions of artifacts used in transitive dependencies.
- CTo identify dependencies of the project.
- DTo consolidate and centralize the management of dependency versions
10A 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?
- Aproperties.get(“propertyName”, “”);
- BcurrentStyle.get(“propertyName”, “”);
- CcurrentNode.getDesignProperty(“propertyName”, “”);
- DcurrentPage.getDesignDialog(“propertyName”, “”);
11A 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?
- AThe Apache Sling Referrer Filter configuration may need to include the SSO server in the allowed hosts.
- BThe Day CQ Login Selector Handler configuration may need to include the correct default login page path.
- CThe Apache Sling Authentication Service may need to include the /saml_login path in the Authentication Requirements to configuration
- DThe Adobe Granite SAML 2.0 Authentication Handler may have the incorrect IDP URL configured.
12Which command starts AEM listening for a debug connection on port 8765?
- Ajava -jar -XX:MaxPermSize=1024m -Xmx4096M aem-author8765.jar -fork -debug 4502
- Bjava -Xdebug -Xrunjdwp:transport=dt_socket,address=8765,suspend=n,server=y -Xmx1024M -XX:MaxPermSize=256M -jar aem-author62.jar
- Cjava -jar -XX:MaxPermSize=1024m -Xmx4096M aem-author8765.jar -fork
- Djava -Xdebug -Xrunjdwp:transport=dt_socket,suspend=n,server=y -Xmx1024M -XX:MaxPermSize=256M -jar aem-author62.jar
13A 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)
- AAll content.xml files should be ignored because their changes are captured by the server already.
- BClientlibs css.txt and js.txt should be excluded because they are outside of the code base and their changes should NOT be captured.
- CGenerated files should be ignored because their changes may NOT have a direct relationship with the evolution of the code base.
- DIDE-specific files should be ignored because developer environments may NOT be exactly the same.
14A 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?
- AAdd the component client library category to the embed property of the project client library.
- BAdd the component client library path to the embed property of the project client library.
- CAdd the component client library path to the dependencies property of the project client library.
- DAdd the component client library category to the dependencies property of the project client library.
15Which three statements about configuring OSGi services via content nodes are correct? (choose three)
- AConfigurations exposed via the content nodes can be a security risk.
- BConfigurations exposed via the content nodes can be packaged and deployed with the code
- CConfigurations exposed via the content nodes can be of type sling:OsgiConfig.
- DConfigurations exposed via the content nodes can be based on run modes.
16Which should a developer do by using templates instead of using components?
- AManipulate a page with multiple instances of itself.
- BRestricts its usage within specified paths
- CCreate a pre-populated page using the Page Wizard.
- DContain other components within itself
17Which three objects are defined from the default global.jsp (/libs/foundation/global.jsp) (choose three)
- AcurrentDesign
- BcurrentNode
- CcurrentPage
- DcurrentResource
18A developer needs to create a background service that require access to the content repository. What is the recommended approach to create a session object?
- AUse SlingRepository.loginService(String subServiceName, String workspace) method and define User Mapping in Felix Console
- BUse SlingRepository.login(java.lang.String workspaceName) method where workSpaceName points to the current workspace.
- CUse SlingRepository.login(Credentials credentials, java.lang.String workspaceName) method where credentials contains Administrator credentials.
- DUse slingRespository.loginAdministrative(String workspace) method where workspace is the current or default workspace.
19A 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)
- ASet the cache rules to explicitly allow caching for CUG Pages.
- BSet /allowAuthorized to 0
- CSet /virtualhosts directive and point it to the CUG login pages.
- DCreate a second farm to cache non-CUG pages
- EConfigure /sessionmanagment directive by defining /directory attribute
20A 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?
- AThe jsp classes need to be rebuilt after updating the template to make sure the latest component updates will be used
- BChanges to a template will only affect new pages created with this template.
- CThe page content has been cached and the browser cache should be cleared.
- DThe component configuration is incorrect in the template preventing it from being added.
21In a Replication Agent Configuration, for what should the transport user be used?
- ATo specify a hostname of the proxy used for transport.
- BTo select specific content for replication
- CTo specify a unique name for the replication agent.
- DTo specify the user name to be used for accessing the publisher.
22A 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?
- AMetatype must be true to expose the service properties as configuration parameters.
- BA name must be set to define the class to use for the service configuration.
- CImmediate must be true to enable the service and allow access to the configuration.
- DA label must be set to identify the service.
23A 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?
- ATask Email Notification Service as it triggers task email notifications.
- BDay CQ Mail Service as it contains mail server information
- CDay CQ Workflow Email Notification Service as it triggers workflow email notifications.
- DDay CQ Mailing Service as it contains mailing list information
24A 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)
- ARendering a different JSP by creating ../mytextimage/textimage.jsp
- BProviding different dialogs by creating ../mytextimage/cq:dialog and ../mytextimage/dialog nodes
- CChanging the HTML styling by creating ../mytextimage/textimage.css
- DDisplaying a different icon by creating ../mytextimage/icon.png
25A 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?- ABasic and Advance tabs remain unchanged
- BPermissions and cloudservices tabs are hidden from the dialog including its children
- CPermissions and cloudservices tabs are hidden from the dialog including its children. The properties of the node will be maintained
- DPermissions and cloudservices tabs are hidden from the dialog including its children, as well as all of its properties.
- EBasic and Advance tabs are removed from the dialog.
26A 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?- AallowedChildren property on the Catalog page Template
- BallowedPaths property on the Product Page template
- CallowedTemplates property on the Product Page template.
- DallowedPaths property on the Catalog page template
27A 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?- AOnly content that is in both AEM and the package is updated. All other content is removed.
- BContent in AEM is removed. Only the content in the package is added.
- CContent 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.
- DContent that exists in the package but NOT AEM is added. All other content is not changed.
28Which log file should a developer choose to check the response time for a page?
- A<cq-install-dir>/crx-quickstart/logs/error.log
- B<cq-install-dir>/crx-quickstart/logs/stdout.log
- C<cq-install-dir>/crx-quickstart/logs/request.log
- D<cq-install-dir>/crx-quickstart/logs/server.log
29Which xtype should a developer use to reuse a part of a dialog in another dialog?
- A….erencextype
- Bcqinclude
- Creferencedialog
- Dcqwidgetdialog
30What runmode should be used to run AEM in production Ready Mode?
- A…
- Bproduction
- Cpublish
- Dnosamplecontent
31A 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?
- Acq:allowedChildren
- Bcq:allowedParents
- Ccq:allowedPaths
- Dcq:allowedTemplates
32What are three useful features of clientlibs? (choose three)
- AThey allow a developer to import files by categories
- BClientlibs help modularize CSS and Javascript files by letting developers organize them by component
- CDevelopers can add additional organization by allowing subdirectories to be defined in clientlibs through text files.
- DJavascript functions are automatically namespaced with the component name it if lives within a component's clientlib.
- ECreating clientlibs contains all of the service files needed to display it on a web page.
33What should be used to integrate and store repository content in a version control system like subversion?
- AApache Maven
- BOSGi bundles
- CJackRabbit Filevault (VLT)
- DGranite components
34A 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)
- AThe configuration node should be stored in /apps/myapp/config
- BThe configuration node should be stored in /etc/system/config
- CThe configuration node must be named com.sample.services.SampleService.config
- DThe configuration node must be named com.sample.services.SampleService
35An 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?- AThe replication and reverse replication both point to the same instance of AEM.
- BThe replication agent on the instance is pointed to the same instance of AEM.
- CSeveral JCR sessions run on the system that are unclosed.
- DA known issue has been encountered that causes an infinite replication cycle of a document.
36Which option denotes the correct format to specify the value for “name” attribute (specified on a node of type cq:Widget)?
- A./<property-name>example:/title
- B<property-name>example: .title
- C<property-name>example: title
- D./<property-name>example:./title
37Which attribute of the Component annotation should be used to define a service factory?
- AConfigurationServiceFactory=true
- BServiceFactory=true
- Cfactory=true
- DconfigurationFactory=true
38A developer includes “configurationFactory=true” in the @Component definition using SCR annotations. What are two reasons that the developer performs this task? (choose two)
- ATo configure an existing OSGi service
- BTo create service factories
- CTo specify the factory that will create the OSGi component
- DTo manage multiple instances of OSGi services
39Dispatcher caching is NOT optimally configured. What is the result?
- A… sive caching speeds up the fetching of documents that are regularly updated.
- BNot enough caching may lead to increased bandwidth and cause unnecessary load when rendering the document.
- CCaching certain files can cause errors in Dispatcher’s Content Repository
- DFailing to configure HTTP methods, causes HTML forms to fail to submit data.
40A 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?
- ACreate a nt:folder node with the name config.author.foo and create the sling.OsgiConfig node underneath.
- BCreate a nt:folder node with the name config.author and create the sling.OsgiConfig node underneath.
- CCreate a nt:folder node with the name config and create the sling.OsgiConfig node underneath.
- DCreate a nt:folder node with the name config.foo and create the sling.OsgiConfig node underneath.
41Which is the default logging level of the root logger when AEM is first deployed?
- AERROR
- BINFO
- CWARN
- DDEBUG
42In a Replication Agent Configuration, for what should the transport user be used?
- ATo specify a hostname of the proxy used for transport.
- BTo select specific content for replication
- CTo specify a unique name for the replication agent.
- DTo specify the user name to be used for accessing the publisher.
43An 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?- AThe replication and reverse replication both point to the same instance of AEM.
- BThe replication agent on the instance is pointed to the same instance of AEM.
- CSeveral JCR sessions run on the system that are unclosed.
- DA known issue has been encountered that causes an infinite replication cycle of a document.
44A 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?- AThe developer can quickly build all modules simultaneously or exclude modules as needed.
- BDefining versions of plugins and dependencies can be centralized within the parent´s pom.xml file.
- CThe target AEM server to where the jar files can be deployed is conveniently defined at once for all modules.
- DThe parent project can unify the target folders of each module so that only a single jar file is needed.
- EThe parent pom.xml file contains references to the parent project´s source code that must be used by all modules.
45A 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)
- AA field in the Touch UI dialog should be of primary type nt:unstructured and built using Granite components.
- BA field in the Touch UI dialog should be of primary type cq:Widget and built using Granite components.
- CThe node for the dialog must be named “cq:dialog”.
- DThe node for the dialog must be named “dialog”
46No 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?- AContents were NOT automatically invalidated when content is updated, developer should add an entry in “/invalidate” section.
- BQuery String prevents contents from being cached, the developer should add an entry in the “/ignoreUrlParams” section.
- CDispatcher rejected the URL which the query string, the developer should add an entry in the “/filters“ section.
- DURL contains an authorization header and content can NOT be cached, the developer should convert the query string to selectors.
47A 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?- AAs the default port of the publish instance.
- BAs the default port of the author instance.
- CAs the default port of the stage instance.
- DAs the default port of the dispatcher instance.
48How are the resources called that are passed through a workflow?
- APayload
- BWorkItem
- CTransaction
- DLifecycle
49A developer sets up and builds an AEM project using Maven.
What are the three reasons for using Maven? (Choose three)- ANo configuration is required when an AEM project is generated using Maven archetypes.
- BMaven´s pom.xml file allows a developer to track dependency and plugin versions used.
- CMaven archetypes can quickly create a basic project structure for AEM projects.
- DIt has the ability to automatically and quickly detect all running AEM instances on a local machine.
- EIt is a widely supported build tool.
50An 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?
- AStart AEM Server in Debug mode by using –Xdebug command line parameter.
- BCreate an Apache Sling Logging Logger Configuration and set a Debug on com.day.cq.search
- CSet a system wide debug log level by using loglevel=debug command line parameter.
- DCreate an Apache Sling Logging Writer Configuration and set a Debug on com.day.cq.search.
51A 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.)- Aconfig identifies configuration factory
- B–myapp identifies the instance of the configuration factory.
- Cprod.publish applies to specific run modes
- Dorg.apache.sling.commons.log.LogManager.factory.config identifies the Component ID
52A 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?
- AThe <identifier> value must be a GUID.
- BThe <identifier> value is optional free text that should be added to identify the instance.
- CThe <identifier> value must contain only letters and numbers.
- DThe <identifier> value is mandatory free text that should be added identify the instance.
53An 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.
- A“Disable Rewriting” in Day CQ Link Checker Transformer
- B“Disable Debug” mode In Adobe Granite HTML Library Manager
- C“Cache Broken Internal Links” in Day CQ Link Checker Service.
- D“Disable Checking” in Day CQ Link Checker Transformer.
Informações
- Descrição
- AEM
- Autor
- F P
- Idioma
- Español
- Visualizações
- 59
- Etiquetas
- Avaliação
- Ainda sem avaliações Avalie este quiz