hands-on lab

Reading, Writing, and Parsing YAML Files

Difficulty: Beginner
Duration: Up to 1 hour
Students: 305
Rating: 5/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

YAML (Yet Another Markup Language) is a format for serializing data in a text file. It is similar to other textual data formats such as JSON and XML. YAML is widely used for storing configuration data for software applications, build systems, and deployment platforms.

Being able to read, write and parse YAML files will help you be more effective when working with modern cloud-based systems and applications.

In this lab, you will create a YAML file, parse the file using the Python scripting language, and learn about the different data structures YAML offers.

Learning Objectives

Upon completion of this beginner level lab, you will be able to:

  • Author a YAML file
  • Parse a YAML file using Python
  • Identify and use different data structures in YAML

Intended Audience

  • Cloud Architects
  • Data Engineers
  • DevOps Engineers
  • Software Engineers

Prerequisites

Familiarity with the Python scripting language will be beneficial but is not required.

The following course and lab can be used to fulfill the prerequisite:

Covered topics

Lab steps

Reading, Writing and Parsing YAML Files