ExamGecko
Home Home / Adobe / AD0-E720

Adobe AD0-E720 Practice Test - Questions Answers, Page 5

Question list
Search
Search

List of questions

Search

Related questions











An Adobe Commerce developer needs to add CMS content above products on a specific category page via the Admin Panel. Where would the developer need to put the content in order to use Display Modes functionality and display it on the category?

A.
Widget
A.
Widget
Answers
B.
CMS Page
B.
CMS Page
Answers
C.
CMS Block
C.
CMS Block
Answers
Suggested answer: C

Explanation:

CMS Blocks are the best option to add CMS content above products on a specific category page via the Admin Panel. CMS Blocks are reusable pieces of content that can be inserted into any page or layout using widgets or layout XML. CMS Blocks can be assigned to specific categories using the Display Settings tab in the category edit page. The developer can choose the Display Mode for the category, which determines how the CMS Block and the products are displayed on the category page. For example, the developer can choose Static block and products to show both the CMS Block and the products, or Static block only to show only the CMS Block and no products.

Reference:Adobe Commerce Developer Documentation,Adobe Inc.

An Adobe Commerce developer needs to improve the time of first render of the pages. How would the developer achieve this?

A.
Use the quick static files deployment strategy
A.
Use the quick static files deployment strategy
Answers
B.
Enable CSS critical path
B.
Enable CSS critical path
Answers
C.
Enable CSS file merging
C.
Enable CSS file merging
Answers
D.
Enable JavaScript minification
D.
Enable JavaScript minification
Answers
Suggested answer: B

Explanation:

CSS critical path is a feature that improves the time of first render of the pages by inlining the CSS rules that are required to render the above-the-fold content of the page. This reduces the number of requests and bytes that need to be downloaded before the page is rendered. CSS critical path can be enabled in the Admin Panel by navigating to Stores > Configuration > Advanced > Developer > CSS Settings and setting Enable CSS Critical Path to Yes.

Reference:Adobe Commerce Developer Documentation,Adobe Inc.

An Adobe Commerce developer wants to determine which template is rendering a specific element on the storefront. Which two methods can they use to turn on template hints? (Choose two.)

A.
In the Admin, navigate to Stores > Configuration > Advanced > Developer > Debug. Set Enabled Template Path Hints for Storefront to Yes
A.
In the Admin, navigate to Stores > Configuration > Advanced > Developer > Debug. Set Enabled Template Path Hints for Storefront to Yes
Answers
B.
In the Admin, navigate to system > Advanced > Template > Developer > Debug. Set Enabled Template Path Hints for Storefront to Yes
B.
In the Admin, navigate to system > Advanced > Template > Developer > Debug. Set Enabled Template Path Hints for Storefront to Yes
Answers
C.
On the command line, run the command; php bin/magento setup:enable-template-hints
C.
On the command line, run the command; php bin/magento setup:enable-template-hints
Answers
D.
On the command line, run the command; php bin/magento dev:template-hints:enable
D.
On the command line, run the command; php bin/magento dev:template-hints:enable
Answers
Suggested answer: A, D

Explanation:

Template hints are a useful tool for frontend developers to determine which template is rendering a specific element on the storefront. Template hints can be turned on using either of these two methods:

In the Admin Panel, navigate to Stores > Configuration > Advanced > Developer > Debug. Set Enabled Template Path Hints for Storefront to Yes

On the command line, run the command; php bin/magento dev:template-hints:enable The other two options are incorrect because they do not exist as valid methods to turn on template hints.

Reference:Adobe Commerce Developer Documentation,Adobe Inc.

An Adobe Commerce developer needs to add a conditional static note depending on whether the order type is virtual or not. Which option would the developer use to add the conditional text in the email template?

A)

B)

C)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
Suggested answer: B

Explanation:

Option B is the correct way to add a conditional static note depending on whether the order type is virtual or not in the email template. Option B uses the {{trans}} directive to translate the text and the {{depend}} directive to check the value of the order.is_virtual variable. If the order is virtual, the text ''Shipping not required.'' will be displayed. Option A and Option C are incorrect because they use the wrong syntax for the {{trans}} and {{depend}} directives. Option A uses curly braces instead of parentheses for the {{trans}} directive and does not use quotes for the text. Option C uses parentheses instead of curly braces for the {{depend}} directive and does not use a dot to access the order.is_virtual variable.

An Adobe Commerce developer created a new CMS page and set the page title as 'My Custom Page'. The page must be accessible at the URL /custom_page.

Which CMS page configuration do they set to make the page accessible at /custom_page?

A.
Under 'Content', they set the 'Path' field as 'custom_page'.
A.
Under 'Content', they set the 'Path' field as 'custom_page'.
Answers
B.
Under 'Search Engine Optimization', they set the 'URL Key' field as 'custom_page''.
B.
Under 'Search Engine Optimization', they set the 'URL Key' field as 'custom_page''.
Answers
C.
Under 'Page in Websites', they set the 'URL' field as 'custom.page'.
C.
Under 'Page in Websites', they set the 'URL' field as 'custom.page'.
Answers
Suggested answer: B

Explanation:

The URL Key field under the Search Engine Optimization section is used to specify the URL suffix for the CMS page. The developer can set it as ''custom_page'' to make the page accessible at /custom_page. The Path field under the Content section is used to specify the path to the template file that renders the CMS page content. The URL field under the Page in Websites section does not exist as a valid configuration option for CMS pages.

Reference: [Adobe Commerce Developer Documentation], [Adobe Inc.]

An Adobe Commerce developer has just installed an extension via composer. When running, bin/magento module: status Vendor_Module, the status is returned as Module is disabled.

Which two CLI commands need to be run to make the extension work properly? (Choose two.)

A.
composer install
A.
composer install
Answers
B.
bin/magento setup:upgrade
B.
bin/magento setup:upgrade
Answers
C.
composer update vendor/module
C.
composer update vendor/module
Answers
D.
bin/magento module:enable Vendor_Module --clear-static-content
D.
bin/magento module:enable Vendor_Module --clear-static-content
Answers
Suggested answer: B, D

Explanation:

The developer needs to run these two CLI commands to make the extension work properly:

bin/magento module:enable Vendor_Module --clear-static-content This command enables the extension and clears any outdated static files that might interfere with its functionality.

bin/magento setup:upgrade This command updates the database schema and data according to the extension's requirements. The other two options are incorrect because they are not necessary to make the extension work properly. The composer install command installs all dependencies specified in the composer.json file, but it does not enable or update any extensions. The composer update vendor/module command updates an existing extension to its latest version, but it does not enable or upgrade it.

Adobe commerce fronted developer needs to speed up the cloud environment deployment process with predefined theme languages for reducing the number of unnecessary themes files.

Which place developer should add language codes?

A.
SCD_matrix deploy variable in .magento.env.yaml file
A.
SCD_matrix deploy variable in .magento.env.yaml file
Answers
B.
relationships property in .magento.app.yaral file
B.
relationships property in .magento.app.yaral file
Answers
C.
scopes section in config.php file
C.
scopes section in config.php file
Answers
Suggested answer: A

Explanation:

The SCD_matrix deploy variable in the .magento.env.yaml file is used to speed up the cloud environment deployment process by specifying the theme languages for each theme. This reduces the number of unnecessary theme files that are generated during the static content deployment. The developer can add the language codes for each theme in the following format:

SCD_MATRIX: <theme>: <languages>

For example, to specify English and French languages for the Vendor/Orange theme, the developer can use:

SCD_MATRIX: Vendor/Orange: en_US,fr_FR

The other two options are incorrect because they are not related to the theme languages or the static content deployment. The relationships property in the .magento.app.yaml file is used to define how services are connected to the application. The scopes section in the config.php file is used to specify the configuration scope of each module.

Reference:Adobe Commerce Developer Documentation,Adobe Inc.

When using Grunt, which CLI command is used to track changes in the source files and recompiles CSS files?

A.
grunt start
A.
grunt start
Answers
B.
grunt watch
B.
grunt watch
Answers
C.
grunt less
C.
grunt less
Answers
Suggested answer: B

Explanation:

The grunt watch command is used to track changes in the source files and recompiles CSS files automatically. This command is useful for frontend development as it allows the developer to see the changes in real time without manually running other commands. The grunt watch command can be run with or without parameters to specify the theme and locale. For example, to track changes for the Vendor/Orange theme and the en_US locale, the developer can use:

grunt watch --theme=Vendor/Orange --locale=en_US

The other two options are incorrect because they do not track changes in the source files. The grunt start command is used to register themes and clear caches before running other commands. The grunt less command is used to compile LESS files to CSS files for a specific theme and locale.

Reference:Adobe Commerce Developer Documentation,Adobe Inc.

An Adobe Commerce developer needs to debug an issue, where the path of the block template was invalid and the warning was added to a log file. Which mode are errors only written to a log file and not displayed?

A.
developer only
A.
developer only
Answers
B.
default and production
B.
default and production
Answers
C.
developer and default
C.
developer and default
Answers
Suggested answer: B

Explanation:

The default and production modes are the modes where errors are only written to a log file and not displayed on the screen. This is done to prevent exposing sensitive information to users and attackers. The default mode is the mode that Adobe Commerce runs in by default if no other mode is specified. The production mode is the mode that Adobe Commerce runs in when it is deployed to a live site. The developer can use the following command to check the current mode:

bin/magento deploy:mode:show

The other two options are incorrect because they display errors on the screen as well as writing them to a log file. The developer mode is the mode that Adobe Commerce runs in when it is under development or testing. The developer mode enables enhanced debugging and error reporting features.

Reference:Adobe Commerce Developer Documentation,Adobe Inc.

An Adobe Commerce developer wants to create symlinks for the frontend theme named Vendor/Orange using a CSS file: <magento_root>/pub/static/frontend/Vendor/Orange/en_US/css/styles-l.css during development.

Which CLI command would the developer use to create symlinks for the en_US locale?

A.
bin/magento dev:theme:deploy --locale='en__US' --theme='Vendor/Orange' css/styles-1
A.
bin/magento dev:theme:deploy --locale='en__US' --theme='Vendor/Orange' css/styles-1
Answers
B.
bin/magento dev:source-theme:deploy --type=Mless' --locale='en_US' --theme='Vendor/Orange' css/styles-1
B.
bin/magento dev:source-theme:deploy --type=Mless' --locale='en_US' --theme='Vendor/Orange' css/styles-1
Answers
C.
bin/magento deploy:mode:set theme --locale='en_US' --area='frontend' css/styles-1
C.
bin/magento deploy:mode:set theme --locale='en_US' --area='frontend' css/styles-1
Answers
Suggested answer: B

Explanation:

The bin/magento dev:source-theme:deploy command is used to create symlinks for frontend theme files during development. This command allows the developer to modify source files without running static content deployment every time. The developer can use parameters to specify the type, locale, theme, and file names for creating symlinks. For example, to create symlinks for a CSS file named styles-l.css for the Vendor/Orange theme and the en_US locale, the developer can use:

bin/magento dev:source-theme:deploy --type=less --locale=en_US --theme=Vendor/Orange css/styles-l

The other two options are incorrect because they do not create symlinks for frontend theme files. The bin/magento dev:theme:deploy command is used to register themes with Magento and clear caches. The bin/magento deploy:mode:set command is used to change the application mode.

Reference:Adobe Commerce Developer Documentation,Adobe Inc.


Total 50 questions
Go to page: of 5