Exam · Go: build a concurrent service

Take the exam and earn your certificate.

A real, server-scored exam for this course. Score strictly above 80% to pass and get a genuine, verifiable certificate.

Before you start

We ask for your name and email first, the same as a PDF download, so we know you are here and your certificate can carry the right name.

We privately record your name, email and request IP for this exam request. Read the privacy notice and retention policy.

Visit Mickai on LinkedIn

Complete the security check before submitting.

Cloudflare Turnstile helps prevent automated submissions. How this check uses data.

You can retake the exam any time. Each attempt draws a fresh set of questions.

Written practice, ungraded

Write your response in your own notes, then compare it with the sample answer. This practice is separate from the scored exam and does not affect your certificate.

Practice 1

Write the small POST /batch contract in your own words. Include one valid input boundary, one rejected example and one limit that is a teaching choice.

Check your answer against these points:

  • States the count and numeric bounds.
  • Gives a source-supported rejected input.
  • Labels the limits as this lab choices.
Compare with a sample answer

A valid request supplies one to eight integer values from zero through one million inclusive. An empty list, fraction or value above the upper bound is rejected. The small input and work limits are specific to this lab, not a general service policy.

Ungraded paper practice. Tie each claim to the stated local contract and distinguish it from a universal service rule.

Practice 2

For input [3,1,2], label the queued indexes and show where each squared result belongs, even if item 1 completes before item 0.

Check your answer against these points:

  • Labels all three indexes.
  • Places each result in its matching slot.
  • Explains why completion order is separate.
Compare with a sample answer

The queue indexes are 0, 1 and 2. Results 9, 1 and 4 belong in slots 0, 1 and 2 respectively. Completion order does not change those positions.

Ungraded paper practice. Evaluate index ownership and ordered output without assuming which worker finishes first.

Practice 3

Review a fictional request body that contains a duplicate numbers key and a second JSON object. State what this parser checks and what ambiguity remains.

Check your answer against these points:

  • Identifies that the second JSON value is rejected.
  • Identifies duplicate-key acceptance as a remaining limitation.
  • Avoids claiming canonical parsing.
Compare with a sample answer

The second decoder call rejects a second JSON value. The described encoding/json v1 decoder does not reject duplicate keys, and case-insensitive field matching can also occur. This source describes a small lab parser, not a canonical validator.

Ungraded paper practice. Separate the second-value check from duplicate-key behaviour and avoid presenting this historical course description as current external guidance.

Practice 4

Trace what happens after a client cancels while two cooperative operations are waiting. Include the worker join and request-slot release.

Check your answer against these points:

  • Connects request cancellation to the child context.
  • Explains that WaitGroup joining waits for workers to return.
  • Explains when defer releases the slot and names the non-cooperative limitation.
Compare with a sample answer

Request cancellation reaches the child context. Cooperative operations return errors, the workers complete, and runBatch waits for them. The handler then returns and defer releases the request slot. If an operation ignores cancellation and remains blocked, the join can remain blocked and the slot can stay occupied.

Ungraded paper practice. Describe cancellation as cooperative and distinguish the worker join from the deferred admission cleanup.

Practice 5

Summarise the local executable shutdown path and name two things the recorded build did not establish.

Check your answer against these points:

  • Names the interrupt-triggered path and timeout/fallback.
  • Names the unexercised signal and graceful-drain checks.
  • Does not claim TLS, authentication or capacity evidence.
Compare with a sample answer

The program listens on 127.0.0.1:8088 and uses signal.NotifyContext for an interrupt. It attempts Shutdown with a one-second context, then calls Close if Shutdown fails. The release compiled the path but did not exercise the operating-system signal or graceful-drain sequence. The server settings do not establish TLS, authentication or production capacity.

Ungraded paper practice. Keep compiled code, exercised behaviour and production properties separate.

Practice 6

Write a short evidence note for a reviewer that separates passing local checks from unverified runtime or environment limits.

Check your answer against these points:

  • Reports recorded test and build evidence accurately.
  • States that the race detector did not run tests.
  • Names an unverified runtime or deployment limit.
Compare with a sample answer

The source records twelve top-level Test functions, twenty HTTP subtests and one executable Example, with the suite repeated twenty times. Go vet and a normal build passed. The -race command stopped before tests because cgo was disabled, and the operating-system signal path was not exercised. These local checks do not establish public-network load, authentication or production behaviour.

Ungraded paper practice. Keep results tied to the stated release record and list limits without upgrading them into acceptance claims.

About this exam

Is this exam graded?

Yes. Every question is scored on our server, never in your browser, and you need a score strictly above 80% to pass. The questions are a real, reviewed bank for this course, drawn fresh for each attempt.

Is it only multiple choice?

Yes. This is a multiple-choice knowledge assessment, with at least one question from each chapter in every attempt. Written exercises are separate practice and are not automatically scored. Passing does not establish practical professional competence or independently verify identity.

Is there a time limit?

Yes, 30 minutes, shown as a countdown once you start. If time runs out, whatever you have answered is submitted automatically.

Do I need to download the PDF first?

No. This course's full text is on its own page, so you can read it online and come straight here when you feel ready.

What do you do with my name and email?

We privately record your name, email, request IP, course and privacy acknowledgement for this request. Newsletter consent is separate and optional. See /privacy.html for storage and retention. A passed exam creates a server-stored named certificate. An email confirmation is not identity assurance.

Can I retake it if I fail?

Yes, straight away. Each attempt draws a fresh set of questions and shuffles the answer order, so it will not be identical to your last attempt, and an attempt can only be submitted once.

Is the certificate real?

It is a genuine, server-issued certificate with its own verification page and a unique ID, not a self-declared one. It records that you passed this course's exam on this date. It is not an accredited qualification, a professional licence or proof of employment.