Salesforce Certified Heroku Architect free question 1 / 10 · Domain 1: Heroku Platform
A team defines a new config var for a reporting database. Which key name follows the config var policies in the Dev Center?
- 2ND_REPORTING_DB_URL
- REPORTING-DB-URL
- REPORTING_DB_URL
- HEROKU_REPORTING_DB_URL
Show the answer and explanation
Answer: C
Why this is correct
The config var policies list four rules: keys use only alphanumeric characters and underscores and do not start with a digit, total config var data stays under 64 KB per app, keys do not start with a double underscore, and keys do not start with HEROKU_ unless the platform sets them. REPORTING_DB_URL satisfies all of them, while each other name breaks one rule and so risks being unreadable in some shell or language.
Why the other options are wrong
"REPORTING-DB-URL" … Config var keys should not include the hyphen character, so that the variable stays usable from every language and shell.
"2ND_REPORTING_DB_URL" … A key that begins with a digit breaks the policy, because some programming languages and shells cannot reference it.
"HEROKU_REPORTING_DB_URL" … A key should not begin with HEROKU_ unless the Heroku platform sets it. That prefix is reserved for platform variables.
Key points
Letters, digits and underscores only, no leading digit, no HEROKU_ prefix, and 64 KB total per app. For review, read the "Config var policies" section of the "Configuration and Config Vars" page in the official documentation.