Learning paths / Application foundations / Databases in an app

Check: databases in an app

Knowledge check · 5 min · Module 3, lesson 6 of 65 min left in this module

Module 3 · Databases in an appLesson 6 of 6

Goal: Confirm you can read a relationship in a schema, predict what a migration run does, and keep connections under a database's limit.

Four questions: three on this module, one on Module 1. Every answer explains itself, right or wrong.

A shop has customers and orders. Each order belongs to one customer, and a customer can place many orders. Which column makes that link?
A teammate added a column to production by hand in the SQL console. Next release, the migration that adds the same column fails. What went wrong?
Your database allows 100 connections. Your web service runs 6 spherelets with a pool of 20 each. What happens as the sixth spherelet starts?
From Module 1: a teammate wants the signup page's JavaScript to write straight to the database, to save building an API. Why won't that work safely?

Retry as often as you like.