An Amazon MWAA DAG fails to load with ModuleNotFoundError for a third-party Python library absent from the environment's dependencies. The environment uses a versioned requirements.txt file in S3; which actions install the missing dependency? (Choose two.)
Choose 2 answers
Show the answer
Correct answersA. Add a compatible library version to requirements.txt and upload it to S3.D. Update the environment to use the new requirements.txt object version.
AWhy this is right: Declaring the missing library in requirements.txt makes it available for installation during the environment update.
BWhy not this: Additional workers provide task capacity but do not install missing Python dependencies.
CWhy not this: Task retries apply to task execution, not a missing dependency that prevents DAG parsing.
DWhy this is right: MWAA must reference the new requirements file version to apply the dependency change.
Add the missing package to requirements.txt and update the MWAA environment to reference the new S3 object version so dependencies are installed. Task retries cannot resolve an import failure that prevents the DAG from loading.