Bird
0
0

Which of the following is the correct syntax to define a canary deployment percentage in a YAML configuration file?

easy📝 Conceptual Q3 of 15
Microservices - CI/CD for Microservices
Which of the following is the correct syntax to define a canary deployment percentage in a YAML configuration file?
Acanary_percentage = '10%'
BcanaryPercentage: 10
CpercentageCanary: 'ten'
DcanaryPercent: ten_percent
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct YAML key and value format

    YAML uses key: value pairs, numeric values should be numbers without quotes for percentages.
  2. Step 2: Check options for valid YAML syntax

    canaryPercentage: 10 uses correct key and numeric value. Others use invalid syntax or strings.
  3. Final Answer:

    canaryPercentage: 10 -> Option B
  4. Quick Check:

    YAML key-value numeric = canaryPercentage: 10 [OK]
Quick Trick: YAML uses key: number without quotes for numeric values [OK]
Common Mistakes:
  • Using equals sign instead of colon in YAML
  • Putting numeric values in quotes unnecessarily
  • Using invalid key names or strings for numbers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes