Question 56
An Adobe Commerce developer has just finished creating a new custom entity, a block that extends
\Mangento\Framework\View|Element\abstractBlock that lists all of the existing entities and a controller with the appropriate handle to display the block.
The developer now wants to implement cache on the block so that when one of the custom entities is saved, the cache of the block is automatically invalidated.
According to best practices- what are the two steps to accomplish this? (Choose two.)
\Mangento\Framework\View|Element\abstractBlock that lists all of the existing entities and a controller with the appropriate handle to display the block.
The developer now wants to implement cache on the block so that when one of the custom entities is saved, the cache of the block is automatically invalidated.
According to best practices- what are the two steps to accomplish this? (Choose two.)
Question 57
Which two techniques can be used to protecta storefront POST action againstCross Site Request Forgery (CSRF) attacks? (Choose two.)
Question 58
You are reviewing a Magento module and see a directory named Service.
What can you determine from this directory's name?
What can you determine from this directory's name?
Question 59
You are building an tool that imports products from an ERP. There are 20 columns of additional information that are associated with each product. This extra information must also be associated with an update time to know when to refresh the data.
Keeping maintainability in mind, how do you build this into Magento?
Keeping maintainability in mind, how do you build this into Magento?
Question 60
An Adobe Commerce Developer is tasked with writing an importer for a custom entity. After the work is complete and deployed, they start receiving complaints from their client that the importer does not work and fails every time they use it.
The developer realizes that the client is importing a file which does not match the format required for the importer to process correctly.
What two features would the developer add to this importer to prevent this? (Choose two.)
The developer realizes that the client is importing a file which does not match the format required for the importer to process correctly.
What two features would the developer add to this importer to prevent this? (Choose two.)