Salesforce Certified Heroku Architecture Designer — Question 38

A client wants to migrate their on-premise application to Heroku. The application maintains a local, in-memory cache for its data store to improve performance.
What should an Architect advise the client about running the application on Heroku?

Answer options

Correct answer: A

Explanation

The correct answer is A because declaring the in-memory cache as a separate process type allows it to persist across deploys, which is crucial for maintaining performance. Option B is incorrect as each dyno in Heroku runs in isolation and does not share in-memory data. Option C is also wrong because Heroku's ephemeral filesystem means that local disk storage does not guarantee persistence during deploys. Option D highlights a risk, but it doesn't provide a solution for preserving the cache.