A developer needs to remove all the selectors from the linkValue.
Assuming linkValue = 'path/page.woo.too.html', which two HTL approaches would be used to complete this task? (Choose two.)
In HTL (HTML Template Language), the syntax to manipulate the URI path does not provide direct methods for removing selectors. However, within Sling and HTL, the Link Handler can be extended to support such operations. For out-of-the-box HTL, the proper approach to manipulate the link would be done in the Java layer (e.g., a Sling Model or a Use-Class in HTL), and then passed to the template for rendering. Nevertheless, if such a functionality were to be implemented within HTL, it would require custom code and not use the indicated syntax options. It is important to note that options A and B with 'removeSelectors' are not standard HTL syntax.
A developer wants to replace the element name of the host element with titleLevel property of the model in HTL.
Which action would be taken to complete this task?
In HTL (HTML Template Language), data-sly-element is used to dynamically set the name of a DOM element. The provided option C correctly demonstrates the use of data-sly-element to replace the element name with the value of the titleLevel property of the model. The context 'unsafe' is specified because changing the element name can be a security risk if the value is not properly sanitized since it could lead to script injection vulnerabilities if used with user-provided data.
Options A and B are incorrect because they don't use the data-sly-element attribute, which is necessary to dynamically change the tag name of the element in HTL.
A developer needs to use AEM Core Components in production mode (without sample content). The developer would like to do this without needing to download and install the core components before using them.
Which AEM version would the developer use?
AEM as a Cloud Service includes the latest AEM features out-of-the-box, including AEM Core Components, which are production-ready without the need for additional downloads or installations of sample content. This version of AEM has a continuous delivery model, ensuring that the most up-to-date features and components are readily available.
Option A, Version 6.3, is incorrect because this version would require the manual download and installation of core components.
Option B, Adobe Managed Services, is not a version of AEM, but rather a hosting option that could include various versions of AEM.
A developer has to allow third-party applications to access the content of the Experience Fragment directly, using only the URL. It should be available through the browser.
Which selector would be used for this purpose?
When it comes to rendering the content of an Experience Fragment for third-party applications to access directly via a URL, and in a browser-friendly format, the text selector is used. This selector causes AEM to render the Experience Fragment as plain text, which is typically what a third-party application would require if it needs to consume the content directly without any associated styling or scripts.
Option B, noCss, is not a standard selector for this purpose.
Option C, plain, is not the correct selector for rendering Experience Fragment content in AEM. The plain selector might suggest a text/plain MIME type, but in AEM, the correct selector for retrieving the text content of an Experience Fragment is text.
While configuring a Content Fragment Component, the author has selected 'Display Mode' as 'Single Text Element'. This enables the selection of one multiline text element and enables paragraph control options.
Which two properties will now determine the resulting action? (Choose two.)
When the 'Display Mode' is set to 'Single Text Element' in the configuration of a Content Fragment Component in AEM, the properties that will determine the resulting action are related to how the text is displayed and managed in terms of paragraphs.
C) Paragraph Range --- This property would determine the range of paragraphs to display from the multiline text element.
D) Paragraph Scope --- This property would define the scope of the paragraph, such as whether all paragraphs are included or just a specific subset.
Options A (Paragraph Description) and B (Paragraph Heading) are not directly related to the action of displaying a single text element with paragraph control.