問題文
The same worker image must run in a test environment against a test database and in production against the production database. Which arrangement follows the practices in this exam's scope?
選択肢
- One image that discovers the correct database at startup by trying both and using whichever responds, so that no environment-specific configuration is needed
- One image with the connection information supplied through platform settings, and secrets held in a vault referenced from those settings
- Two images built from the same source, each carrying its own environment's connection information so that a misconfigured setting can never point at the wrong database
- One image containing both connection strings, selecting between them with a value compiled in at build time so that the choice is fixed and cannot be changed by mistake