Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E716 Topic 11 Question 46 Discussion

Actual exam question for Adobe's AD0-E716 exam
Question #: 46
Topic #: 11
[All AD0-E716 Questions]

A logistics company with an Adobe Commerce extension sends a list of reviewed shipment fees to all its clients every month in a CSV file. The merchant then uploads this CSV file to a "file upload" field in admin configuration of Adobe Commerce.

What are the two requirements to display the "file upload" field and process the actual CSV import? (Choose two.)

A)

B)

C)

D)

Show Suggested Answer Hide Answer
Suggested Answer: A, B

To display the 'file upload' field and process the actual CSV import, the following two requirements must be met:

The developer must create a new system configuration setting that specifies the path to the CSV file.

The developer must create a new controller action that handles the file upload and import process.

The system.xml file is used to define system configuration settings. The following XML snippet shows how to define a new system configuration setting for the CSV file path:

XML

<config>

<system>

<config>

<shipment_fees_csv_path>/path/to/csv/file</shipment_fees_csv_path>

</config>

</system>

</config>

The ControllerAdminhtmlShipmentFees controller class is used to handle the file upload and import process. The following code shows how to create a new controller action that handles the file upload and import process:

PHP

public function uploadAction()

{

$file = $this->getRequest()->getFile('shipment_fees_csv_file');

if ($file->isUploaded()) {

$importer = new ShipmentFeesImporter();

$importer->import($file);

}

return $this->redirect('adminhtml/system_config/edit/section/shipment_fees');

}


Contribute your Thoughts:

Jacquline
7 days ago
B and D, no doubt. Though I have to say, if the logistics company is still using CSV files in this day and age, they must be living in the stone age!
upvoted 0 times
...
Ricki
12 days ago
B and D, easy peasy. Though I'd love to see an option that just says 'magic' and makes the whole process automatic. That would be the dream!
upvoted 0 times
Ciara
20 hours ago
I agree, B and D are the requirements for the CSV import.
upvoted 0 times
...
...
Shenika
18 days ago
I'm going to have to go with B and D. Uploading a file is useless if you can't actually process the data, you know?
upvoted 0 times
...
Frederic
25 days ago
Option B and D look like the right choices here. Can't have the file upload without the actual import process.
upvoted 0 times
Raelene
6 days ago
Yes, without the import process, the file upload field would be useless.
upvoted 0 times
...
Hayley
12 days ago
I agree, Option B and D are the requirements for the file upload and CSV import.
upvoted 0 times
...
...
Junita
1 months ago
I'm not sure, but I think Option C might also be a requirement. It's better to double-check before selecting the answers.
upvoted 0 times
...
Hildred
1 months ago
I agree with Chauncey. Option A and B seem to be the correct choices based on the images provided.
upvoted 0 times
...
Chauncey
2 months ago
I think the requirements to display the 'file upload' field are options A and B.
upvoted 0 times
...
Denise
2 months ago
Definitely need the file upload field and the actual CSV import functionality. This is crucial for the logistics company to update their shipment fees.
upvoted 0 times
Brice
6 days ago
Got it. So we need both the file upload field and the CSV import functionality.
upvoted 0 times
...
Tamra
21 days ago
The other requirement is to process the actual CSV import after uploading the file.
upvoted 0 times
...
Cory
25 days ago
With both options selected, the logistics company can efficiently update their shipment fees.
upvoted 0 times
...
Stacey
27 days ago
Yes, that's one of the requirements. What's the other one?
upvoted 0 times
...
Edda
1 months ago
After that, we should choose Option D to process the actual CSV import.
upvoted 0 times
...
Huey
1 months ago
We need to make sure the file upload field is displayed in the admin configuration.
upvoted 0 times
...
Nana
1 months ago
We need to select Option A to display the file upload field.
upvoted 0 times
...
...

Save Cancel