EX457 Online Practice Questions

Home / RedHat / EX457

Latest EX457 Exam Practice Questions

The practice questions for EX457 exam was last updated on 2025-11-01 .

Viewing page 1 out of 2 pages.

Viewing questions 1 out of 11 questions.

Question#1

An engineer wants to create a new directory for playbook backups and immediately change into that new directory. They want to ensure the second command only runs if the first command is successful.
They execute the following command but it fails:
[student@control-node ~]$ mkdir /root/backups && cd /root/backups
mkdir: cannot create directory ‘/root/backups’: Permission denied
Which statement accurately describes the outcome of this command sequence?

A. The `&&` operator causes the `mkdir` command to be retried until it succeeds.
B. The `mkdir` command fails, but the `cd` command still executes, causing an error.
C. Both the `mkdir` and `cd` commands execute, but a warning is displayed.
D. The `mkdir` command fails, and because the `&&` operator was used, the `cd` command does not execute.

Question#2

A team follows the Git-flow workflow, where all feature development happens in `feature/*` branches, which are then merged into a `develop` branch for integration testing. Only after the `develop` branch passes all tests is it merged into the `main` branch for production releases.
An administrator needs to model this workflow in Automation Controller. They want to ensure that an update and deployment of the `main` branch can only be triggered after the `develop` branch's project sync has succeeded.
Which Automation Controller feature is best suited to implement this conditional, multi-step Git and deployment process?

A. Create a Workflow Template containing two Projects: one tracking the `develop` branch and another tracking the `main` branch. Set up a conditional workflow link between them.
B. Create one Project and configure it with two different Source Control Credentials, one for the `develop` branch and one for the `main` branch.
C. In a single Job Template, use the `ansible.builtin.command` module to sequentially run `git pull origin develop` and `git pull origin main`.
D. Create two separate Job Templates, one for deploying the `develop` branch and another for the `main` branch, and instruct users to run them manually in order.

Question#3

An administrator needs to configure an Automation Controller Project to use playbooks from a private GitHub repository. Authentication to the repository will use a read-only SSH key.
Which of the following actions must the administrator perform to allow the Project to synchronize successfully? (Select all that apply.)

A. Add the SSH private key to the `group_vars/all.yml` file within the Project itself.
B. Associate the newly created "Source Control" credential with the Project.
C. Create a new Credential of the "Machine" type with the SSH private key.
D. Add the public key corresponding to the private key to the GitHub repository's deploy keys.
E. Create a new Credential of the "Source Control" type with the SSH private key.

Question#4

After running a task with the `cisco.ios.ios_facts` module, the following data structure is returned.
"ansible_facts": {
"ansible_net_gather_subset": [
"all"
],
"ansible_net_hostname": "csr1000v",
"ansible_net_interfaces": {
"GigabitEthernet1": {
"bandwidth": 1000000,
"description": null,
"ipv4": [
{
"address": "192.168.1.101",
"subnet": "24"
}
],
"macaddress": "0a:de:3f:74:e7:00",
"mediatype": "Virtual",
"mtu": 1500,
"operstatus": "up",
"type": "CSR vNIC"
}
},
"ansible_net_model": "CSR1000V",
"ansible_net_serialnum": "9K8ZW5V7M4S",
"ansible_net_version": "16.09.04"
}
Which Jinja2 expression will correctly extract the serial number of the device?

A. `ansible_facts['ansible_net_serialnum']`
B. `ansible_net_serialnum`
C. `ansible_facts.serialnum`
D. `ansible_facts.ansible_net_serialnum`

Question#5

A Project is configured to pull playbooks from the `main` branch. An administrator creates a Job Template to run a playbook from this Project. In the Job Template settings, the administrator enters `feature/new-bgp-policy` into the "Branch Override" field.
What happens when this Job Template is launched? (Select all that apply.)

A. If the `feature/new-bgp-policy` branch exists in the remote repository, the job will execute using the playbooks from that branch.
B. This Job Template must have "Prompt on Launch" enabled for the branch override to take effect.
C. On job launch, Automation Controller will attempt to check out the code from the `feature/new-bgp-policy` branch.
D. The job will fail because the branch set in the Project cannot be overridden.
E. The Project's default "Source Control Branch" setting will be permanently changed to `feature/new-bgp-policy`.

Exam Code: EX457Q & A: 45 Q&AsUpdated:  2025-11-01

 Get All EX457 Q&As