SAP-C02 exam dumps

SAP-C02 practice question 659 of 678

AWS Certified Solutions Architect - Professional. Professional level, Amazon Web Services. Free question with the correct answer and a full explanation.

SAP-C02 Question 659

Select 2

Your company is migrating a microservices application to AWS. The application consists of multiple services that need to run in containers, communicate securely with each other, and scale independently. The team has decided to use Amazon ECS with Fargate for deployment. Which of the following tasks should you perform to ensure the application meets the requirements? (Choose TWO)

  1. A

    Configure an Application Load Balancer (ALB) to route traffic between microservices using service discovery.

  2. B

    Create an ECS task definition for each microservice and specify the Fargate launch type.

  3. C

    Manually provision and manage EC2 instances to run the ECS tasks.

  4. D

    Use AWS App Mesh to enable secure communication between microservices.

  5. E

    Deploy a single ECS service for all microservices to simplify management.

Show answer and explanation

Correct answers: B, D

Explanation

To meet the requirements of a microservices architecture, you need to ensure that each service can scale independently and communicate securely. Using separate ECS task definitions for each microservice ensures independent scaling and management. AWS App Mesh provides secure communication, service discovery, and advanced traffic management features, making it the best choice for inter-service communication in this scenario. Fargate eliminates the need to manage infrastructure, simplifying the deployment process.

  • A. Incorrect.

    Using an Application Load Balancer (ALB) is helpful for routing traffic from external clients but is not required for internal service-to-service communication. Service discovery in ECS does not rely on ALB.

  • B. Correct.

    Creating separate ECS task definitions for each microservice and specifying the Fargate launch type allows you to run each service independently and scale them separately, meeting the application's requirements.

  • C. Incorrect.

    Manually provisioning and managing EC2 instances is not required when using Fargate, as it is a serverless compute engine that eliminates the need to manage the underlying infrastructure.

  • D. Correct.

    AWS App Mesh is the recommended solution for enabling secure and reliable communication between microservices in a distributed application. It integrates with ECS and supports service discovery, encryption, and traffic control.

  • E. Incorrect.

    Deploying a single ECS service for all microservices is not recommended because it does not allow each microservice to scale independently or be managed separately, which contradicts the given requirements.

Timed practice exam

Take a SAP-C02 practice test under exam conditions

75 questions in 180 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam