AWS Certified Database – Specialty — Question 65
A company developed an AWS CloudFormation template used to create all new Amazon DynamoDB tables in its AWS account. The template configures provisioned throughput capacity using hard-coded values. The company wants to change the template so that the tables it creates in the future have independently configurable read and write capacity units assigned.
Which solution will enable this change?
Answer options
- A. Add values for the rcuCount and wcuCount parameters to the Mappings section of the template. Configure DynamoDB to provision throughput capacity using the stack's mappings.
- B. Add values for two Number parameters, rcuCount and wcuCount, to the template. Replace the hard-coded values with calls to the Ref intrinsic function, referencing the new parameters.
- C. Add values for the rcuCount and wcuCount parameters as outputs of the template. Configure DynamoDB to provision throughput capacity using the stack outputs.
- D. Add values for the rcuCount and wcuCount parameters to the Mappings section of the template. Replace the hard-coded values with calls to the Ref intrinsic function, referencing the new parameters.
Correct answer: B
Explanation
The correct option is B because adding rcuCount and wcuCount as Number parameters allows for flexible configuration of read and write capacity units. Using the Ref intrinsic function enables the template to dynamically reference these parameters instead of relying on hard-coded values. Options A and D incorrectly suggest using the Mappings section, which does not provide the necessary flexibility, while option C incorrectly uses outputs, which cannot be referenced for provisioning capacity.