Docker Scenario Based Questions
Docker Scenario Based Questions
Scenario: How does the Azure DevOps CI/CD Pipeline look in your organization ?
Scenario: You need to securely store API keys and other secrets used in your
pipeline tasks. How would you ensure their protection while maintaining pipeline
functionality?
Answer: Explain using Azure Key Vault to store secrets and access them using
managed identities or service connections with minimal privileges. Emphasize
avoiding hardcoding secrets in the pipeline script.
Scenario: Your application uses Docker containers. How would you integrate ACR with
Azure Pipelines for building, pushing, and deploying container images?
Answer: Describe the process of configuring Docker tasks in the pipeline to build
images, authenticate with ACR using service connections, push images to the
registry, and deploy them to specific environments.
Scenario: Your pipeline consistently fails at a specific stage. How would you
approach troubleshooting and identifying the root cause of the issue?
Scenario: Your company has specific infrastructure requirements and needs to run
pipelines on self-hosted machines. How would you leverage Azure Runners for this
purpose?
Scenario: Your team has various roles with different access needs. How would you
configure RBAC within Azure Pipelines to ensure users have appropriate permissions?
Answer: Explain leveraging built-in roles and custom definitions to grant access to
pipelines, repositories, and resources. Highlight the importance of least privilege
and separation of duties principles.
Answer: Discuss using tasks like Azure Resource Manager or Terraform tasks to
manage infrastructure creation and deletion within the pipeline workflow. Mention
benefits like faster deployments and improved consistency.
Scenario: How would you ensure overall security within your Azure Pipelines
throughout the CI/CD process, from code building to deployment?