AZ-204 Quality Control & Assurance 3 — Questions and Answers
Question 1: Which Azure service provides a fully managed environment to run Selenium-based UI tests at scale across multiple browsers?
- Azure Load Testing
- Azure Test Plans (Correct answer)
- Azure DevTest Labs
- Azure Kubernetes Service
Correct answer: Azure Test Plans
Azure Test Plans includes exploratory and manual testing tools and integrates with automated test runners including Selenium for browser-based tests.
Question 2: A team uses feature flags in Azure App Configuration to gradually roll out a new feature. Which pattern does this implement?
- Blue-green deployment
- Canary release (Correct answer)
- Shadow testing
- A/B testing
Correct answer: Canary release
Canary release exposes a new feature to a small subset of users first, using feature flags to control the rollout percentage progressively.
Question 3: When should you use Azure Application Insights 'Smart Detection' compared to classic metric alerts?
- Smart Detection requires manual threshold configuration; classic alerts use ML
- Smart Detection automatically identifies anomalies without preset thresholds; classic alerts trigger on fixed conditions (Correct answer)
- Smart Detection only works for on-premises applications
- Smart Detection sends alerts via SMS only
Correct answer: Smart Detection automatically identifies anomalies without preset thresholds; classic alerts trigger on fixed conditions
Smart Detection uses machine learning to detect unusual patterns in failure rates, response times, and memory use without requiring you to define explicit thresholds.
Question 4: In a YAML-based Azure Pipeline, which keyword do you use to run a step only when a previous step fails?
- condition: succeeded()
- condition: failed() (Correct answer)
- dependsOn: failure
- runAlways: true
Correct answer: condition: failed()
Setting 'condition: failed()' on a step causes it to execute only when the preceding step did not succeed, useful for cleanup or notification tasks.
Question 5: You want to ensure your Azure Function does not regress on cold-start latency after each deployment. Which approach best automates this quality check?
- Enable Always On in App Service settings
- Add a performance test stage to the CI/CD pipeline that measures p95 response time after deployment (Correct answer)
- Increase the App Service Plan SKU
- Use consumption plan instead of premium plan
Correct answer: Add a performance test stage to the CI/CD pipeline that measures p95 response time after deployment
Running a post-deployment performance test in the pipeline captures latency metrics automatically and can fail the pipeline if thresholds are exceeded.
Question 6: Which tool in the .NET ecosystem is commonly used to measure code coverage and produce a Cobertura or OpenCover XML report in an Azure Pipeline?
- dotnet test with --collect:"XPlat Code Coverage" (Correct answer)
- dotnet build --coverage
- az acr build --coverage
- dotnet publish --instrument
Correct answer: dotnet test with --collect:"XPlat Code Coverage"
Running 'dotnet test --collect:"XPlat Code Coverage"' uses the built-in coverlet collector to produce coverage XML that Azure Pipelines can publish and display.
Question 7: What is the primary purpose of a 'deployment gate' in an Azure Pipelines release?
- Compress build artifacts before deployment
- Automatically approve deployments without human review
- Pause the pipeline and evaluate health signals (e.g., Azure Monitor alerts) before proceeding (Correct answer)
- Roll back a deployment if a timer expires
Correct answer: Pause the pipeline and evaluate health signals (e.g., Azure Monitor alerts) before proceeding
Deployment gates query external services such as Azure Monitor, REST APIs, or Azure DevOps work items and block the pipeline from advancing until quality criteria are met.
Which Azure service provides a fully managed environment to run Selenium-based UI tests at scale across multiple browsers?