Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Ansible Interview Questions and Answer – Part 9

You can add groups inside of groups when:

  • You add existing group names under a [groupname:children] definition (Ans)
  • You cannot add groups within groups.
  • You add existing group names under a [groupname] definition

Which statement describes the best approach to integration testing across system boundaries?

  • Create a single Docker container, run both systems inside the container.
  • Create a single Docker container for the application, and run the other system on your local machine.
  • Create a single Docker container for the application, and run the other system in the cloud.
  • Create a Docker container for each system. (Ans)

What does the .PHONY directive in a Makefile do?

  • Ignores files of the same name as the task
  • Ensures make tasks always run
  • Provides high-level declaration of all of the make tasks you want to execute
  • All of these (Ans)

What is the effect of the docker-compose pull command?

  • It forces the download of any external image referenced by the image configuration option in each service.
  • It downloads any external image referenced by the image configuration option in each service, but only if a more up-to-date version exists. (Ans)
  • It downloads all external images, including parent images of services built dynamically, but only if a more up-to-date version exists.
  • It forces the download of all external images, including parent images of services built dynamically.

How do you configure an EC2 Instance to join an EC2 Container Service Cluster?

  • Add an entry to the ecs.config file on the EC2 Container Service (Ans)
  • Run an Ansible playbook
  • SSH to the instance and run an ECS init script
  • Configure this via the EC2 Container Service dashboard

How can you use your own custom modules in Ansible playbooks?

  • Place the modules in a folder called library next to your playbook(s). (Ans)
  • Place the modules in a folder called /etc/ansible/roles on your system.
  • You can’t do this.
  • Fork the Ansible project and add your modules to the appropriate location in the Ansible source.

Which of the following is a type of Python-built distribution?

  • TAR file
  • Gzip archive
  • Wheel (Ans)
  • Package

In a Docker-based workflow, how do you ensure the release image has the most up-to-date application artifacts?

  • Run docker-compose up.
  • Create a new service that ensures the artifacts are up to date.
  • You don’t need to worry about this, it automatically happens.
  • Run docker-compose build. (Ans)

Which statement is true about acceptance testing?

  • Acceptance tests are always defined in an Excel spreadsheet.
  • You can use a separate project and different language to write your acceptance tests. (Ans)
  • You must always place your acceptance tests in the same project as your application.
  • You should never automate acceptance tests.

Which statement best describes acceptance testing?

  • Externally focused testing (Ans)
  • Internally focused testing that may test across system boundaries
  • Internally focused testing that never tests across class boundaries
  • Internally focused testing that never tests across system boundaries

What are the four stages of the continuous delivery workflow?

  • Develop, Test, Refactor, Deploy
  • Compile, Build, Package, Deploy
  • Compile, Test, Build, Release
  • Test, Build, Release, Deploy (Ans)

Which type of testing would you NOT typically perform during the release stage?

  • Performance Testing
  • Security Testing
  • Acceptance Testing
  • Unit and Integration Testing (Ans) Which of the following represents the highest level of automation in the continuous delivery workflow?
  • docker commands
  • docker-compose commands
  • make commands (Ans)
  • Dockerfile directives

What format is used for Jenkins Pipeline scripts?

  • YAML
  • JSON
  • Groovy (Ans)
  • JavaScript

When considering the test and build stages, when should you download application dependencies?

  • Never
  • Once, at the beginning of the test stage (Ans)
  • Once, at the beginning of each stage
  • Whenever dependencies are required

How can you capture module and task output in Ansible playbooks?

  • Use the register action. (Ans)
  • Use the set_fact action.
  • Use the with_items action.
  • You can’t do this.

Which statement best describes integration testing?

  • Internally focused testing that may test across system boundaries (Ans)
  • Internally focused testing that never tests across class boundaries
  • Internally focused testing that never tests across system boundaries
  • Externally focused testing

When would you want to capture test reports?

  • On success or failure (Ans)
  • Never
  • Only on failure
  • Only on success

What is the most effective way to install the latest version of Ansible?

  • From the latest source
  • Using your operating system package manager
  • Using Python’s package manager called PIP (Ans)
  • Download from Ansible

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Ansible Tower Install and Setup Quick Guide

To install Red Hat Ansible Tower 3.8.6 (using ansible-tower-setup-3.8.6-2.tar.gz), your environment must meet a set of hardware, software, and system prerequisites. Below are the summarized requirements specific to this Tower…

Read More

Ansible: How to use template in Ansible using Jinja2?

Here’s a comprehensive tutorial on Ansible Templates and Jinja2, suitable for engineers or anyone preparing for an advanced Ansible role. 1. What are Ansible Templates? Ansible templates…

Read More

What is Ansible and use cases of Ansible?

What is Ansible? Ansible is an open-source automation tool used for configuration management, application deployment, and task automation. It simplifies complex IT tasks by automating them using…

Read More

Ansible Tutorials: Calling one Play & Tasks from another play in Playbook

import_tasks module The Ansible import_tasks module is used to import a list of tasks from a file into the current playbook for subsequent execution. The name of…

Read More

Ansible Tutorial: Anatomy of Ansible playbook defined!

host defines the target machines: one or more groups or host patterns, separated by colons that should match hosts in the inventory. all is a group that…

Read More

Complete Ansible Certification Guide & tutorials

What is Ansible? Ansible is an open-source tool which can automate the configuration of all the systems. With ansible a small team of system administrator can write…

Read More