Magento2 Cert questions dump package 2.

Magento2 Cert questions dump package 2. Try this package to pre-exam cert. It will have you a lot of…

Example dump questions for magento2 cert package 2.

Please enter your email:

1. Correct way to declare a javascript mixin

 
 
 
 

2. You need to create a variation of the 2columns-left page layout. This new layout is named text. How do you instruct Magento regarding the new layout type?

 
 
 
 

3. What ways are possible to wrap a block with an HTML tag? (choose 2)

 
 
 
 

4. In which order the observers will get executed which are listening to the same event?

 
 
 
 

5. What Magento layout XML instructions instruct Magento to render HTML output? (choose 2)

 
 
 
 

6. What layout handle contains the layout instructions for rendering a product’s price?

 
 
 
 

7. You have written the following code for a router:
public function match (\Magento\Framework\App\RequestInterface $request)
{
if (strpos($request->getPathInfo(), ‘test’) === false) return;
$request->setModuleName(‘MyCompany_MyModule’)
->setControllerName(‘test’)->setActionName(‘test’);

return $this->actionFactory->create(
\Magento\Framework\App\Action\Forward::class, [‘request’ => $request]
);
}
What is the result of this code being executed when navigating to /test?

 
 
 
 

8. Which Magento areas natively allow products to be added to the cart? (choose 3)

 
 
 
 
 

9. In a Magento block, what is the protected method that is called in the setLayout method, but before _toHtml?

 
 
 
 

10. Keeping maintainability in mind, how do you add a new link to the customer account sidebar?

 
 
 
 

11. You are creating a new module and have specified this in the etc/module.xml:



However, after regenerating app/etc/config.php, the module load order is not changed. What is the solution?

 
 
 
 

12. How are Proxy classes created?

 
 
 
 

13. How would you go about creating an admin theme?

 
 
 
 

14. You have overridden a core Magento template in your theme. Your updates require logic from \MyClass\Path to render properly. Keeping upgradeability in mind, how do you make this logic available?

 
 
 
 

15. How will you configure varnish hosts for cache purging?

 
 
 
 

16. What requirejs-config.js configuration node allows you to replace another RequireJS module?

 
 
 
 

17. Which are the Magento’s deployment configuration files?

 
 
 
 
 

18. What are the 3 plugin types in a magento 2 installation? (choose 3)

 
 
 
 
 

19. What is the significance of the instruction the layout xml?

 
 
 
 

20. How do you configure a store configuration field to obscure input (password entry) and store that value securely? (choose 2)

 
 
 
 

21. What is the maximum amount of time for which varnish serves a stale object?

 
 
 
 

22. To add a custom router to the list of routers for the front controller in which xml file would you need to add/change?

 
 
 
 
 

23. You need to add a fee (additional to tax and shipping) to every order placed. In what file do you specify the new total?

 
 
 
 

24. You have created a custom theme and need to customize the view/frontend/templates/product/list.phtml file in the Magento_Catalog module. Where do you place this file inside your theme?

 
 
 
 

25. How would you enable dependency graph profiler?

 
 
 
 

26. Which of the following are auto generated in Magento 2? (choose 3)

 
 
 
 
 

27. Relationship between blocks and templates (block instances and block) (choose 2)

 
 
 
 

28. You have added a system configuration field Store Owner Name in module MyModule_MyStoreData. Now you need to add the default value for this field programmatically. In which file would you add this value?

 
 
 
 

29. Where does sensitive setting are written?

 
 
 
 

30. What must be done differently to properly generate a URL in the Magento backend?

 
 
 
 

31. What container contains the columns container?

 
 
 
 

32. Where are admin uiComponents located?

 
 
 
 

33. You are asked to override product/image.phtml in Magento_Catalog with a custom template in your theme, MyCompany_MyTheme. Where do you place this file?

 
 
 
 

34. While overriding a theme layout in your custom theme, at which location would you put the layout xml file?

 
 
 
 

35. Magento uses the concept of service contracts to create a blueprint for modules to communicate with each other. Where are these service contracts stored in a module?

 
 
 
 

36. Following is the block declaration in a layout xml. How would you access the block argument “customdata” in a template?


abcd

 
 
 
 

37. Which of following is correct?

 
 
 
 

38. What only happens in the Production deploy mode?

 
 
 
 

39. What are the required files for creating a new theme in a Magento 2 project? (choose 2)

 
 
 
 
 

40. You are evaluating a 3rd-party module and you see some custom functionality that is executed in an observer of the checkout_cart_add_product_complete. This functionality is expected to run every time a product is added to the cart. Is there a problem?

 
 
 
 

41. Which command is used to write system-specific settings to the system-specific configuration file app/etc/env.php

 
 
 
 

42. Where is the base template file for all Magento HTML requests located?

 
 
 
 

43. What is the significance of the “resource” attribute while defining the menus in the admin area?

 
 
 
 

44. What is static content signing?

 
 
 
 

45. A merchant wants to create a custom functionality where after a customer adds certain product to cart he’ll get a mail containing related products customer can buy. Now you need to create a new email template for this functionality where would you create the email template?

 
 
 
 

46. When creating a form field with a Magento PHP block grid, what configuration key prevents editing of the field?

 
 
 
 

47. What would you do to resolve Error 503 backend fetch failed?

 
 
 
 

48. Magento offers two commands that apparently clear the cache: bin/magento cache:clean and bin/magento cache:flush. Why is cache:clean the better command to run?

 
 
 
 

49. Which of the following scenarios will purge the varnish cache automatically in a magento store? (choose 2)

 
 
 
 
 

50. Which 3 are the static deployment strategies?

 
 
 
 
 

51. What class should you return from a controller’s execute method to redirect a visitor to another URL?

 
 
 
 

52. Which command would you run to create the database schema for the newly created module?

 
 
 
 

53. What interface is an event listener required to implement?

 
 
 
 

54. You need to implement a fallback for VAT ID validation to prevent downtime should the validator service be unavailable. How do you add the fallback?

 
 
 
 

55. Merchant want to add to every page same block instance to top and bottom of page content. But for styling purpose, we need to add different class names. What should we do?

 
 

Leave a Reply