Microservices - Configuration and Secrets ManagementWhich of the following is the correct way to externalize configuration in a microservice?AUse environment variables or config files outside the codebase.BHardcode all settings inside the service code.CStore configuration only in the database schema.DEmbed configuration values in compiled binaries.Check Answer
Step-by-Step SolutionSolution:Step 1: Identify common external config methodsEnvironment variables and external config files are standard ways to keep config outside code.Step 2: Eliminate incorrect optionsHardcoding or embedding config in binaries prevents easy updates; database schema is not typical for config files.Final Answer:Use environment variables or config files outside the codebase. -> Option AQuick Check:External config = env vars or files [OK]Quick Trick: Env vars and files are external config basics [OK]Common Mistakes:Confusing database schema with config storageThinking config must be inside codeIgnoring environment variables as config
Master "Configuration and Secrets Management" in Microservices9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepArchTryChallengeDesignRecallScale
More Microservices Quizzes Advanced Patterns - Backend for Frontend (BFF) pattern - Quiz 13medium CI/CD for Microservices - Automated testing strategy - Quiz 9hard CI/CD for Microservices - Mono-repo vs multi-repo - Quiz 9hard Configuration and Secrets Management - Feature toggles - Quiz 2easy Migration from Monolith - Identifying service boundaries - Quiz 6medium Migration from Monolith - Strangler fig pattern - Quiz 8hard Real-World Architecture Case Studies - Lessons from microservices failures - Quiz 9hard Real-World Architecture Case Studies - Netflix architecture overview - Quiz 3easy Real-World Architecture Case Studies - Netflix architecture overview - Quiz 6medium Testing Microservices - End-to-end testing challenges - Quiz 13medium