Courseiva
Data Store ManagementeasyMultiple ChoiceObjective-mapped

DEA-C01 Data Store Management Practice Question

Exhibit

Refer to the exhibit.

[Container] 2024/01/15 10:00:00 Running command aws s3 cp s3://my-bucket/report.csv .
[Container] 2024/01/15 10:00:02 download: s3://my-bucket/report.csv to ./report.csv
[Container] 2024/01/15 10:00:02 Running command python3 process.py
[Container] 2024/01/15 10:00:05 Error: Unable to open file 'report.csv': Permission denied

The exhibit shows a build log from AWS CodeBuild. The build fails with a permission error when trying to open the downloaded file. What is the most likely cause?

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

The downloaded file has restrictive permissions that the python process cannot read.

The build log shows a permission error when the Python script attempts to open the downloaded file. This typically occurs because the file was downloaded with restrictive permissions (e.g., 600 or 700) that only allow the file owner (likely root) to read it. In AWS CodeBuild, if the Python script runs as a non-root user (or even as root but the file is owned by another user with no read permissions), it cannot access the file. Option C correctly identifies this scenario, while other options are less likely: the S3 bucket policy would affect the download itself, not the open operation; PATH issues relate to command execution, not file reading; encryption would likely produce a different error message.

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 S3 bucket policy denies access to the object.

    Why it's wrong here

    Download succeeded, so access is allowed.

  • The python script is not in the PATH.

    Why it's wrong here

    Error is about opening file, not script location.

  • The downloaded file has restrictive permissions that the python process cannot read.

    Why this is correct

    Permission denied suggests file ownership/permissions issue.

  • The file is encrypted and cannot be decrypted.

    Why it's wrong here

    Download succeeded, so encryption is not blocking.

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,711-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 by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.