Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1ENV = "development" | AThe testing environment is connected to live data. Testing should use fake test data so real customer information is not exposed if something goes wrong. | |
| 2ENV = "production" | Bdb = "test_db" # fake customer data | |
| 3The testing environment checks that the software works and is secure using fake test data, not real customer records | CUntested code is pushed straight into production, skipping the development and testing environments. | |
| 4Code is promoted from one environment to the next only after it has passed the checks at the current stage | DThe environment where developers write and change code, using test data so nothing real is put at risk | |
| 5# Testing environment db = "live_customer_db" | EThe live environment where real users run the software and real data is stored and processed | |
| 6# Developer edits code directly deploy("production", untested_code) | Fif tests_passed: deploy("production") |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
development, testing and production — The three environments software moves through: development is where code is written, testing is where it is checked with test data, and production is where real users use live data.# Developers write and change code here
environment = "development"if environment == "testing":
runTests()# Real users and live data use this stage
environment = "production"environment = "production"
data = "live"# Code is moved on to be checked
promote(code, "development", "testing")