Digital Builders University · Study Library
Build safely: track test
10 questions · circle one answer for each · 8 or more right is a pass. Name: ____________________ Date: ____________
1. Which habit makes your app more accessible?
- AUsing images of text, so the fonts look the same on every device
- BSmall grey text, which looks cleaner and more modern
- CReal text labels, contrast and keyboard access
- DAuto-playing a welcome message so visitors know where they are
2. /api/orders/42 returns order 42 to anyone who's signed in. What's missing?
- AA longer, harder-to-guess number for every single order
- BA check that order 42 belongs to the person asking
- CA CORS header that only allows your own site
- DHTTPS, so nobody can read the order on its way
3. What is a regression?
- AA type of chart
- BSomething that used to work and broke after a change
- CA new feature
- DA faster build
4. Why use a password manager?
- ASo you can use one easy password everywhere
- BIt stops all spam calls
- CIt creates and remembers long, unique passwords for every account
- DIt's required to use AI tools
5. What does an end-to-end test do?
- AChecks that one function returns the right value on its own
- BTests the internet
- CDeletes old code
- DDrives a real browser like a user would
6. Your app shows HTML that the AI wrote. Why is that risky?
- AThe output could carry attacker code, so escape or clean it first
- BHTML from AI always loads slower than handwritten pages
- CIt isn't risky: the output is safe because your prompt was safe
- DBrowsers block all HTML that comes from an AI model
7. What does multifactor authentication (MFA) add?
- AFaster sign-in, because you no longer need to type a password at all
- BA backup copy of your files, saved to the cloud every night
- CA way to share your account safely with family members or coworkers
- DA second check, so a stolen password alone isn't enough
8. What does 'scale down' mean for your app's data?
- ACollect and keep only the personal data you really need
- BMake the database smaller by deleting old backups and log files
- CStore everything just in case
- DUse smaller fonts on the form
9. Where should your AI feature's API key and private business rules live?
- AIn the system prompt, since users can't see it
- BIn the chat history, so the model remembers them
- CIn the page's HTML, hidden from visitors
- DIn server code and environment variables, not in the system prompt
10. Do automated checkers find every accessibility problem?
- AYes, if the checker gives the page a perfect score of 100
- BThey only check colours and spelling, not the page structure
- CThey make it worse
- DNo; manual checks and real users catch the rest
Answer key: Build safely
- 1. C Accessible apps work for more people, including people using screen readers or keyboards. (Guide: Build safely: secrets, data and honest AI use)
- 2. B Being signed in says who someone is, not what they may see. Check ownership on the server, or let row level security do it. (Guide: Web security basics: access checks, XSS, CORS and cookies)
- 3. B Tests catch regressions before users do. (Guide: Test your app (and let AI write the tests))
- 4. C Unique passwords mean one leaked site can't unlock your other accounts. (Guide: Stay safe from AI-powered scams)
- 5. D E2E tests click and type through the app the way a person does. (Guide: Test your app (and let AI write the tests))
- 6. A An injected instruction can make the model write a script tag or a sneaky link. Treat output like user input. (Guide: Secure your AI features: prompt injection and friends)
- 7. D Even if a scammer gets your password, they still can't pass the second step. (Guide: Stay safe from AI-powered scams)
- 8. A Data you never collect can't leak. Fewer fields means less risk. (Guide: Privacy basics for builders: collect less, protect more)
- 9. D System prompts can leak. Keep secrets in environment variables and enforce rules in code and the database. (Guide: Secure your AI features: prompt injection and friends)
- 10. D Automated tools help, but manual testing is still needed. (Guide: Accessibility for builders)
A practice self-check, not a Digital Builders certificate. Certificates come from completing a workshop.
