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 2 / 10 · Domain 2: Data

An external BI tool connects to a Premium database with a connection string copied from DATABASE_URL last year. After an HA failover the tool can no longer connect. What is the likely cause?

  1. The standby uses a different database engine version so external clients must reconnect with a new driver
  2. The connection string changed at failover and only the app config vars were updated
  3. Failover moves the database into a Private Space so only apps in the space can reach it
  4. Failover disables external connections until the team enables them again from the dashboard
Show the answer and explanation

Answer: B

Why this is correct
The article warns that the connection string can change when a failover happens. Heroku updates the config vars tied to the database, such as DATABASE_URL, so apps on Heroku keep working after their automatic restart. A tool that stored a copy of the old string is not updated and fails. Clients outside Heroku must read the current credentials and details again.

Why the other options are wrong
"The standby uses a different database engine version so external clients must reconnect with a new driver" … The article does not describe a version change at failover. It describes a possible connection string change.
"Failover disables external connections until the team enables them again from the dashboard" … No such block is described. Connections from outside Heroku work if the credentials and connection string are current.
"Failover moves the database into a Private Space so only apps in the space can reach it" … Failover keeps the database in its own network and does not move it between runtimes.

Key points
After failover the connection string can change. Heroku updates config vars for its apps but not copies elsewhere. Tools outside Heroku should read credentials from the Dev Center connection details when they reconnect. For review, read the "HA in Classic Databases" section of the "High Availability on Heroku Postgres" 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