Practice Free EX457 Exam Online Questions
In the context of Ansible network automation, what are "facts"?
- A . Live operational state and configuration data retrieved directly from a network device at runtime.
- B . The tasks defined within an Ansible role.
- C . User-provided information collected through playbook surveys.
- D . Statically defined variables located in `host_vars` or `group_vars` files.
An `ansible-navigator` run of a playbook using the `arista.eos.eos_facts` module produces the `ansible_facts` variable containing the data snippet below.
"ansible_facts": {
"ansible_net_interfaces": {
"Ethernet1": {
"description": "Uplink to Core",
"ipv4": [],
"macaddress": "0c:c4:7a:a1:b2:c3",
"mtu": 9214
},
"Management1": {
"description": "OOB Management",
"ipv4": [
{
"address": "10.0.0.10",
"subnet": "24"
}
],
"macaddress": "0c:c4:7a:d4:e5:f6",
"mtu": 1500
}
},
"ansible_net_model": "vEOS"
}
Which Jinja2 expression will correctly extract the IP address of the `Management1` interface?
- A . `ansible_facts.ansible_net_interfaces.Management1.ipv4.address`
- B . `ansible_facts.ansible_net_interfaces[Management1].ipv4[0].address`
- C . `ansible_facts[‘ansible_net_interfaces’][‘Management1’][‘ipv4’][‘address’]`
- D . `ansible_facts[‘ansible_net_interfaces’][‘Management1’][‘ipv4’][0][‘address’]`
An engineer has made local changes to a Jinja2 template file but has not yet committed them. Before committing, they need to incorporate recent updates from the remote `main` branch.
Their local `interfaces.j2` file looks like this:
interface {{ item.name }}
description {{ item.description }}
{% if item.state == ‘absent’ %}
shutdown
{% endif %}
ip address {{ item.ip }}/{{ item.mask }}
! Added for improved logging
logging event link-status
They learn that a colleague has just pushed an update that adds MTU configuration to the same template.
What is the most effective set of Git commands to safely integrate the remote updates with their local, uncommitted changes? (Select all that apply.)
- A . Run `git reset –hard` to discard local changes, then run `git pull`.
- B . Run `git commit -m "WIP"` to save the current work, then `git pull` to merge remote changes.
- C . After a successful pull, run `git stash pop` to re-apply the stashed changes.
- D . Run `git pull` to merge the remote changes.
- E . Run `git stash` to temporarily save the uncommitted changes.
An automation engineer needs to start working with an Ansible project that is managed in a central Git repository. This is their first time working with this project on their local control node.
Which Git command is the essential first step to create a local working copy of the remote repository?
- A . `git commit`
- B . `git clone <repository_url>`
- C . `git pull`
- D . `git init`
An automation engineer needs to start working with an Ansible project that is managed in a central Git repository. This is their first time working with this project on their local control node.
Which Git command is the essential first step to create a local working copy of the remote repository?
- A . `git commit`
- B . `git clone <repository_url>`
- C . `git pull`
- D . `git init`
