SAP-C02 · Question #110
A company manages an on-premises JavaScript front-end web application. The application is hosted on two servers secured with a corporate Active Directory. The application calls a set of Java-based…
The correct answer is A. Host the web application on Amazon S3. Use Amazon Cognito identity pools (federated identities) C. Create an API layer with Amazon API Gateway. Rehost the microservices on AWS Fargate F. Replatform the database to Amazon Aurora MySQL Serverless. To migrate the on-premises application to AWS, host the JavaScript front-end on Amazon S3 with Amazon Cognito for secure authentication, front the Java microservices with API Gateway running on AWS Fargate, and replatform the clustered MySQL database to Amazon Aurora MySQL…
Question
A company manages an on-premises JavaScript front-end web application. The application is hosted on two servers secured with a corporate Active Directory. The application calls a set of Java-based microservices on an application server and stores data in a clustered MySQL database. The application is heavily used during the day on weekdays. It is lightly used during the evenings and weekends. Daytime traffic to the application has increased rapidly, and reliability has diminished as a result. The company wants to migrate the application to AWS with a solution that eliminates the need for server maintenance, with an API to securely connect to the microservices. Which combination of actions will meet these requirements? (Choose three.)
Options
- AHost the web application on Amazon S3. Use Amazon Cognito identity pools (federated identities)
- BHost the web application on Amazon EC2 with Auto Scaling. Use Amazon Cognito federation and
- CCreate an API layer with Amazon API Gateway. Rehost the microservices on AWS Fargate
- DCreate an API layer with Amazon API Gateway. Rehost the microservices on Amazon Elastic
- EReplatform the database to Amazon RDS for MySQL.
- FReplatform the database to Amazon Aurora MySQL Serverless.
How the community answered
(36 responses)- A56% (20)
- B28% (10)
- D6% (2)
- E11% (4)
Why each option
To migrate the on-premises application to AWS, host the JavaScript front-end on Amazon S3 with Amazon Cognito for secure authentication, front the Java microservices with API Gateway running on AWS Fargate, and replatform the clustered MySQL database to Amazon Aurora MySQL Serverless for managed, scalable, and cost-effective operation.
Hosting the JavaScript front-end on Amazon S3 provides a highly available, serverless, and maintenance-free solution for static web content, while Amazon Cognito identity pools enable secure user authentication and federation, meeting the AD integration and secure access requirements.
Hosting the web application on Amazon EC2, even with Auto Scaling, would still require managing and maintaining the underlying EC2 instances, which contradicts the explicit requirement to 'eliminate the need for server maintenance.'
Amazon API Gateway provides the required secure API layer for the microservices, and rehosting the Java-based microservices on AWS Fargate eliminates the need for server maintenance by providing serverless container compute, directly addressing the 'eliminate the need for server maintenance' requirement.
While Amazon Elastic Kubernetes Service (EKS) with API Gateway provides scalability, using EKS typically involves managing EC2 worker nodes (unless using Fargate profiles), which adds more operational overhead compared to AWS Fargate directly, making it less aligned with the 'eliminate server maintenance' goal.
Amazon RDS for MySQL is a managed service but is provisioned capacity and doesn't offer the same automatic scaling down to zero capacity or cost savings during idle periods as Aurora Serverless, making it less optimal for highly variable workloads compared to F.
Replatforming the clustered MySQL database to Amazon Aurora MySQL Serverless is ideal for variable workloads, as it automatically scales capacity up and down based on demand and incurs no cost when idle, perfectly aligning with the 'eliminate the need for server maintenance' and cost optimization goals for the given usage pattern.
Concept tested: Serverless architecture, static website hosting, managed container services, serverless database, authentication
Source: https://aws.amazon.com/serverless/sam/
Community Discussion
No community discussion yet for this question.