AWS DevOps Engineer Professional DOP-C01 – Question454

Which of the following is an invalid variable name in Ansible?

A.
host1st_ref
B. host-first-ref
C. Host1stRef
D. host_first_ref

Correct Answer: B

Explanation:

Explanation:
Variable names can contain letters, numbers and underscores and should always start with a letter. Invalid variable examples, `host first ref’, `1st_host_ref”.
Reference:
http://docs.ansible.com/ansible/playbooks_variables.html#what-makes…