最新の[2023年10月15日]AD0-E720試験問題集で有効で更新された問題集
無料お試しまもなく終了!100%有効なAD0-E720試験問題集には52問があります
質問 # 15
An Adobe Commerce developer has created a system configuration field:
Using Layout XML, how can the visibility of a block be controlled by a system configuration?
- A. <block name="block.name" template="Vendor_Module::template.phtml="
ifconfig="vendor/general/enable" /> - B. <block name="block.name" template="Vendor_Module::template.phtml"
ifconfig="general/module/enable" /> - C. <block name="block.name" template=''Vendor_Module:
:template.phtml"ifconfig="module/general/enable" />
正解:A
解説:
Explanation
To control the visibility of a block using a system configuration, the developer should use the ifconfig attribute in the <block> tag. The ifconfig attribute should specify the path to the system configuration field that determines whether the block is visible or not. For example:
<block name="block.name" template="Vendor_Module::template.phtml" ifconfig="vendor/general/enable" /> This will render the block only if the vendor/general/enable system configuration field is set to true. The module/general/enable and general/module/enable paths are not valid and will not work, as they do not match the system configuration field defined in the image. References: [Layout instructions], [System configuration]
質問 # 16
An Adobe Commerce developer needs to pass JSON data to a JavaScript component while keeping XSS prevention strategies in mind.
Which two options would the developer use? (Choose two.)
- A.

- B.

- C.

- D.

正解:A、B
解説:
Explanation
To pass JSON data to a JavaScript component while keeping XSS prevention strategies in mind, the developer should use the following options:
Option A: Use the x-magento-init script tag with the data-mage-init attribute and the JSON.parse function to initialize the component with the JSON data. This option is secure because it does not use any HTML tags or attributes that can be exploited by XSS attacks.
Option C: Use the text/x-magento-init script tag with the type attribute and the JSON.parse function to initialize the component with the JSON data. This option is secure because it does not use any HTML tags or attributes that can be exploited by XSS attacks.
The following options are not secure and should not be used:
Option B: Use the script tag with the type attribute and the escapeHtmlAttr function to initialize the component with the JSON data. This option is not secure because it uses the escapeHtmlAttr function, which is meant for escaping HTML attributes, not JSON data. This function can introduce double quotes in the JSON data, which can break the JSON syntax and cause errors.
Option D: Use the script tag with the type attribute and the escapeJsQuote function to initialize the component with the JSON data. This option is not secure because it uses the escapeJsQuote function, which is meant for escaping JavaScript strings, not JSON data. This function can introduce backslashes in the JSON data, which can break the JSON syntax and cause errors.
質問 # 17
An Adobe Commerce developer has found following code:
After compiling the .less file into a .ess file, what will be the results of the code above?
- A.

- B.

- C.

正解:B
解説:
Explanation
After compiling the .less file into a .css file, the result of the code above will be option B. This is because the
.less file uses a mixin called .animation() that takes two parameters: the name of the animation and the duration. The mixin defines a set of vendor-prefixed properties for the animation and assigns them the values of the parameters. For example:
animation(@name; @duration) { -webkit-animation-name: @name; -webkit-animation-duration: @duration;
-moz-animation-name: @name; -moz-animation-duration: @duration; animation-name: @name; animation-duration: @duration; } When the mixin is called with the values "fade" and "2s", it will generate the following CSS code:
-webkit-animation-name: fade; -webkit-animation-duration: 2s; -moz-animation-name: fade;
-moz-animation-duration: 2s; animation-name: fade; animation-duration: 2s; Option A is not correct because it does not use the vendor prefixes for the animation properties. Option C is not correct because it uses the wrong values for the animation name and duration. References: [LESS Mixins],
[CSS Animations]
質問 # 18
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 "Page in Websites", they set the "URL" field as "custom.page".
- B. Under 'Content", they set the "Path" field as "custom_page".
- C. Under 'Search Engine Optimization", they set the "URL Key" field as "custom_page''.
正解:C
解説:
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. References: [Adobe Commerce Developer Documentation], [Adobe Inc.]
質問 # 19
An Adobe Commerce developer wants to create a sticky widget.
How would the widget be initialized using the data-mage-init attribute?
- A.

- B.

- C.

正解:A
解説:
Explanation
Option B is the correct way to initialize a widget using the data-mage-init attribute. The attribute value should be a JSON object with the widget name as the key and the widget options as the value. Option A is incorrect because it uses a string instead of an object for the attribute value. Option C is incorrect because it uses a colon instead of a comma to separate the widget name and the options.
質問 # 20
What is the difference between styles-l.less and styles-m.less ?
- A. styles-i.less is used to generate desktop-specific styles and stytes-m.less is used to generate only mobile-specific styles.
- B. styles-i.less is used to generate desktop-specific styles and stytes-m.less is used to generate basic and mobile-specific styles.
- C. styles-i.less is used to generate basic and mobile-specific styles and stytes-m.less is used to generate desktop-specific styles.
正解:B
解説:
Explanation
The styles-l.less and styles-m.less files are two main LESS files that are used to generate CSS files for different devices and screen sizes. The styles-l.less file is used to generate styles-l.css, which contains desktop-specific styles that are applied only when the screen width is greater than 768px. The styles-m.less file is used to generate styles-m.css, which contains basic and mobile-specific styles that are applied for all devices and screen sizes. The other options are not correct and do not reflect the purpose of these files. References:
[Stylesheets], [Responsive web design]
質問 # 21
By creating a Custom_Module, an Adobe Commerce Developer has implemented a new Page Builder viewport for tablet devices but the viewport's tablet selector button is missing.
The button .svg has been properly added to the path: CustomJ^odule/web/css/images/switcher/switcher-tablet
.svg. How the developer would implement the viewport button icon?
A)
By setting the node icon in the theme's etc/view.xml file for the respective viewport configuration data.
B)
By setting the node button-image in the theme's etc/view.xml file for the respective viewport configuration data.
C)By adding the node image in the theme's etc/viewport.xml file for the respective viewport configuration data.
D)
By adding the node image in the theme's etc/viewport.xml file for the respective viewport configuration data.
- A. Option A
- B. Option B
- C. Option C
- D. Option D
正解:C
解説:
Explanation
Option C is the correct way to implement the viewport button icon. The image node specifies the path to the
.svg file relative to the web/css directory of the module. Option A is incorrect because there is no icon node in the viewport configuration data. Option B is incorrect because there is no button-image node in the viewport configuration data. Option D is incorrect because the image node value should not include the web/css part of the path.https://api.flutter.dev/flutter/widgets/PageView-class.html
質問 # 22
An Adobe Commerce developer has been asked to move a block called country from the container sidebar to the container content, the block has to be the last child on the content container.
Which layout instruction would be used to move the block?
- A. <move element="country-element"destination="content-element"/>
- B. <move element="country" destination="content" after="last-child"/>
- C. <moveelement = "country"destination="content" after="-"/>
正解:C
解説:
Explanation
To move a block from one container to another, the developer needs to use the <move> layout instruction with the element attribute specifying the name of the block and the destination attribute specifying the name of the container. The after attribute can be used to position the block relative to other blocks in the same container.
The value "-" means that the block will be placed after all other blocks, i.e., as the last child. The value
"last-child" is not valid for the after attribute and will not work. The element and destination attributes should use the names of the blocks and containers, not their aliases or classes. References: [Layout instructions],
[Move an element]
質問 # 23
An Adobe Commerce developer needs to display a URL in the template. How would the variable $ur1be securely output in the template?
- A. <?php echo $escaper->escapeLink($url) ?>
- B. <?php echo $escaper->escapeHtml($url) ?>
- C. <?php echo $escaper->escapeUrl($url) ?>
正解:C
解説:
Explanation
To display a URL in a template securely, the developer should use the escapeUrl method of the escaper object.
This method will encode any special characters in the URL that can be used for XSS attacks, such as &, <, >,
", ', etc. For example:
<?php echo $escaper->escapeUrl($url) ?>
The following methods are not suitable for displaying URLs and should not be used:
<?php echo $escaper->escapeLink($url) ?>: This method is used for escaping link attributes, not URLs.
It will encode any characters that are valid in URLs but invalid in HTML attributes, such as spaces, quotes, etc. For example:
<?php echo $escaper->escapeLink('https://example.com/?q=hello world') ?> // Output:
https://example.com/?q=hello%20world
<?php echo $escaper->escapeHtml($url) ?>: This method is used for escaping HTML content, not URLs. It will encode any characters that are valid in URLs but invalid in HTML content, such as &, <,
>, etc. For example:
<?php echo $escaper->escapeHtml('https://example.com/?q=<script>alert("XSS")</script>') ?> // Output:
https://example.com/?q=<script>alert("XSS")</script>
質問 # 24
An Adobe Commerce developer has been asked to implement a custom font specifically for emails. The Adobe Commerce developer has already added their font into the file system.
Keeping best practice in mind, which two files would need to be implemented to show the custom font in the email?
- A. Add in a lib-font-face mixin with the custom font name into the newly created file.
- B. /Vendor/Theme/web/css/source/_extend.less
Use the ^import font function with the url of the custom font from the theme.
/Vendor/Theme/web/css/source/_email.less file - C. Add the font-family into the <head></head> of the email within the email template.
- D. Add in the styles to target the elements that require being changed.
/vendor/Theme/web/css/source/_typography.less
正解:B、D
解説:
Explanation
To implement a custom font specifically for emails, the developer needs to do the following steps:
Add the custom font file to the web/fonts directory of the custom theme.
Use the @import font function with the url of the custom font from the theme in the
/Vendor/Theme/web/css/source/_extend.less file. This will import the custom font and make it available for use in other LESS files. For example:
@import font('custom-font', '@{baseDir}fonts/custom-font.ttf', 'truetype'); Add in the styles to target the elements that require being changed in the
/Vendor/Theme/web/css/source/_email.less file. This file is used to define the styles for email templates.
The developer can use the .lib-font-face() mixin to apply the custom font to specific selectors. For example:
lib-font-face( @family-name: @custom-font, @font-path: '@{baseDir}fonts/custom-font', @font-weight:
normal, @font-style: normal );
h1 { .lib-font-face( @family-name: @custom-font, @font-path: '@{baseDir}fonts/custom-font',
@font-weight: normal, @font-style: normal ); }
The /vendor/Theme/web/css/source/_typography.less file is not suitable for implementing a custom font for emails, as it is used for defining global typography styles for web pages. The <head></head> tag is not used for adding fonts in email templates, as it is not supported by most email clients. References: [Custom fonts],
[Email templates overview]
質問 # 25
Which Ul component property is used for cross tracking property changes?
- A. links
- B. listens
- C. exports
正解:B
解説:
Explanation
The listens property is used for cross tracking property changes in the UI component. The listens property defines the dependencies between the properties of different UI components. It allows one UI component to listen to the changes of another UI component's property and react accordingly. For example, the listens property can be used to update the value of a text field based on the selection of a dropdown menu
質問 # 26
An Adobe Commerce developer wants to override the following Layout XML file in the theme ExampleCorp/orange.
app/design/frontend/ExampleCorp/blank/Vendor_Module/layout/catalog_product_view.xml What path would the developer use inside the layout directory of the theme to override the file?
- A. /override/theme/ExampleCorp/blank/catalog_product_view.xml
- B. /override/ExampleCorp/blank/catalog_product_view.xml
- C. /catalog_product_view.xml
正解:C
解説:
Explanation
To override a layout XML file from a parent theme, the developer just needs to place the modified file in the same path relative to the layout directory of the child theme. In this case, the file would be app/design/frontend/ExampleCorp/orange/Vendor_Module/layout/catalog_product_view.xml. The override directory is not used for overriding layout files, but for overriding templates and web assets. References:
[Layout instructions], [Override templates and layout files]
質問 # 27
The merchant needs to create a new website, and is need modify a template the third party vendor's, because the customer is different. The file is found in a module here: app/code/Vendor/Module Keep it simple in your mind!
- A. Create a new module for extends layout.xml and include new file.phtml.
app/code/Vendor/Module_Two/view/frontend/templates/file.phtml - B. Create another layout for the new website and configure new file.phtml.
app/code/Vendor/Module/view/frontend/templates/file.phtml - C. Create a new theme, define a new website and customize in app/design.
app/design/frontend/Custom/Theme/Vendor_Module/templates/file.phtml
正解:C
解説:
Explanation
The best way to customize a template file from a third-party module is to create a new theme that inherits from the parent theme and override the template file in the app/design/frontend/Custom/Theme/Vendor_Module/templates directory. This way, the customization is isolated from the original module and can be applied to a specific website or store view. Creating another layout file or a new module would not be as simple or flexible as creating a new theme. References: Frontend development guide, [Create a theme], [Theme inheritance]
質問 # 28
An Adobe Commerce developer wants to create a new theme Vendor_Orange which extends from MagentoMuma. Which file is responsible for specifying the parent theme?
- A. view.xml
- B. registration.php
- C. theme.xml
正解:C
解説:
Explanation
The theme.xml file is responsible for specifying the parent theme of a custom theme. The file should contain the <parent> element with the value of the parent theme's directory, such as
<parent>MagentoMuma</parent>. The view.xml file is used to configure the theme's images, fonts, and layout. The registration.php file is used to register the theme in the system. References: [Create a theme],
[theme.xml]
質問 # 29
In which mode would the stylesheet customizations display immediately after you reload a page in a browser?
- A. server- side compilation mode
- B. client-side compilation mode
- C. less-side compilation mode
正解:B
解説:
Explanation
In client-side compilation mode, the stylesheet customizations will display immediately after reloading a page in a browser. This is because in this mode, the LESS files are compiled into CSS files by the browser using JavaScript. This mode is useful for development and debugging purposes, as it allows quick changes and previews of the styles. However, this mode is not recommended for production, as it can affect the performance and compatibility of the site. The other modes, server-side compilation and LESS compilation, require running commands or tools to compile the LESS files into CSS files on the server side, which can take some time and delay the display of the customizations. References: [Compilation modes], [Compile LESS]
質問 # 30
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. US6 <referenceBlock name="test.block" remove="true"/>
- B. Use<referenceBlock name="test.block" delete="true'7>
- C. Use <remove name="Custom_Module:test.block"/>
正解:A
解説:
Explanation
To remove a block using layout XML, the developer should use the <referenceBlock> tag with the name attribute specifying the name of the block and the remove attribute set to true. For example:
<referenceBlock name="test.block" remove="true"/>
This will remove the block from the layout and prevent it from rendering. The <remove> tag is not valid and will cause an error. The name attribute should not include the module name, as it is not part of the block name.
The delete attribute is not valid and will not work. References: [Layout instructions], [Remove an element]
質問 # 31
An Adobe Commerce developer needs to improve the time of first render of the pages. How would the developer achieve this?
- A. Enable CSS critical path
- B. Enable JavaScript minification
- C. Enable CSS file merging
- D. Use the quick static files deployment strategy
正解:A
解説:
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. References: Adobe Commerce Developer Documentation, Adobe Inc.
質問 # 32
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. CMS Page
- B. CMS Block
- C. Widget
正解:B
解説:
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. References: Adobe Commerce Developer Documentation, Adobe Inc.
質問 # 33
Which two steps are required to delete a manually installed theme? (Choose two.)
- A. Disable the theme from the backend admin configuration
- B. Remove the theme using the theme:uninstall CLI command
- C. Remove the theme record from the theme database table
- D. Remove the directory app/design/frontend/<VendorNAME/<ThemeName>
正解:C、D
解説:
Explanation
To delete a manually installed theme, the developer needs to remove the theme directory from the app/design/frontend directory and also delete the corresponding record from the theme table in the database.
The theme:uninstall CLI command is only used for deleting themes thatare installed as Composer packages.
Disabling the theme from the backend admin configuration does not delete the theme files or records, but only makes it unavailable for use. References: [Delete a theme], [theme:uninstall]
質問 # 34
An Adobe Commerce developer wants to initialize a JS component via Layout XML in custom reference block test. component. Which Layout XML instruction would be used to initialize this JS component?
- A.

- B.

- C.

正解:B
解説:
Explanation
Option A is the correct way to initialize a JS component via Layout XML in a custom reference block. The x-magento-init tag is used to specify the component name and the options. Option B is incorrect because it uses the data-mage-init attribute, which is only valid for HTML elements. Option C is incorrect because it uses the x-magento-component tag, which is deprecated and should not be used.
https://developer.adobe.com/commerce/frontend-core/
https://experienceleague.adobe.com/docs/certification/program/technical-certifications/ac/ac-expert/ac-e-fedevel
質問 # 35
......
AD0-E720試験問題集で100%高得点させるAD0-E720試験解答がこちら:https://jp.fast2test.com/AD0-E720-premium-file.html