Courseiva
Data Store Management →mediumMultiple Choice

DEA-C01 Data Store Management Practice Question

A data engineer is using AWS Glue to process data stored in Amazon S3. The engineer needs to ensure that the AWS Glue job can access the S3 bucket securely without hardcoding credentials. Which approach should the engineer use?

⚠ Common exam trap

The trap here is considering Secrets Manager or hardcoded credentials when IAM roles are the native, secure method for service-to-service authentication.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Create an IAM role with the necessary S3 permissions and attach it to the AWS Glue job.

Attaching an IAM role with the necessary S3 permissions to the AWS Glue job is the secure and recommended way to grant access without hardcoding credentials. IAM roles provide temporary credentials and follow the principle of least privilege. The other options either introduce security risks or unnecessary complexity.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Embed the AWS access key and secret key directly in the Glue job script.

    Why it's wrong here

    Hardcoding credentials in scripts is a security risk and violates best practices. Credentials can be exposed in logs, version control, or to unauthorized users. This method is not secure and should be avoided. IAM roles eliminate the need for hardcoded credentials and provide temporary credentials automatically.

  • ✓

    Create an IAM role with the necessary S3 permissions and attach it to the AWS Glue job.

    Why this is correct

    AWS Glue jobs assume an IAM role that grants permissions to access AWS resources. By attaching a role with the appropriate S3 permissions, the job can securely access the bucket without embedding credentials. This is the recommended best practice for AWS services. It also allows for fine-grained access control and auditing.

  • ✗

    Store AWS credentials in AWS Secrets Manager and retrieve them within the Glue job script.

    Why it's wrong here

    While Secrets Manager securely stores credentials, retrieving them in the Glue job still requires code to access the secret and may expose credentials in memory. It adds unnecessary complexity compared to using an IAM role. IAM roles are the native and preferred method for granting AWS services access to resources. This approach is less secure and more operationally intensive.

  • ✗

    Use an Amazon S3 bucket policy that allows public read access to the data.

    Why it's wrong here

    Granting public read access to the S3 bucket is a severe security risk and exposes data to unauthorized parties. It does not provide secure access for the Glue job specifically. The engineer should use IAM roles to grant least privilege access. Public access is never the right solution for secure data processing.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

This DEA-C01 question is part of Courseiva's 1,321-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

This DEA-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 DEA-C01 exam.