Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft GH-600 Exam - Topic 6 Question 5 Discussion

You have a GitHub Actions workflow that runs GitHub Copilot-driven integration tests across multiple jobs.You need to persist the agent memory/state so that it remains available across the jobs.What should you do?
A) Upload the agent state as a workflow artifact and download the artifact in subsequent jobs.
B) Add the agent state directory to the repository and commit the changes at the end of each job.
C) Write the agent state to environment variables.
D) Use the runner's memory to retain the workspace between jobs.

Microsoft GH-600 Exam - Topic 6 Question 5 Discussion

Actual exam question for Microsoft's GH-600 exam
Question #: 5
Topic #: 6
[All GH-600 Questions]

You have a GitHub Actions workflow that runs GitHub Copilot-driven integration tests across multiple jobs.

You need to persist the agent memory/state so that it remains available across the jobs.

What should you do?

Show Suggested Answer Hide Answer
Suggested Answer: A

Workflow artifacts provide an explicit mechanism for transferring serialized agent state between jobs. The producing job writes the required state to files and uploads those files as an artifact. Subsequent jobs download the artifact and load the state before continuing the integration-test workflow.

This is necessary because jobs do not automatically share process memory or a common workspace. They may execute on different runners, and even jobs assigned to similar runner types must not depend on incidental machine reuse. Uploading the state establishes a deliberate persistence boundary rather than relying on temporary execution infrastructure.

Committing state after every job introduces repository mutations merely to transport workflow data. Environment variables are also unsuitable as a general cross-job state store: setting a variable in one job does not automatically expose it in another, and complex state is better represented in structured files.

The application must serialize the information needed for continuation, such as completed steps, relevant decisions, and test progress. Uploading an arbitrary directory does not automatically restore a running agent process.

Relevant curriculum topics are durable state, cross-environment continuity, and resuming work without repeating completed steps.


===============

Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel