โ† All AZ-204 Flashcard Decks

Quality Control & Assurance Flashcards

7 cards from real AZ-204 practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Quality Control & Assurance flashcards as text
  1. Which Azure DevOps feature allows you to define and enforce branch policies to prevent direct pushes to the main branch?

    Answer: Branch policies

    Azure DevOps Branch Policies let you require pull requests, minimum reviewer counts, and status checks before code can be merged to protected branches.

  2. When configuring an Azure Load Testing resource, which metric best indicates that a web API is degrading under load?

    Answer: Average response time increasing as virtual users increase

    A rising average response time correlated with increasing virtual users signals that the service is struggling to keep up with demand.

  3. In Azure Application Insights, what is the purpose of 'Availability Tests'?

    Answer: Continuously ping your app endpoints from global locations to detect downtime

    Availability Tests send synthetic HTTP requests to your URLs from multiple Azure regions on a schedule and alert you when they fail.

  4. A developer wants to ensure that every pull request passes unit tests before it can be merged. Which Azure DevOps configuration achieves this?

    Answer: Add a status check policy requiring the CI pipeline to succeed

    A status check policy tied to a build pipeline blocks merge until the pipeline reports success, enforcing automated test verification on every PR.

  5. Which xUnit attribute should you use in a .NET test project to supply multiple sets of inputs to a single test method?

    Answer: [Theory] with [InlineData]

    In xUnit, [Theory] marks a parameterized test and [InlineData] provides each set of arguments, running the method once per data row.

  6. You need to mock an external HTTP dependency in an ASP.NET Core integration test without hitting the real endpoint. What is the recommended approach?

    Answer: Replace the HttpClient with a mock using IHttpClientFactory and a custom DelegatingHandler

    A custom DelegatingHandler registered via IHttpClientFactory intercepts outbound requests and returns canned responses without making real network calls.

  7. In Azure Monitor, what is a 'diagnostic setting' used for in the context of quality assurance?

    Answer: Routing resource logs and metrics to a Log Analytics workspace, storage, or Event Hub for analysis

    Diagnostic settings control where a resource's platform logs and metrics are sent, enabling centralized monitoring and post-incident analysis.