Exit demo DOP-C02 AWS Certified DevOps Engineer - Professional (DOP-C02) PDF format · free preview

Amazon DOP-C02 - Questions & Answers

Free preview · every answer includes a full explanation

Product page: https://prepkeys.com/dop-c02.html

Question 1
Single choice

Which one of the following is a restriction of AWS EBS Snapshots?

A.

Snapshot restorations are restricted to the region in which the snapshots are created.

B.

You cannot share unencrypted snapshots.

C.

To share a snapshot with a user in other region the snapshot has to be created in that region first.

D.

You cannot share a snapshot containing sensitive data such as an AWS Access Key ID or AWS Secret Access Key.

Question 2
Single choice

What option below is the geographic limit of an EC2 security group?

A.

Security groups are global.

B.

They are confined to Placement Groups.

C.

They are confined to Regions.

D.

They are confined to Availability Zones.

Question 3
Single choice

If designing a single playbook to run across multiple Linux distributions that have distribution specific commands, what would be the best method to allow a successful run?

A.

Enable fact gathering and use the `when' conditional to match the distribution to the task.

B.

This is not possible, a separate playbook for each target Linux distribution is required.

C.

Use `ignore_errors: true' in the tasks.

D.

Use the `shell' module to write your own checks for each command that is ran.

Question 4
Single choice

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

Question 5
Single choice

If Erin has three clusters of server types that are all managed by Ansible and she needs to provision each cluster so that they are configured with their appropriate NTP server addresses.

What is the best method Erin should use in Ansible for managing this?

A.

Write a task that scans the network in the target hosts' region for the NTP server, register the resulting address so that the next task can write the NTP configuration.

B.

Break down the hosts by region in the Ansible inventory file and assign an inventory group variable the NTP address value for the respective region. The playbook can contain just the single play referencing the NTP variable from the inventory.

C.

Create a playbook for each different region and store the NTP address in a variable in the play in the
event the NTP server changes.

D.

Create three plays, each one has the hosts for their respective regions and set the NTP server address in each task.

Question 6
Single choice

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

A.

host1st_ref

B.

host-first-ref

C.

Host1stRef

D.

host_first_ref

Question 7
Single choice

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

Question 8
Single choice

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

Question 9
Single choice

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

Question 10
Single choice

Which resource cannot be defined in an Ansible Playbook?

A.

Fact Gathering State

B.

Host Groups

C.

Inventory File

D.

Variables

Showing 10 of 461 questions · Unlock the full set