CS FundamentalsHardProduct-company placement · DevOps

How many of these are Twelve-Factor App recommendations? 1. Write logs as an event stream to stdout and let the environment route them. 2. Keep user session state in the process's memory and route each user to the same instance. 3. Keep development, staging and production as similar as possible. 4. Strictly separate build, release (build + config) and run stages.

  1. A. 3
  2. B. 2
  3. C. 4
  4. D. 1

Correct answer: A. 3

1, 3 and 4 are factors (logs, dev/prod parity, build-release-run). Twelve-factor processes are stateless and share-nothing, with state kept in backing services, so sticky in-memory sessions (2) go against it.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic