A company is planning to deploy a new application on AWS and has identified two specific compute requirements:
1. A containerized API microservice that runs continuously and must scale dynamically without the team managing or provisioning any underlying virtual servers.
2. A short-lived database logging utility that only executes for a few seconds whenever a new record is added to a database.
Which of the following AWS compute services should the company select to meet these requirements? (Select TWO.)
- AWS Fargate to deploy the containerized API microserviceAnswer
- AWS Lambda to execute the database logging utility codeAnswer
- CAmazon EC2 to run the database logging utility code as a continuously running virtual machine
- DAmazon EC2, with operating system security patches managed by AWS, to host the containerized API microservice
Answer
AWS Fargate to deploy the containerized API microservice, and AWS Lambda to execute the database logging utility code
The correct services are AWS Fargate and AWS Lambda. AWS Fargate is a serverless compute engine that runs containers without the customer needing to provision, configure, or scale virtual machines, which perfectly satisfies the continuous microservice requirement. AWS Lambda is a serverless compute service that automatically runs code in response to events (such as database changes) and scales dynamically, making it the most cost-effective and operationally efficient choice for short-lived logging tasks.
Step-by-Step Solution
Key Concept
Selecting appropriate AWS compute services based on serverless execution models, workload characteristics, and operational management boundaries.
Estimated Time:1m 30s