option
Cuestiones
ayuda
daypo
buscar.php
TEST BORRADO, QUIZÁS LE INTERESE: Certificación AEM tanda 5
COMENTARIOS ESTADÍSTICAS RÉCORDS
REALIZAR TEST
Título del Test:
Certificación AEM tanda 5

Descripción:
Certificación AEM tanda 5

Autor:
AVATAR
Tony
OTROS TESTS DEL AUTOR

Fecha de Creación:
20/04/2024

Categoría: Informática

Número Preguntas: 38
COMPARTE EL TEST
COMENTARNuevo Comentario
No hay ningún comentario sobre este test.
Temario:
A developer creates two classes. ClassA has the following code: package com.aem.abc; import org.slf4.Logger: import org slf4.LoggerFactory; public class ClassA{ private static final Logger logger = LoggerFactory.getLogger(this.getClass()); public void classAMethod() { logger.debug("Message from Class A method"); } } The developer creates a custom log custom.log with debug level in OSGI sling log support for the Java package com.aem.abc. The developer adds another class ClassB with the following code: package com.aem.xyz; import org.slf4.Logger: import org slf4.LoggerFactory; public class ClassB{ private static final Logger logger = LoggerFactory.getLogger(this.getClass()); public void classBMethod() { logger.debug("Message from Class B method"); } } Which action must the developer take to see the log messages in the same file from both classes? Configure custom.log in the OSGI web console --> Sling --> Log Support and replace logger com.aem.abc with com.aem Configure custom.log in OSGI web console --> Sling --> Log Support and replace logger com.aem.xyz with com.aem.abc Configure custom.log in the OSGI web console --> Sling --> Log Support and replace the package com.aem.abc with com.aem.xyz Create separate a log file in the OSGI web console --> Sling --> Log Support for logger com.aem.xyz.
A developer wants to change the log level for a custom API. Which OSGi configuration should the developer modify? Apache Sling Logging Configuration Apache Sling Log Tracker Service Apache Sling Logging Writer Configuration Adobe Granite Log Analysis Service.
An AEM application is expected to export a content fragment in JSON format as is without any customization for a headless implementation. What's the recommended approach for same? Use Sling Exporter framework Use Core components to export JSON Write Custom sling Models to export the fragments. Use AEM Assets HTTP API .
The OSGI configuration is added to a runmode specific configuration "config.author.staging" in AEM as a Cloud Service. The application fails to read the configuration. What is a possible cause of this issue? AEM as a Cloud service does not support ORGI configuration runmodes. The custom OSGI configuration runmode used (i.e., "config.author.staging") is not supported in AEM as a Cloud service. OSGI configuration runmodes cannot be installed automatically on AEM as a Cloud Service. We need to install them as a package using the Package manager. Only <service> specific OSGI configuration runmodes like "config.author" os "config.publish" are supported in AEM as a Cloud service.
A developer needs to implement a service component that should be manually configured by operations to react on operational circumstances. The service component should NOT be active by default. The service has the properties myservice.name (one string value) and myservice.stringValues (a list of the string values) to be configured. The developer needs to use OSGi Metatype annotations to make those properties configurable in the Apache Felix Web Console. Which set of steps should the developer take to meet these requirements? 1. For the class fields myserviceName and myserviceStringValues, add a @AttributeDefinition annotation each with names set to myservice.name and myservice.stringValues respectively. 2. Use the @Component annotation with configurationFactory = true on the service component class. 3. Use the @Service service component class. 4. Use the activate method of the service component class to get the configuration annotation interface class injected. 1. Create an annotation interface as inner class of the service component and annotate it with @ObjectClassDefinition. 2. Apply @AttributeDefinition for the methods myservice.name and myservice.stringValues. 3. Use the @Component annotation with configurationPolicy = ConfigurationPolicy.REQUIRE on the service component. 4. Use the @Designate annotation to link the service component to the created configuration annotation interface. 5. Use the activate method of the service component class to get the configuration annotation interface class injected. 1. Create an annotation interface as inner class of the service component and annotate it with @ObjectClassDefinition. 2. Apply @AttributeDefinition for the methods myservice_name and myservice_stringValues. 3. Use the @Component annotation with configurationPolicy = ConfigurationPolicy.REQUIRE on the service component. 4. Use the @Designate annotation to link the service component to the created configuration annotation interface. 5. Use the activate method of the service component class to get the configuration annotation interface class injected. 1. For the class fields myserviceName and myserviceStringValues, add a @Property annotation each with names set to myservice.name and myservice.stringValues respectively. 2. Use the @Component annotation with configurationFactory = true on the service component class. 3. Use the @Service service component class. 4. The configuration is automatically injected into the field by the service component runtime.
A developer must create a workflow step that assigns a 'WorkItem' to the appropriate person based on whohas the least amount work to do.The group that must perform the action is configured into the workflow. Which non-deprecated interface should the Java implementation class use to perform the assignment? com.adobe.granite.workflow.exec.ParticipantStepChooser com.day.cq.workflow.exec.ParticipantChooser com.day.cq.workflow.exec.WorkItem com.adobe.granite.workflow.exec.WorkflowData.
A developed needs to create sling models for two fields name and occupations. The dialog has two fields, name – a single value field, and occupations – a multi value field. The following code is included in sling models inherited from interface com.adobe.aem.guides.wknd.core.models.Byline package com.adobe.aem.guides.wknd.core.models.impl; …… public class BylineImpl implements Byline{ …… @Override public List <String> getOccupations(){ if (occupations!=null){ Collections.sort(occupations); return new ArrayList<String> occupations; }else{ return Collections.emptyList(); } ….. } Which method should be used to represent this model in HTL? <div data-sly-use-byline=” com.adobe.aem.guides.wknd.core.models.Byline.impl” data-sly-use-placeholderTemplate=”core/wcm/components/commons/v1/templates.html” data-sly-test-hasContent=”${!byline.empty}” class=”cmp-byline”> <h2 class=”cmp-byline__name”>${byline.name}”</h2> <p class= cmp-byline__pccupations”>${byline.occupations @ join=’, ‘}</p> </div> <div data-sly-use-byline=” com.adobe.aem.guides.wknd.core.models.Byline” data-sly-use-placeholderTemplate=”core/wcm/components/commons/v1/templates.html” data-sly-test-hasContent=”${!byline.empty}” class=”cmp-byline”> <h2 class=”cmp-byline__name”>${byline.name}”</h2> <p class= cmp-byline__occupations”>${byline.occupations @ join=’, ‘}</p> </div> <div data-sly-use-byline=” com.adobe.aem.guides.wknd.core.models.Byline” data-sly-use-placeholderTemplate=”core/wcm/components/commons/v1/templates.html” data-sly-test-hasContent=”${!byline.empty}” class=”cmp-byline”> <h2 class=”cmp-byline__name”>${byline.name @ join=’, ‘}”</h2> <p class= cmp-byline__occupations”>${byline.occupations @ join=’, ‘}</p> </div> <div data-sly-use-byline=” com.adobe.aem.guides.wknd.core.models.Byline” data-sly-use-placeholderTemplate=”core/wcm/components/commons/v1/templates.html” data-sly-test-hasContent=”${!byline.empty}” class=”cmp-byline”> <h2 class=”cmp-byline__name”>${byline.name}”</h2> <p class= cmp-byline__occupations”>${byline.occupations }</p> </div>.
A custom AEM application has a run time dependency to a third party OSGi bundle that is NOT included inout-of-the-box AEM. The third party dependency needs to be available for multiple applications and beupgraded separately from the custom AEM application. How should a developer make sure that the bundle is installed on all environments? Add the dependency to the third party bundle in the pom.xml of the project bundle. Embed the third party bundle in the bundle that depends on it. Embed the bundle in a content package to have it automatically deployed. Declare the dependency correctly using a link to the OSGi Bundle Repository (OBR).
A developer needs to make template T avaliable as a child page of page P. The developer has determined that: - Template T matches cq:allowedTemplates property on page P. - Template T has no allowedPaths property set. - Template T is not in the same application as page P. - The template of page P has no match on the allowedParents property of template T. - Template T has no match on the allowedTemplates property on the template of page P. What should the developer change? Make page P match allowedPaths property of template T. Make the allowedParents property of template T match the template of page P. Migrate template T to the same aplicación as page P. Clear the allowedParents property of template T.
While doing an In-Place AEM upgrade, the developer observes an issue in the server logs where all are active except for the ACS Commons bundle which is incompatible due to old version. What should the developer to do resolve this issue? Ask for admin credential & install the new bundle in Felix console Update the plugin in pom.xml Drop the new package under path crx-quickstart/install and restart Install the new jar using the package manager on the old environment.
An AEM Developer wants to display localized page names to users of translated content. Rather than having a Spanish-speaking user navigate to: www.mydomain.com/es/home.html The Developer wants the URL to be: www.mydomain.com/es/casa.html What is the recommended way of achieving this? Add a property sling:alias = casa to ../es/home Write a Bin Servlet to handle the request - @SlingServlet(paths = '/bin/myApp/myServlet'... Modify /etc/map to resolve the URL .../es/casa Use Vanity URL to redirect .../es/casa to .../es/home.
An online insurance company website has user-generated content that must be replicated in all publishinstances. What action should the developer take to achieve this? Configure the dispatcher flush agent in publish instance. Configure reverse replication agents for the author. Configure the replication agent in the publish instances. Disable static agent in the author instance.
An application runs specific license checks against certain DAM assets every day. It should send an email to aconfigured list if it finds warnings, and mark the asset accordingly. A service component that uses the ApacheSling Scheduler Service is created. DAM assets that must NOT be used anymore are hidden using ACLs andthe license check must re-check them. How should a developer obtain a resource resolver that can read and update the DAM assets? Set up a cron job with curl calls with the admin user and use request.getResourse ().getResourceResolver(). Create a configuration line in PID com.day.cq.security.ACLSetup for the user that you obtain a session for via ResourceResolverFactory.getResourceResolver(...). Configure the user admin in PID org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl as user.default and make sure the service user exists and has jcr:read and jcr:write permissions. Create a configuration for PID org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amendeddamaccess that references a pre-created service user with r/w permissions and use ResourceResolverFactory.getServiceResourceResolver(...).
After adding new features, a developer's environment is experiencing slowness before ultimately running out ofmemory. The initial log analysis points towards a large number of open sessions. Which action should the developer take to further monitor the overall session count on this AEM instance? * Run the following command to generate thread dumps jstack -l <pid> >> threaddumps.log,analyze thread dumps to find long running sessions. Go to Web Console > Status > Threads, verify the overall thread count. Go to Tools > Operations > Monitoring. Create a new report based on Number of Active Sessions as metric Go to <aem-install>/crx-qiuckstart/logs/strderr/log, use the following command grep -o 'CRXSessionImpl' strderr.log| wc -l.
After a recent code deployment, an AEM site is experiencing longer than usual query execution time. The deployment package contained some new Lucene index definitions. A developer needs to identify the long running queries and confirm that the new index definitions are getting applied correctly. Which action should the developer take to investigate this problem? Go to Tools > Operations >Diagnosis > Download Thread Dumps. Analyze the Thread Dumps to identify long running requests. Go to Tools > Operations >Diagnosis > Log Message. Configure DEBUG log level on com.day.cq.search to monitor search queries. Go to Tools > Operations > Diagnosis > Index Manager. Select the new Indexes and run a consistency check. Go to Tools > Operations >Diagnosis > Query Performance > Slow Queries. Select a Query and Click on Explain.
A developer creates an AEM editable template that includes a Layout Container. When the developer createsa page using this template, the Layout Container placeholder does NOT appear. What is causing this issue? The Layout Container does NOT have a policy. The page template has NOT been enabled. The page template has NOT been published. The Layout Container has NOT been unlocked.
A Client-Side Library has the category "library.example". Which HTL statement should a developer use to reference only the CSS files of this Client-Side Library? sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html" data-sly-call="${clientlib.css @ categories='library.example'}"/> <sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html" data-sly-call="${clientlib.css @ category='library.example'}"/> <sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html" data-sly-call="${clientlib.all @ categories='library.example.css'}"/> categories='library.example.css'}"/> <sly data-sly-use.clientlib="/libs/granite/sightly/templates/clientlib.html" data-sly-call="${clientlib.all @ type='css', categories='library.example'}"/>.
A developer installs the latest Service pack to a local AEM author instance. How should the developer install this package on the publish instance? Replicate from package manager of publish instance. Use upload/install from OSGI console of publish instance. Use upload/install from OSGI console of author instance. Replicate from package manager of author instance.
AEM SPA integration provides various design models. In an application the developer chooses to use AEM as a headless CMS without using the SPA Editor SDK framework What would be an advantage for this design model? The content author can edit the app using AEM's content authoring experience. The front end developer has full control over the app The SPA is compatible with the template editor. The developer keeps control over the app by only enabling authoring in restricted areas of the app.
An AEM Developer needs to remove the pretitle option from within the Core Teaser component´s dialog. They start by: 1. Creating a component with the Core Teaser component as its resourceSuperType 2. Adding a _cq_dialog folder under the component Where are the next correct steps that the AEM Developer needs to take? 1. Navigate to /apps/core/wcm/components/teaser/v1/teaser/cq:dialog/content/items/tabs/items/text/items/columns/items/column/items in CRX. 2. Delete the pretitle child node. 1. Create a file named .content.xml inside that new folder. 2. Copy only the node structure that will be modified into .content.xml. 3. Add sling:hideChildren[pretitle] to the parent node of the pretitle node. 1. Create a file named dialog.xml inside that new folder. 2. Copy the entire node structure from the Core Teaser component´s dialog.xml. 3. Delete the pretitle node. 1. Navigate to the new components dialog in CRX. 2. Delete the pretitle child node.
Which type of configuration can be created in OSGI Configuration Manager? Bundles Configuration Run modes Configuration Components Configuration Service Configuration.
The following anchor tag is not resolving: <a href='${item.path}'>${item.name}</a> Upon further inspection the developer notices that the link has no .html appended to the end of the URL. What could be a potential fix for the issue? <a href="${item.path} @ context = "html">${item.name}</a>. <a href="${item.path} @ append = "html">${item.name}</a>. <a href="${item.path} @ extenion = "html">${item.name}</a>. <a href="${item.path} @ context = "unsafe,fragment=item.name">${item.name}</a>. .
An AEM Developer creates a custom OAK Lucene index for /content/mywebsite under /oak:index node. While testing the live site, it is found that the index is not being applied to any query within the website. Default Lucene indexes with high cost are being picked up by the AEM. What is the most likely cause of this issue? The custom OAK Lucene index is missing evaluatePathRestrictions property and queryPaths property. The custom OAK Lucene index must be replaced with OAK Lucene Property index. The custom OAK Lucene index is missing evaluatePathRestrictions property and includedPaths property. The custom OAK Lucene index must include boost property to rank it higher than default Lucene index.
An author and publish instance has a shared data store with a very large number of assets. Whichtype of replication is recommended to avoid duplication of data? Asynchronous replication. Binaryless replication. ClusterDataStore with no replication agents. Replication with no versioning.
You want to restrict the size of a custom log file and enable log file rotation. Which Apache Sling configuration has to be changed in the AEM Web Console? Apache Sling Composite Health Check Apache Sling Job Manager Apache Sling Logging Writer Configuration Apache Sling Logging Logger Configuration.
You are logged in as userA and you are impersonating userB. How are your activities logged inthe access.log? The logged userld is "userB impersonated by userA" The logged userld is "userA on behalf of userB" The logged userld is "userB" The logged userld is "userA".
An application requires custom languages to be supported that are not present in AEM OOB Wich approach is recommended? Add the custom languages in the website´s content pages. Override /libs/wcm/core/resources/languages and add custom languages. Overlay /libs/wcm/core/resources/languages and add custom languages Add the custom languages in AEM projects.
A project has a requierement to extend to WCM Core component consisting of Image. The requirements is also to add Title, Description, Link and display the titles of a few pages by links. How should a developer proceed? 1. Extend Teaser from Core components. 2. Customized it to add the Titles by tags 1. Extend Image form Core Components. 2. Add an HTL Template for Title extended Core Components 3. Add an HTL Template for List extended Core Components. 4. Add a reference to Title and List Components Dialog Box. 1. Extend Teaser from Core Components. 2. Add an HTL Template for List extended Core Components. 3. Add a reference to List Component Dialog box. Create a custom component as per the requirements.
Which should be configured to create a custom log file with a different log level? Apache Sling Log Configuration Apache Sling Logging Reader Configuration Apache Sling Logging Logger Configuration Apache Sling Logging Configuration.
What is the optimal way to check-out content from the JCR repository to the local file system? Use VLT export command. Create and build a package using CQ Package manager. Download and unzip the package in the local file system. Use VLT import command. Download content from the repository as an XML file.
A customer adds third-party client libraries to add some features in an existing AEM application, which will significantly reduce performance. What is the best option for the AEM Developed to optimize the site? Rebuild Client libraries Debug third-party client lib and fix the code Embed client libraries to consolidate them into fewer files Create new AEM application from Scartch.
The default installation location for AEM 6.0 in an Application Server is ${user.dfr}/crx-quickstart. Which method is used to change this location? Configure the sling.home parameter in the WEB-INF/web.xml file of the AEM WAR file after deployment. Configure the sling.home parameter in the WEB-INF/web.xml file of the AEM WAR file before deployment. Configure the sling.run.modes parameter in the WEB-INF/web.xml file of the AEM WAR file after deployment, Configure the sling.run.modes parameter in the WEB-INF/web.xml file of the AEM WAR file before deployment.
A custom AEM application contains a service component that needs to access the JCR repository within theactivate method. The activate method usesResourceResolverFactory.getServiceResourceResolver(…) without specifying a sub servicename. What should a developer do to make sure the user service mapping for the service component is available? 1/1 Create a field of type ServiceUserMapped and annotate it with @Reference. Wait for the service ServiceUserMapper via BundleContext.getServiceReference(…). Create a field of type ServiceUserMapped and annotate it with @Reference using ReferencePolicy.DYNAMIC. Create a field of type ServiceUserMapper and annotate it with @Reference using ReferencePolicy.STATIC.
A developer has a requirement to add a new custom tab to the page properties of a specific page. The sling:resourceType of that page is "foo/components/page" and the sling:resourceSuperType of that page is "core/wcm/components/page/v2/page". What is the best approach? 1. Copy the cq:dialog from app/core/wcm/components/page/v2/page to app/foo/components/page 2. Remove all the tabs 3. Add the custom tab 1. Identify the location of the cq:dialog node from app/core/wcm/components/page/v2/page 2. Identify the last entry of the items node 3. Add the custom tab after that node 1. Copy the cq:dialog from app/core/wcm/components/page/v2/page to app/foo/components/page 2. Identify the last entry of the items node 3. Add the custom tab after that node 1. Create a new cq:dialog node under app/foo/components/page 2. Add the nodes cq:dialog > content > items 3. Add the custom tab in this node.
A developer needs to configure sets of values according to the following parameters: Varies for different staging environments Varies for different content paths Differs between author and publish Which implementation strategy should the developer use to meet these requirements? A custom cloud configuration A context aware configuration with buckets using an OSGi configuration One OSGi configuration for the set of values with runmodes A JCR property at the content root node of the site with inheritedPageProperties.
One content package of a custom application contains the following content paths. /apps/muproj/install /apps/myproj/components /apps/myproj/i18n The server also contains the content path /apps/myproj/configuration that must NOT be touched when installing the package. Which two filter definitions should a developer use to always update only the contained paths upon installation in the server? (Choose two.) <filter root="/apps/myproj"> <exclude pattern="configuration.*"/> </filter> <filter root="/apps/myproj"> <include pattern=".*"/> <exclude pattern="configuration.*"/> </filter> <filter root="/apps/myproj"> <exclude pattern="apps/myproj/configuration.*"/> </filter> <filter root="/apps/myproj" mode="merge"> </filter> <filter root="/apps/myproj"> <include pattern="/apps/myproj/(install|components|i18n).*"/> </filter>.
You want to invert the order of display of components added to parsys provided out of the box.Recently added components always have to display on top. While implementing the new parsyscomponent, which two options are valid? (Choose two). Copy the parsys component and all its contents from /libs/foundation/components/parsys to /apps/foundation/components/parsys and modify the applicable JSPs. Copy the only applicable parsys component JSPs from /libs/foundation/components/parsys to /apps/foundation/components/parsys and modify them. Create a new parsys component under/apps/<projectid>/components/content/myparsys and apply the property sling:resourceSuperType=foundation/components/parsy$, modify the JSP as applicable Create a new parsys component from scratch.
Which three statements about configuring a development environment for a new AEM project called "customer bank", that contains both custom OSGi services and AEM components is true? (Choose three). http://<aemhost>:<aemport>/system/console/depfinderls used to find the dependencies The repository for AEM dependency jar files can be either http://repo.adobe.com/nexus/content/groups/public/ or the local Apache Archiva with all required dependencies Create a Maven project with archtypemultimodule-content-package-archetype from the repository http://repo.adobe.com/nexus/content/groups/public/ Create a Maven project with archtype simple-content-package-archetype from repository http://repo.adobe.com/nexu5/content/gmups/public/.
Denunciar Test