DevOps Tools Engineer (LPIC-OT 701) — Question 9

An Ansible variable file contains the following content:
myapp:
option1: one
Which of the following strings can be used to reference the defined variable? (Choose two correct answers).

Answer options

Correct answer: C, D

Explanation

Options C and D are valid ways to reference the variable defined in the Ansible variable file. Option C uses the correct syntax for accessing a dictionary key, while option D uses dot notation, which is also valid for accessing nested variables. Options A, B, and E use incorrect syntax and will not successfully reference the variable.