Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Salesforce Certified Heroku Architect Heroku-Architect Exam Questions

Last updated: · 10 practice questions with answers and explanations

Page: 1 / 12 Total 170 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Heroku Platform

Skill tested: Select a scaling strategy that absorbs traffic spikes while managing dyno capacity.

A ticketing service runs a web process on Heroku Common Runtime. During scheduled onsales, request volume can rise sharply for several minutes and then return to its normal level. The application is stateless, and its operator can forecast the event but cannot guarantee the exact peak. The current web dyno count is sized for ordinary demand, and long-running requests are already being moved to background workers. The team wants to protect response times during the surge without paying for peak capacity all month. Which approach is most appropriate?

Correct Answer: B. Use an autoscaling capability appropriate to the app and dyno type, set response-time or throughput targets, and retain capacity limits and monitoring.
Explanation:

Autoscaling can adjust eligible dyno capacity in response to application demand, which better fits a brief, variable surge than maintaining peak dyno counts continuously. The team should configure suitable scaling targets and limits and monitor the result; autoscaling is not a substitute for capacity planning or performance testing. A permanent peak formation increases ongoing cost. Buildpacks assemble the slug and do not themselves provide request-level scaling. A follower database is for read scaling and does not add web-process capacity.

Question 2

New Single answer

Topic: Data

Skill tested: Distinguish read-only Postgres followers from writable primary databases in reporting architectures.

A subscription business uses Heroku Postgres as the system of record for its application. Its nightly reporting workload has grown and now competes with customer transactions for database resources. Reports can tolerate some replication lag, but the reporting service must never update application data. The team wants to reduce load on the primary while preserving the existing application write path and keeping reporting access limited to the reporting service. Which design best meets these requirements?

Correct Answer: D. Create a follower database for reporting, direct reporting reads to it, and keep all writes on the primary.
Explanation:

A Heroku Postgres follower asynchronously replicates from its leader and can serve read workloads, making it appropriate for reports that tolerate replication lag. Application writes remain directed to the primary, while access controls should restrict the reporting service to its intended database credentials and operations. Promoting a follower changes its role and is not a routine read-offload technique. A separate credential does not reduce load on the primary, and Dataclips provide a way to run and share queries rather than a writable reporting database.

Question 3

New Multiple answers

Topic: Security

Skill tested: Choose Private Space connectivity features for controlled access to corporate networks.

A financial-services company is placing a customer-facing Heroku application in a Private Space. The app must call internal services hosted in the company's data center, and administrators require private network connectivity rather than exposing those services to the public internet. The company already has an enterprise network team that can configure routing and access controls. Its security review does not require a dedicated end-to-end VPN tunnel, but it does require the application to have private IP connectivity to selected corporate network ranges. Select TWO actions that best satisfy the requirement.

Correct Answer: B. Use Private Space Peering with the corporate network and configure routes and access controls for the required private ranges.; C. Use Private Space Peering for private network connectivity and keep internal services inaccessible from public routes.
Explanation:

Private Space Peering connects a Private Space network with a customer network over private IP addressing; the customer configures appropriate routes and network controls. Keeping the internal services off public routes preserves the required private access model. A VPN is a valid alternative when a tunnel-based connection is required, but that is not the stated need. Common Runtime does not provide the specified Private Space network relationship, while public exposure contradicts the company's requirement.

Question 4

New Single answer

Topic: Heroku Enterprise

Skill tested: Apply Heroku Enterprise team roles and app permissions to enforce least privilege.

A consulting organization manages several production applications in a Heroku Enterprise Team. Developers need to deploy code and view application logs, but they must not manage team membership or administer billing. A smaller operations group must manage access for the team, while finance handles billing separately. The organization wants to use the Enterprise Team's role-based access model rather than share credentials or grant broad account privileges. Which access design is most appropriate?

Correct Answer: A. Assign developers an appropriate deploy-capable team role, reserve team administration for operations, and keep billing administration with finance.
Explanation:

Enterprise Teams provide centralized membership and role-based access that can separate app work from team administration and billing responsibilities. Developers should receive only a role that supports their deployment and operational needs, while team administration remains with the designated operations group and billing access is limited to finance. Giving all developers administrator rights violates least privilege. Shared owner credentials undermine individual accountability, and leaving Enterprise Teams is unnecessary.

Question 5

New Multiple answers

Topic: Heroku Enterprise

Skill tested: Match Heroku Shield capabilities to regulated workloads requiring enhanced controls.

A healthcare company is evaluating a Heroku architecture for workloads subject to stringent regulatory and audit requirements. The proposed system handles sensitive patient-related data, and security reviewers want a platform option designed for regulated workloads, with enhanced compliance-oriented controls. The team understands that choosing such a platform does not by itself make the application compliant; application design, operational procedures, and the applicable contractual requirements still need review. Which TWO recommendations are appropriate?

Correct Answer: B. Use Shield where its enhanced platform controls and compliance features fit the workload, and validate the solution's shared-responsibility requirements.; C. Evaluate Heroku Shield services and the applicable compliance commitments for the specific regulated workload.
Explanation:

Heroku Shield is intended for regulated workloads and offers enhanced platform controls and compliance-oriented features, so evaluating its specific services and commitments is appropriate. Platform capabilities are only part of a compliant system: the organization must also validate the workload, configuration, application controls, operations, and applicable agreements. Shield does not automatically certify an entire application. Enterprise Team membership does not convert Common Runtime into Shield, and database replication is not a compliance certification.

Question 6

New Single answer

Topic: Heroku Architect Applications

Skill tested: Apply twelve-factor configuration and process design to portable Heroku applications.

A team is moving a service from a test Heroku app to production. The service currently contains a production API token in a configuration file committed to source control, and it writes uploaded files to a directory inside the dyno. Deployments occasionally replace dynos, and the team wants the same slug to run across environments without embedding environment-specific values. Which change best follows twelve-factor principles and addresses both operational risks?

Correct Answer: B. Set the token as environment configuration and store uploads in an external durable service rather than the dyno filesystem.
Explanation:

Twelve-factor configuration keeps deploy-specific settings, including credentials, outside the codebase; on Heroku, environment configuration is the standard mechanism. Dyno filesystems are ephemeral, so uploaded data must be stored in a durable external service rather than relying on local dyno files. Encrypting a committed secret still leaves it in source control and complicates rotation. Buildpacks create slugs and are not secret stores, while a larger ephemeral filesystem does not provide durability.

Question 7

New Multiple answers

Topic: Heroku Architect Applications

Skill tested: Design Kafka event flows with decoupled producers, consumers, and asynchronous processing.

An online marketplace has separate order, inventory, and notification services running on Heroku. A burst of orders currently causes synchronous calls between all three services; when notifications slow down, checkout latency rises and requests sometimes fail. The business accepts delayed notifications, but order acceptance must not depend on notification availability. The team wants an event-driven design using Apache Kafka on Heroku and needs to preserve independent service scaling. Select TWO design decisions that best meet these goals.

Correct Answer: B. Have the order service publish an order event to Kafka, then let notification and inventory consumers process their respective work independently.; D. Use Kafka topics to decouple event production from consumption, and size or scale consumer processes according to their processing demand.
Explanation:

Publishing an order event allows checkout to hand off downstream work without waiting for notification delivery. Independent consumers can process the event at their own pace, and consumer capacity can be adjusted for each service's workload. Kafka provides the event-streaming layer for this decoupling; it does not require all consumers to finish before the producer continues. Retaining synchronous notification preserves the failure coupling, while a shared database creates direct coupling and does not meet the requested Kafka-based architecture.

Question 8

New Single answer

Topic: Integrations

Skill tested: Configure Heroku Connect mappings and External IDs for reliable Salesforce record synchronization.

A retail company uses Heroku Connect to synchronize Salesforce contacts with a Heroku Postgres database used by a customer portal. The portal also imports contact updates from an external partner. Salesforce record IDs are not known when partner records first arrive, and partner identifiers are stable and unique within the partner system. The team needs to match imported rows to the correct Salesforce contacts and avoid creating duplicates when data synchronizes. Which approach is most appropriate?

Correct Answer: C. Use the partner identifier as an External ID field in Salesforce, map that field through Heroku Connect, and use it to match records.
Explanation:

A stable partner identifier stored in a Salesforce External ID field provides a durable key for matching imported records, and Heroku Connect can map the field between Salesforce and Postgres. This supports reliable upserts and helps prevent duplicate records when Salesforce IDs are not initially available to the partner feed. A Salesforce record ID is assigned by Salesforce, so generating one in Postgres is not valid. Names are not reliably unique, and disabling synchronization abandons the required integration.

Question 9

New Single answer

Topic: Integrations

Skill tested: Choose a Salesforce integration technique based on user interaction and data synchronization requirements.

A company wants sales representatives to work with a Heroku-hosted pricing application directly from Salesforce Lightning. The application must receive the current Salesforce user's identity for authorization, present an interactive user interface, and return a calculated quote without maintaining a replicated copy of all Salesforce data. The company has no requirement for bidirectional bulk synchronization, and it wants the pricing logic to remain hosted on Heroku. Which integration approach best fits?

Correct Answer: D. Embed or expose the Heroku application in the Lightning user experience and implement a secure identity-aware request flow for the calculation.
Explanation:

An interactive Heroku application integrated into Lightning, with a secure identity-aware request flow, meets the user-interface and authorization needs without introducing unnecessary data replication. The integration must be designed to validate identity and protect requests appropriately. Heroku Connect is useful when Salesforce and Postgres data need synchronization, which this scenario explicitly does not require; direct access to a replicated database is also not the requested live interface. Dataclips are not a live application UI, and buildpacks run during slug creation rather than serving requests.

Question 10

New Single answer

Topic: Heroku Platform

Skill tested: Explain how buildpacks contribute to Heroku slug creation and deployment.

A platform team maintains a Heroku application whose build succeeds locally but fails during deployment after a runtime upgrade. The application relies on a language runtime and a native image-processing dependency, and the team suspects that its deployment process is assembling a different runtime environment from local development. They want to diagnose the slug contents and make the dependency setup reproducible while avoiding manual changes to running dynos. Which action is the best next step?

Correct Answer: D. Inspect the build output and buildpack order, then configure appropriate buildpacks to provide the runtime and required build-time dependencies in the slug.
Explanation:

Heroku buildpacks participate in the build process that detects and prepares an application, including its runtime and dependencies, into a slug for execution. Reviewing build logs and buildpack configuration is therefore the relevant way to diagnose inconsistent slug creation and ensure required build-time components are reproducibly installed. Manual changes to a dyno are not durable across replacement or deployment. More dynos do not repair a build artifact, and Postgres extensions are unrelated to application runtime dependency installation.