QuizGrok Platform 101 quiz01Where should an xAI API key live in a web app?In a VITE_ public env var so the browser can call api.x.aiOn the server, in a secret environment variableIn the system promptHard-coded, but in a private GitHub repo02A tool call from Grok should be treated as:Already authorized, because the model is trustedUntrusted input your server must validate and authorizeA SQL queryA reason to disable max_tokens03The largest cost risk in a naive chat feature is often:Setting temperature to 0Resending a huge context every turn, plus uncapped loopsUsing JSON modeA short system prompt04Image/video generations on a public page should be:Fired on page load so the hero feels aliveUser-initiated, rate-limited, and cappedCached forever with no auditRun from the browser with the same chat keySubmit quiz