Soru

Zorluk: OrtaAWS Compute Services

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.)

  1. AWS Fargate to deploy the containerized API microserviceCevap
  2. AWS Lambda to execute the database logging utility codeCevap
  3. C
    Amazon EC2 to run the database logging utility code as a continuously running virtual machine
  4. D
    Amazon EC2, with operating system security patches managed by AWS, to host the containerized API microservice

Cevap

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.

Adım Adım Çözüm

1
Analyze the containerized microservice requirement.
The microservice needs to run continuously and scale automatically without server management.
AWS Fargate matches this containerized serverless requirement because it manages the underlying infrastructure for container execution.
2
Analyze the database logging utility requirement.
The logging utility is short-lived, executes for only a few seconds, and is triggered by database events.
AWS Lambda is the ideal serverless choice for this because it executes code in response to events without running a persistent server.
3
Evaluate and eliminate incorrect compute choices based on operational responsibility and efficiency.
Amazon EC2 requires manual server configuration and OS patching, and running an EC2 instance continuously for occasional database triggers is cost-inefficient.
Eliminating options that violate the AWS Shared Responsibility Model or introduce unnecessary administrative and financial overhead aligns the architecture with AWS best practices.

Anahtar Kavram

Selecting appropriate AWS compute services based on serverless execution models, workload characteristics, and operational management boundaries.
Tahmini Süre:1m 30s
Bu soruyu puanla