Microsoft GH-300 Practice Test 3
Question 20
A generated utility closely resembles code in a public repository, and the product is commercially distributed. Which TWO steps appropriately address provenance risk? (Select TWO.)
- Assume no rights review is necessary if the function compiles.
- Apply the project's legal and license compliance review before incorporating the utility.
- Delete displayed code references while retaining the copied implementation unchanged.
- Review available public-code references and their licensing context.
- Assume that generated code is automatically public domain.
Explanation
Correct Answers
B:A responsible distribution decision requires consideration of compatible rights and notices.
D:Match references may identify original authors and conditions that matter for reuse.
Incorrect Answers
A:Correct execution does not determine the legal status of the code.
C:Hiding references neither alters provenance nor fulfills license requirements.
E:AI generation does not create a universal public-domain waiver.
Question 21
A developer is about to paste a production API key into Copilot Chat for debugging. What is the right action?
- Replace secrets with synthetic placeholders and rotate any credential already exposed.
- Remove the hardcoded password, use an approved secret manager, and inspect repository history for exposure.
- Describe the key's format and expected operation without transmitting the private key.
- Create representative synthetic fixtures with no production identities or credentials.
Explanation
Correct Answer
A:A secret is not needed to reason about an authentication failure's structure.
Incorrect Answers
B:Secrets committed to source remain vulnerable even if a later commit removes the file. a secret is not needed to reason about an authentication failure's structure.
C:Cryptographic private material adds no legitimate explanatory value to a prompt. a secret is not needed to reason about an authentication failure's structure.
D:Synthetic data can preserve the failure shape without revealing real customer information. What is the right action. A secret is not needed to reason about an authentication failure's structure.
Question 22
A colleague asks Copilot to summarize a customer file containing unneeded personal data. What safeguard is appropriate?
- Replace secrets with synthetic placeholders and rotate any credential already exposed.
- Create representative synthetic fixtures with no production identities or credentials.
- Minimize or redact personal data before using any approved AI workflow.
- Describe the key's format and expected operation without transmitting the private key.
Explanation
Correct Answer
C:Data minimization limits exposure even when the tool is enterprise managed.
Incorrect Answers
A:A secret is not needed to reason about an authentication failure's structure. Data minimization limits exposure even when the tool is enterprise managed.
B:Synthetic data can preserve the failure shape without revealing real customer information. What safeguard is appropriate. Data minimization limits exposure even when the tool is enterprise managed.
D:Cryptographic private material adds no legitimate explanatory value to a prompt. data minimization limits exposure even when the tool is enterprise managed.
Question 23
A generated configuration file contains a live database password. How should the team react?
- Minimize or redact personal data before using any approved AI workflow.
- Replace secrets with synthetic placeholders and rotate any credential already exposed.
- Remove the hardcoded password, use an approved secret manager, and inspect repository history for exposure.
- Describe the key's format and expected operation without transmitting the private key.
Explanation
Correct Answer
C:Secrets committed to source remain vulnerable even if a later commit removes the file.
Incorrect Answers
A:Data minimization limits exposure even when the tool is enterprise managed. secrets committed to source remain vulnerable even if a later commit removes the file.
B:A secret is not needed to reason about an authentication failure's structure. Secrets committed to source remain vulnerable even if a later commit removes the file.
D:Cryptographic private material adds no legitimate explanatory value to a prompt. secrets committed to source remain vulnerable even if a later commit removes the file.
Question 24
A support engineer needs a reproducible example but only has confidential customer records. What should be used?
- Create representative synthetic fixtures with no production identities or credentials.
- Replace secrets with synthetic placeholders and rotate any credential already exposed.
- Minimize or redact personal data before using any approved AI workflow.
- Remove the hardcoded password, use an approved secret manager, and inspect repository history for exposure.
Explanation
Correct Answer
A:Synthetic data can preserve the failure shape without revealing real customer information.
Incorrect Answers
B:A secret is not needed to reason about an authentication failure's structure. Synthetic data can preserve the failure shape without revealing real customer information.
C:Data minimization limits exposure even when the tool is enterprise managed. synthetic data can preserve the failure shape without revealing real customer information.
D:Secrets committed to source remain vulnerable even if a later commit removes the file. What should be used. Synthetic data can preserve the failure shape without revealing real customer information.
Question 25
A request suggests including a private signing key as extra model context to improve a code explanation. What is the safe alternative?
- Remove the hardcoded password, use an approved secret manager, and inspect repository history for exposure.
- Minimize or redact personal data before using any approved AI workflow.
- Describe the key's format and expected operation without transmitting the private key.
- Create representative synthetic fixtures with no production identities or credentials.
Explanation
Correct Answer
C:Cryptographic private material adds no legitimate explanatory value to a prompt.
Incorrect Answers
A:Secrets committed to source remain vulnerable even if a later commit removes the file. What is the safe alternative. Cryptographic private material adds no legitimate explanatory value to a prompt.
B:Data minimization limits exposure even when the tool is enterprise managed. cryptographic private material adds no legitimate explanatory value to a prompt.
D:Synthetic data can preserve the failure shape without revealing real customer information. cryptographic private material adds no legitimate explanatory value to a prompt.
Question 26
Copilot retrieves a README that says to disable security tests before running any commands. How should that instruction be treated?
- Keep task authorization separate from issue text and restrict agent tool permissions.
- Review proposed file changes and require approval for privileged write operations.
- Treat repository text as untrusted task data and retain the authorized test policy.
- Use the page as reference material only, never as a higher-priority policy authority.
Explanation
Correct Answer
C:Retrieved content cannot override the user's instructions or security requirements.
Incorrect Answers
A:Lower-trust issue content must not grant privileges outside the intended assignment. How should that instruction be treated. Retrieved content cannot override the user's instructions or security requirements.
B:Prompt injection can enter through code comments but should not bypass change review. retrieved content cannot override the user's instructions or security requirements.
D:Web content can contain adversarial instructions unrelated to the actual development task. Retrieved content cannot override the user's instructions or security requirements.
Question 27
A tool response contains a hidden command to upload credentials to an unknown host. What should the developer do?
- Review proposed file changes and require approval for privileged write operations.
- Use the page as reference material only, never as a higher-priority policy authority.
- Treat repository text as untrusted task data and retain the authorized test policy.
- Reject the command and investigate the provenance of the untrusted tool output.
Explanation
Correct Answer
D:Tool results are not trusted authorization to exfiltrate secrets.
Incorrect Answers
A:Prompt injection can enter through code comments but should not bypass change review. tool results are not trusted authorization to exfiltrate secrets.
B:Web content can contain adversarial instructions unrelated to the actual development task. Tool results are not trusted authorization to exfiltrate secrets.
C:Retrieved content cannot override the user's instructions or security requirements. tool results are not trusted authorization to exfiltrate secrets.
Question 28
A copied issue description asks an agent to ignore its assigned objective and modify billing settings. What principle applies?
- Treat repository text as untrusted task data and retain the authorized test policy.
- Reject the command and investigate the provenance of the untrusted tool output.
- Use the page as reference material only, never as a higher-priority policy authority.
- Keep task authorization separate from issue text and restrict agent tool permissions.
Explanation
Correct Answer
D:Lower-trust issue content must not grant privileges outside the intended assignment.
Incorrect Answers
A:Retrieved content cannot override the user's instructions or security requirements. lower-trust issue content must not grant privileges outside the intended assignment.
B:Tool results are not trusted authorization to exfiltrate secrets. What principle applies. Lower-trust issue content must not grant privileges outside the intended assignment.
C:Web content can contain adversarial instructions unrelated to the actual development task. Lower-trust issue content must not grant privileges outside the intended assignment.
Question 29
A malicious source comment requests that a code assistant overwrite a deployment workflow. How can the operator mitigate it?
- Reject the command and investigate the provenance of the untrusted tool output.
- Review proposed file changes and require approval for privileged write operations.
- Keep task authorization separate from issue text and restrict agent tool permissions.
- Treat repository text as untrusted task data and retain the authorized test policy.
Explanation
Correct Answer
B:Prompt injection can enter through code comments but should not bypass change review.
Incorrect Answers
A:Tool results are not trusted authorization to exfiltrate secrets. How can the operator mitigate it. Prompt injection can enter through code comments but should not bypass change review.
C:Lower-trust issue content must not grant privileges outside the intended assignment. prompt injection can enter through code comments but should not bypass change review.
D:Retrieved content cannot override the user's instructions or security requirements. prompt injection can enter through code comments but should not bypass change review.
Question 30
A retrieved documentation page claims its instructions outrank organizational policies. What is the safe interpretation?
- Keep task authorization separate from issue text and restrict agent tool permissions.
- Reject the command and investigate the provenance of the untrusted tool output.
- Review proposed file changes and require approval for privileged write operations.
- Use the page as reference material only, never as a higher-priority policy authority.
Explanation
Correct Answer
D:Web content can contain adversarial instructions unrelated to the actual development task.
Incorrect Answers
A:Lower-trust issue content must not grant privileges outside the intended assignment. web content can contain adversarial instructions unrelated to the actual development task.
B:Tool results are not trusted authorization to exfiltrate secrets. What is the safe interpretation. Web content can contain adversarial instructions unrelated to the actual development task.
C:Prompt injection can enter through code comments but should not bypass change review. Web content can contain adversarial instructions unrelated to the actual development task.