Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 701-100 Topic 3 Question 88 Discussion

Actual exam question for LPI's 701-100 exam
Question #: 88
Topic #: 3
[All 701-100 Questions]

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).

Show Suggested Answer Hide Answer
Suggested Answer: A, E

Contribute your Thoughts:

Anna
6 days ago
Hmm, let me think. I'll go with C) myapp['option1'] and D) myapp.option1. Ansible uses dot notation and bracket notation to access variables, so those two options seem like the winners to me.
upvoted 0 times
...
Tambra
13 days ago
I'm not sure about E) myapp{{option1}}, it looks like it might have a syntax error. I would go with C) and D) as well.
upvoted 0 times
...
Avery
14 days ago
I agree with Lovetta, those options make sense because they follow the correct syntax for referencing variables in Ansible.
upvoted 0 times
...
Lovetta
21 days ago
I think the correct answers are C) myapp['option1'] and D) myapp.option1
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77