SAA-C03 Question 127
Select 2Your company wants to migrate a monolithic application to containers to improve scalability and portability. The application currently runs on multiple EC2 instances and uses a shared file system for storing logs. Which of the following steps would help you design a successful migration to containers on AWS? (Choose TWO)
- A
Break the monolithic application into smaller microservices and containerize each component separately.
- B
Use AWS Fargate to run the containers without managing the underlying EC2 instances.
- C
Continue using the shared file system directly inside the containers without modifications.
- D
Store the application configuration in environment variables or AWS Secrets Manager for better portability.
- E
Run the containers on Amazon Lightsail for better cost optimization.
Show answer and explanation
Correct answers: A, D
Explanation
To successfully migrate a monolithic application into containers, it's important to break the application into smaller, independently managed microservices. Using environment variables or AWS Secrets Manager for configurations ensures better portability and security. These steps help align with the best practices for containerization and application modernization on AWS.
- A. Correct.
Breaking the monolithic application into smaller microservices allows each component to be independently developed, scaled, and deployed, which aligns with containerization best practices.
- B. Incorrect.
AWS Fargate is a valid choice for running containers, but it is not directly related to the migration process itself. The key focus of this question is on migration steps.
- C. Incorrect.
Directly using a shared file system inside the containers can lead to issues with scalability and performance. Instead, more container-native storage solutions like Amazon EFS or S3 should be considered.
- D. Correct.
Storing application configuration in environment variables or AWS Secrets Manager ensures the containers are portable and do not have hardcoded dependencies.
- E. Incorrect.
Amazon Lightsail is not specifically designed for containerized workloads and is generally used for simpler applications. For containerized workloads, services like ECS or EKS are more appropriate.