Allocating per-tenant DynamoDB cost with the least operational effort
Short answer
B Log tenant ID with consumed RCUs/WCUs per transaction and calculate per-tenant cost from those metrics plus overall DynamoDB cost.
Question
Key Takeaways
DynamoDB already emits consumed read/write capacity; logging tenant ID with RCU/WCU per transaction and aggregating on a schedule yields per-tenant cost visibility with the least operational overhead compared with tagging or re-partitioning tables.
A SaaS provider wants granular per-tenant DynamoDB cost with minimal operations. Logging the tenant ID and the consumed RCUs/WCUs per transaction to CloudWatch Logs and calculating tenant cost from those metrics plus the overall DynamoDB cost gives a fine-grained view without building a tagging or partitioning pipeline.
Common mistake: Assuming cost allocation tags (Option A) alone give DynamoDB per-tenant granularity — DynamoDB costs are not broken out by item or tenant via tags, so tags cannot isolate a single shared table's per-tenant consumption.
Expert Analysis
Why the Answer Is Correct
Option B meets the 'least operational effort' bar: the Lambda functions already receive the tenant ID, so logging it alongside the consumed RCUs and WCUs per transaction requires minimal code change. A scheduled calculation Lambda uses those logged capacity units with the overall DynamoDB cost from the Cost Explorer API to allocate cost per tenant. No table restructuring or tagging program is needed.
Why the Other Options Are Wrong
Option A relies on cost allocation tags, but DynamoDB does not attribute a shared table's cost to individual tenants via tags, so granularity is lost. Option C adds a new partition key and an Athena pipeline, increasing operational effort. Option D uses CloudWatch Logs Insights and Pricing Calculator but still lacks a clean per-tenant consumption metric and adds manual pricing work.
Community Comment Notes
kejam (likes 5) endorses B as the least-effort fine-grained approach and references the AWS SaaS cost-per-tenant blog. TomTom prefers A for built-in tagging, but tagging cannot isolate per-tenant consumption in a single shared table.
Official Reference
https://aws.amazon.com/blogs/apn/optimizing-cost-per-tenant-visibility-in-saas-solutions/
This link opens the official vendor documentation in a new tab.
Community Votes
83% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 8 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 8
-
kejam 👍 5 Answered BAnswer B: LEAST operational effort and fine grained approach. https://aws.amazon.com/blogs/apn/optimizing-cost-per-tenant-visibility-in-saas-solutions/ RCU and WCU metrics are already logged in CloudWatch. https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/metrics-dimensions.html
-
07c2d2a 👍 4AWS Cost Explorer API vs cost calculator is really all you need to consider here.
-
TomTom 👍 2 Answered AOption A is the preferred solution for providing a granular view of DynamoDB costs for each tenant with the least operational effort. Advantages of Option A: Utilizes AWS's built-in tagging capabilities for cost allocation, which is straightforward to implement and maintain. Provides detailed cost reports in AWS Cost Explorer without requiring additional custom code or complex calculations. Disadvantages of Option B: While it offers precise tracking of resource consumption, it significantly increases operational complexity and maintenance requirements. Thus, for a balance of granularity and minimal operational effort, Option A is the optimal choice.
-
alexis123456 👍 1Correct Answer is A
-
Chicote 👍 1 Answered Bes B, seguro
Show 3 more comments
-
aabdlmouna 👍 1 Answered BAnswer is B
-
career360guru 👍 1 Answered BOption B
-
zzyy 👍 1 Answered BAnswer B
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SAP-C02 Questions
Access 85 questions with complete answers and detailed explanations.
View Full SAP-C02 Practice Test →