menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Devops News

>

Latest Int...
source image

Dev

2w

read

262

img
dot

Image Credit: Dev

Latest Interview QnA faced recently as a DevOps Engineer

  • For a greenfield application, it is generally recommended to use a trunk-based branching strategy where there is one central branch that contains the production-ready code.
  • Developers are creating short-lived feature branches for new features or bug fixes and then merge these back into the main branch when completed.
  • A GitFlow or GitHub Flow might be useful for managing features, releases, and hotfixes.
  • To conditionally execute a block based upon a boolean, you can use count with conditions.
  • for_each: Iterate over a set like a map or list, creating unique resources per item.
  • If you have multiple worker nodes, and a master node, and you need to create a pod in every node for collecting logs, a DaemonSet is used to ensure a copy of the pod runs on each node in the cluster.
  • To create a Docker file with a custom name, you can use the -f flag.
  • A common use case of multi-stage builds is to separate the build and the runtime environments.
  • By copying only the necessary components into the final image, you can optimize its size.
  • CI/CD Pipeline: Will you do automated testing with CI/CD pipelines for merging and deployment of code?

Read Full Article

like

15 Likes

For uninterrupted reading, download the app