Heroku Developer Accredited Professional

Heroku Developer Accredited Professional practice questions, page 2 of 3, with answer review and explanations.

Question 6

What is a Procfile?

  1. A file that declares the OS level processes that an application relies on.
  2. A file that declares the commands that an app’s dynos run when they start-up.
  3. A file that defines which build packs an application should load.
  4. A file that defines the Heroku application and load balancer configuration.

Question 7

How would a developer cache a session state in Heroku for an application?

  1. Outside of the Heroku Platform e.g., AWS
  2. Design stateful apps
  3. Leverage Dyno memory to store the session state
  4. Use Redis or Memcache to store any session data

Question 8

How do Heroku Webhook works?

  1. Heroku sends an HTTP GET to the url configured to retrieve information on how to process the information received.
  2. Heroku publishes an event to the Kafka topic configured to receive the event with information provided in the message.
  3. Heroku sends an HTTP POST to the URL configured to receive the notification with information about the event triggered.
  4. Heroku publishes a new key-value pair to the configured Redis instance that holds information on the event triggered.

Question 9

Which of the following are the major components of Heroku Kafka?

  1. Routers, DNS, TLS, Window Sizing
  2. Routers, Producers, TLS, Window Congestion
  3. Topics, Producers, Brokers, Consumers
  4. Routers, Producers, Consumers, DNS

Question 10

The client is migrating their on-premise app to Heroku, currently this app stores all the logs in a log file in the root folder.According to the Twelve-Factor methodology, which two changes should an Architect recommend while migrating this app to Heroku? (Choose two.)

  1. Move the log files to an S3 service.
  2. Use a worker dyno to store data in that log file.
  3. Make changes to the code and push all the logs to stdout.
  4. Attach a backing service to collect all the logs and store them.