Bird
0
0

What is the problem with this canary deployment configuration snippet?

medium📝 Analysis Q7 of 15
Microservices - CI/CD for Microservices
What is the problem with this canary deployment configuration snippet?
canary_percentage: "twenty"
APercentage must be a string with % symbol
BPercentage should be omitted for canary deployments
CPercentage should be a numeric value, not a string
DNo problem, this is valid syntax
Step-by-Step Solution
Solution:
  1. Step 1: Check data type for percentage

    Percentage values should be numeric to allow calculations.
  2. Step 2: Identify issue with string value

    Using "twenty" as a string prevents numeric operations and causes errors.
  3. Final Answer:

    Percentage should be a numeric value, not a string -> Option C
  4. Quick Check:

    Percentage must be numeric, not string [OK]
Quick Trick: Use numbers for percentages, not words or strings [OK]
Common Mistakes:
  • Using strings instead of numbers for percentages
  • Assuming strings with words are valid
  • Ignoring type requirements in config

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes