Salesforce Heroku Architect Practice Questions with Explanations

Free Salesforce Heroku Architect practice questions. 17 of them, each with the correct answer, a full explanation, and the reason every other option is wrong.

Heroku Architect practice questions

Question 1

Universal Containers needs to write their Heroku application's logs to two destinations: an on-premise Syslog log server and a cloud analytics provider that ingests logs using an HTTPS endpoint.

What should an Architect recommend in this scenario?

  • A. Publish all logs to Apache Kafka on Heroku, and create a separate app that consumes and distributes log messages.
  • B. Write all logs to Heroku Redis as a buffer and use an add-on to send them to both destinations.
  • C. Add a logging library to the application source that sends all logs directly to both destinations.
  • D. Write all logs to stdout, and configure a separate log drain for each destination.
Show answer and explanation ▾

Correct answer: D

Heroku apps write logs to stdout, and the platform collects them. A log drain per destination (syslog and HTTPS) forwards them with no extra code or infrastructure.

Why the other options are wrong:

  • A. Kafka plus a custom consuming app adds infrastructure that log drains already provide.
  • B. Redis as a log buffer is not a Heroku logging pattern and adds needless moving parts.
  • C. Sending logs from application code ties the app to each destination and bypasses Heroku's logging.

Question 2

A hospital is planning to rewrite its on-premise patient registration system. Their current system is HIPAA-compliant as well as ISO 27018compliant. They need to maintain these same certification levels after the rewrite. Their new app also needs to sync PII (personally identifiable information) data with their Salesforce org. What Heroku Enterprise solutions should an Architect propose?

  • A. Build the app in a Shield Private Space, with a Shield Heroku Postgres database, and use Apache Kafka on Heroku to stream from the Salesforce org.
  • B. Build the app in the Common Runtime, use a Heroku Postgres database, and use Heroku Connect to sync to Salesforce.
  • C. Build the app in a Shield Private Space, with a Shield Heroku Postgres database, and use Shield Heroku Connect to sync to Salesforce.
  • D. Build the app in a Private Space with a Private Heroku Postgres database, and use Heroku Connect to sync to Salesforce.
Show answer and explanation ▾

Correct answer: C

HIPAA and ISO 27018 workloads with PII need the Shield tier throughout: Shield Private Space, Shield Postgres and Shield Connect for the Salesforce sync.

Why the other options are wrong:

  • A. Kafka on Heroku is not the Shield-grade way to sync Salesforce data, so the compliant sync path is missing.
  • B. The Common Runtime with standard Postgres and Connect does not meet these compliance levels.
  • D. A standard Private Space, Postgres and Connect lack the Shield protections needed for PII.

Question 3

A client is creating a new API application. The app should only be accessible from other apps that they deploy to Heroku. Also, traffic between the other apps and the API should not transit the public internet.

Which solution should an Architect recommend to meet these requirements?

  • A. Create the application in a Private Space with default options.
  • B. Create the application in a Private Space and restrict the application's set of trusted IP ranges.
  • C. Create the application with Internal Routing enabled, in a Private Space.
  • D. Create the application in a Shield Private Space to enforce stricter requirements for TLS termination.
Show answer and explanation ▾

Correct answer: C

An app with Internal Routing enabled cannot receive external web traffic. Its web process is reachable only from other apps in the Private Space network and from peered or VPN-connected networks, so calls to the API stay on the private network.

Why the other options are wrong:

  • A. With default options, an app in a Private Space is still reachable from the public internet.
  • B. Trusted IP ranges filter external access for every app in the space and give no per-app control.
  • D. A Shield Private Space adds compliance controls and does not by itself make the app reachable only from other apps.

Question 4

A client has data in a production Heroku Postgres database, and needs to quickly get access to a subset of that data for reporting needs.

Which two features does Heroku Dataclips provide to enable this? (Choose two.)

  • A. JSON export of query results, with CORS support
  • B. CSV export of query results
  • C. A simple REST API access to query results
  • D. Postgres dump file of query results
Show answer and explanation ▾

Correct answer: A, B

Dataclips share the result of a SQL query as a URL, and the results can be exported as JSON (with CORS support) or CSV.

Why the other options are wrong:

  • C. Dataclips are not a REST API for querying results.
  • D. Dataclips export query results as JSON or CSV, not as a Postgres dump file.

Question 5

Which three items are required to successfully set up Single Sign-on (SSO) services with Heroku? (Choose three.)

  • A. An identity provider with built-in support for Heroku
  • B. A Heroku Enterprise Team
  • C. An existing Heroku account for each user
  • D. At least one valid SSO certificate
  • E. Administrative permissions on the selected identity provider
Show answer and explanation ▾

Correct answer: A, B, E

SSO is a Heroku Enterprise Team feature, it needs an identity provider that supports Heroku, and you need admin rights on that provider to configure it.

Why the other options are wrong:

  • C. Users do not need an existing Heroku account; accounts can be created through SSO.
  • D. A certificate is part of the identity provider's SAML set-up, not a separate requirement listed here.

Question 6

Universal Containers intends to build an app which will accept card payments. The app also needs to store, process, and transmit cardholder data.

Which Heroku architecture should an Architect recommend?

  • A. Common Runtime with secure, isolated containers for running the app's code.
  • B. A Private Space restricted to a set of trusted IP ranges.
  • C. A Shield Private Space with a Shield Postgres add-on.
  • D. A Private Space with Internal Routing enabled on the app.
Show answer and explanation ▾

Correct answer: C

Apps that store, process and transmit cardholder data need a high-compliance environment. Heroku Shield Private Spaces with a Shield Postgres database are the Heroku services built for regulated data such as PCI and HIPAA workloads.

Why the other options are wrong:

  • A. The Common Runtime is a shared multi-tenant environment and is not the high-compliance option.
  • B. Trusted IP ranges limit who can reach the apps and do not add the compliance controls needed for cardholder data.
  • D. Internal Routing keeps an app off the public internet and does not add the compliance controls needed for cardholder data.

Question 7

A client wants to create a secure network connection between Heroku applications running in a Private Space and an AWS VPC.

Which Heroku feature should an Architect recommend to create the connection?

  • A. Internal Routing
  • B. Private Space Peering
  • C. Private Space VPN connections
  • D. Heroku Connect
Show answer and explanation ▾

Correct answer: B

Private Space Peering creates a private network connection between dynos in a Heroku Private Space and an AWS VPC that the client controls. The traffic does not cross the public internet.

Why the other options are wrong:

  • A. Internal Routing limits an app to traffic from inside the private network and does not create a link to an AWS VPC.
  • C. A Private Space VPN connection uses IPSec over the public internet to reach other private networks, and is not the feature built for an AWS VPC.
  • D. Heroku Connect syncs Salesforce data with Heroku Postgres and is not a network connection.

Question 8

A client wants to add CPU-intensive video processing functionality to their Heroku web application.

Which two strategies should an Architect recommend for implementing this functionality? (Choose two.)

  • A. Add a new process type for worker dynos that pull video processing jobs from a queue.
  • B. Attach a video processing add-on from the Heroku Elements Marketplace to the application.
  • C. Delegate video processing tasks to the app's staging version to remove load from the production app.
  • D. Divide each video processing task across multiple web dynos to mitigate added CPU load.
Show answer and explanation ▾

Correct answer: A, B

CPU-heavy work should run outside the web process. Worker dynos that pull jobs from a queue keep web dynos free to answer requests, and a video processing add-on moves the work to a service built for it.

Why the other options are wrong:

  • C. A staging app is for testing releases and must not carry production workloads.
  • D. Web dynos should answer requests quickly, and spreading the processing across them slows the site for users.

Question 9

Universal Containers has a Heroku app that uses several third-party add-ons. They now need to enforce data privacy and be compliant with General Data Protection Regulation (GDPR).

What should an Architect advise UC regarding data residency in this scenario?

  • A. Heroku does not control where add-on providers store data.
  • B. Heroku support can configure add-ons for specific data residency needs.
  • C. Heroku guarantees the physical location of its control surface APIs.
  • D. Data residency for add-ons is covered under Salesforce's GDPR compliance.
Show answer and explanation ▾

Correct answer: A

Heroku does not control where add-on providers store data. Universal Containers must check data residency with each third-party add-on provider directly.

Why the other options are wrong:

  • B. Heroku support cannot set where a third-party add-on provider stores its data.
  • C. Heroku makes no guarantee about the physical location of its control surface APIs.
  • D. Each third-party add-on provider is responsible for its own data storage and compliance.

Question 10

An app uses a queue of worker dynos to perform complex image processing, but the worker dynos are occasionally running out of memory when performing the processing. All of their dynos are currently standard-1x dynos.

What should an Architect recommend in this scenario?

  • A. Add additional worker dynos.
  • B. Break up the image processing across multiple dynos.
  • C. Move the app to a Private Space.
  • D. Change the type of dynos to standard-2x.
Show answer and explanation ▾

Correct answer: D

Each job runs inside one dyno, so the fix for running out of memory is a dyno with more memory. A standard-2x dyno has 1 GB of RAM, double the 512 MB of a standard-1x dyno.

Why the other options are wrong:

  • A. More worker dynos process more jobs at once, but each dyno still has the same memory limit.
  • B. Splitting the work across dynos means redesigning the job and does not raise the memory available to each dyno.
  • C. A Private Space changes network isolation, not the memory of a standard-1x dyno.

Question 11

A client wants to use Heroku to build a data bridge between Salesforce and Google Cloud Platform (GCP).

Which combination of Heroku features should an Architect recommend to secure the connection between Heroku and GCP?

  • A. Heroku Shield Private Spaces and Heroku Shield Connect
  • B. Heroku Private Spaces and Private Space VPN Connections
  • C. Heroku Private Spaces and Private Space Peering
  • D. Heroku Shield Private Spaces and Internal Routing
Show answer and explanation ▾

Correct answer: B

A Private Space can connect to another private network with an IPSec VPN connection, and Heroku has validated this feature with the managed Google Cloud Platform VPN. That gives an encrypted link between the Heroku apps and GCP.

Why the other options are wrong:

  • A. Heroku Shield Connect syncs Salesforce data with Heroku Postgres and does not create a network link to GCP.
  • C. Private Space Peering connects a Private Space to an AWS VPC, not to GCP.
  • D. Internal Routing limits an app to private network traffic and does not create a link to GCP.

Question 12

Part of a client's design is the ability to easily share between two applications running on Heroku.

What should an Architect recommend?

  • A. Attach a single storage add-on, such as Heroku Postgres, to both applications.
  • B. Create Foreign Data Wrappers to expose the tables from one database to another.
  • C. Provision Heroku Connect to sync the data into a custom object in Salesforce.
  • D. Provision Apache Kafka on Heroku to easily stream the data between the two apps.
Show answer and explanation ▾

Correct answer: A

A single add-on, such as a Heroku Postgres database, can be attached to more than one app. Both applications then read and write the same data store with no sync process between them.

Why the other options are wrong:

  • B. Foreign Data Wrappers need two databases and extra setup, which is not the easy way to share data.
  • C. Heroku Connect syncs data with a Salesforce org and is not meant for sharing data between two Heroku apps.
  • D. Apache Kafka on Heroku streams events and adds far more moving parts than attaching one shared data store.

Question 13

A healthcare services client is requesting an architecture for a set of applications: one is a marketing application, and the other two are of customer service applications that allow for customers to interact with their healthcare records. The marketing application must be able to scale up within seconds in response to traffic spikes. The client wants to be able to deploy each of these applications to the U.S. East Coast and EMEA.

Which applications should be deployed into which Heroku runtime?

  • A. The marketing application into Private Spaces; customer service applications into Shield Private Spaces
  • B. The marketing application into the Common Runtime; customer service applications into Shield Private Spaces
  • C. The marketing application into the Common Runtime; customer service applications into Private Spaces
  • D. The marketing application into Private Spaces; customer service applications into separate Private Spaces
Show answer and explanation ▾

Correct answer: A

Customer service apps that handle healthcare records belong in Shield Private Spaces, which are built for regulated data such as HIPAA workloads. The marketing app holds no health records, so a Private Space gives it an isolated runtime in the chosen region.

Why the other options are wrong:

  • B. This is not the pairing recommended for the marketing application in this scenario.
  • C. Private Spaces without Shield lack the compliance controls needed for apps that handle healthcare records.
  • D. Separate Private Spaces without Shield lack the compliance controls needed for apps that handle healthcare records.

Question 14

For which two use cases should an Architect recommend using Heroku Redis? (Choose two.)

  • A. Providing long-term data warehousing
  • B. Adding jobs to a queue
  • C. Providing a data cache layer
  • D. Querying relational data
Show answer and explanation ▾

Correct answer: B, C

Heroku Redis is an in-memory data store. Its speed makes it a good fit for a cache layer in front of slower data sources and for queues that hold jobs or messages for worker processes.

Why the other options are wrong:

  • A. An in-memory store is not suited to long-term data warehousing.
  • D. Redis is not a relational database, so relational queries belong in Heroku Postgres.

Question 15

Universal Containers experienced an outage with their production Heroku Postgres database due to a fault with the underlying infrastructure. The database was unavailable for an hour. The database is on the Standard-0 plan.

Which two actions should an Architect recommend to mitigate such database failures and outages in the future? (Choose two.)

  • A. Create a follower database that uses the same plan as the leader.
  • B. Migrate the database to a Premium-tier plan.
  • C. Migrate the database to a larger Standard-tier plan.
  • D. Create a fork of the database that uses the same plan as the leader.
Show answer and explanation ▾

Correct answer: A, B

Premium-tier plans include High Availability, with a standby that takes over automatically if the primary fails. A follower on the same plan keeps a current copy of the data that can be promoted if the leader is lost.

Why the other options are wrong:

  • C. A larger Standard-tier plan adds capacity and still has no High Availability standby.
  • D. A fork is a copy of the data at one point in time and does not stay up to date with the leader.

Question 16

Universal Containers (UC) has configured SSO for their Heroku Enterprise Team using an identity provider (IdP).

When a new employee joins the company, how should their Heroku account be created?

  • A. A Heroku account is created for the employee automatically the first time they log in to Heroku via SSO.
  • B. The employee should create a new Heroku account with the exact email address listed in their IdP record.
  • C. No account creation is required, because all SSO users in a particular Enterprise Team are associated with a single Heroku account.
  • D. An administrator of the Enterprise Team creates the Heroku account with the exact email address listed in the employee's IdP record.
Show answer and explanation ▾

Correct answer: A

With SSO configured for an Enterprise Team, a new employee signs in through the identity provider and Heroku creates the account automatically at that first login. No manual account setup is needed.

Why the other options are wrong:

  • B. The employee does not need to create an account by hand before using SSO.
  • C. Each SSO user has an individual Heroku account, not one shared account.
  • D. An administrator does not need to create the account by hand, since it is created at first SSO login.

Question 17

Universal Containers (UC) recently acquired another company, International Shipping. Each company has its own Salesforce org, and UC wants those orgs to remain separate for the foreseeable future.

Given this scenario, which Heroku feature should an Architect recommend to provide additional value to UC following the acquisition?

  • A. Heroku Connect can be used to synchronize data directly between the two Salesforce orgs.
  • B. Both orgs can be attached to the same Heroku application as an add-on to ensure data residency in the application's region.
  • C. Heroku External Objects can expose read-only data from both Salesforce orgs to Heroku Postgres.
  • D. A Heroku Postgres database can sync data from both orgs for advanced querying capabilities.
Show answer and explanation ▾

Correct answer: D

More than one Salesforce org can sync to the same Heroku Postgres database by using a separate Heroku Connect add-on and database schema for each org. UC can then query data from both companies together while the orgs stay separate.

Why the other options are wrong:

  • A. Heroku Connect syncs a Salesforce org with Heroku Postgres and does not sync two orgs directly with each other.
  • B. A Salesforce org is not an add-on that can be attached to a Heroku application.
  • C. Heroku External Objects exposes Heroku Postgres data to Salesforce, not Salesforce data to Postgres.

That was 17 of 60.

The full Salesforce Heroku Architect pack has all 60 questions, each with the answer, the explanation and why the other options are wrong, plus a questions-only copy for timed runs. $39.00 USD, paid once, with free monthly updates and a pass-or-your-money-back guarantee.

Get the full pack

Not ready yet? Get the first 17 free as one PDF by email. Get the Half Pack →

About the Heroku Architect exam

These 17 Salesforce Heroku Architect questions are free here, and as a free PDF by email.

They are drawn from the same bank as the full Heroku Architect pack, which has 60 questions in total.

Back to blog