Q14Software Development and DesignMultiple answers
Which two principles form part of the codebase tenet in the 12-factor app methodology? (Choose two.)
Select 2 answers.
← → navigate · a answer
Community votes
Discussion · 7
19
'A & C' is right.
https://12factor.net/codebase
5
AC, because a codebase can have many application deployments
A, C 4
Selected Answer: AC
Factor I: Codebase
One codebase tracked in revision control, many deploys.
There should be exactly one codebase for a deployed service, with that codebase used for many deployments.
If there are multiple codebases, it’s not an app; it’s a distributed system. Then each component is an app, and each can individually comply with the 12-factor methodology.
Multiple apps sharing the same code is a violation of the 12-factor methodology (do libraries instead).
Source:
Cisco DEVCOR 350-901 Study Guide
3
A, C.
A, C 3
Selected Answer: AC
A and C are right.
## Factor I: Codebase ##
One codebase tracked in revision control, many deploys.
There should be exactly one codebase for a deployed service, with that codebase used for many deployments. If there are multiple codebases, it’s not an app; it’s a distributed system. Then each component is an app, and each can individually comply with the 12-factor methodology. Multiple apps sharing the same code is a violation of the 12-factor methodology (use libraries instead).
2
Here is the right explanation:
A twelve-factor app is always tracked in a version control system.
There is only one codebase per app, but there will be many deploys of the app.
The codebase stays the same across all deploys, although different versions may be active in each deploy
A, C 2
Selected Answer: AC
Correct answers: A & C
https://12factor.net/codebase
If there are multiple codebases, it’s not an app - it’s a distributed system. Each component in a distributed system is an app, and each can individually follow twelve-factor.
There is only one codebase per app, but there will be many deploys of the app. A deploy is a running instance of the app. This is usually a production site, and one or more staging sites. Additionally, every developer has a copy of the app running in their local development environment, each of which also counts as a deploy.