01. Calderbank Media connects its Heroku app to a GitHub repository and enables automatic deploys from the develop branch, with Wait for CI to pass before deploy checked. A developer also uses a manual deploy to try a feature branch on the same app.
Which statements about this setup are accurate?
(Choose 2 answers.)
a) Heroku copies every GitHub push into the app's Heroku Git repository too
b) The next successful push to develop replaces the feature branch release
c) Manual deploys can only use the branch set for automatic deploys
d) A push to develop deploys only once all of its commit statuses show success
02. Orchid Lane Software has tuned twenty mappings on the Heroku Connect connection of its staging app. The production app has its own Heroku Connect add-on, already authorized to the production org, and needs the same mappings.
What is the most efficient way to configure the production connection?
a) Promote the staging app through the pipeline, moving all twenty mappings to production along with the slug
b) Declare the add-on and all twenty mappings in the addons section of app.json
c) Export the staging connection's configuration to JSON and import it into the production connection
d) Reauthenticate the staging connection to the production org, then attach it to the production app
03. A student at Brindle Studio hosts a portfolio app on a single Eco web dyno. Visitors who arrive after the site has had no traffic for a while say the first page takes several seconds to load, while later pages are fast.
What explains this behavior?
a) Eco web dynos sleep after a period with no traffic and wake on the next request
b) The dyno manager rebuilds the slug before the first request of each hour
c) Eco dynos are cycled every hour, and a fresh dyno often has to boot before a visit
d) The router sends an idle app's first request to a one-off dyno
04. Kestrel Outfitters moves its pricing engine out of the storefront into a separate Heroku app with its own codebase, and the pricing app serves HTTP from its own web process. The storefront calls it on every product page.
From the storefront’s point of view, how does the twelve-factor methodology classify the pricing app?
a) A library dependency that the storefront declares in its manifest
b) An admin process that the storefront runs against its own release
c) A second deploy of the storefront app, built from the same codebase
d) A backing service attached to the storefront like any other networked resource
05. A chat service at Zennor Interactive runs on Performance-M web dynos with native autoscaling enabled. Almost all user activity flows over long-lived WebSocket connections, with few ordinary HTTP requests. At peak the dynos are saturated, but autoscaling never adds a dyno.
What best explains this?
a) Autoscaling responds to memory use, which here stays under the quota
b) Autoscaling leaves WebSocket traffic out of its calculations
c) WebSockets are not supported on Performance dynos
d) On Performance-M, autoscaling watches worker dynos
06. An audit at Medley Payments shows that the app's request log records Heroku addresses instead of customer IP addresses for HTTPS traffic to its custom domain.
Where should the app read the customer's IP address?
a) The X-Forwarded-For request header
b) The Host header sent by the customer's browser
c) The source address recorded by the space's trusted IP ranges
d) The socket's remote address, after uploading the app's own certificate
07. The Hazelcroft app already runs a monitoring add-on on an entry-level plan, and the team now needs the provider's higher plan for more features.
Which Heroku CLI command moves the existing add-on to the new plan?
a) heroku addons:create with the new plan name
b) heroku addons:upgrade with the new plan name
c) heroku addons:open with the new plan name
d) heroku addons:attach with the new plan name
08. Oakhaven Logistics builds its order system from three Git repositories: an API, a background billing service and a customer web front end. Each repository is deployed as its own Heroku app. A new architect says this breaks the twelve-factor rule of one codebase per app.
How does the Codebase principle classify this system?
a) As one app that violates Codebase until the three repositories are merged into one
b) As three apps that must share one codebase so their releases stay in step
c) As one app whose three repositories count as one codebase because they deploy together
d) As a distributed system in which each component is an app that can comply on its own
09. A developer at Hartwell Couriers wants to watch, live, only the lines that the app's worker code writes, with no router or platform messages mixed in.
Which command does this?
a) heroku logs --source heroku --dyno worker --tail
b) heroku logs --dyno router --tail
c) heroku logs --source app --dyno worker --tail
d) heroku logs -n 1500 --dyno web
10. The Thistledown app copies its add-on's connection URL into a settings file during the build and reads only that file at runtime. After the add-on provider moved the service during an infrastructure failover, the app lost its connection.
Which two statements explain the problem and the correct practice?
(Choose 2 answers.)
a) A provider can update its config var, for example after a failover
b) Add-on config vars are fixed at provisioning and change only on removal
c) Apps should read add-on config vars at runtime, never cache them at build
d) A changed add-on config var leaves the running dynos unrestarted