The correct answer is that the user must specify a projection expression in the GetItem request to include only the allowed attributes. This is because when an IAM policy uses the `dynamodb:Attributes` condition key to restrict access to specific attributes like `order_id` and `status`, DynamoDB denies any request that attempts to return attributes not explicitly listed in that condition. Without a `ProjectionExpression`, a `GetItem` call defaults to returning all attributes of the item, which triggers an `AccessDeniedException` since the policy blocks access to the unlisted ones. On the AWS Certified Database Specialty DBS-C01 exam, this scenario tests your understanding of how attribute-level access control interacts with DynamoDB read operations—a common trap is assuming that allowing a table-level action like `GetItem` grants full attribute access. Remember the memory tip: “Project to protect”—if your policy restricts attributes, you must project exactly those attributes in your request to avoid denial.
DBS-C01 Workload-Specific Database Design Practice Question
This DBS-C01 practice question tests your understanding of workload-specific database design. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
An IAM policy is attached to a user to allow read access to the Orders table in DynamoDB. The user reports that a GetItem call for an order returns an 'AccessDeniedException'. What is the likely cause?
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The user must specify a projection expression in the GetItem request to include only 'order_id' and 'status' attributes.
Option A is correct because when an IAM policy uses the `dynamodb:Attributes` condition key to restrict access to specific attributes (e.g., `order_id` and `status`), the user must include a `ProjectionExpression` in the `GetItem` request that explicitly lists only those allowed attributes. Without the projection expression, DynamoDB attempts to return all attributes, which triggers an `AccessDeniedException` because the policy denies access to attributes not listed in the condition.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
✓
The user must specify a projection expression in the GetItem request to include only 'order_id' and 'status' attributes.
Why this is correct
The condition requires that only these attributes be returned, so the request must explicitly project them.
Related concept
Read the scenario before looking for a memorised answer.
✗
The user does not have permissions to perform GetItem on the Orders table.
Why it's wrong here
The policy explicitly allows GetItem.
✗
The resource ARN is incorrect; it should include the wildcard for the table.
Why it's wrong here
The ARN is correct for a specific table.
✗
The condition key 'dynamodb:Attributes' restricts access to only two attributes, but the user can still get all attributes.
Why it's wrong here
The condition restricts which attributes can be returned; without specifying a projection, all attributes are requested and denied.
Common exam traps
Common exam trap: answer the scenario, not the keyword
AWS often tests the misconception that a table-level permission error is the cause, when in reality the issue is a missing `ProjectionExpression` due to attribute-level restrictions in the IAM policy.
Detailed technical explanation
How to think about this question
The `dynamodb:Attributes` condition key enforces fine-grained access control by evaluating the attributes requested in the `ProjectionExpression` (or `AttributesToGet` in older APIs). If the policy allows only `order_id` and `status`, but the request omits a projection expression, DynamoDB interprets the request as wanting all attributes, which violates the condition and returns an `AccessDeniedException`. This behavior is consistent with the AWS IAM policy evaluation logic for DynamoDB's attribute-based access control.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Workload-Specific Database Design — This question tests Workload-Specific Database Design — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: The user must specify a projection expression in the GetItem request to include only 'order_id' and 'status' attributes. — Option A is correct because when an IAM policy uses the `dynamodb:Attributes` condition key to restrict access to specific attributes (e.g., `order_id` and `status`), the user must include a `ProjectionExpression` in the `GetItem` request that explicitly lists only those allowed attributes. Without the projection expression, DynamoDB attempts to return all attributes, which triggers an `AccessDeniedException` because the policy denies access to attributes not listed in the condition.
What should I do if I get this DBS-C01 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
This DBS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DBS-C01 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.