DOP-C02 Question 183
Single answerYour organization is migrating its containerized workloads to AWS. The team has decided to use AWS Fargate for running containers, but during testing, you notice that the application requires access to the underlying host for a specific use case. Based on these requirements, which AWS service or configuration should you choose instead?
- A
Use Amazon ECS with AWS Fargate and enable privileged mode
- B
Use Amazon ECS with EC2 launch type and configure the containers to run in privileged mode
- C
Use AWS Lambda to replace the containerized workload
- D
Use Amazon EKS with AWS Fargate for your containers
Show answer and explanation
Correct answer: B
Explanation
AWS Fargate is a serverless container platform that abstracts infrastructure details, which makes it unsuitable for workloads requiring access to the underlying host. By using Amazon ECS with the EC2 launch type, you can manage the EC2 instances yourself and enable privileged mode on the containers, allowing the application to access the host as needed. This solution meets the application's specific requirements.
- A. Incorrect.
AWS Fargate is a serverless container platform that abstracts the underlying infrastructure. It does not provide access to the host or support privileged mode, making it unsuitable for this use case.
- B. Correct.
Amazon ECS with EC2 launch type allows you to manage your own EC2 instances as container hosts. You can enable privileged mode on the containers to allow access to the underlying host, making this option suitable for your specific requirements.
- C. Incorrect.
AWS Lambda is not designed for running containers that require access to the underlying host. It is a serverless compute service that abstracts infrastructure completely and is therefore unsuitable for this scenario.
- D. Incorrect.
Amazon EKS with AWS Fargate also abstracts the underlying infrastructure and does not provide access to the host. This option would not meet the application's requirements.