최신RedHat Red Hat Certified Specialist in Developing Automation with Ansible Automation Platform - EX374무료샘플문제

문제1
Create an inventory in Automation Controller using a dynamic inventory script.
정답:
1. Go to Inventories and add: o Name: Dynamic Inventory
o Source: Custom Script
o Script: Upload the inventory script (e.g., idm_inventory.py).
2. Sync the inventory.
Explanation:
Dynamic inventory scripts allow fetching host information from external systems like databases or cloud platforms.
문제2
Transform a list of strings to uppercase using a filter and display the result.
정답:
- name: Convert to uppercase hosts: localhost
vars:
names: ["ansible", "automation"] tasks:
- name: Uppercase transformation debug:
var: "{{ names | map('upper') | list }}"
Explanation:
The map filter applies a transformation function, such as upper, to each element in a list, enabling bulk data modifications.
문제3
Package the collection into a .tar.gz file for distribution.
정답:
ansible-galaxy collection build my_namespace/my_collection
Explanation:
The build command packages the collection, creating a compressed file ready for sharing or publishing.
문제4
Extract the domain name from an email address using the regex_search filter.
정답:
- name: Extract domain from email hosts: localhost
vars:
email: "[email protected]" tasks:
- name: Get domain debug:
var: "{{ email | regex_search('@(.*)') }}"
Explanation:
The regex_search filter allows complex string manipulation by extracting specific patterns like domains from email addresses.
문제5
Set up an inventory file to manage hosts using different SSH keys.
정답:
# host_vars/web1.yml
ansible_ssh_private_key_file: ~/.ssh/web1_key
Explanation:
Defining ansible_ssh_private_key_file ensures secure, host-specific authentication, vital for multi-host environments.
문제6
Perform a delegated task to update firewall rules on a specific host.
정답:
- name: Update firewall rules hosts: web1
tasks:
- name: Add firewall rule on db1
command: firewall-cmd --add-port=8080/tcp
delegate_to: db1
Explanation:
Delegating firewall rule updates ensures secure and host-specific configurations without unnecessary context switching.
문제7
Create a Vault file to store sensitive credentials for inventory hosts.
정답:
ansible-vault create sensitive_creds.yml
Add:
ansible_user: "admin"
ansible_password: "secure_password"
Explanation:
Storing sensitive data in an encrypted Vault file ensures it remains secure and inaccessible without proper authorization.
문제8
Analyze logs of an EE job run in Automation Controller.
정답:
1. Navigate to Jobs in Automation Controller.
2. Open the job details for the executed playbook.
3. View the logs for task outputs and errors.
Explanation:
Job logs provide insights into the execution flow and help debug issues within the EE.
문제9
Use an EE image to test an Ansible module.
정답:
podman run --rm -v $(pwd):/workspace -w /workspace my_execution_env:1.0 ansible -m ping -i localhost,
Explanation:
Testing an Ansible module in the EE ensures compatibility and proper functionality in the runtime environment.
문제10
Verify the installed collections on your system.
정답:
ansible-galaxy collection list
Explanation:
The list command displays all installed collections, confirming the availability of required collections.
문제11
Create an inventory file inventory.yml with a host web1 and a group web_servers. Assign the variable ansible_user as admin for web1.
정답:
# inventory.yml
all:
children:
web_servers:
hosts:
web1:
ansible_user: admin
Explanation:
The inventory file assigns variables like ansible_user for specific hosts or groups. This configuration defines web1 under the web_servers group with admin as the remote user.
문제12
Override the default user for all hosts in the web_servers group.
정답:
echo "ansible_user: webadmin" > group_vars/web_servers.yml
Explanation:
Defining group-level variables overrides individual host settings, ensuring uniformity across similar hosts.
문제13
Create SSH machine credentials to access inventory hosts.
정답:
ansible-vault create ssh_creds.yml
Add credentials:
ansible_user: "admin"
ansible_ssh_private_key_file: "~/.ssh/id_rsa"
Explanation:
Machine credentials stored in a Vault file ensure secure and consistent access to inventory hosts.

자격증의 중요성:

ITDumpsKR 경쟁율이 심한 IT시대에 인증시험을 패스함으로 IT업계 관련 직종에 종사하고자 하는 분들에게는 아주 큰 가산점이 될수 있고 자신만의 위치를 보장할수 있으며 더욱이는 한층 업된 삶을 누릴수 있을수도 있습니다.

ITDumpsKR 제품의 가치:

ITDumpsKR에는 IT인증시험의 최신 학습가이드가 있습니다. ITDumpsKR의 IT전문가들이 자신만의 경험과 끊임없는 노력으로 최고의 학습자료를 작성해 여러분들이 시험에서 패스하도록 도와드립니다.

무료샘플 받아보기:

관심있는 인증시험과목 덤프의 무료샘플을 원하신다면 덤프구매사이트의 PDF Version Demo 버튼을 클릭하고 메일주소를 입력하시면 바로 다운받아 덤프의 일부분 문제를 체험해 보실수 있습니다.

완벽한 서비스 제공:

ITDumpsKR는 한국어로 온라인상담과 메일상담을 받습니다. 덤프구매후 일년동안 무료 업데이트 서비스를 제공해드리며 구매일로 부터 60일내에 시험에서 떨어지는 경우 덤프비용 전액을 환불해드려 고객님의 부담을 덜어드립니다.