← Back to Portal

Flashcards & Memory Anchors

20 interactive flashcards, 4 mnemonic memory anchors, and per-domain key concept cards. Click any card to flip it.

20 flashcards 4 memory anchors 7 domain summaries
D3 — Source Control

What is the main purpose of branch protection on main?

Tap to reveal answer
Answer

To enforce controlled and reviewed changes in critical branches — preventing direct pushes, force pushes, and unreviewed merges.

D1 — CI

Why use YAML templates in CI pipelines?

Tap to reveal answer
Answer

To reduce duplication and ensure consistency across services. One change to the template propagates to all consuming pipelines.

D1 — CI

What does build-once-promote mean?

Tap to reveal answer
Answer

Create one validated artefact and promote it across environments unchanged. The same image digest/binary that passed tests in dev reaches production.

D1 — CI

What is a quality gate?

Tap to reveal answer
Answer

A mandatory pass/fail threshold before a pipeline can proceed. Examples: minimum code coverage, zero critical CVEs, all tests passing.

D2 — CD

When is canary deployment ideal?

Tap to reveal answer
Answer

When you need progressive, risk-controlled rollout with automated health-gate progression or rollback based on live metrics.

D2 — CD

When is blue/green deployment ideal?

Tap to reveal answer
Answer

When fast cutover and rapid rollback are required. Blue stays running after switch — rollback is instant by re-routing traffic.

D2 — CD

What is IaC drift?

Tap to reveal answer
Answer

Deviation between declared infrastructure (code) and actual deployed state (portal/manual changes). Terraform detects and corrects drift on next apply.

D4 — Security

Why should secrets be fetched at runtime?

Tap to reveal answer
Answer

To avoid exposure in code, logs, and static pipeline definitions. Runtime retrieval from Key Vault via managed identity means no credential is ever stored.

D6 — SRE

What is an SLI?

Tap to reveal answer
Answer

A Service Level Indicator — a measurable indicator of service performance, e.g., request success rate, p99 latency, error rate.

D6 — SRE

What is an SLO?

Tap to reveal answer
Answer

A Service Level Objective — a target for an SLI over a defined time period, e.g., "99.9% request success over 28 days".

D6 — SRE

What is an error budget used for?

Tap to reveal answer
Answer

To balance feature delivery speed with reliability targets. When the error budget runs low, slow down risky releases. When it's healthy, accelerate delivery.

D5 — Instrumentation

Which DORA metric indicates release stability quality?

Tap to reveal answer
Answer

Change failure rate — the percentage of deployments that result in a production incident requiring hotfix, rollback, or patch. Elite: < 15%.

D5 — Instrumentation

What does MTTR represent?

Tap to reveal answer
Answer

Mean Time To Restore — the average time from incident detection to service restoration. Elite performers: under 1 hour.

D5 — Instrumentation

What should alerting be based on?

Tap to reveal answer
Answer

User-impacting thresholds tied to SLO risk — not raw volume or noise. Alerts that require no action cause alert fatigue and hide real incidents.

D7 — Collaboration

Why link work items, commits, and deployments?

Tap to reveal answer
Answer

To provide traceability for audit and troubleshooting — from a production incident back to the deployment, artefact, commit, PR, and original requirement.

Core Heuristic

What is the strongest AZ-400 exam decision heuristic?

Tap to reveal answer
Answer

Prefer automated, auditable, low-risk approaches. When two answers are close, the one that is automated AND auditable AND reduces blast radius wins.

D1 — CI

Why are dependency versions pinned in a build pipeline?

Tap to reveal answer
Answer

To improve reproducibility and reduce supply-chain variance. A build should produce the same output given the same source — pinned deps ensure this.

D4 — Security

What is policy as code?

Tap to reveal answer
Answer

Machine-enforceable governance rules in versioned definitions — e.g., Azure Policy, OPA, Checkov rules stored in Git alongside infrastructure code.

D2 — CD

What should a rollback plan include?

Tap to reveal answer
Answer

Triggers (the metric threshold that triggers it), owners (who executes), execution steps (exactly what to do), and verification checks (how to confirm success).

Core Trap

What is the most common AZ-400 mistake candidates make?

Tap to reveal answer
Answer

Choosing manual convenience over governed automation. If an answer involves someone clicking or emailing instead of a pipeline gate or automated check, it's almost certainly wrong.

PIPE
  • PPrepare — set up environment and dependencies
  • IInspect — run quality and security gates
  • PProve — validate with tests and coverage
  • EEnforce — fail pipeline on threshold breach
SAFE
  • SStage — deploy to a controlled environment first
  • AApprove — gate with health check or human sign-off
  • FFail-safe — always have a rollback path ready
  • EEvaluate — verify post-deployment health
TRACE
  • TTicket — work item linked to change
  • RRepo — commit SHA in version record
  • AArtefact — immutable build output
  • CCheck — policy gate outcomes logged
  • EEvidence — audit trail captured automatically
STAR
  • SSignal — alert fires on SLO threshold
  • TTriage — identify blast radius and owner
  • AAct — mitigate or roll back immediately
  • RReview — post-mortem with action items

D1 — Continuous Integration

  • CI trigger on push; PR validation trigger before merge
  • Step / job / stage / variable templates for reuse
  • Quality gates: test pass, coverage %, zero critical CVEs
  • Build once, promote same artefact through environments
  • Cache keyed by lockfile hash, not directory name
  • Version artefacts with commit SHA for traceability

⚠ Trap: rebuilding per environment breaks build-once principle

D2 — Continuous Delivery

  • Blue/green = instant rollback, keep blue running
  • Canary = progressive % with automated health gates
  • Feature flag = decouple deploy from release
  • Pre-deployment gates: environment health before deploy
  • Post-deployment gates: verify health before next stage
  • IaC drift: manual changes will be reverted by next apply

⚠ Trap: big bang deployment = highest blast radius, avoid

D3 — Source Control

  • Trunk-based: short-lived branches, feature flags for big work
  • GitFlow: multiple concurrent versions, long-lived release branches
  • PR policies: reviewers + build + work item + comment resolution
  • CODEOWNERS: auto-assign reviewers per file path
  • Cherry-pick for backporting fixes to release branches
  • Force push protection = immutable audit trail

⚠ Trap: "maintains v1, v2, v3" → GitFlow, not trunk-based

D4 — Security & Compliance

  • SAST + SCA + IaC scan at PR validation (no running app needed)
  • DAST requires deployed test environment
  • Secret scanning at pre-commit hook (earliest possible)
  • Critical CVE = fail pipeline, not warn
  • Managed identity > service principal with secret
  • OIDC / Workload Identity Federation = no stored secret

⚠ Trap: base64 is encoding, not encryption

D5 — Instrumentation

  • Application Insights: distributed tracing via operation_Id
  • KQL: where, summarize, bin(), ago(), order by desc
  • Alert fatigue: 200 alerts/day that get dismissed = wrong threshold
  • MTTR: incident detection → service restoration
  • Sampling: reduces cost, preserves statistical accuracy
  • Availability tests: outside-in health from global locations

⚠ Trap: resultCode in KQL is a string, not an integer

D6 — SRE Strategy

  • SLI → SLO → SLA (SLA must always be ≤ SLO)
  • Error budget = (1 − SLO) × period in minutes
  • Burn rate 6× on monthly SLO = exhausted in ~5 days
  • Toil = manual, repetitive, scales with service problems
  • DORA metrics: freq, lead time, MTTR, change failure rate
  • Slow releases when error budget is low, accelerate when healthy

⚠ Trap: SLA set above SLO = will breach before internal alarm

D7 — Collaboration

  • Sprint Review = demo to stakeholders, update backlog
  • Sprint Retrospective = internal process improvement, no stakeholders
  • New requirement mid-sprint → product backlog (not current sprint)
  • WIP limit full → swarm on existing items, not pull new
  • Work item hierarchy: Epic → Feature → Story → Task/Bug
  • Active → Resolved (developer done) → Closed (verified)

⚠ Trap: Review ≠ Retro — most common Collaboration question