ExamGecko
Home / Adobe / AD0-E711 / List of questions
Ask Question

Adobe AD0-E711 Practice Test - Questions Answers, Page 3

List of questions

Question 21

Report
Export
Collapse

Under which section should the soft dependency for a module be listed in app/code/<Vendor>/<Module>/composer.json file?

soft': {} ''optional'':{
soft': {} ''optional'':{
}''Suggest": {
}''Suggest": {
}
}
Suggested answer: B

Explanation:

In a composer.json file, soft dependencies for a module should be listed under the "suggest" section.

The "suggest" section is used to list packages that are recommended but not required for the module's functionality. Reference: https://getcomposer.org/doc/04-schema.md#suggest

asked 02/10/2024
Werner Deysel
35 questions

Question 22

Report
Export
Collapse

A developer delected lhat a piece of functionality implemented in a third-party module's plugin can be omitted. So, the developer decides to deactivate the plugin. How can a developer take this action?

The only way to deactivate a plugin is to remove it from di.xml file in the module where it was defined.The plugin can be deactivated In di.xml In a custom module using:
The only way to deactivate a plugin is to remove it from di.xml file in the module where it was defined.The plugin can be deactivated In di.xml In a custom module using:
<plugin name="pluginName' disabled="true7>
<plugin name="pluginName' disabled="true7>
The plugin can be deactivated in di.xml in a custom module using the code:<remove name-'pluginName" />
The plugin can be deactivated in di.xml in a custom module using the code:<remove name-'pluginName" />
Suggested answer: B

Explanation:

To deactivate a plugin, the developer can add the 'disabled' attribute in the di.xml file of a custom module using the following code: <plugin name="pluginName" disabled="true">. This will disable the specified plugin without the need to remove it from the di.xml file where it was defined.

Reference: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/plugins.html#disablingplugins

asked 02/10/2024
Victor Ogbonna
34 questions

Question 23

Report
Export
Collapse

How can a developer prioritize a plugin's execution, if possible?

The developer can use sorlOrder property by specifying a higher value than the target plugin.
The developer can use sorlOrder property by specifying a higher value than the target plugin.
This cannot be achieved as the plugins are always executed by their module's load order in app/etc/config.php file
This cannot be achieved as the plugins are always executed by their module's load order in app/etc/config.php file
The developer can use sortOrder property by specifying a lower value than the target plugin.
The developer can use sortOrder property by specifying a lower value than the target plugin.
Suggested answer: C

Explanation:

To prioritize a plugin's execution, a developer can use the 'sortOrder' property by specifying a lower value than the target plugin. The lower the sortOrder value, the higher the priority. Reference:

https://devdocs.magento.com/guides/v2.4/extension-dev-guide/plugins.html#declaring-a-plugin

asked 02/10/2024
jitendra makwana
36 questions

Question 24

Report
Export
Collapse

Which method type can be intercepted by plugins?

static
static
public
public
final
final
Suggested answer: B

Explanation:

Only public methods can be intercepted by plugins in Magento. Static and final methods cannot be intercepted. Reference: https://devdocs.magento.com/guides/v2.4/extension-dev- guide/plugins.html#before-after-and-around-methods

asked 02/10/2024
Yuwadee Srisathan
40 questions

Question 25

Report
Export
Collapse

Which command can be used to display a full list of enabled and disabled Magento modules?

bin/magento module:status
bin/magento module:status
bin/megento module:all
bin/megento module:all
bin/magento modulershow
bin/magento modulershow
Suggested answer: A

Explanation:

To display a full list of enabled and disabled Magento modules, use the command 'bin/magento module:status'. Reference: https://devdocs.magento.com/guides/v2.4/install-gde/install/cli/installcli- subcommands-enable.html

asked 02/10/2024
Samuel rodriguez
30 questions

Question 26

Report
Export
Collapse

Which directory contains language packages?

i18n
i18n
phrases
phrases
translations
translations
Suggested answer: A

Explanation:

Language packages are located in the 'i18n' directory in Magento. Reference:

https://devdocs.magento.com/guides/v2.4/config-guide/cli/config-cli-subcommands-i18n.html

asked 02/10/2024
Geert De Ridder
35 questions

Question 27

Report
Export
Collapse

How should a record be removed from a database which is using a model that was inherited from the

\Magento\Framework\Model\AbstractModel class?

Call the "unset" method on this model object
Call the "unset" method on this model object
Call the "delete" method on this model object
Call the "delete" method on this model object
Call the "remove" method on this model object
Call the "remove" method on this model object
Suggested answer: B

Explanation:

To remove a record from a database using a model inherited from the

\Magento\Framework\Model\AbstractModel class, call the "delete" method on the model object.

Reference: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/database.html#database-models

asked 02/10/2024
Jaime GONCALVES
45 questions

Question 28

Report
Export
Collapse

A developer wants to rename a column in a custom module, so both columns were added to db Which additional action, if any. is needed to migrate data between the two columns?

No additional action will be needed since the data is migrated automatically.
No additional action will be needed since the data is migrated automatically.
Add onCreate="migrateDataFrom(old_column_name)" in the column definition in db_schema.xml.
Add onCreate="migrateDataFrom(old_column_name)" in the column definition in db_schema.xml.
Add 'old’ attribute with the previous name of the column in the db_schema.xml.
Add 'old’ attribute with the previous name of the column in the db_schema.xml.
Suggested answer: B

Explanation:

To migrate data between two columns when renaming a column in a custom module, add onCreate="migrateDataFrom(old_column_name)" in the column definition in the db_schema.xml file. This will ensure that the data is migrated from the old column to the new column. Reference:

https://devdocs.magento.com/guides/v2.4/extension-dev-guide/declarative-schema/dbschema.html#on-create

asked 02/10/2024
Przemysław Doczkal
39 questions

Question 29

Report
Export
Collapse

Which attribute input type should a developer use for a boolean?

True/False
True/False
Text Swatch
Text Swatch
Yes/No
Yes/No
Suggested answer: C

Explanation:

For a boolean attribute in Magento, a developer should use the "Yes/No" input type. Reference:

https://devdocs.magento.com/guides/v2.4/ui_comp_guide/components/ui-form.html

asked 02/10/2024
Mohsin Raza
43 questions

Question 30

Report
Export
Collapse

A merchant is running an Adobe Commerce store, and there are two active store views for the English and German languages. A developer is creating an attribute programmatically and needs to make sure the attribute can have value tor both store views.

Which value must the attribute property "global'' have to complete this task?

Website
Website
Store
Store
Global
Global
Suggested answer: B

Explanation:

To make sure the attribute can have values for both store views, the attribute property "global" must have the value "Store". This allows the attribute to have different values for each store view.

Reference: https://devdocs.magento.com/guides/v2.4/extension-devguide/attributes.html#attribute-scope

asked 02/10/2024
Matthew Hillson
37 questions
Total 60 questions
Go to page: of 6