nerdexam
Amazon

DEA-C01 · Question #42

During a security review, a company identified a vulnerability in an AWS Glue job. The company discovered that credentials to access an Amazon Redshift cluster were hard coded in the job script. A dat

The correct answer is D. Store the credentials in AWS Secrets Manager. E. Grant the AWS Glue job IAM role access to the stored credentials.. To securely remediate hard-coded credentials in an AWS Glue job, the data engineer should store credentials in AWS Secrets Manager and grant the Glue job's IAM role access to retrieve them.

Data Security and Governance

Question

During a security review, a company identified a vulnerability in an AWS Glue job. The company discovered that credentials to access an Amazon Redshift cluster were hard coded in the job script. A data engineer must remediate the security vulnerability in the AWS Glue job. The solution must securely store the credentials. Which combination of steps should the data engineer take to meet these requirements? (Choose two.)

Options

  • AStore the credentials in the AWS Glue job parameters.
  • BStore the credentials in a configuration file that is in an Amazon S3 bucket.
  • CAccess the credentials from a configuration file that is in an Amazon S3 bucket by using the AWS
  • DStore the credentials in AWS Secrets Manager.
  • EGrant the AWS Glue job IAM role access to the stored credentials.

How the community answered

(54 responses)
  • A
    13% (7)
  • B
    2% (1)
  • C
    6% (3)
  • D
    80% (43)

Why each option

To securely remediate hard-coded credentials in an AWS Glue job, the data engineer should store credentials in AWS Secrets Manager and grant the Glue job's IAM role access to retrieve them.

AStore the credentials in the AWS Glue job parameters.

AWS Glue job parameters are not designed for secure storage of sensitive credentials and may expose them in logs or console outputs.

BStore the credentials in a configuration file that is in an Amazon S3 bucket.

Storing credentials in a configuration file in an S3 bucket, even if encrypted, lacks the specialized security features like automated rotation and fine-grained access control offered by AWS Secrets Manager.

CAccess the credentials from a configuration file that is in an Amazon S3 bucket by using the AWS

Accessing credentials from an S3 configuration file, even using the AWS SDK, is less secure and less manageable than using AWS Secrets Manager for sensitive data like database credentials.

DStore the credentials in AWS Secrets Manager.Correct

AWS Secrets Manager is designed for securely storing, managing, and retrieving sensitive credentials like database passwords, providing features such as encryption, auditing, and automatic rotation, making it the industry best practice.

EGrant the AWS Glue job IAM role access to the stored credentials.Correct

For the AWS Glue job to access the securely stored credentials in Secrets Manager, its associated IAM role must be granted the necessary permissions (e.g., secretsmanager:GetSecretValue) to retrieve those secrets.

Concept tested: Secure credential management, AWS Secrets Manager integration

Source: https://docs.aws.amazon.com/secretsmanager/latest/userguide/intro.html

Topics

#AWS Glue#AWS Secrets Manager#IAM#Credential Management

Community Discussion

No community discussion yet for this question.

Full DEA-C01 Practice