- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
- Data
Deploy and Validate an Azure Database for PostgreSQL or MySQL Flexible Server
Deploy a managed PostgreSQL database for a small inventory workload. In this lab, you will use the Azure portal to configure a Flexible Server, allow client access, and connect through Azure Cloud Shell. You will create a table, load sample inventory data, and compare query results with expected values to confirm that the database is ready to use.
Lab Info
Table of Contents
-
Challenge
Configure a Flexible Server for the inventory workload
- Provision the server with the required compute, storage and authentication settings.
- Restrict public access to the database client’s outgoing IP address.
- Confirm that provisioning has completed and the server is ready.
-
Challenge
Establish an authenticated database connection
- Connect to the server using psql in Azure Cloud Shell.
- Verify the connected database, login and encrypted session.
-
Challenge
Create and query a small inventory table
- Create the application database and an inventory table using the supplied SQL.
- Load the sample inventory records and retrieve the stored data.
-
Challenge
Validate the query results against the expected values
- Compare the row count, total stock and low-stock query with the expected results.
- Reconnect and confirm that the stored data remains available.
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.