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

Posted by Avery on Sep 28, 2026 at 02:26 PM

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?

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.


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

Get Premium GH-600 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
11 comments · newest first
LE
Leontine
I think B) is risky, committing state files can clutter the repo.
FR
Francis 5 days ago
A) is the way to go for persisting state!
BE
Bette 10 days ago
I think A) is the most straightforward solution here.
TI
Timothy 15 days ago
C) won't work for complex states, gotta go with A).
RO
Roxanne 20 days ago
Surprised that D) is even an option, isn't that risky?
BO
Boris 26 days ago
I disagree, B) could lead to bloated repos.
BA
Barrett 1 month ago
A) seems like the best option for persistence.
AN
Antonio 1 month ago
I recall that using the runner's memory (option D) could be risky since it might not persist across different jobs, but I can't remember the details.
AL
Almeta 1 month ago
I practiced a similar question where we had to manage state, and I feel like using environment variables (option C) might not be the best choice for larger data.
PE
Peggy 2 months ago
I'm not entirely sure, but I feel like committing the state to the repository (option B) could lead to issues with version control.
SH
Shannan 2 months ago
I think option A sounds familiar; I remember something about artifacts being used to share data between jobs in a workflow.
0/2000 characters

Save Cancel