ExamGecko
Home Home / Adobe / AD0-E717

Adobe AD0-E717 Practice Test - Questions Answers, Page 2

Question list
Search
Search

Which command invalidates the index?

A.
bin/magento indexerreindex <index_name>
A.
bin/magento indexerreindex <index_name>
Answers
B.
bin/magento indexer:reset <index_name>
B.
bin/magento indexer:reset <index_name>
Answers
C.
bin/magento Indexerinvalldate <lndex_name>
C.
bin/magento Indexerinvalldate <lndex_name>
Answers
Suggested answer: B

Explanation:

The commandbin/magento indexer:reset <index_name>sets the status of the specified index to ''Invalid''.This means that the index needs to be updated before it can be used by Magento1.

Which index mode is valid?

A.
Update on refresh
A.
Update on refresh
Answers
B.
Update on invalidate
B.
Update on invalidate
Answers
C.
Update on save
C.
Update on save
Answers
Suggested answer: C

Explanation:

The valid index modes are update on save and update on refresh.

Which command should be used to refresh the cache using the command line?

A.
magentocacheclean<type>
A.
magentocacheclean<type>
Answers
B.
magentocacherefresh<type>
B.
magentocacherefresh<type>
Answers
C.
magentocachedelete<type>
C.
magentocachedelete<type>
Answers
Suggested answer: B

Explanation:

The commandmagentocacherefresh<type>clears and regenerates a specific cache type1.This is different frommagentocacheclean<type>, which only clears a specific cache type without regenerating it, andmagentocachedelete<type>, which deletes a specific cache type from the file system1.

Which has its own root category?

A.
Websites
A.
Websites
Answers
B.
Stores
B.
Stores
Answers
C.
Store Views
C.
Store Views
Answers
Suggested answer: B

Explanation:

In Magento, each store has its own root category, which defines the main category structure for that store1.Websites and store views do not have their own root categories, but they can share or inherit the root category of a store1.

A merchant has noticed an error in the checkout. The accessed URL is /checkout.

Where can the developer find the responsible controller in the Magento.Checkout module?

A.
Controller/lndex/lndex.php
A.
Controller/lndex/lndex.php
Answers
B.
Controller/lndex/Checkout.php
B.
Controller/lndex/Checkout.php
Answers
C.
Controller/Checkout/lndex.php
C.
Controller/Checkout/lndex.php
Answers
Suggested answer: C

Explanation:

The controller responsible for handling the /checkout URL is located in Controller/Checkout/Index.php in the Magento.Checkout module1.This controller extends from \Magento\Checkout\Controller\Index\Index, which implements the execute() method that renders the checkout page1.

What is the default store ID for the admin panel?

A.
0
A.
0
Answers
B.
1
B.
1
Answers
C.
-1
C.
-1
Answers
Suggested answer: A

A developer is creating a class \Vendor\Module\Model\MyModeL How should that class be defined as transient in di.xml?

A.
<type name='\Vendor\Module\Model\MyModer transient='true7>
A.
<type name='\Vendor\Module\Model\MyModer transient='true7>
Answers
B.
<type name='\Vendor\Module\Model\MyModer singleton='false7>
B.
<type name='\Vendor\Module\Model\MyModer singleton='false7>
Answers
C.
<type name='\Vendor\Module\Model\MyModer shared='false7>
C.
<type name='\Vendor\Module\Model\MyModer shared='false7>
Answers
Suggested answer: A

Explanation:

To define a class as transient in di.xml, the transient attribute should be set to true.

Code snippet

<type name='\Vendor\Module\Model\MyModel' transient='true'>

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

A.
suggest*: {
A.
suggest*: {
Answers
B.
} optional': {
B.
} optional': {
Answers
C.
} soft': {
C.
} soft': {
Answers
D.
}
D.
}
Answers
Suggested answer: C

Explanation:

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

{

'name': 'Vendor/Module',

'description': 'This is a sample module',

'type': 'magento2-module',

'version': '1.0.0',

'require': {

'php': '~7.3.0',

'magento/framework': '^2.4.0',

'soft': {

'magento/module-catalog': '^2.4.0'

}

}

}

How can a developer override a core class method in Adobe Commerce?

--> B. --> C

A.
A.
Answers
Suggested answer: A

Explanation:

The preference element in di.xml allows specifying a custom class that will be used instead of the original class when creating an object1.This can be used to override a core class method by extending the original class and overriding the method in the custom class1.The rewrite and argument elements are not valid for overriding core class methods in di.xml1.

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

A.
bin/magento module:all
A.
bin/magento module:all
Answers
B.
bin/magento modulestatus
B.
bin/magento modulestatus
Answers
C.
bin/magento module:show
C.
bin/magento module:show
Answers
Suggested answer: B

Explanation:

The commandbin/magento modulestatusdisplays the status of all modules, including enabled and disabled ones1.The commandbin/magento module:allis not valid, and the commandbin/magento module:showdisplays information about a specific module1.

Total 77 questions
Go to page: of 8