Salesforce Certified Heroku Architect Practice Questions

Salesforce Certified Heroku Architect exam preparation

Salesforce Certified Heroku Architect practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 105 minutes.

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?

  1. 2ND_REPORTING_DB_URL
  2. REPORTING-DB-URL
  3. REPORTING_DB_URL
  4. 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.

Go to the Salesforce Certified Heroku Architect practice app (10 free questions; purchase unlocks all questions)

See the full practice set