Exam Details

  • Exam Code
    :DOP-C02
  • Exam Name
    :AWS Certified DevOps Engineer - Professional (DOP-C02)
  • Certification
    :Amazon Certifications
  • Vendor
    :Amazon
  • Total Questions
    :394 Q&As
  • Last Updated
    :Apr 25, 2025

Amazon Amazon Certifications DOP-C02 Questions & Answers

  • Question 371:

    When specifying more than one conditional requirements for a task, what is the proper method?

    A. - when: foo == "hello" and bar == "world"

    B. - when: foo == "hello" - when: bar == "world"

    C. - when: foo == "hello" andand bar == "world"

    D. - when: foo is "hello" and bar is "world"

  • Question 372:

    Ansible supports running Playbook on the host directly or via SSH. How can Ansible be told to run its playbooks directly on the host?

    A. Setting `connection: local' in the tasks that run locally.

    B. Specifying `-type local' on the command line.

    C. It does not need to be specified; it is the default.

    D. Setting `connection: local' in the Playbook.

  • Question 373:

    When writing custom Ansible modules, which language is not supported?

    A. Python

    B. C++

    C. Bash

    D. All of the languages listed are supported

  • Question 374:

    What is the expected behavior if Ansible is called with `ansible-playbook -i localhost playbook.yml'?

    A. Ansible will attempt to read the inventory file named `localhost'

    B. Ansible will run the plays locally.

    C. Ansible will run the playbook on the host named `localhost'

    D. Ansible won't run, this is invalid command line syntax

  • Question 375:

    The Ansible Inventory system allows many attributes to be defined within it. Which item below is not one of these?

    A. Group variables

    B. Host groups

    C. Include vars

    D. Children groups

  • Question 376:

    If Ansible encounters a resource that does not meet the requirements specified in the play it makes the necessary changes to the resource; however if the resource is already in the desired state Ansible will do nothing. This is an example of which methodology?

    A. Idempotency

    B. Immutability

    C. Convergence

    D. Infrastructure as Code

  • Question 377:

    When writing plays, tasks and playbooks, Ansible fully supports which high level language to describe these?

    A. YAML

    B. Python

    C. XML

    D. JSON

  • Question 378:

    You have a playbook that includes a task to install a package for a service, put a configuration file for that package on the system and restart the service. The playbook is then run twice in a row. What would you expect Ansible to do on the second run?

    A. Remove the old package and config file and reinstall and then restart the service.

    B. Take no action on the target host.

    C. Check if the package is installed, check if the file matches the source file, if not reinstall it; restart the service.

    D. Attempt to reinstall the package, copy the file and restart the service.

  • Question 379:

    Which tool will Ansible not use, even if available, to gather facts?

    A. facter

    B. lsb_release

    C. Ansible setup module

    D. ohai

  • Question 380:

    If a variable is assigned in the `vars' section of a playbook, where is the proper place to override that variable?

    A. Inventory group var

    B. playbook host_vars

    C. role defaults

    D. extra vars

Tips on How to Prepare for the Exams

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.