Microsoft Certified: DevOps Engineer ExpertDesign and implement pipelinesEasy

A DevOps team needs to deploy an application to an Azure Kubernetes Service (AKS) cluster. The AKS cluster is in a different Azure subscription and resource group than the Azure DevOps project. The team wants to ensure secure, authenticated communication between the Azure DevOps pipeline and the AKS cluster for deployment operations. Which Azure DevOps component is primarily responsible for establishing this secure connection?

  1. AVariable Group
  2. BService Connection
  3. CAgent Pool
  4. DDeployment Group
Show answer & explanation

Correct answer: B. Service Connection

A Service Connection in Azure DevOps securely stores credentials and connection details for external services, including Azure subscriptions and Kubernetes clusters. It acts as an authenticated link, allowing pipelines to interact with these external resources without exposing sensitive information directly in the pipeline definition.

Why the other options are wrong

  • A. Variable Groups store variables, including secrets, but they don't provide the underlying authentication mechanism for connecting to external Azure resources.
  • C. Agent Pools manage agents that execute pipeline jobs, but they don't establish the secure connection to external services themselves.
  • D. Deployment Groups are for logically grouping deployment targets (like VMs), primarily for classic release pipelines, and don't establish the secure connection to an AKS cluster across subscriptions.

Service Connection (Azure DevOps)

A secure way to connect Azure DevOps to external services or subscriptions by storing authentication credentials and connection details.

  • Enables pipelines to interact with external resources securely.
  • Supports various service types (Azure Resource Manager, Kubernetes, GitHub, etc.).
  • Centralizes credential management and access control.

Memory trick: Service Connection is the secure bridge.

More Design and implement pipelines questions