YAML Anchors and Aliases Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Design and Implement Workflow Structure

What you'll be asked

  1. Which symbol is used to define an anchor in YAML?
  2. What is the primary purpose of using YAML anchors and aliases in a workflow configuration?
  3. Which symbol is used to reference an existing anchor (the alias)?
  4. When using the merge key (<<) with an alias, what is the expected behavior?
  5. Given the following YAML: default: &base_config {timeout: 30, retries: 3} ... job: {<<: *base_config, timeout: 60}. What will be the final value of 'retries' in the 'job' object?

Answers and explanations come after you submit.