Flashcards & Memory Anchors
20 interactive flashcards, 4 mnemonic memory anchors, and per-domain key concept cards. Click any card to flip it.
Flashcards — click to flip
What is the main purpose of branch protection on main?
Tap to reveal answerTo enforce controlled and reviewed changes in critical branches — preventing direct pushes, force pushes, and unreviewed merges.
Why use YAML templates in CI pipelines?
Tap to reveal answerTo reduce duplication and ensure consistency across services. One change to the template propagates to all consuming pipelines.
What does build-once-promote mean?
Tap to reveal answerCreate one validated artefact and promote it across environments unchanged. The same image digest/binary that passed tests in dev reaches production.
What is a quality gate?
Tap to reveal answerA mandatory pass/fail threshold before a pipeline can proceed. Examples: minimum code coverage, zero critical CVEs, all tests passing.
When is canary deployment ideal?
Tap to reveal answerWhen you need progressive, risk-controlled rollout with automated health-gate progression or rollback based on live metrics.
When is blue/green deployment ideal?
Tap to reveal answerWhen fast cutover and rapid rollback are required. Blue stays running after switch — rollback is instant by re-routing traffic.
What is IaC drift?
Tap to reveal answerDeviation between declared infrastructure (code) and actual deployed state (portal/manual changes). Terraform detects and corrects drift on next apply.
Why should secrets be fetched at runtime?
Tap to reveal answerTo avoid exposure in code, logs, and static pipeline definitions. Runtime retrieval from Key Vault via managed identity means no credential is ever stored.
What is an SLI?
Tap to reveal answerA Service Level Indicator — a measurable indicator of service performance, e.g., request success rate, p99 latency, error rate.
What is an SLO?
Tap to reveal answerA Service Level Objective — a target for an SLI over a defined time period, e.g., "99.9% request success over 28 days".
What is an error budget used for?
Tap to reveal answerTo balance feature delivery speed with reliability targets. When the error budget runs low, slow down risky releases. When it's healthy, accelerate delivery.
Which DORA metric indicates release stability quality?
Tap to reveal answerChange failure rate — the percentage of deployments that result in a production incident requiring hotfix, rollback, or patch. Elite: < 15%.
What does MTTR represent?
Tap to reveal answerMean Time To Restore — the average time from incident detection to service restoration. Elite performers: under 1 hour.
What should alerting be based on?
Tap to reveal answerUser-impacting thresholds tied to SLO risk — not raw volume or noise. Alerts that require no action cause alert fatigue and hide real incidents.
Why link work items, commits, and deployments?
Tap to reveal answerTo provide traceability for audit and troubleshooting — from a production incident back to the deployment, artefact, commit, PR, and original requirement.
What is the strongest AZ-400 exam decision heuristic?
Tap to reveal answerPrefer automated, auditable, low-risk approaches. When two answers are close, the one that is automated AND auditable AND reduces blast radius wins.
Why are dependency versions pinned in a build pipeline?
Tap to reveal answerTo improve reproducibility and reduce supply-chain variance. A build should produce the same output given the same source — pinned deps ensure this.
What is policy as code?
Tap to reveal answerMachine-enforceable governance rules in versioned definitions — e.g., Azure Policy, OPA, Checkov rules stored in Git alongside infrastructure code.
What should a rollback plan include?
Tap to reveal answerTriggers (the metric threshold that triggers it), owners (who executes), execution steps (exactly what to do), and verification checks (how to confirm success).
What is the most common AZ-400 mistake candidates make?
Tap to reveal answerChoosing 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.
Memory Anchors — mnemonics to recall under pressure
- PPrepare — set up environment and dependencies
- IInspect — run quality and security gates
- PProve — validate with tests and coverage
- EEnforce — fail pipeline on threshold breach
- 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
- 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
- SSignal — alert fires on SLO threshold
- TTriage — identify blast radius and owner
- AAct — mitigate or roll back immediately
- RReview — post-mortem with action items
Domain Key Concepts — per-domain revision cards
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