Summer Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Question # 4

Adeveloper created an editable template with a Layout Container. The developer needs to restrict the Layout Container to just one column layout.

What should the developer do to the editable template to enforce this restriction?

A.

Add responsive column controlcomponent to the template and set column type to 1

B.

Overlay wcm.foundation.components.page.responsive Client Library and set @max_col to 1

C.

Using Template Editor, lock the Structure Component for the template

D.

Using Template Editor, set the responsive settings to 1 column for Layout Container Policy

Full Access
Question # 5

A developer must create a workflow step that assigns a ‘WorkItem’ to the appropriate person based on who has 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?

A.

com.adobe.granite.workflow.exec.ParticipantStepChooser

B.

com.day.cq.workflow.exec.ParticipantChooser

C.

com.day.cq.workflow.exec.WorkItem

D.

com.adobe.granite.workflow.exec.WorkflowData

Full Access
Question # 6

Refer to thefollowing four Client Library Folders.

A developer uses the following:

What is the resulting HTML?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 7

A developer needs to upgrade existing components (Proxy Components) based on Core Components Version 1(v1) to Core Components Version 2(v2).

How should the developer upgrade to V2 Core Components?

A.

ProxyComponents will be automatically upgraded to the V2 Core Component on AEM Restart

B.

Modify the sling:resourceSuperType property on the V1 core components to point to V2 Component

C.

Modify the sling:resourceSuperType property on the proxy component topoint to V2 Component

D.

Create a new Proxy Component and set sling:resourceType property to V2 Core Component

Full Access
Question # 8

The structure section of an editable template has a locked component.

What happens to the content of that component when a developer unlocks it?

A.

The content stays in the same place but it ignored on pages using the template.

B.

The content is moved to the initial section of the editabletemplate.

C.

The content is deleted after confirmation from the template author.

D.

The content is copied to the initial section of the editable template.

Full Access
Question # 9

A developer has acomponent located under the path /apps. This component has a Client Library which is directly loaded onto a page. The publish instance loads the page correctly. The dispatcher also loads the page but the Client Library is missing.

How should the developerresolve this issue, while taking security into consideration?

A.

Change the ACLs for the Client Library.

B.

Move the Client Library under /apps/library.

C.

Add the property allowProxy with a boolean value true.

D.

Allow the path to the clientlibson the dispatcher.

Full Access
Question # 10

There is a config file package.myClass.config.factory-myApp.xml – what is true? (Choose two)

A.

The word "config" is a sign of factory

B.

The word "factory" is a sign of factory

C.

Should be set package.myClass.config.factory-

D.

Must be set package.myClass.config.factory-

Full Access
Question # 11

In which maven build phase is the content package assembled?

A.

install

B.

compile

C.

package

D.

deploy

Full Access
Question # 12

The following stack trace is written in the error.log file after installing a custom application package.

Could not startbundle com.adobe.cq.sample-bundle [526]. Reason: {}. Will retry.

org.osgi.framework.BundleException: Unable to resolve com.adobe.cq.sample-bundle [526](R 526.0): missing requirement [com.adobe.cq.sample-bundle] osgi.wiring.package

What are two different ways that the developer could resolve the OSGi bundle dependency error? (Choose two)

A.

Go to the Dependency Finder in the System Console to find if another bundle is exporting a similar version of the classes and change the project pom.xml to match the same version

B.

Install the jar in AEM via the curl command 'curl -u username:password -F file=@"./com.example.customlib-3.8.jar" -F name="Dependency" -F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp --progress-bar -o upload.txt'

C.

Create a folder named "deploy" under $AEM_HOME/crx-quickstart/ and copy com.example.customlib-3.8.jar in there so AEM uploads it automatically

D.

Go to the project parent pom.xml file and add the dependency with the scope "compile" and instruct the bundle plugin to include the dependency in runtime

E.

Upload the file com.example.customlib-3.8.jar into /apps//libs folder in CRX DE to make it available for the OSGi bundle

Full Access
Question # 13

An AEM site experiences slower page loads. A developer needs to identify the slow running requests.

How should a developer analyze the requests with long response times?

A.

Use proxy.jar with the following command java -jar proxy.jar to debug the webserver and AEM server communication

B.

Use rlog.jar with the following command $ java -jar ../opt/helpers/rlog.jar -n 10 request.log to identify long running requests

C.

Download Heapdumps from Tools > Operations > Diagnosis and analyze the Heapdumps using the Memory Analyzer Tool

D.

Embed /libs/foundation/components/timing component in the Page Component and verify the page load time

Full Access
Question # 14

A developer is working on the following Sling Model that is being used in a component.

@Model(adaptables = SlingHttpServletRequest.class, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)

public class SampleModel {

@Inject

private Page currentPage;

private boolead matchingTitle;

@PostConstruct

private void init(){

matchingTitle = title.equals(currentPage.getName());

}

public boolean isMatchingTitle(){

return matchingTitle;

}

}

The model must check if the configured value of the jct:title property for the component matches the same name of the current page. If the jcr:title property of the component has NOT been configured, then isMatchingTitle() must return false.

How should the developer inject the title property in this model?

A.

"@ValueMapValue

@Via(""jcr:title"")

@Required

private String titile;"

B.

"@ValueMapValue

@Named(""jcr:title"")

@Default(values = """")

private String titile;"

C.

"@ValueMapValue

@Named(""jcr:title"")

@Required

private String titile;"

D.

"@ValueMapValue

@Via(""jcr:title"")

@Default(values = """")

private String titile;"

Full Access