Reconcile an accountable as-of incident handover

A hands-on CS0-004 lab. You produce the real artefact and 8 automated checks verify it behaves the way the exam expects.

Try this labAll CS0-004 practice

Certification
CS0-004
Format
SQL query
Difficulty
hard
Estimated time
35 min
Automated checks
8

The brief

Repair handover.sql. Return exactly incident_id,owner,observed_state,unverified_tasks,overdue_tasks,next_action. Preserve EVERY unique incident declared at/before observation second 1000, including NULL owners. Collapse identical imported rows. Select the latest state_event for that incident with declared_second<=observed<=1000, tie-breaking by lexically greatest event_id. No event means DECLARED; OPEN,CONTAINED,RECOVERED,CLOSED are supplied observations. A later OPEN after CLOSED is the actual selected observation. Never admit pre-declaration or future events. Current verification_tasks are supplied as-of records, not a history to rank. Count DISTINCT required=1 task_id values. A required task is verified only if state='verified' and verified_second is non-NULL within declared_second..1000 inclusive. All other required tasks are unverified. Nonrequired checks do not change readiness. Overdue counts distinct unverified required tasks with known due_second<1000; exactly 1000 is still within its inclusive deadline. NULL due dates remain unknown, not automatically overdue or verified. Local next_action precedence: NULL owner -> ASSIGN_OWNER; zero required tasks -> DEFINE_VERIFICATION; selected CLOSED with unverified tasks -> REVIEW_CLOSURE_EVIDENCE; otherwise any overdue -> ESCALATE_BLOCKER; otherwise any unverified -> TRACK_VERIFICATION; otherwise RECOVERED or CLOSED -> REQUEST_OWNER_REVIEW; all remaining states -> CONTINUE_RESPONSE. Retain raw observed_state even when closure evidence is deficient. No next_action executes a response or grants approval. Window-ranked status or anti-dominated event selection is valid. Inspect actual selected status, evidence counts and unresolved owner/deadline; save and repair without Reset.

What the checks verify

Your work is graded on 8 independent properties, not on matching one reference answer.

  • A bounded read-only handover query executes against immutable actual evidence.
  • Actual incident, owner, observed status, evidence counts and next-action columns are explicit.
  • The report preserves actual latest eligible state and incident population at the fixed observation.
  • Unknown accountable ownership and absent required checks remain explicit unresolved dispositions.
  • Only required checks with actual in-window verified metadata reduce the unresolved task population.
  • Known overdue unresolved tasks differ from inclusive current or unknown deadlines.
  • A logged CLOSED label cannot erase unfinished verification; supported checks still require owner review.
  • Copied imports and unfamiliar incidents retain actual unique task counts and report population.

Where this sits in the CS0-004 blueprint

Domain
Reporting and Communication
Objective
Incident Reporting
Skill
Handover, Metrics and Audience

Part of CS0-004 preparation

Labs are written by ExamNova to teach the decisions the exam tests. They are not reproductions of vendor lab content.