Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Bonus Video for Azure DevOps Zero to Hero Series - Scenario-based Interview Questions and Solutions

Check out the video below for Day17 👇

Bonus Video for Azure DevOps Zero to Hero Series - Scenario-based Interview Questions and Solutions

Explain a typical structure of an Azure DevOps Pipeline

image

  • A trigger tells a Pipeline to run. It could be CI or Scheduled, manual(if not specified), or after another build finishes.
  • A pipeline is made up of one or more stages. A pipeline can deploy to one or more environments.
  • A stage organizes jobs in a pipeline, and each stage can have one or more jobs.
  • Each job runs on one agent, such as Ubuntu, Windows, macOS, etc. A job can also be agentless.
  • Each agent runs a job that contains one or more steps.
  • A step can be a task or script and is the smallest building block of a pipeline.
  • A task is a pre-packaged script that acts, such as invoking a REST API or publishing a build artifact.
  • An artifact is a collection of files or packages published by a run.

Which Deployment Strategy are you using in your organization? Explain the CICD flow:

image

End-to-End CICD Pipeline using Azure DevOps Build and Release Pipeline

image

What are some other deployment strategies?

  • Recreate, Canary, Ring based, Rolling Update, A/B Deloyment, Feature Flag etc

Which Build repository have you used with Azure DevOps? Explain the CICD flow:

image

What are views in an Artifacts feed?

Isolated placeholder in a repository can be categorized into Local, pre-release, Release, etc. Once your Artifacts are deployed to one environment, you promote them to another view so that they can be deployed in another environment, with that view being the trigger. Could you explain with the help of an example?

How would you use IaaC tools such as ARM Template or Terraform to automate Infra provisioning?

image

What is the difference between Microsoft-hosted agents and self-hosted agents?

image

If Microsoft has already provided you with hosted agents, why would you set up self-hosted agents?

Any other limitations of Microsoft-hosted agents?

image

I am building a Docker image that is taking a long time and is huge. How can I reduce the image size and speed up the process?

Multistage Docker Build

FROM node:18-alpine AS installer
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:latest AS deployer
COPY --from=installer /app/build /usr/share/nginx/html

Explain some of the Azure DevOps Best Practices:

Check out this repo and Day15 Video

How can you ensure the security and privacy of secrets used in your pipeline to prevent them from being exposed?

  • Azure Key Vault and access via a variable group
  • Runtime variable, tokenize your files and replace token step inside the pipeline
  • Third-party secret management service such as Hashicorp Vault

What is the most difficult issue you have faced while working with Azure DevOps?

Pick up the issue you have faced while doing hands-on on Azure DevOps if you have followed this series or any other resource.

Structure your answer in STAR format

S: Situation

T: Task

A: Action

R: Result

How would you implement CICD for a dockerized or microservice-based application with multiple services?

  • Check out Video 10 for ACI and Video 11 for Kubernetes