For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeAWS Solutions Architect Professional (SAP-C02)AWS Solutions Architect Professional SAP-C02 Practice Exam 1Question 32
    Hard1 markMultiple Choice
    Domain 4.2: New Architecture DesignModernizationMicroservicesArchitecture Patterns

    AWS SAP-C02 · Question 32 · Domain 4.2: New Architecture Design

    A company is refactoring a legacy monolithic application into microservices. The legacy application uses a single relational database. The architect wants to ensure that each new microservice manages its own data independently, but they still need to perform complex queries across data owned by multiple microservices. What is the BEST architectural pattern?

    Answer options:

    A.

    Keep the single relational database and allow all microservices to connect to it directly.

    B.

    Database-per-service pattern with an event-driven architecture to replicate data to a central data lake for complex queries.

    C.

    Use AWS Step Functions to orchestrate synchronous API calls between microservices to gather data for queries.

    D.

    Migrate all data to Amazon DynamoDB and use DynamoDB Streams to perform table joins.

    How to approach this question

    Apply the microservices 'database-per-service' pattern and use CQRS/Event Sourcing concepts for analytics.

    Full Answer

    B.Database-per-service pattern with an event-driven architecture to replicate data to a central data lake for complex queries.✓ Correct
    In a microservices architecture, each service should own its data (Database-per-service). To perform complex queries across domains, use event streams (e.g., Kinesis, EventBridge) to replicate data to a central data lake or data warehouse (like S3/Athena or Redshift).

    Common mistakes

    Keeping the shared database, which defeats the purpose of microservices.
    Question 31All questionsQuestion 33

    Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 1

    75 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01An enterprise has 50 VPCs across two AWS Regions. They need to establish transitive routing betwe...HardQ02A company uses AWS Organizations. The security team wants to ensure that no IAM user or role can ...MediumQ03An application requires a relational database with an RPO of 1 second and an RTO of less than 1 m...HardQ04A company is setting up a new multi-account environment. They want to automate the provisioning o...MediumQ05An organization wants to allocate AWS costs to specific business units. They use AWS Organization...Hard
    View all 75 questions →