Find Interview Questions for Top Companies
Jasmin infotech pvt ltd Interview Questions and Answers
Ques:- What is Terraform Cloud and how is it different from Terraform Open Source
Right Answer:
Terraform Cloud is a managed service that provides collaboration, automation, and governance features for Terraform users. It includes capabilities like remote state management, team collaboration, and a user interface for managing infrastructure. In contrast, Terraform Open Source is the free, command-line tool that allows users to define and provision infrastructure but lacks the collaborative and managed features of Terraform Cloud.
Ques:- How do you version Terraform code and manage it in a repository
Right Answer:
To version Terraform code and manage it in a repository, follow these steps:

1. **Use a Version Control System**: Store your Terraform code in a Git repository (e.g., GitHub, GitLab).
2. **Semantic Versioning**: Tag releases using semantic versioning (e.g., v1.0.0) to indicate changes.
3. **Branching Strategy**: Use branches for features, bug fixes, and releases (e.g., main, develop, feature branches).
4. **Pull Requests**: Use pull requests for code reviews and to merge changes into the main branch.
5. **State Management**: Use remote state storage (e.g., Terraform Cloud, S3 with DynamoDB) to manage state files and avoid conflicts.
6. **Lock Files**: Commit the `.terraform.lock.hcl` file to ensure consistent provider versions across environments.
Ques:- What are some best practices when working with Terraform in a team
Right Answer:
1. Use version control (e.g., Git) for Terraform configuration files.
2. Organize code into modules for reusability and clarity.
3. Implement a consistent naming convention for resources.
4. Use remote state storage (e.g., Terraform Cloud, S3) to manage state files.
5. Lock state files to prevent concurrent modifications.
6. Use workspaces for managing different environments (e.g., dev, staging, prod).
7. Review and approve changes through pull requests.
8. Document the infrastructure and Terraform code for team understanding.
9. Regularly update and maintain Terraform and provider versions.
10. Use Terraform format and validate commands to ensure code quality.
Ques:- What is the difference between Terraform and other infrastructure as code tools like CloudFormation
Right Answer:
Terraform is cloud-agnostic and can manage resources across multiple providers, while CloudFormation is specific to AWS and only manages AWS resources. Additionally, Terraform uses a declarative language (HCL) and has a state file to track resource changes, whereas CloudFormation uses JSON or YAML templates and manages state automatically within AWS.
Ques:- What is Terraform and how does it work
Right Answer:
Terraform is an open-source infrastructure as code (IaC) tool that allows users to define and provision data center infrastructure using a declarative configuration language. It works by allowing users to write configuration files that describe the desired state of their infrastructure. Terraform then uses these files to create, update, or delete resources across various cloud providers and services, ensuring that the actual infrastructure matches the defined configuration.
Ques:- . What’s the difference between include and import in Ansible?
Right Answer:

In Ansible, `include` is used to include a file dynamically during playbook execution, allowing for conditional inclusion, while `import` is used to statically include a file at the time of playbook parsing, meaning it is always included regardless of conditions.

Ques:- What is the difference between vars, defaults, and environment variables in Ansible?
Right Answer:

In Ansible:

– **vars**: These are variables defined in a playbook or role that can be used throughout the playbook. They have the highest precedence.
– **defaults**: These are default variables defined in a role's `defaults/main.yml` file. They have lower precedence than regular vars and are overridden by them.
– **environment variables**: These are variables set in the environment where Ansible runs. They can be accessed in playbooks but have the lowest precedence compared to vars and defaults.

Ques:- How does Ansible work?
Right Answer:

Ansible works by using a push-based model to automate tasks on remote systems. It connects to target machines over SSH (or WinRM for Windows) and executes modules, which are small programs that perform specific tasks. Ansible uses playbooks, written in YAML, to define the desired state of the systems and the steps needed to achieve that state. It does not require an agent to be installed on the target machines, making it lightweight and easy to use.

Ques:- What are the different types of strings in Database columns in MySQL?
Comments
DK BOSS Jul 30, 2021

INT − A normal-sized integer that can be signed or unsigned. If signed, the allowable range is from -2147483648 to 2147483647. If unsigned, the allowable range is from 0 to 4294967295. You can specify a width of up to 11 digits.

TINYINT − A very small integer that can be signed or unsigned. If signed, the allowable range is from -128 to 127. If unsigned, the allowable range is from 0 to 255. You can specify a width of up to 4 digits.

SMALLINT − A small integer that can be signed or unsigned. If signed, the allowable range is from -32768 to 32767. If unsigned, the allowable range is from 0 to 65535. You can specify a width of up to 5 digits.

MEDIUMINT − A medium-sized integer that can be signed or unsigned. If signed, the allowable range is from -8388608 to 8388607. If unsigned, the allowable range is from 0 to 16777215. You can specify a width of up to 9 digits.

BIGINT − A large integer that can be signed or unsigned. If signed, the allowable range is from -9223372036854775808 to 9223372036854775807. If unsigned, the allowable range is from 0 to 18446744073709551615. You can specify a width of up to 20 digits.

FLOAT(M,D) − A floating-point number that cannot be unsigned. You can define the display length (M) and the number of decimals (D). This is not required and will default to 10,2, where 2 is the number of decimals and 10 is the total number of digits (including decimals). Decimal precision can go to 24 places for a FLOAT.

DOUBLE(M,D) − A double-precision floating-point number that cannot be unsigned. You can define the display length (M) and the number of decimals (D). This is not required and will default to 16,4, where 4 is the number of decimals. Decimal precision can go to 53 places for a DOUBLE. REAL is a synonym for DOUBLE.

DECIMAL(M,D) − An unpacked floating-point number that cannot be unsigned. In the unpacked decimals, each decimal corresponds to one byte. Defining the display length (M) and the number of decimals (D) is required. NUMERIC is a synonym for DECIMAL.

Jasmin Infotech Pvt Ltd is a leading technology company headquartered in Chennai, India, specializing in software development, embedded systems, and engineering services. Established in 1998, the company has grown to become a trusted partner for numerous global clients across various industries. With a team of highly skilled professionals, Jasmin Infotech offers end-to-end solutions, from concept to deployment, catering to the diverse needs of its clients. Their expertise spans across domains such as automotive, healthcare, telecommunications, and industrial automation. One of the key strengths of Jasmin Infotech lies in its commitment to innovation and quality. The company emphasizes continuous learning and keeps pace with the latest advancements in technology to deliver cutting-edge solutions. They leverage advanced tools and methodologies to ensure efficiency and reliability in their deliverables. Moreover, Jasmin Infotech places a strong emphasis on customer satisfaction, striving to exceed expectations through timely delivery and personalized support. This customer-centric approach has earned the company a reputation for excellence in the industry. Overall, Jasmin Infotech Pvt Ltd stands as a beacon of technological prowess and reliability, driving innovation and delivering value to its clients worldwide.
AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users