What is the proper (best practice) way to begin a playbook?
A. - hosts: all
B. ...
C. ###
D. --
Which difference between core modules and extra modules is not correct?
A. Extra modules may one day become core modules
B. Core modules are supported by the Ansible team
C. Core modules are shipped by default with Ansible
D. Extra modules have no support
Ansible provides some methods for controlling how or when a task is ran. Which of the following is a valid method for controlling a task with a loop?
A. - with:
B. - with_items:
C. - only_when:
D. - items:
Which resource cannot be defined in an Ansible Playbook?
A. Fact Gathering State
B. Host Groups
C. Inventory File
D. Variables
When specifying multiple variable names and values for a playbook on the command line, which of the following is the correct syntax?
A. ansible-playbook playbook.yml -e `host="foo" pkg="bar"'
B. ansible-playbook playbook.yml -e `host: "foo", pkg: "bar"'
C. ansible-playbook playbook.yml -e `host="foo"' -e `pkg="bar"'
D. ansible-playbook playbook.yml --extra-vars "host=foo", "pkg=bar"
When Ansible's connection state is set to `remote', what method of communication does Ansible utilize to run commands on the remote target host?
A. SSH
B. RSH
C. PSExec
D. API call to Ansible client on host
What are the bare minimum requirements for a valid Ansible playbook?
A. The hosts, connection type, fact gathering, vars and tasks.
B. The hosts declaration and tasks
C. A YAML file with a single line containing `---'.
D. At least one play with at least a hosts declaration
When running a playbook on a remote target host you receive a Python error similar to "[Errno 13] Permission denied: `/home/nick/.ansible/tmp'. What would be the most likely cause of this problem?
A. The user's home or `.ansible' directory on the Ansible system is not writeable by the user running the play.
B. The specified user does not exist on the remote system.
C. The user running `ansible-playbook' must run it from their own home directory.
D. The user's home or `.ansible' directory on the Ansible remote host is not writeable by the user running the play
Which of the following is an invalid variable name in Ansible?
A. host1st_ref
B. host-first-ref
C. Host1stRef
D. host_first_ref
Which is the proper syntax for referencing a variable's value in an Ansible task?
A. ${variable_name}
B. { variable_name }
C. "{{ variable_name }}"
D. @variable_name
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Amazon exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your DOP-C02 exam preparations and Amazon certification application, do not hesitate to visit our Vcedump.com to find your solutions here.