AWS Certified Data Engineer Associate DEA-C01 Practice Question

A data engineering team is deploying an AWS Lambda function that copies objects from an Amazon S3 ingestion bucket into an Amazon Redshift cluster each hour. The function must authenticate to Redshift by retrieving a password stored in AWS Secrets Manager. Following the principle of least privilege, which actions will allow the function to obtain the secret at runtime?

  • Create a dedicated IAM role for the function with a policy that allows only secretsmanager:GetSecretValue on the specific secret ARN, then assign the role as the function's execution role.

  • Attach a resource-based policy to the secret granting the Lambda service principal secretsmanager:GetSecretValue and leave the function's execution role unchanged.

  • Attach the AWS managed SecretsManagerReadWrite policy to the function's execution role to grant all Secrets Manager actions.

  • Store the secret ARN and password as encrypted environment variables and give the role kms:Decrypt permission on the default AWS managed KMS key.

AWS Certified Data Engineer Associate DEA-C01
Data Security and Governance
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot