EX374 Sample Questions

EX374 Sample Questions & Answers

Free Red Hat Certified Specialist In Developing Automation With Ansible Automation Pl practice questions with worked answers and explanations. See how the ExamJungle simulator prepares you — then jump into the full test.

Launch the full EX374 simulator →

Showing 6 of 12 free samples.

  1. Question 1Intermediate

    Manage inventories and credentials · Manage advanced inventories

    You are managing a dynamic inventory sourced from AWS with the amazon.aws.aws_ec2 plugin. You need to group instances by the value of their custom tag Environment, so that an instance tagged Environment: prod is placed in a group named env_prod.

    Which configuration in your aws_ec2.yml plugin file achieves this?

    Show answer & explanation

    Correct answer: B

    keyed_groups builds a group name from the prefix, an underscore and the key's value. So a host tagged Environment: prod goes into env_prod. The groups setting only adds hosts to a fixed group name when a condition is true.

  2. Question 2Beginner

    Understand and use Git · Clone a Git repository

    You are reviewing a playbook that uses the ansible.builtin.git module. You notice the update parameter is set to no.

    What is the specific effect of this configuration when the playbook runs multiple times?

    Show answer & explanation

    Correct answer: C

    With update: no, the git module clones the repository when the destination is missing. If a clone already exists, it returns without fetching anything, even when the remote branch has new commits.

  3. Question 3Advanced

    Transform data with filters and plugins · Inspect, validate, and manipulate variables containing networking information with filters

    A system administrator needs to process a list of dictionaries containing network interface data.

    Data structure:

    [
    {"name": "eth0", "active": true, "speed": 1000},
    {"name": "eth1", "active": false, "speed": 1000},
    {"name": "eth2", "active": true, "speed": 100}
    ]
    

    The goal is to extract ONLY the names of interfaces that are active and have a speed greater than 500.

    Which Jinja2 filter chain produces the correct list ['eth0']?

    Show answer & explanation

    Correct answer: C

    The first selectattr keeps the items where active is true. The second keeps those with speed greater than 500. map(attribute='name') then returns just the names, so the result is eth0.

  4. Question 4Beginner

    Manage content collections · Create a content collection

    You have created a new Ansible Content Collection named company.monitoring. You need to build the collection artifact to upload it to your private Automation Hub.

    Which command should you execute in the root directory of the collection?

    Show answer & explanation

    Correct answer: C

    ansible-galaxy collection build reads galaxy.yml and packs the collection into a namespace-name-version.tar.gz file. You upload that file. The collection init command only creates the skeleton.

  5. Question 5Intermediate

    Manage inventory variables · Structure host and group variables using multiple files per host or group

    Which of the following variables has the HIGHEST precedence in Ansible when setting the value of http_port?

    Show answer & explanation

    Correct answer: B

    Extra vars given with -e have the highest precedence, so they override play vars, host and group vars, and role defaults. Role defaults have the lowest precedence of all.

  6. Question 6IntermediateSelect 2

    Manage task execution · Run selected tasks from a playbook

    You are creating a playbook that performs maintenance on a cluster of web servers. You want to ensure that if the maintenance task fails on more than 30% of the hosts in the first batch, the entire playbook execution aborts immediately to prevent widespread outage.

    Which settings should you apply to the play definition? (Select TWO)

    Show answer & explanation

    Correct answers: A, C

    serial runs the play in batches of that size. The failure percentage is then checked per batch. So a bad first batch stops the play before the other hosts are touched.

    max_fail_percentage: 30 stops the play when more than 30% of the hosts in the batch fail. any_errors_fatal would stop on the very first failure instead.

Ready for the real thing?

The full EX374 simulator has every exam-style question, timed mode, and instant scoring.

Go to the EX374 simulator →