AZ-204 Quality Control & Assurance 5 — Questions and Answers
Question 1: Which Azure DevOps work item type is most appropriate for tracking a defect found during QA testing?
- Epic
- Feature
- Bug (Correct answer)
- Task
Correct answer: Bug
The 'Bug' work item type is designed to capture defects, including reproduction steps, expected vs actual behavior, and priority, making it the standard QA tracking artifact.
Question 2: You are implementing chaos engineering for an Azure-hosted microservice. Which Azure service provides built-in fault injection experiments such as CPU pressure and network latency?
- Azure Chaos Studio (Correct answer)
- Azure Load Testing
- Azure Monitor Workbooks
- Azure DevTest Labs
Correct answer: Azure Chaos Studio
Azure Chaos Studio lets you define experiments that inject faults—CPU stress, network delay, pod failures—into Azure resources to validate application resilience.
Question 3: In an Azure Pipelines YAML file, what is the correct way to publish test results so they appear in the pipeline summary?
- Use the 'PublishTestResults' task with the appropriate resultFormat and searchFolder (Correct answer)
- Upload the .trx file as a pipeline artifact using 'PublishBuildArtifacts'
- Echo the test summary to stdout and let the pipeline parse it
- Use the 'CopyFiles' task to move results to the agent workspace
Correct answer: Use the 'PublishTestResults' task with the appropriate resultFormat and searchFolder
The PublishTestResults task parses test result files (JUnit, NUnit, VSTest, etc.) and displays pass/fail counts, duration, and failure details in the pipeline UI.
Question 4: A team discovers that their Azure Function app silently swallows exceptions and returns HTTP 200 even on errors. Which Application Insights configuration helps detect this anti-pattern?
- Enable adaptive sampling at 100% rate
- Set up a custom availability test
- Create an alert on the 'exceptions/count' metric and review the Failures blade for logged exceptions (Correct answer)
- Increase the App Service Plan tier
Correct answer: Create an alert on the 'exceptions/count' metric and review the Failures blade for logged exceptions
Tracking 'exceptions/count' in Application Insights and reviewing the Failures blade surfaces unhandled or explicitly logged exceptions even when the HTTP status code is 200.
Question 5: When using Azure Key Vault references in App Service application settings, which quality check should be part of the deployment pipeline to catch misconfigured secret URIs?
- Run 'az webapp config appsettings list' and verify each @Microsoft.KeyVault() reference resolves successfully (Correct answer)
- Check that the App Service Managed Identity is assigned the Owner role on the subscription
- Verify the Key Vault firewall allows all public internet traffic
- Confirm that appsettings.json does not contain any secrets
Correct answer: Run 'az webapp config appsettings list' and verify each @Microsoft.KeyVault() reference resolves successfully
Listing and resolving Key Vault references after deployment confirms that the Managed Identity has correct access and the secret URI is valid, catching misconfiguration before it reaches users.
Question 6: Which testing methodology validates that independently tested microservices integrate correctly by testing only the contract between a consumer and a provider?
- End-to-end testing
- Contract testing (e.g., using Pact) (Correct answer)
- Load testing
- Regression testing
Correct answer: Contract testing (e.g., using Pact)
Contract testing verifies that the consumer's expectations (the contract) are met by the provider without requiring a live deployment of both services simultaneously.
Question 7: You need to validate that your Azure Blob Storage event-driven pipeline correctly processes every uploaded file. Which Azure tool helps you replay missed or failed events for debugging?
- Azure Event Grid dead-letter destination combined with Azure Storage redelivery scripts (Correct answer)
- Azure Blob Storage soft delete
- Azure Monitor Log Alerts
- Azure Event Hubs Capture
Correct answer: Azure Event Grid dead-letter destination combined with Azure Storage redelivery scripts
Configuring a dead-letter destination for Event Grid subscriptions captures undelivered events in a storage container, allowing you to inspect and replay them to diagnose processing failures.
Which Azure DevOps work item type is most appropriate for tracking a defect found during QA testing?