Exam:AD0-E718
Title:
Thesafer,easierwaytohelpyoupassAdobeAD0-E718exam
1.Youaredevelopinganewpaymentmethod.Itisrequiredthatanynewordercreatedwiththispayment methodneedstohaveaspecificcustomstatusAssumethestatushasbeenaddedtothesystemalready, assignedtotheprocessingstate,andtheneworderstateforthepaymentmethodisprocessing.
Howdoyousetthecustomstatusonordersplacedwiththenewpaymentmethod?
AAddacustomstatuscodetotheMagisthecorrectwaytomodifytheUl
componeento\Sales\Model\Order-\Paymentclassasa$newOrderStatusconstructorparameterusing dixml

BCreateasystemconfigurationoptionorderstatusandsetthestatuscodeasitsvalue
CCreateanobserverfortheeventsalesordersetstatus,getthe$statusparameterandsetthenew statususing$status->setStatus()
DCreateacommandsetOrderStatusandaddittoacommandPoolwithanamesetstatus
Answer:C
2.Youaretaskedtoworkonamessagequeuemodule.
Whenlookingatthequeueconfigurationyouseethefollowing:
Keepinginmindmaintainability,youchangeitto:
Whatwillhappen?
AThiscodewillcancelallthetopicstartingwithcustomer
B.Thiscodewillnotworkasmessagequeuedoesnotallow#wildcard
CThiscodewillreplaceallofthedifferenttopicsas#isthesymbolforeverything
D.Thiscodewillreplaceonlysomeofthetopics
Answer:D
3Youareworkingonaprojectwithalargedatabasewithmanyproducts,salesrulesandCMSpages
ThemerchantisgoingtouseMagentoStagingforscheduledupdates,buttheyweretoldthatuseof StagingwillmodifyallSQLqueriesandslowdownwebsiteperformance

WhatmodificationdoesMagentoStagingmaketoexistingSQLqueries?
AItcreatesacopyofthestagedtablewiththestageddataandjoinsthenewtabletoreplaceoriginal valueswiththestagedones
BEveryquerywhichusesstagedentitieswillhaveanadditionaljointothestagingupdatetablefiltered bythecurrentversion
CMagentostagingdoesnotmodifyanyexistingqueriessoithasnoadditionalimpact
Thesafer,easierwaytohelpyoupassAdobeAD0-E718exam
D.Foreveryquerythatusesstagedentitiesitaddsanadditionalwerestatementtofilterarowbythe currentversion
Answer:D
4SupposeyouneedtoaddacustomcssfileinlayoutXMLinsuchawaythatitshouldload asynchronouslytoimprovethepageloadperformance
Whatisthecorrectattributeforthis:
Aasync
Bdefer
Crel Diecondition
Answer:B
5.Youneedtoincludethecustomeraccountmenuonacustomstorefrontpage,butonlywhenthe methodMyCompany\\lyModule\ViewModel\MyView::hasCustomerMenu()returnstrue Howdoyouaccomplishthis?
AInthepageactioncontroller,injecttheLayoutinterfaceandifhasCustonerMenu()returnstrue,call $layout->addHandle(‘custooeraccount')
BCreateanafterpluginforMagento\Framework\View\UyoutInterface::getOutput()andif hasCustomerMenuOreturnstrue,Call$subject->addHandledcustomeraccount')
CInthepageactioncontroller,ifhasCustomer-Menu()returnstrue,beforereturningthepageresultcall Spage->addHandleCcuston»raccount')
DInthepage'slayoutXMLfile,add<updatehandle="customeraccount"
if="MyCompany\MyModule\ViewModel\MyView::hasCustomerMenu">
Answer:D
6Supposeyouareworkingonaspecificuicomponetformwherefront-endcustomerscanupdatetheir nameandphonenumberonlywhentheadminusersetstheeditablefieldflagto1forhissubmitteddata fromthebackend.
Accordingtothisflag,whenloadingthedataintheformforfront-endusers,howwouldyoucheckand customizetoenable/disablethenameandphonenumberfields?
AInuicomponetxml,underfieldsetnode,includetheFormProviderJavascriptcomponent “MagentoUi/js/form/provider”andextendittocustomizethespecificfieldswhendataisbeingpopulated byit
B.Inuicomponetxml,underfieldsetnode,includetheFormProviderJavascriptcomponent “MagentoUi/js/form/dataProvider”andextendittocustomizethespecificfieldswhendataisbeing populatedbyit
CInuicomponetxml,underDataSourcenode,includetheFormProviderJavascriptcomponent “MagentoUi/js/form/provider”andextendittocustomizethespecificfieldswhendataisbeingpopulated byit
DInuicomponetxml,underDataSourcenode,includetheFormProviderJavascriptcomponent “MagentoUi/js/form/dataProvider”andextendittocustomizethespecificfieldswhendataisbeing populatedbyit
Answer:C
Thesafer,easierwaytohelpyoupassAdobeAD0-E718exam
7Youaretroubleshootinganissuewherearelatedproductruleisnotshowingtheproductexpectedbya user.
Yourunthiscommand:
binmagentocache:cleantargetrule
Whatimpactdoesthishave?
AProductstoDisplaycalculationwillbeclearedfromtheMagentocache
BHTMLoutputoftargetruleblockswillbeclearedfromtheMagentocache
CCachedselectstatementswillbeclearedfromtheMagentocache
DCachedselectstatementswillbeclearedfromactionselectcolumnofthemagentotargetruletable
Answer:D
8YouneedtobuildacustommoduletoaddanoticetotheAdvancedInventorysectionontheproduct form.Thenoticetextcanbespecifiedinthesystemconfiguration.
Howdoyouimplementthis?
A.Youaddapluginontheform\Magento\Cataiog\Ui\DataProvid«r\Product\Form\ProductDataProviderto addafieldintheAdvancedInventorysection
B.YOUaddapluginon
Magento\CatalogInventory\Ui\DataProvider\Product\Form\Modifier\AdvancedInventorytomodifythe Sectionmetadata
CYouinjectacustomblockintothereferencecontainerinthecatalogproductindexlayout
DYouaddafieldtoproductformxmlasachildofthestockdatafieldset
Answer:D
9Whenyoureferenceafactoryorproxyinaclassconstructor,theseclassesaregeneratedbydefault insidegenerateddirectory,iftheyarenotpresentincodebase WhichMagentoclassisresposibleforthis?
AObjectManager
B.FileManager
CClassManager
D.IntanceManager
Answer:A
10Youareimplementingarequirementtoexcludeallshippingrateslessthan$50ifthereisaspecific productintheshoppingcart.
Howdoyoudothis?
ACreateanafterpluginforthemethod\Magento\shiPping\Modei\shipPing::collectivesandaccessthe rateresultobjectusingthegetResuhomethodoftheShippingclassYoucanupdatethelistofratesin theresultobject
BCreateanobserverfortheeventshippingratescollectafter-Intheobserveryouhaveaccesstothe ratesresultobjectwhichcontainsalltheratesYoucansetanewlistofratestotheresultobject CCreateanafterpluginforthemethod
\Hageino\checkoutUpi\shippinginfonaationManageDein::getShippingRatesThemethodreturnsalistof rateswhichyoucanfilterintheplugin
Thesafer,easierwaytohelpyoupassAdobeAD0-E718exam
D.Createashoppingcartpricerulewithaconditionofhavingtheproductinthecartandanactionto excludeshippingrateslessthan$50
Answer:D
11YouaremakingamoduleMyCompanyMyModuleandthemerchantasksforanattributethatisonly availabletosimpleandconfigurableproductsThisneedstobedefinedinthecatalogeavattributetable Howcanwecreatethisbehaviorduringthecreationofthisattribute?
Answer:B
12Youneedtocreatealistofwarehouseswithasetofdetailsintheconfigurationvalues:warehouse name,warehousepostcodeForthis,supposeyoucreatedacustomconfigurationfileunderyour module'setc/warehouseslistxml
Nowwhatshouldbethenameofit'sXSDschemaforthisxmlfilevalidation:
Aetc/warehouseslistxsd
B.etc/xsd/warehouseslist.xsd
Cetc/warehouses/listxsd
D.xsd/warehouseslist.xsd
Answer:A