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

A software as a service (SaaS) company has developed a multi-tenant environment. The company uses Amazon DynamoDB tables that the tenants share for the storage layer. The company uses AWS Lambda functions for the application services.

The company wants to offer a tiered subscription model that is based on resource consumption by each tenant. Each tenant is identified by a unique tenant ID that is sent as part of each request to the Lambda functions. The company has created an AWS Cost and Usage Report (AWS CUR) in an AWS account. The company wants to allocate the DynamoDB costs to each tenant to match that tenant's resource consumption.

Which solution will provide a granular view of the DynamoDB cost for each tenant with the LEAST operational effort?

Answer options

Correct answer: B

Explanation

Option B is correct because since the DynamoDB tables are shared across multiple tenants, resource-level tagging (Option A) cannot distinguish individual tenant costs within a single table. Logging the exact Read Capacity Units (RCUs) and Write Capacity Units (WCUs) consumed per transaction to CloudWatch Logs provides the exact metrics needed to accurately allocate shared table costs. Other options either use inaccurate proxies like item counts (Option C) or response sizes (Option D), which do not map directly to DynamoDB's pricing model, and the AWS Pricing Calculator is not designed for programmatic billing reconciliation.