Courseiva
Deployment and MigrationeasyMultiple ChoiceObjective-mapped

DBS-C01 Deployment and Migration Practice Question

A startup is deploying a new web application on AWS. The application uses Amazon RDS for PostgreSQL as its database. The developers need to create the initial schema and load test data. They have a SQL script file that creates tables and inserts 10,000 rows. The DB instance is a db.t3.micro with 20 GB gp2 storage. The developers connect to the RDS instance using pgAdmin from their local machine and run the script. The script fails with a 'connection reset' error after inserting 5,000 rows. 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 security group blocked the connection due to a timeout

The most likely cause is that the connection was terminated by an idle timeout on an intermediate network component (such as a NAT Gateway, which has a default idle timeout of 350 seconds, or the client-side firewall/proxy). Security groups are stateful and do not have configurable timeout settings, so they are not directly responsible. The script's duration likely exceeded the idle timeout, causing a 'connection reset' error. Option A is unlikely because a db.t3.micro can handle inserting 10,000 rows without exhausting memory or CPU credits; the error is network-related, not resource-related. Option B is incorrect because max_connections is sufficient for a single connection. Option C is incorrect because 20 GB storage is far more than needed for 10,000 rows.

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 DB instance ran out of memory or CPU credits due to the intensive script

    Why it's wrong here

    Incorrect. A db.t3.micro has sufficient resources for a script inserting 10,000 rows; memory or CPU exhaustion is unlikely to cause a connection reset.

  • The max_connections parameter was set too low

    Why it's wrong here

    Incorrect. The default max_connections for a db.t3.micro is sufficient for a single connection; a low max_connections would prevent new connections, not reset an existing one.

  • The storage volume reached its maximum capacity

    Why it's wrong here

    Incorrect. 20 GB storage is more than enough for 10,000 rows of test data; storage exhaustion would produce a disk-full error, not a connection reset.

  • The security group blocked the connection due to a timeout

    Why this is correct

    Correct. A security group can have timeout settings that cause the connection to be reset if the script runs longer than the timeout, which is a common issue with long-running queries through clients like pgAdmin.

Visual reference

Inside (Private) PC-A 10.0.0.1 PC-B 10.0.0.2 NAT Router Outside (Public) 203.0.113.1 Inside Global Server PAT: many private IPs share one public IP via unique port numbers

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 DBS-C01 question is part of Courseiva's 1,663-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 DBS-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 DBS-C01 exam.