Migrate to RDS PostgreSQL and reach the retained Oracle databases over Direct Connect
A company needs to move some on-premises Oracle databases to AWS. The company has chosen to keep some of the databases on premises for business compliance reasons. The on-premises databases contain spatial data and run cron jobs for maintenance. The company needs to connect to the on-premises systems directly from AWS to query data as a foreign table. Which solution will meet these requirements?
Community Votes
100% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
Direct Connect gives the RDS PostgreSQL instance a private network path to the on-premises environment, which is what makes a foreign table pointing at the on-premises Oracle source possible, and PostgreSQL handles the Oracle spatial types through its own native spatial support after schema conversion.
A company is moving some on-premises Oracle databases to AWS while keeping others on premises for compliance. The source data includes spatial data and the on-premises systems run cron maintenance jobs. AWS must query the retained on-premises databases directly as a foreign table.
Attempting foreign table access over the public internet with an internet gateway. The on-premises database is not internet-facing, and the requirement is to connect directly to the on-premises systems, so a private dedicated connection is required rather than exposing either side to the internet.
Community Discussion (6 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Amazon RDS for PostgreSQL is a managed target that AWS Schema Conversion Tool can assess and convert from Oracle, and AWS Database Migration Service performs the data movement, which is the standard path for moving Oracle workloads to a managed relational database. PostgreSQL has native spatial data support, so the spatial columns in the source can be represented without moving them to a separate analytics engine. Because the requirement is to query the databases that stay on premises directly as a foreign table, the RDS instance needs a private network path to the data centre, and AWS Direct Connect provides exactly that without exposing either side to the internet. Maintenance cron jobs then run on the DB instance, which is the managed tier.Why the Other Options Are Wrong
A: DynamoDB global tables are a NoSQL multi-Region construct, not a relational target for Oracle data, and API Gateway does not provide foreign table support, so the core requirement of querying on-premises systems as a foreign table is unmet. Moving spatial data to S3 and querying it with Athena also breaks the relational model. B: RDS for SQL Server is the wrong engine for a workload migrating from Oracle, and AWS Glue crawlers are a data integration and cataloging service rather than a mechanism to query an on-premises Oracle database as a foreign table. C: Hosting Oracle on EC2 instances means the team manages the database themselves, which contradicts the objective of moving to managed services, and an internet gateway exposes the instances publicly, which is neither private nor appropriate for direct on-premises querying.Community Comment Notes
The community voted 100 to 0 for D, and the top-voted comment identified the decisive technical facts: PostgreSQL supports spatial data natively through PostGIS, and SCT plus DMS is the standard Oracle migration path. Other commenters confirmed that SCT converts from Oracle to targets such as Aurora PostgreSQL and RDS PostgreSQL, that DMS is the service providing real-time change data capture, and that Direct Connect is what makes the direct on-premises connection sensible.Official Reference
Related Analysis
Practice All SAP-C02 Questions
Access 85 questions with complete answers and detailed explanations.
View Full SAP-C02 Practice Test →