FreeAdobeAD0-E704 PracticeExamQ&As AdobeCertifiedMaster-AdobeCommerceArchitect https://www.passcert.com/AD0-E704.html


FreeAD0-E704PracticeExamFromPasscertforYourBestPreparation 1.SupposeintheproductrestAPIinMagento,youaddedanew attribute.ButthisattributecanbeaccessedbyAPIconsumersonly whentheyhaveaccesspermission. Howdoyoucreatetheattributesfollowingtheabovecondition? A.Newattributesmustbecreatedascustom _ attributetorestrictthe accessusingACL B.Newattributemustbecreatedasextension _ attributetorestrictthe accessusingACL C.Wecan’tcreateaccesspermissionforRESTAPI,it’sonly applicableforentityandrepository. D.NewattributesmustbecreatedbyextendingtheproductAPI interface,torestrictaccessusingACL. Answer:B

FreeAD0-E704PracticeExamFromPasscertforYourBestPreparation 2.Amerchantwantstosendemailnotificationstothosecustomersaftera weekwhoplacedtheorderbutdidn'tpay.Supposeemailcontentisalmost similartothedefaultorderemailtemplatecontentwithsomeadditionaltext,so youdecidedtousethesamebutinanewcustomtemplate. Howyoupasstheorderobjecttotheemailtemplatesothatitwillrenderthe alldataofdefaulttemplate? A.Createjsonofallvariablesthatareusedintheemailtemplateandpassto setTemplateVarsmethodof_transportBuilderinsatance. B.Loadtheorderusingincrement_idandusegetData()toconvertittoarray andthenpasstosetTemplateVarsmethodof_transportBuilderinstance. C.Loadtheorderusingincrement_idandpassthisobjecttosetTemplateVars methodof _transportBuilderinstance. D.Noneofthese. Answer:D

FreeAD0-E704PracticeExamFromPasscertforYourBestPreparation 3.Afurnituremerchanthave100kproductsinthestore.Inacustom productlistpage,headvisedyoutoenablethecachingasperuser paginatetheproducts. Sowhatshouldtheapproachtocachetheblockdataasper paginationrequest: A.InblockclasstoHtml()method,definecache_lifetime,cache_tags andcache _key_<current_page_here> B.Inblockclass _construct()method,definecache_lifetime, cache _tagsandcache_key_<current_page_here> C.InblockclasstoHtml()method,set_isScopePrivatepropertyto falseasperrequestedpagenumber. D.Inblockclass _construct()method,set_isScopePrivatepropertyto falseasperrequestedpagenumber. Answer:B

B.ThisreferencesaPHPclassthatmustimplement
\Magento\Framework\View\Element\UiComponent\DataProvider\Ui ComponentInterface.Anditcanalsoextendorimplementthe \Magento\Ui\DataProvider\ModifierPoolDataProvider Answer:AB
A.TheclassattributedefinesDataProviderclasswhichistheprimary sourceofanydataormetadatathatthecomponentneedsorwilluse.
C.TheclassattributedefinesUiComponentclasswhichistheprimary sourceofanydataormetadatathatthecomponentneedsorwilluse.
FreeAD0-E704PracticeExamFromPasscertforYourBestPreparation 4.ConsiderbelowcodeinaUiComponentxmlfile: Magedeal\Employee\Ui\DataProvider\Employee\DataProvider employee_data_sourceentity_idid Whatistheapplicationof?
\Magento\Framework\View\Element\UiComponent\DataProvider\Da taProviderInterface.Anditcanalsoextendorimplementthe \Magento\Ui\DataProvider\ModifierPoolDataProvider
D.ThisreferencesaPHPclassthatmustimplement

FreeAD0-E704PracticeExamFromPasscertforYourBestPreparation 5.Supposeyouarebuildinganinquiryformusinguicomponent.Ithas afeaturethatcustomercaneditthesubmitteddatalaterifhewantsto edit. Whatshouldthelogicheretoimplement,inordertoenabletheform forre-edit: A.DataProviderclassprovidesexecute()methodwhichisresponsible fordataloading. B.DataProviderclassprovidesgetDataSourceData()methodwhichis responsiblefordataloading. C.DataProviderclassprovidesprepare()methodwhichisresponsible fordataloading. D.DataProviderclassprovidesgetData()methodwhichisresponsible fordataloading. Answer:D

FreeAD0-E704PracticeExamFromPasscertforYourBestPreparation 6.SupposeyouneedtoaddacustomcssfileinlayoutXMLinsucha waythatitshouldloadasynchronouslytoimprovethepageload performance. Whatisthecorrectattributeforthis? A.async B.defer C.rel D.ie _ condition Answer:B

FreeAD0-E704PracticeExamFromPasscertforYourBestPreparation 7.Youdefinedacustomlayoutfile1column-2footers.xmlunder /view/frontend/layouts.xml.Now,whatistheconventionalpathto creatingthecustomlayoutfile1column-2footers.xml? A.<module _dir>/view/frontend/page_layout B.<module _dir>/view/frontend/layout C.<module _dir>/etc/frontend/page_layout/ D.<module _dir>/etc/frontend/layout Answer:A

FreeAD0-E704PracticeExamFromPasscertforYourBestPreparation 8.SupposeyouneedtoaddanadmingridusinguiComponent.ifpage URLendswithbanners/index/index,thenwhichbasicuiComponent youwoulduseandwhatshouldbethepagelayoutfile: A.WecannotdefineuiComponentfileinapage-layoutfile. B.Formcomponentinthebanner_index_index.xml C.Listingcomponentinthebanner_index_index.xml D.Gridcomponentinthebanner_index_index.xml Answer:C

FreeAD0-E704PracticeExamFromPasscertforYourBestPreparation 9.Considerbelowcommand:bin/magentodev:theme:create frontendvendorthemenamePleaseselectcorrectoptions basedonit(choose2): A.devissubjectand frontendisasubjectareaargument B.devisgroupand frontendisasubjectareaargument C.themeissubjectand createisanaction D.themeisgroupand createisanaction Answer:BC

FreeAD0-E704PracticeExamFromPasscertforYourBestPreparation 10.Whichofthefollowingtaskcan'tbeperformedusingcommandlineinterfaceinMagento? A.Managingindexes,includingreindexing. B.Generatingnon-existentclassessuchasfactoriesandinterceptorsfor plug-ins,generatingthedependencyinjectionconfigurationforthe objectmanager. C.Createadminuser. D.Createfront-enduser. Answer:D
