0% found this document useful (0 votes)
2 views

IAAS_TECHLEAP (2)

The document provides a comprehensive overview of Terraform and Ansible, including commands, functionalities, and best practices for managing infrastructure as code. It emphasizes the importance of staying connected to relevant groups for updates and offers links to resources for further learning. Key topics include Terraform's state management, provider usage, and Ansible's role structure and automation capabilities.

Uploaded by

nikilsivagami02
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

IAAS_TECHLEAP (2)

The document provides a comprehensive overview of Terraform and Ansible, including commands, functionalities, and best practices for managing infrastructure as code. It emphasizes the importance of staying connected to relevant groups for updates and offers links to resources for further learning. Key topics include Terraform's state management, provider usage, and Ansible's role structure and automation capabilities.

Uploaded by

nikilsivagami02
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Pre-request every one again to join in every following groups to

get further updates and if you leave groups after your TFA and
stream tests you will miss your further updates for sure so just
stay connected.

Dm - https://t.me/angelnndevil

Main group link - https://t.me/ad2group

Get more dumps here

Materials/Channel/dumps -
https://t.me/adaccenturematerial
Techleap – IaaS & PaaS

1) In regards to Terraform state file, select all the statements below which are correct?

Answer: All Of Above (Storing state remotely can provide better security,The Terraform state can
contain sensitive data, therefore the state file should be treated as sensitive, When using local state,
the state file is stored in plain-text)

2) Before a new provider can be used, it must be ______

Answer: Both A & B (Initialized & Declared in the Configuration)

3) Terraform is a tool for .................. infrastructure safely and efficiently.

Answer: All of the Above (Building, Changing & Versioning)

4) Does Terraform continue if state locking fails?

Answer: No

5) Terraform supports both cloud and on-premises infrastructure platforms. Is this true?

Answer: True

6) What is the command to create infrastructure?

Answer: Terraform Apply

7) Is Terraform cloud-agostic?

Answer: Yes

8) Code in the Terraform language is stored in plain text files with the ........... file extension

Answer: .tf

9) Terraform relies on plugins called ........... to interact with remote systems.

Answer: Providers

10) Can the Terraform Module Versions be locked anyhow?

Answer: Yes

11) The Terraform language supports .............. syntaxe for comments.

Answer: All of the above ( #, // , /* )

12) The Terraform language is Terraform's ............... user interface

Answer: Primary

13) Does Terraform codify cloud APIs into declarative configuration files.

Answer: Yes

JAGUAR(ORANGE)
Techleap – IaaS & PaaS

14) Terraform uses declarative configuration to describe the desired final state.

Answer: True

15) Terraform has ............ major commands.

Answer: 4

16) Terraform supports a number of cloud infrastructure providers such as ...............

Answer: All of the above ( Amazon Web Services, IBM Cloud, Microsoft Azure)

17) Terraform configuration files must always be UTF-8 encoded.

Answer: True

18) The Terraform supports which of the following operating system?

Answer: All of the above (Linux, MacOs, Windows)

19) The latest version of terraform is ..............

Answer: 0.14.10

20) Terraform is written in which language ..................

Answer: Go

21) Terraform was first released in ............

Answer: 2015

22) Terraform is developed by ..............

Answer: Hashicorp

23) Terraform is a ............

Answer: Code Software

24) Which Terraform command will force a marked resource to be destroyed and recreated on the next
apply?

Answer: terraform taint

25) What happens when a terraform plan is executed?

Answer: It creates an execution plan and determines what changes are required to achieve the desired
state in the configuration files.

26) By default, where does Terraform store its state file?

Answer: Current Working Directory

JAGUAR(ORANGE)
Techleap – IaaS & PaaS

27) What are some of the problems of how infrastructure was traditionally managed before
Infrastructure as Code?

Answer: All of Above ( Pointing and clicking in a management console isn't scalable as businesses
move to a multi-cloud deployment model

Requests for infrastructure or hardware required a ticket, increasing the time required to deploy
applications

Traditional deployment methods are not able to meet the demands of the modern business where
resources tend to live days to weeks, rather than months to years

Traditionally managed infrastructure can't keep up with cyclic or elastic applications

All of the above)

28) True or False: You can migrate the Terraform backend but only if there are no resources currently
being managed.

Answer: False

29) Which flag would be used within a Terraform configuration block to identify the specific version of a
provider required?

Answer: required_providers

30) What happens when a terraform apply is executed?

Answer: Applies the changes required in the target infrastructure in order to reach the desired
configuration

31) Which of the following best describes a Terraform provider?

Answer: A plugin that Terraform uses to translate the API interactions with the service.

32) If I already have infrastructure in a cloud provider, and I want to start using terraform, I can...

Answer: Use the import function

33) Example use case for workspaces

Answers: Different work environments (dev, qa, staging, prod)

34) What is a disadvantage of terraform?

Answer: product is constantly updating, causing overhead for developers

35) Terraform is free forever and always

Answer: False

36) Command to check the playbook for syntax errors, but it does not execute it.

Answer: ansible-playbook <playbook.yml> --syntax-check

JAGUAR(ORANGE)
Techleap – IaaS & PaaS

37) Which python module does Ansible use to connect via ssh with all its nodes?

Answer: paramiko

38) The pricing for Red Hat Ansible Automation Platform is based on the number of nodes (systems,
hosts, instances, VMs, containers or devices) that it is managing. The minimum number of nodes for a
subscription is

Answer: 100

39) Which ones are alternatives to Ansible?(choose all that apply)

Answer: Both A & B (Jenkins & Chef)

40) Packer is a tool that builds

Answer: an image for a VM

41) Ansible has a paid license option

Answer: True

42) What extension do the template files in Ansible have?

Answer: .j2

43) How do you use variables in ansible?

Answer: with {{ }}

44) In which programming language is Ansible based on?

Answer: Python

45) This is a usecase for ansible Facts

Answer: When you want to apply commands to specific hosts

46) What does Notify do when available in ansible tasks?

Answer: It makes sure that a task runs only once, doesn’t matter if the task was called 1000 times or
more

47) It collect facts from remote devices running Cisco IOS

Answer: ios_facts

48) A YAML file containing one or more plays.

Answer: playbook

49) What's the Ansible Playbook execution order?

Answer: Playbook->Play->Tasks->Task

JAGUAR(ORANGE)
Techleap – IaaS & PaaS

50) Which of following commands will check ansible inventory and group variable

Answer: ansible-inventory --list

51) Which of the following ad hoc commands will backup the device configuration of ios

Answer: ansible –m ios_config –a “backup=yes” ios

52) Tests reachability using ping from Cisco IOS network devices

Answer: ios_ping

53) An ______ command is a single, manually-run Ansible task that you want to perform quickly

Answer: ad hoc

54) We have a playbook /playbook/copy.yml, which hosts would this playbook run against.copy.yml -
hosts: webtasks:- name: copy test.txt filesrc: test.txtdest: /tmp/test.txtinventory file:[web]web1
10.0.0.1web2 10.0.0.2

Answer: web1 and web2

55) We can have multiple plays in a single playbook

Answer: Yes

56) Can we write a new Ansible modules

Answer: Yes

57) Ansible Content Collections is the new way to build and consume Ansible content. It brings greater
flexibility, control and innovation to the Ansible Community and Users.

Answer: True

58) In which format are Ansible playbooks expressed?

Answer: Yaml

59) NCS has collaborated with Red Hat on several initiatives around Ansible automation. Which are
some of those?

Answer: GovTech SG Core2 and iPursuit Lab

60) Red Hat Ansible Automation Platform offers new features. Which are the ones?

Answer: All of the above (Ansible Content Collections

Automation Services Catalog

Automation Hub

Automation Analytics)

JAGUAR(ORANGE)
Techleap – IaaS & PaaS

61) The product offering by Red Hat for Enterprise IT Automation and Management is

Answer: Red Hat Ansible Automation Platform

62) Ansible is commonly used to manage resources in VMware virtualization platform, OpenStack as
well as public clouds such as AWS, Azure and GCE

Answer: True

63) Ansible is able to deploy and manage automation of your entire IT footprint. Which are the ones that
can be managed by Ansible?

Answer: All of the above( Network devices such as routers, switches and firewalls

Infrastructure Provisioning

Application Deployment

Clouds )

64) We often say that Ansible is

Answer: All of the above ( Simple

Agentless

Extensible )

65) Ansible is among the top 10 Open Source projects in GitHub for 3 consecutive years

Answer: True

66) What is the minimum necessary to execute a playbook in any host?

Answer: Have Ansible installed, have an inventory, and a playbook

67) What is Ansible?.

Answer: A tool for provisioning, configuration management, and application deployment

68) What does orchestration in Ansible mean?

Answer: Is the handling of an orchestra composed by Databases, servers, monitoring systems, etc.

69) What does idempotency mean?

Answer: The ability an operation has to be run multiple times without affecting the result

70) What is the difference between play and playbook?

Answer: A play is list of tasks, whereas a playbook is the file that contents a list of plays.

71) What does an Inventory do?

Answer: Specify the list of Host and groups where to apply the playbook

JAGUAR(ORANGE)
Techleap – IaaS & PaaS

72) What command is used to copy a file?

Answer: cp

73) What command creates an empty directory?

Answer: mkdir

74) What command displays your current username?

Answer: whoami

75) What command shows you CPU and memory utilization for running processes?

Answer: top

76) How to install ansible using RHEL?

Answer: yum -y install ansible

77) Command to verify the current ansible version

Answer: ansible --version

78) Directories to hold variables for group/host

Answer: inventory

79) Ansible program files that contains ansible plug-in documentation

Answer: ansible-doc

80) What command is used to change directories?

Answer: cd

81) You have defined the values for your variables in the file terraform.tfvars, and saved it in the same
directory as your Terraform configuration. Which of the following commands will use those values
when creating an execution plan?

Answer: All of the above ( Terraform Plan & terraform Plan -Var-file=Terraform.tfvars)

82) Which of the following terms best describes the Ansible architecture?

Answer: Agentless (the simple, secure, and powerful agentless automation framework for
IT operations and development)

83) Is “default” the default workspace name?

Answer: True

JAGUAR(ORANGE)
Techleap – IaaS & PaaS

84) Ansible is agentless


Answer: True
85) What syntax is used to define Ansible Playbooks?
Answer: YAML
86) Which file in a role’s directory hierarchy should contain the initial values of variables that
might be used as parameters to the role?
Answer: defaults/main.yml
87) What is the file format of Terraform code files?
Answer: YAML
88) Two things you need to connect to your AWS infrastructure using Terraform code (in terms
of credentials)
Answer: Secret access key only
89) Resource names in Terraform are provider specific
Answer: False
90) Which is easier to code?
Answer: Terraform
91) Which of the following files are processed by terraform?
Answer: .tf and .tf.json
92) _______ files are processed last.
Answer: Override
93) Terraform is a ___________ language.
Answer: Functional
94) Terraform works based on master-less and agent-less architectural design.
Answer: True
95) Command to delete all the cloud resources built by previous terraform apply commands.
Answer: terraform remove
96) which of the following isn't indicative of anything in the output of terraform plan?
Answer: + to show what will be added

JAGUAR(ORANGE)
Techleap – IaaS & PaaS

97) What is releasing year of terraform?


Answer: July 28, 2014
98) Terraform is a
Answer: IAC
99) Terraform is developed by
Answer: HashiCorp
100) Terraform is written in
Answer: GO Programming
101) Terraform is Licensed under
Answer: Mozilla Public License v2.0
102) What is the command to list the workspaces?
Answer: Terraform workspace list (The terraform workspace list command is used to list
all existing workspaces.)
103) Ansible default configuration file is located under
Answer: /etc/ansible/ansible.cfg (The default Ansible configuration file is located
under /etc/ansible/ansible. Cfg)
104) What are the steps of Core Terraform workflow?
Answer: All of the above ( Write - Author infrastructure as code.
Plan - Preview changes before applying.
Apply - Provision reproducible infrastructure.)
105) The Ansible play book will be executed by using the command?

Answer: ansible-playbook

106) Which IaC tool is cloud agnostic ?

Answer: Terraform

107) “terraform plan -refresh=true” is used to update the state prior to checking differences
when you run a terraform plan ?

Answer: True

JAGUAR(ORANGE)
Techleap – IaaS & PaaS

108) ______ are the different source types for calling modules

Answer: All of the Above ( Local paths

Terraform Registry

GitHub

Bitbucket

Generic Git, Mercurial repositories

HTTP URLs

S3 buckets

GCS buckets

Modules in Package Sub-directories )

109) What is the name of the terraform state file?


Answer: terraform.tfstate
110) What are the meta-arguments that are defined by Terraform itself and available for all
provider blocks?
Answer: Both A and B ( Version & Alias)
111) You configure Multiple Provider Instances with the help of _______.
Answer: alias
112)Third-party plugins should be manually installed. True/False?
Answer: True
113) The command terraform init is used to install third-party plugins?
Answer: False
114) What is the command to initialize the directory?
Answer: terraform init
115) What is the command to create infrastructure?
Answer: terraform apply

JAGUAR(ORANGE)
Techleap – IaaS & PaaS

116) What is the command to show the execution plan and not apply?
Answer: terraform plan
117) What are the types of provisioners?
Answer: Both A and B ( remote-exec & local-exec)
118) By default, provisioners that fail will also cause the Terraform apply itself to fail.
Answer: True
119) Terraform CLI versions and provider versions are independent of each other.
Answer: True
120) By default, fmt scans the current directory for configuration files.
Answer: True
121) ______ is the file format of Terraform code files.
Answer: YAML
122) What is the command to show the current workspace?
Answer: terraform workspace show
123) You can delete the default workspace?
Answer: False
124) ________ are the arguments you need for using modules in your configuration.
Answer: Both A and B ( Source & Version )
125) Ansible is an opensource Tool
Answer: True (Ansible is a free, open-source tool)
126) The conditionals in ansible play book will be used with the statement
Answer: when
127) Ansible roles can be create by using the command
Answer: ansible-galaxy init ( To create ansible role, use ansible-galaxy init <role_name> to
create the role directory structure)
128) Ansible can do network automation
Answer: True

JAGUAR(ORANGE)
Techleap – IaaS & PaaS

129) Which of the following can be specified in roles?

Answer: All of the above (Handlers, Tasks, Templates & Variables)


130)

JAGUAR(ORANGE)
Techleap – IaaS & PaaS

Important Points:

An Ansible role has a defined directory structure with eight main standard directories. You must
include at least one of these directories in each role. You can omit any directories the role does
not use. For example:

# playbooks
site.yml
webservers.yml
fooservers.yml
roles/
common/
tasks/
handlers/
library/
files/
templates/
vars/
defaults/
meta/
webservers/
tasks/
defaults/
meta/
By default Ansible will look in each directory within a role for a main.yml file for relevant
content (also main.yaml and main):

tasks/main.yml - the main list of tasks that the role executes.

JAGUAR(ORANGE)
Techleap – IaaS & PaaS

handlers/main.yml - handlers, which may be used within or outside this role.

library/my_module.py - modules, which may be used within this role (see Embedding modules
and plugins in roles for more information).

defaults/main.yml - default variables for the role (see Using Variables for more information).
These variables have the lowest priority of any variables available, and can be easily overridden
by any other variable, including inventory variables.

vars/main.yml - other variables for the role (see Using Variables for more information).

files/main.yml - files that the role deploys.

templates/main.yml - templates that the role deploys.

meta/main.yml - metadata for the role, including role dependencies.

JAGUAR(ORANGE)
Pre-request every one again to join in every following groups to
get further updates and if you leave groups after your TFA and
stream tests you will miss your further updates for sure so just
stay connected.

Dm - https://t.me/angelnndevil

Main group link - https://t.me/ad2group

Get more dumps here

Materials/Channel/dumps -
https://t.me/adaccenturematerial

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy