Question 1,250 of 724
DVA-C02 Troubleshooting and Optimization Practice Question
A developer runs a script that uses the AWS CLI to copy a large number of files from an on-premises server to an S3 bucket. The copy operation fails partway through with a 'RequestTimeout' error. What is the MOST efficient way to resume the copy and ensure all files are transferred?
⚠ Common exam trap
Many candidates confuse `cp --recursive` with `sync`, assuming both can resume a copy, but only `sync` performs a differential comparison to avoid re-uploading already transferred files.
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
✓
Use the aws s3 sync command to synchronize the source directory with the S3 bucket.
The `aws s3 sync` command is the most efficient way to resume the copy because it automatically compares the source directory with the destination S3 bucket and transfers only the files that are missing or have been modified. This avoids re-uploading already transferred files, directly addressing the partial failure without manual intervention or unnecessary overhead.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Delete the S3 bucket and restart the copy operation.
Why it's wrong here
Deleting the S3 bucket and restarting the copy operation is an extremely inefficient and counterproductive approach. This action would discard all previously uploaded files and the progress made before the interruption, necessitating a complete re-upload of the entire dataset. Such a strategy wastes significant network bandwidth, prolongs the overall transfer time, and is entirely unnecessary when more intelligent resume mechanisms are available.
- ✓
Use the aws s3 sync command to synchronize the source directory with the S3 bucket.
Why this is correct
The aws s3 sync command is the most appropriate and efficient solution for resuming an interrupted file transfer to S3. It intelligently compares the source directory with the S3 bucket, identifying only files that are new, have changed content (based on size and modification time), or are missing from the destination. This ensures that only the necessary data is transferred, minimizing bandwidth usage and significantly reducing the time required to complete the operation.
- ✗
Use the cp command with the --recursive flag to copy the remaining files.
Why it's wrong here
Using aws s3 cp --recursive to copy the remaining files after an interruption is inefficient because this command does not inherently track transfer state or skip already uploaded objects. When re-executed, it would attempt to re-upload all files from the source directory, including those that were successfully transferred before the interruption. This leads to redundant data transfer, increased network consumption, and a longer overall completion time compared to a synchronization command.
- ✗
Increase the --cli-read-timeout value in the AWS CLI configuration and retry the original command.
Why it's wrong here
Increasing the --cli-read-timeout value might prevent the specific timeout error that initially interrupted the operation, but it does not address the underlying inefficiency of the aws s3 cp command for resuming transfers. Even with an extended timeout, retrying the original cp command would still attempt to re-upload all files from the source directory, including those already present in the S3 bucket. This results in redundant data transfer and does not provide an intelligent resume capability.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 24, 2026
This DVA-C02 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 DVA-C02 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.