DVA-C02 exam dumps

DVA-C02 practice question 9 of 399

AWS Certified Developer - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

DVA-C02 Question 9

Single answer

An e-commerce company is building a microservices-based application to handle user orders. The application consists of separate services for order processing, payment, and inventory management. The company wants to ensure loose coupling between services while enabling real-time communication. Which architectural pattern is best suited for this scenario?

  1. A

    Event-driven architecture

  2. B

    Monolithic architecture

  3. C

    Orchestration-based architecture

  4. D

    Choreography-based architecture

Show answer and explanation

Correct answer: A

Explanation

Event-driven architecture is the best choice for this scenario because it promotes loose coupling between microservices while enabling real-time communication. Each service can publish or subscribe to events without direct dependencies on other services, making it highly scalable and maintainable for a microservices-based application.

  • A. Correct.

    Event-driven architecture is ideal for microservices as it allows services to communicate asynchronously through events, ensuring loose coupling and real-time updates. This is suitable for the described use case.

  • B. Incorrect.

    Monolithic architecture is a single, tightly coupled application structure, which goes against the microservices design principle. It is not appropriate for this scenario.

  • C. Incorrect.

    Orchestration-based architecture involves a central controller coordinating service interactions, which introduces tighter coupling. It is less suited for the goal of loose coupling.

  • D. Incorrect.

    Choreography-based architecture allows services to interact through reactive events and is loosely coupled, but it is typically more suitable for complex workflows with high inter-service dependencies. While similar to event-driven architecture, the scenario doesn't explicitly describe such a workflow.

Timed practice exam

Take a DVA-C02 practice test under exam conditions

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

Start timed exam