AWS Certified Solutions Architect – Professional (SAP-C02) — Question 166

A delivery company is running a serverless solution in the AWS Cloud. The solution manages user data, delivery information, and past purchase details. The solution consists of several microservices. The central user service stores sensitive data in an Amazon DynamoDB table. Several of the other microservices store a copy of parts of the sensitive data in different storage services.

The company needs the ability to delete user information upon request. As soon as the central user service deletes a user, every other microservice must also delete its copy of the data immediately.

Which solution will meet these requirements?

Answer options

Correct answer: C

Explanation

Option C is correct as it utilizes Amazon EventBridge to ensure that all microservices react to the user deletion event in real-time, allowing for immediate data deletion across all services. Option A relies on DynamoDB Streams and SQS, which may introduce delays between the deletion event and the subsequent actions in microservices. Option B uses SNS notifications, which can also lead to delays and does not guarantee immediate deletion. Option D is similar to A and may not provide the timely response needed for all services to delete user data simultaneously.