🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Data Management / Database Administration › Cloud Storage for Database Administrators › Lesson 2
TEC-DATA86-08 · Lesson 2 · 14 clock hours · lab

Managed Relational Database Services: Deploy and Connect

Objective. Students will provision a managed PostgreSQL or SQL Server instance on at least two cloud platforms, configure connection strings, and verify connectivity from a client workstation.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

What Is a Managed Relational Database Service?

A managed relational database service (sometimes called DBaaS, Database-as-a-Service) is a cloud platform offering in which the provider handles hardware provisioning, operating-system patching, storage allocation, automated backups, and high-availability failover. You, the DBA, focus on schema design, query tuning, user management, and connectivity — not on maintaining the underlying server. The three dominant platforms for this lesson are Amazon Web Services (AWS) with RDS, Microsoft Azure with Azure SQL Database, and Google Cloud with Cloud SQL.

Understanding how each platform exposes a managed database is directly tested in the Microsoft DP-300 exam and is a practical requirement for any database administrator working in a modern enterprise.

AWS RDS: Core Concepts Before You Click

AWS Relational Database Service (RDS) runs your engine — PostgreSQL, MySQL, SQL Server, and others — inside a Virtual Private Cloud (VPC). Before you provision an instance, you must plan three network objects:

Once the instance reaches the Available state, the console shows an endpoint hostname such as `mydb.c9akciq32.us-east-1.rds.amazonaws.com`. Use that hostname in your connection string, never an IP address, because managed services can change the underlying IP during maintenance.

To connect from a local VM using `psql`:

```

psql -h <endpoint> -U <master_user> -d <dbname> -p 5432

```

Azure SQL Database: Portal and CLI Together

Azure SQL Database is a fully managed SQL Server-compatible engine. The General Purpose tier uses a vCore purchasing model and provides a balance of compute and storage suitable for most workloads.

Key setup steps unique to Azure:

1. Logical server: every Azure SQL Database sits inside a logical server (not a VM). The server holds authentication settings and firewall rules.

2. Firewall rules: by default, the logical server blocks all incoming connections. You add rules by IP range in the portal or with `az sql server firewall-rule create`. For the lab, add your workstation's public IP.

3. Azure Active Directory (AAD) admin: you can designate an AAD user or group as an administrator in addition to SQL authentication. This is a best practice because it enables password-free, identity-based access and is an auditable control.

4. Connection string: Azure provides ready-made connection strings for ADO.NET, JDBC, ODBC, and others under the database's Connection strings blade. Always use the FQDN of the logical server, for example `myserver.database.windows.net`.

Azure Data Studio is a cross-platform GUI client maintained by Microsoft. It supports both Azure SQL and PostgreSQL via extensions and is the recommended client for this lab.

Google Cloud SQL and the Run-Book Exercise

Cloud SQL for PostgreSQL is Google's managed offering. Provisioning mirrors AWS RDS conceptually — you choose a machine type, storage, a region, and configure authorized networks (IP allowlisting). The `gcloud` CLI command pattern follows:

```

gcloud sql instances create <name> --database-version=POSTGRES_15 \

--tier=db-f1-micro --region=us-central1

```

The run-book exercise is not just a documentation task — it is a professional skill. A run-book is a numbered, repeatable procedure a colleague can execute without ambiguity. Good run-books include exact commands, expected output, verification steps, and rollback actions. When you peer-review a partner's run-book, check that every step is present, every command is complete, and the expected state after each step is stated.

Security and Access-Control Principles

Across all three platforms, these principles apply:

Verifying Connectivity

A successful connection is not enough for a professional standard. After connecting, run a simple query to confirm you are in the right database on the right instance:

```sql

SELECT current_database(), version();

```

Document the output. Your instructor will verify a live connection to each platform and will review your run-book for completeness. Both checks must pass to earn credit for this lab.

Key terms10

DB Subnet GroupAn AWS RDS configuration object that specifies which VPC subnets (spanning at least two Availability Zones) a database instance may use, enabling private network placement.
Parameter GroupA named set of engine-level configuration parameters (such as max_connections) applied to an RDS or Cloud SQL instance; allows tuning without modifying the underlying OS.
Security GroupA stateful virtual firewall in AWS that controls inbound and outbound traffic to resources such as RDS instances by port, protocol, and source IP or CIDR.
Logical Server (Azure SQL)An administrative container in Azure that holds one or more Azure SQL Databases and manages authentication, firewall rules, and server-level settings.
Azure Active Directory (AAD) AdminAn Azure AD user or group designated as the administrator of an Azure SQL logical server, enabling identity-based authentication in addition to SQL logins.
Connection StringA formatted string that specifies the host endpoint, port, database name, and authentication credentials a client application uses to open a database connection.
Run-BookA numbered, repeatable written procedure describing every step required to perform an operational task, including expected outputs and verification steps, so that any qualified technician can execute it consistently.
Managed Relational Database Service (DBaaS)A cloud offering in which the provider handles OS patching, backups, storage scaling, and high-availability for a relational database engine, leaving schema and query work to the DBA.
Least PrivilegeA security principle requiring that users and applications be granted only the minimum database permissions necessary for their specific tasks.
TLS (Transport Layer Security)A cryptographic protocol that encrypts data in transit between a database client and server; enforced by default on AWS RDS, Azure SQL, and Cloud SQL to protect credentials and query data.
In class: Lab: provision an AWS RDS PostgreSQL instance using the AWS Console; configure subnet group, parameter group, and security group; connect with psql from a local VM and run a supplied schema script. · Lab: provision an Azure SQL Database (General Purpose tier) using the Azure Portal and the Azure CLI (az sql db create); configure server firewall rules and Azure Active Directory admin; connect with Azure Data Studio. · Pair exercise: one student documents each provisioning step as a numbered run-book, the other follows the run-book on Google Cloud SQL for PostgreSQL; pairs swap roles and peer-review each other's run-books for accuracy and completeness.
Materials: AWS Console and AWS CLI v2; Azure Portal and Azure CLI; Google Cloud Console and gcloud CLI; psql client; Azure Data Studio; lab VMs (Windows or Linux); Microsoft DP-300 Official Practice Tests; EnterpriseDB PostgreSQL documentation
Check: Instructor verifies live connection to each provisioned instance and reviews the run-book for all required configuration steps; pass requires successful connection on both platforms and a complete, accurate run-book.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Microsoft DP-300 – Deploy and Configure Database Offerings
1. When configuring an AWS RDS PostgreSQL instance, which object defines the VPC subnets the instance may be placed in?
Microsoft DP-300 – Deploy and Configure Database Offerings
2. A DBA needs to allow a client workstation at IP 203.0.113.45 to connect to an AWS RDS PostgreSQL instance. What is the minimum inbound rule that should be added to the instance's security group?
Microsoft DP-300 – Deploy and Configure Database Offerings
3. In Azure SQL Database, where are server-level firewall rules that control access by client IP address configured?
Microsoft DP-300 – Deploy and Configure Database Offerings
4. Which Azure CLI command is used to create a new Azure SQL Database?
PostgreSQL CE (EDB) – Database Connectivity and Administration
5. After connecting to a managed PostgreSQL instance, a DBA wants to confirm the exact database name and engine version in one query. Which SQL statement accomplishes this?
Microsoft DP-300 – Implement a Secure Environment
6. A DBA sets up an Azure SQL Database and wants to allow password-free, auditable administrator access using corporate identity credentials. Which configuration should the DBA apply?
DAMA CDMP Associate – Data Security
7. In the context of managed database services, which security practice does 'encryption in transit' refer to?
DAMA CDMP Associate – Data Operations Management
8. During the pair run-book exercise, one student provisions Google Cloud SQL using a partner's written run-book. Which element is most critical for the run-book to be professionally complete?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.