Adobe AD0-E717 Adobe Commerce Developer Professional Exam Practice Test

Page: 1 / 14
Total 77 questions
Question 1

A custom theme Is being developed in the Adobe Commerce store, and the developer needs to override the current parent theme styles.

Which less file should the developer use to achieve this goal?



Answer : B

To override the current parent theme styles in a custom theme being developed for Adobe Commerce, the developer should use the _theme.less file. This file is specifically designed for customizing and overriding the default styles provided by the parent theme, making option B the correct choice. The _theme.less file is a central place for theme-specific customizations.


Question 2

What is one purpose of a customer data JS library?



Answer : B

The customer data JS library is used to store private customer data in local storage. This data can be used to improve the customer's experience on the store, such as by remembering their shipping address or their preferred payment method.

The customer data JS library in Adobe Commerce is used for managing customer data on the client side, such as the shopping cart, comparison list, and wishlist. It does not store sensitive information like credit card details or usernames and passwords. Instead, it utilizes local storage to keep a private data section where customer-specific data is stored securely and accessed via JavaScript, making option B correct.


Question 3

Which theme directory contains the static files that can be loaded directly?



Answer : A

The web directory contains the static files that can be loaded directly. This directory includes files such as CSS, JavaScript, and images.

In Adobe Commerce themes, the web directory is used to store static files such as CSS, JavaScript, images, and fonts. These files can be loaded directly by the browser. The preprocessed and assets directories do not exist as standard directories in the theme structure for containing directly loadable static files.


Question 4

How can a custom CMS Page be set as a store home page?



Answer : C

To set a custom CMS Page as a store home page, the developer or merchant should follow these steps:

In the Admin panel, go to Content > Pages and create or edit a CMS Page that will be used as a home page.

In the Admin panel, go to Stores > Configuration > General > Web > Default Pages.

In the CMS Home Page field, select the CMS Page that was created or edited in step 1.

Save the configuration.

There is no ''Home Page'' column in the CMS Page admin grid or ''Default Home Page'' value in the CMS Page admin form.

Verified Reference: [Adobe Commerce User Guide - Set up your home page]

In Adobe Commerce, to set a custom CMS page as the store's homepage, you need to go to the store configuration. Specifically, navigate to Content > Design > Configuration, select the relevant store view, and then under the 'Default Pages' tab, set the 'CMS Home Page' option to your custom CMS page. Options A and B do not exist in the Adobe Commerce admin panel for setting a home page.


Question 5

A developer needs to initialize the jQuery Ul widget for a specific HTML tag. Which HTML attribute is used for this?



Answer : B

The data-mage-init HTML attribute is used to initialize the jQuery UI widget for a specific HTML tag. This attribute specifies the name of the widget and its configuration options as a JSON object.

The x-magento-init HTML attribute is used to initialize RequireJS modules for a specific HTML tag. The data-ui HTML attribute does not exist in Adobe Commerce.

Verified Reference: [Adobe Commerce Developer Guide - Initialize JavaScript components using the data-mage-init attribute]

To initialize the jQuery UI widget in Adobe Commerce, the data-mage-init attribute is used in the HTML tag. This attribute allows specifying the widget's component and its configuration in a JSON format. The x-magento-init is used for initializing JavaScript components in a similar manner but is typically used within <script> tags. There's no standard data-ui attribute used for this purpose in Magento 2.


Question 6

A developer would like to initialize a theme in Adobe Commerce. Which two files are required to complete this task? (Choose two.)



Answer : B, C

To initialize a theme in Adobe Commerce, at least two files are required: registration.php and theme.xml. The registration.php file is used to register the theme within the system, and theme.xml defines the theme's name, parent (if any), and other metadata. The theme.less file is not required for theme initialization but may be used for custom styling. The correct option for theme.xml is represented as 'theme.xml' (D), not 'themexml' as mentioned in the options.


Question 7

The value of a product attribute in the Adobe Commerce system needs to have a different format before it is displayed. Which attribute model class is responsible for this?



Answer : A

The frontend attribute model class is responsible for formatting the value of a product attribute before it is displayed on the storefront. This class can implement methods such as getValue, getLabel, getInputType, and getOptionText to modify the attribute value.

The backend attribute model class is responsible for saving and loading the attribute value to and from the database. The source attribute model class is responsible for providing the list of options for an attribute.

Verified Reference: [Adobe Commerce Developer Guide - Attribute models]

In Adobe Commerce (Magento 2), the formatting of product attribute values before they are displayed is handled by the attribute's frontend model. The frontend model, typically extending \Magento\Eav\Model\Entity\Attribute\Frontend\AbstractFrontend, is responsible for preparing the attribute value for display in the frontend, including formatting dates, adding pricing structures, and more. The backend model deals with saving and loading attribute data, while the source model provides options for select attributes.


Page:    1 / 14   
Total 77 questions