Magento-2-Certified-Associate-Developer Free Certification Exam Material from NewPassLeader with 105 Questions [Q40-Q62]

Share

Magento-2-Certified-Associate-Developer Free Certification Exam Material from NewPassLeader with 105 Questions

Use Real Magento-2-Certified-Associate-Developer - 100% Cover Real Exam Questions 

NEW QUESTION 40
Products may be accessed using SEO friendly URLs like /my-product instead of /catalog/product/view/id/{ID} How is this one?

  • A. An event observer adds RewriteRules to .htaccess on product save
  • B. Magento\Catalog\Controller\Product\View::loadByUrlKey loads product pages using the url_key attribute value
  • C. Using a URL Rewrite stored in the database connecting the request path with the target path
  • D. A plugin on \Magento\UrlRewrite\Controller\Router::match loads products by the url_key attribute

Answer: C

 

NEW QUESTION 41
You have loaded an instance of Magento\Catalog\Model\Productin the $productvariable. You know
that the loaded product has the type configurable with four variations. These variations have the prices: $10,
$12, $12, $15.
What will be the result of the $product->getFinalPrice()call?

  • A. 0
  • B. 1
  • C. [10, 12, 12, 15]
  • D. [10, 12, 15]

Answer: A

 

NEW QUESTION 42
What is a valid use case for an aroundplugin?

  • A. The execution of the pluginized method must be suppressed
  • B. The arguments of the afterplugins must be modified
  • C. The execution of the beforeand afterplugins must be suppressed
  • D. The arguments of the beforeplugins must be modified

Answer: C

Explanation:
Explanation/Reference: https://devdocs.magento.com/guides/v2.3/extension-dev-guide/plugins.html

 

NEW QUESTION 43
Where do you change the frontName for the admin router?

  • A. app/etc/env.php
  • B. app/etc/local.xml
  • C. app/etc/config.xml
  • D. composer.json

Answer: A

 

NEW QUESTION 44
You got a notification about error that occurred on a production environment. The merchant gave you the error
identifier.
How do you find the error message based on the identifier?

  • A. An error message is written to the database table error_log with an error_idfield matching the
    identifier
  • B. A file with a name matching the identifier is written to the var/reportfolder
  • C. An error is written to the var/log/exception.logfile including the identifier
  • D. The error is sent to the pre-configured error email with the identifier in the subject

Answer: D

 

NEW QUESTION 45
Which entity in Magento supports scoped attributes?

  • A. Customer
  • B. CMS Page
  • C. Customer Address
  • D. Category

Answer: D

 

NEW QUESTION 46
You have been asked to display details from the customer's latest order on the customer's account dashboard (customer/account/). You create a new custom template to show the information.
How do you obtain an order repository so you can fetch an order?

  • A. In your block, add a method with the following:return ObjectManager::getInstance()->get(OrderRepositoryInterface::class);
  • B. Create a view model and specify an OrderRepositoryInterface argument in the _construct method
  • C. In your template, add the following:$orderRepository=ObjectManager::getInstance()->get(OrderRepositoryInterface::class);
  • D. In your template, add the following:$orderRepository = new OrderRepository();

Answer: A

 

NEW QUESTION 47
You are adding a new entry to the backend menu that appears after
Marketing > SEO & Search > Site Map
You see the existing site map menu item is declared by the node:

What two actions do you take to configure the new menu entry location? (Choose two.)

  • A. Specify parent="Magento_Sitemap::catalog_sitemap"
  • B. Specify sortOrder="100"
  • C. Specify parent="Magento_Backend::marketing_seo"
  • D. Specify item XML in the file etc/adminhtml/menu/marketing/seo/menu.xml

Answer: B,D

 

NEW QUESTION 48
Which method of a Magento resource model will remove a record from the database?

  • A. erase
  • B. remove
  • C. delete
  • D. clean

Answer: C

Explanation:
Explanation/Reference: https://magento.stackexchange.com/questions/123840/how-to-use-resource-model-delete?rq=1

 

NEW QUESTION 49
While reviewing a layout file named sales_order_view.xml you notice the element
<update handle="customer_account"/>
What is the purpose of this element?

  • A. Replaces the customer_account handle with sales_order_view
  • B. Nothing, this element has been deprecated
  • C. Adds the customer_account handle to the page's handles list
  • D. Updates the current page handle to customer_account

Answer: C

 

NEW QUESTION 50
You are tasked to install an extension to the merchant's Magento instance.
The extension is developed by the company called MyCompany and its codebase is available from all four
locations listed below.
Which two installations options do you choose from to prevent version conflicts during upgrade? (Choose two.)

  • A. Use Magento web setup wizard to pull the code from Magento's composer repository
  • B. Download the extension code from the developer's website, and put it into app/code
  • C. Clone the code from GitHub and put it into the vendor directory
  • D. Use composer CLI to pull the code from MyCompany's repository

Answer: B,D

 

NEW QUESTION 51
A module MyModule needs to send notifications to customers only when the account was modified from a mobile app using the REST web APIs.
You decided to implement an observer for customer_save_after_data_object event.
In which file do you declare the observer?

  • A. etc/events.xml
  • B. etc/webapi_rest/events.xml
  • C. etc/adminhtml/events.xml
  • D. etc/webapi/rest_events.xml

Answer: A

Explanation:
Explanation/Reference: https://magento.stackexchange.com/questions/256268/how-to-trigger-observer-by-rest-api

 

NEW QUESTION 52
A module declares the route:

What is the layout handle of the storefront path /custom/feature/?

  • A. custom_feature
  • B. mymodule_feature_index
  • C. mymodule_feature
  • D. custom_feature_index

Answer: A

 

NEW QUESTION 53
You are adding a child node to the product.info block using the XML:

How will this block be rendered?

  • A. Automatically if the block class Custom implements the _toHtml method
  • B. Child block nodes are automatically rendered as HTML
  • C. By calling $block->getChildHtml('mynewblock') in the parent block's template
  • D. The layout is invalid since block elements cannot be nested

Answer: C

Explanation:
Explanation/Reference: https://magento.stackexchange.com/questions/49361/how-to-put-my-block-in-catalog-product-view- page

 

NEW QUESTION 54
You are adding a new menu item to the admin backend which will link to a custom backend page.
The declaration of the route:

What do you specify as the menu item action attribute value so it links to /admin/mycompany/mymodule/?

  • A. action="adminhtml/mycompany/mymodule/"
  • B. action="admin/mycompany/mymodule/"
  • C. It is not possible without extending the adminhtml route in routes.xml
  • D. action="mycompany/mymodule/"

Answer: D

 

NEW QUESTION 55
\Magento\Sales\Model\Api\OrderRepositoryInterface::getList accepts a SearchCriteriaInterface to filter and sort information.
What class assists in creating an instance for SearchCriteriaInterface?

  • A. \Magento\Framework\Api\SearchCriteriaFactory
  • B. \Magento\Framework\Api\SearchCriteriaBuilder
  • C. \Magento\Sales\Model\Order\SearchCriteria
  • D. \Magento\Backend\Api\SearchCriteriaGenerator

Answer: B

Explanation:
Explanation/Reference: https://github.com/magento/magento2/blob/2.3/lib/internal/Magento/Framework/Api/ SearchCriteriaInterface.php

 

NEW QUESTION 56
Which three scopes can be used to set different System Configuration values in Magento? (Choose three.)

  • A. Store
  • B. Store View
  • C. Language
  • D. Website
  • E. Area

Answer: B,D,E

 

NEW QUESTION 57
How do you add a foreign key to an existing table created by another module?

  • A. This can only be done with raw SQL in a Schema Patch file
  • B. Run the command bin/magento setup:db-schema:upgrade <table> <constraint declaration>
  • C. Create etc/db_schema.xml file with the table node and constraint child node
  • D. Create the etc/db_constraints.xml file and specify foreign key there in the constraint node

Answer: B

 

NEW QUESTION 58
You have added a new attribute origin of the type varchar to the product entity.
Which two calls will filter a product collection with origin set to "California"? (Choose two.)

  • A. $collection->joinAttribute('origin', 'catalog_product/origin', 'origin', 'California");
  • B. $collection->addAttributeToFilter('origin', "California");
  • C. $collection->addFieldToFilter('origin', "California");
  • D. $collection->addAttributeToSelect('origin', "California");

Answer: B,D

 

NEW QUESTION 59
A merchant asks you to extend customer functionality to allow customer accounts to be associated with two or more billing addresses.
How is this implemented?

  • A. By adding the attribute like customer_address_billing2 and customizing both My Account and Checkout functionality to use that new attribute
  • B. This is out-of-the box functionality
  • C. By altering the customer_entity table, adding the field billing_address2, and customizing both My Account and Checkout functionality to use that new field
  • D. By changing the System Configuration setting: Customer>Allow multiple billing addresses to Yes

Answer: A

 

NEW QUESTION 60
You are developing a new theme which inherits from the Magento_Luma theme.
How is this accomplished?

  • A. Run the CLI command bin/magento dev:theme:inherit Magento_Luma
  • B. Add Magento/luma to etc/view.xml
  • C. Specify the parent theme in Magento admin > Design > Configuration
  • D. Add Magento/luma to theme.xml

Answer: D

 

NEW QUESTION 61
You are reviewing a Magento module and see a directory named Service.
What can you determine from this directory's name?

  • A. It is where the module's service contracts are stored
  • B. You need to review the files in this folder to understand its purpose
  • C. It is where API-related configuration resides
  • D. It is where the API response cache is stored

Answer: B

 

NEW QUESTION 62
......


Magento Magento-2-Certified-Associate-Developer Exam Syllabus Topics:

TopicDetails
Topic 1
  • Using the Entity-Attribute-Value (EAV) Model
Topic 2
  • Magento Customization & Architecture Techniques
Topic 3
  • Customizing the Checkout Process
  • Customizing the Catalog
  • Customizing the Magento UI
Topic 4
  • Working with Databases in Magento
  • Developing with Adminhtml
Topic 5
  • Sales Operations; Customer Management
  • Request Flow Processing

 

Dumps Brief Outline Of The Magento-2-Certified-Associate-Developer Exam: https://www.newpassleader.com/Magento/Magento-2-Certified-Associate-Developer-exam-preparation-materials.html