AWS Certified Data Engineer Associate DEA-C01 Practice Question
An Amazon API Gateway REST API receives signed requests from partner applications. The API uses an AWS service integration to write items to a DynamoDB table. The security team requires that callers authenticate with SigV4 signing and that API Gateway has only permission to put items into the table. Which solution meets these requirements following AWS best practices?
Enable a Lambda authorizer that validates SigV4 signatures and attach the AmazonDynamoDBFullAccess managed policy to API Gateway's service-linked role.
Configure a Cognito user pools authorizer so callers obtain JWT tokens, and allow API Gateway to access the table by adding a resource policy directly to DynamoDB without using an execution role.
Set the method authorization to AWS_IAM. Create an IAM role trusted by apigateway.amazonaws.com that allows only dynamodb:PutItem on the table, and configure the API integration to use this role.
Require an API key and usage plan for callers, create a DynamoDB VPC endpoint with a policy granting PutItem, and leave the integration credentials set to None.
Choosing AWS_IAM authorization forces every caller to sign requests with SigV4 credentials that IAM evaluates, satisfying the authentication requirement. For the integration, API Gateway must assume an IAM role because it is calling another AWS service on the customer's behalf. The role's trust policy must specify the service principal "apigateway.amazonaws.com" so that API Gateway can assume it, and its permissions policy should grant only the dynamodb:PutItem action on the specific table, implementing least-privilege access. After the role is created, the API method is configured with that role's ARN as the execution credentials. The other options either use the wrong authorizer type, grant broader permissions than necessary, or fail to attach an execution role at all, so they do not meet one or both of the stated requirements.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is SigV4 signing in AWS?
Open an interactive chat with Bash
What is an execution role in API Gateway?
Open an interactive chat with Bash
What is AWS_IAM authorization in API Gateway?
Open an interactive chat with Bash
What is AWS_IAM authorization in API Gateway?
Open an interactive chat with Bash
How does SigV4 signing work for API requests?
Open an interactive chat with Bash
Why does API Gateway need an IAM execution role for DynamoDB integration?
Open an interactive chat with Bash
AWS Certified Data Engineer Associate DEA-C01
Data Security and Governance
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .