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.
- A. 3
- B. 2
- C. 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Before refactoring a legacy pricing module with no tests, a developer records its current outputs for many inputs, including results she…
- A new filter must be added to a 400-line untested method. Instead of editing the method's logic, the developer writes the filter as a new…
- A quality-attribute scenario reads: 'During peak sale traffic, a shopper's search request is answered by the catalogue service within 2 s…
- A project planned to finish in month 10 actually finishes in month 13. Why does its schedule performance index (SPI = EV / PV) show 1.0 at…
- An activity not on the critical path has a total float of 3 days and a free float of 1 day. It is delayed by 5 days, and nothing else…
- Which loop invariant lets you prove this binary search correct for a sorted list a? python lo, hi = 0, len(a) - 1 while lo <= hi: mid =…