A Linux application uses native libraries and a shared, writable POSIX file directory. It is moving from EC2 to multiple Linux tasks on AWS Fargate, and files must survive task replacement. Which migration actions meet these requirements? (Choose two.)
Choose 2 answers
Show the answer
Correct answersB. Mount an Amazon EFS file system into each application task.C. Build an image containing libraries compatible with the task's OS and CPU architecture.
AWhy not this: A virtual machine disk is not a runnable container image; the application must be packaged into a compatible image.
BWhy this is right: EFS provides shared POSIX file access and retains files independently of task lifecycles.
CWhy this is right: Compatible native libraries allow the application to execute in the selected task environment.
DWhy not this: Tasks do not share their local files merely because they run in the same Availability Zone.
EWhy not this: Ephemeral storage is local to a task and does not preserve shared files across task replacement.
FWhy not this: An image is a deployment artifact, not a shared writable filesystem for runtime changes.
Native libraries must match the container's operating system and CPU architecture. EFS supplies shared POSIX file storage that persists independently of tasks, whereas Fargate ephemeral storage is task-local and does not survive task replacement.