A company uses Azure Document Intelligence to extract data from invoices. They deploy the model to a container for on-premises processing. After deployment, they notice that the container consumes more memory than expected. What should they do to optimize memory usage?
Trap 1: Use the 'Read' model instead of the 'Layout' model
The 'Read' model is for text extraction, not for reducing memory.
Trap 2: Use the cloud API instead of the container
The cloud API may have different costs but does not solve the memory issue.
Trap 3: Reduce the batch size in the client application
Batch size affects throughput but not container memory allocation.
- A
Set the 'Memory' environment variable to a lower value in the container configuration
The container's memory usage can be controlled via the 'Memory' setting.
- B
Use the 'Read' model instead of the 'Layout' model
Why it fails: The 'Read' model is for text extraction, not for reducing memory.
- C
Use the cloud API instead of the container
Why it fails: The cloud API may have different costs but does not solve the memory issue.
- D
Reduce the batch size in the client application
Why it fails: Batch size affects throughput but not container memory allocation.