AEM 6.0 Developer Flashcards
Help prepare developers for the AEM 6.0 Developer certification test.
Which Maven plugin should you use for installing and configuring bundles?
maven-bundle-plugin
How would you specify a dependency that has a version greater than or equal to 3.8?
[3.8,)
Which Adobe-provided Maven archetype should you use for an AEM application that has an OSGi bundle and some cq:Components?
multimodule-content-package-archetype: Creates a maven project that includes the folder structure for developing a CQ application and installing resources to the server.
How do you include a client library in a Sightly template?
data-sly-call: Calls a template defined with data-sly-template. The content of the called template (optionally parameterized) replaces the content of the host element of the call.
How would you remove a property from a node?
node.setProperty(“myProperty”, null)
Which property, with respect to templates, is now deprecated?
allowedPaths - Path of a page that is allowed to be based on this template.
What value should “allowedPaths” have if you wanted to allow pages to be created under /content/mysite/page1/page2?
/content/mysite/[^/]+(/.*)? means that this template is allowed in any path under /content/mysite.
How would you disable the target action for a component?
Set cq:disableTargeting={Boolean}true on the cq:editConfig node for the component.
How would you start AEM with remote JVM debugging enabled?
Add the following parameters to the start up script:
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=30303,suspend=n
Note:
This configuration allows forking and the debug options specified on the parent JVM are not passed to the forked processes by default.
Which of the following quickstart JARs won’t work?
- cq5-author-4502.jar
- cq5-author-4505.jar
- aem-publish.jar
- cq5-author_4502.jar
- cq5-author_4502.jar
Which of the following quickstart JARs will start in publish mode (select all that apply)?
- cq5-author-4503.jar
- cq5-quickstart-4503.jar
- aem-publish.jar
- cq5-publish-p5502.jar
- aem-publish.jar
- cq5-publish-p5502.jar
Assume you have a CQ instance configured in Felix to run in publish mode. If you then started the instance on the command line by passing –r author, in what mode would the instance start?
- Neither. The instance would fail to start due to a run mode conflict.
- Author because the JVM argument takes precedence.
- Publish because the configuration takes precedence.
- Publish because publish wins in the case of a conflict.
- Publish because the configuration takes precedence.
Installation (or fixed) run modes are used at installation time and then fixed for the entire lifetime of the instance, they cannot be changed.
How could you configure a bundle if you wanted to have it only run on publish?
Using config.publish and a corresponding OSGi Config node.
What bundle would you use to minify css and/or Javascript on a production environment?
Day CQ HTML Library Manager
What bundle would you uninstall on a publish environment so the logs were not publicly accessible?
Disable “Adobe CRXDE Support” (com.day.crx.crxde-support) bundle in OSGi.
If you update a property for a particular bundle in Felix, what has to take place before the property change will take effect?
- Nothing. Any new invocations of applicable services will use the updated property.
- A bundle restart.
- An instance restart.
- A service restart.
- Nothing. Any new invocations of applicable services will use the updated property.
When adding an OSGI configuration in the repository, what do you need to do for it to take effect?
Changes are applied as soon as the node is updated and saved by restarting the service (as with changes made in the Web console).
If a bundle property is configured with a default value in the declaration, via an OSGiConfig node, and via the Felix console. Which will your bundle use?
- The declaration-time default.
- The Felix console configuration.
- The OSGiConfig node configuration.
- The bundle will fail to start due to a conflict.
- The Felix console configuration.
What two places can you go to view the log in the browser?
- /system/console/slinglog
- /bin/crxde/logs
True/False: You should set the logging level on a production publish instance to DEBUG.
False.