Exam4Training

Adobe AD0-E710 Adobe Commerce Front-End Developer Expert Online Training

Question #1

An Adobe Commerce developer has created a custom .phtml template, and added it to the Layout XML:

Which two options can be used to ensure that custom-template.phtml is rendered? (Choose two.)

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: BD
Question #2

An Adobe Commerce developer wants to enhance security on the storefront using Google reCAPTCHA.

Which step would the Adobe Commerce developer take to enable Google reCAPT CHA through the admin?

  • A . Configure Google reCAPTCHA in Stores > Settings > Configuration > General > Web > Google reCAPTCHA Storefront.
  • B . Configure Google reCAPTCHA in Stores > Settings > Configuration > Security > Google reCAPTCHA Storefront .
  • C . Configure Google reCAPTCHA in Stores > Settings > Configuration > Advanced > Developer > Google reCAPTCHA Storefront .

Reveal Solution Hide Solution

Correct Answer: B
Question #3

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

  • A . grunt watch
  • B . grunt less
  • C . grunt start

Reveal Solution Hide Solution

Correct Answer: A
Question #4

Which two files in a theme would generate styles for a mobile view of an Adobe Commerce store? (Choose two.)

  • A . /web/css/styles-1.less
  • B . /web/css/print.less
  • C . /web/css/styles-m.less
  • D . /web/css/_styles.less

Reveal Solution Hide Solution

Correct Answer: A C
Question #5

An Adobe Commerce developer is extending a theme from Magentoblank and wants to override parent styles.

Which file does the developer need to change to override the parent theme styles?

  • A . web/css/source/_extends.less
  • B . web/css/source/_extend.less
  • C . web/css/source/_theme.less

Reveal Solution Hide Solution

Correct Answer: B
Question #6

In developer mode, which library is used to compile .less files during Client-side LESS compilation?

  • A . less,js
  • B . config,js
  • C . compile,js

Reveal Solution Hide Solution

Correct Answer: A
Question #7

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
  • B . Option B
  • C . Option C

Reveal Solution Hide Solution

Correct Answer: B
Question #8

An Adobe Commerce developer has created a widget Vendor_Module/js/custom-widget.js

Which option can be used to call this widget?

  • A .
  • B .
  • C .

Reveal Solution Hide Solution

Correct Answer: C
Question #9

An Adobe Commerce developer needs to override the catalog product list template located in vendor/magento/module-catalog/view/fronted/templates/product/list.phtml

What pattern would the Adobe Commerce developer use to override the file in a custom theme?

  • A . <theme_dir>/Magento_Catalog/view/frontend/templates/product/list.phtml
  • B . <theme_dir>/Magento_Catalog/templates/product/list.phtml
  • C . <theme_dir>/Module_Catalog/templates/product/list.phtml

Reveal Solution Hide Solution

Correct Answer: A
Question #10

Which set of commands must be run in order to remove a module that was installed using Composer?

A)

B)

C)

  • A . Option A
  • B . Option B
  • C . Option C

Reveal Solution Hide Solution

Correct Answer: C

Question #11

An Adobe Commerce developer wants to use LESS variables to make the default color of the text links match the default color of the body text. While keeping upgradability in mind, how would the developer make this modification?

A)

B)

C)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: C
Question #12

An Adobe Commerce Developer needs to implement a modal widget in a Knockout template.

How would the developer initialize the modal widget in .html file?

A)

B)

C)

  • A . Option A
  • B . Option B
  • C . Option C

Reveal Solution Hide Solution

Correct Answer: C
Question #13

An Adobe Commerce developer is customizing buttons for a custom theme that inherits Magento/blank theme and needs to override the default values.

Where would the default values for the buttons be located?

  • A . lib/web/css/source/lib/_buttons.less
  • B . lib/web/less/source/lib/_buttons.less
  • C . lib/web/css/source/lib/_button.less

Reveal Solution Hide Solution

Correct Answer: A
Question #14

An Adobe Commerce developer has been asked to add text to an email template that supports translations.

Which two options would they use during their implementation? (Choose two.)

  • A . {{trans "Lorem Ipsum is simply duamy text of the printing"}}
  • B . {{translations "Lorem Ipsum is simply dummy text of the printing")}
  • C . {{trans items" ”%items” items=numItem”}}
  • D . {{translations items" ”%items” items=numItem”}}

Reveal Solution Hide Solution

Correct Answer: A,C
Question #15

An Adobe commerce developer wants to initialize a JavaScript component using a data attribute.

Which option would initialize the JavaScript component?

  • A . <nav data-mage-init=’ {”<component_name>”:{….}}’></nav>
  • B . <nav data-init=’ {<component_name>”; {…}}’></nav>
  • C . <nav data-bind=”{<component_name>”: {…}} ‘><?nav>

Reveal Solution Hide Solution

Correct Answer: A
Question #16

An Adobe Commerce developer is using a view model within an existing block:

What are two ways to access the view model class in the template? (Choose two.)

  • A . $block->getviewModel()
  • B . $block->getData( ‘ view_model ‘ )
  • C . $block->getData( ‘ viewModel ‘ )
  • D . $block->viewModel()

Reveal Solution Hide Solution

Correct Answer: A B
Question #17

An Adobe Commerce developer has created a custom mixin to use in several places inside of their LESS files.

How would they apply this custom mixin inside a class called .user-menu?

A)

B)

C)

  • A . Option
  • B . Option
  • C . Option

Reveal Solution Hide Solution

Correct Answer: B
Question #18

An Adobe Commerce developer needs to output the width of a product on the product description page.

How would the developer escape HTML in a template using Adobe Commerce 2.4.0 and above?

  • A . <?=$block->escaphtml($serviceModel->getWidth()) ?>
  • B . <?= $escaper->escapHtml($viewModel->getwidth())?>
  • C . <?=$escaper->escape($viewModel->getWidth()) ?>

Reveal Solution Hide Solution

Correct Answer: B
Question #19

An Adobe Commerce developer wants to apply a knockout binding to a <div> to run a function, onClick(), when it’s clicked.

Which two solutions would the developer use to achieve this? (Choose two.)

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A D
Question #20

An Adobe Commerce developer needs to add a search field inside a .phtml template.

How would the developer initialize the "quick search widget?

A)

B)

C)

  • A . Option A
  • B . Option B
  • C . Option C

Reveal Solution Hide Solution

Correct Answer: B

Question #21

An Adobe Commerce developer needs to install a new module that loads static files.

To avoid issues with static files, which mode would the developer need to be in?

  • A . production
  • B . default
  • C . developer

Reveal Solution Hide Solution

Correct Answer: C
Question #22

An Adobe Commerce developer needs to update several default variables used to style emails.

Which file would be used to change the LESS variables for email templates in a theme?

A)

B)

C)

  • A . Option A
  • B . Option B
  • C . Option C

Reveal Solution Hide Solution

Correct Answer: A
Question #23

An Adobe Commerce developer is attempting to modify a template, file.phtml , found Keeping upgradability in mind, where would the changes to the template be made?

  • A . app/design/frontend/Custom/Theme/Vendor_Hodule/tMipl«tes/file.phtml
  • B . app/code/Vendor/Module/view/frontend/templates/file.phtml
  • C . app/design/frontenfl/Custom/Theme/vendor_Module/web/template/file.phtml

Reveal Solution Hide Solution

Correct Answer: A
Question #24

An Adobe Commerce developer needs to add a static variable note in email templates. The custom variable is added in the Admin panel under System > Other Settings > Custom Variables.

Which option would the developer use to add the variable in the email template content?

  • A . {{customVar code=note}}
  • B . {{var note}}
  • C . {{config path="system/variables/note"}}

Reveal Solution Hide Solution

Correct Answer: A
Question #25

An Adobe Commerce developer has been asked to add orange_view_index layout handle

in the email template which is placed at.

Vendor_Orange/view/frontend/layout/orange_view_index.xml as:

Which option would the developer use to add the layout handle in the email template?

A)

B)

C)

  • A . Option A
  • B . Option B
  • C . Option C

Reveal Solution Hide Solution

Correct Answer: C
Question #26

An Adobe Commerce developer is trying to remove a block using the <remove name=’test.block”-/> tag in a layout XML file but it shows an error and doesn’t work.

Which tag would be applied to fix the error?

  • A . Use <referenceBlock name="test.block" remove»"true"/>
  • B . Use <referenceBlock name=”test.block" delete–true”/>
  • C . USe <remove name=”Custom_Module:test.block"/>

Reveal Solution Hide Solution

Correct Answer: A
Question #27

An Adobe Commerce developer needs to add the color scheme of a partner company, which is being promoted only in transactional emails.

What file would the developer use to add email variables?

  • A . source/email-variables.less
  • B . source_email-variables.less
  • C . source/_variables.less

Reveal Solution Hide Solution

Correct Answer: A
Question #28

Which Ul component property is used for cross tracking property changes?

  • A . listens
  • B . links
  • C . exports

Reveal Solution Hide Solution

Correct Answer: A
Question #29

An Adobe Commerce developer has been asked to override the registration email template.

What pattern would they use to override the registration email template in a custom theme?

  • A . <theme_dir>/<ModuleVendorName>_<ModuleMame>/email
  • B . <theme_dir>/email
  • C . <theme_dir>/<ModuleVendorName>_<ModuleName>/emails

Reveal Solution Hide Solution

Correct Answer: C
Question #30

An Adobe Commerce developer needs to add an icon to the "Add to cart" button within a custom theme. The custom theme is child theme of the Magento/blank theme.

What is the purpose of using file in a custom theme?

  • A . It is used to remove duplicated styling code located in a LESS file in both parent and child theme.
  • B . It is used to override any styling code located in a LESS file in parent theme with any styling code located in 3 LESS file in a child theme.
  • C . It is used to merge any styling code Located in a LESS file in parent theme with code in file in a child theme.

Reveal Solution Hide Solution

Correct Answer: C
Exit mobile version