100% Latest & Updated Microsoft GH-300 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 50
A code owner asks Copilot to propose third-party dependencies. An installation suggestion requires broad operating-system privileges without a clear reason. What is the most defensible next step under responsible development practices?
- Review maintenance state, license, and compatibility before adoption.
- Use the least-privileged installation path and inspect install scripts.
- Select a fixed supported release or alternative after advisory review.
- Prefer supported built-in functionality when it meets the requirement.
Explanation
Correct Answer
B:Administrative privileges should be justified by the actual installation task.
Incorrect Answers
A:Long-term support obligations are independent of model suggestions. This addresses a different situation: The model recommends a package without checking its support lifecycle.
C:A package's popularity does not remove known vulnerabilities. This addresses a different situation: A recommended package has a known critical security advisory affecting the requested version.
D:Reducing needless dependencies narrows maintenance and supply-chain exposure. This addresses a different situation: Generated code adds an unnecessary dependency to perform a trivial string operation.
Question 51
An API team asks Copilot to add secure logging. Generated logging includes the full Authorization header. Which action is the most appropriate response to this situation?
- Make verbose diagnostic logging time-bound and access-controlled.
- Apply field-level minimization and retention controls before collection.
- Mask authentication headers and omit secrets from application logs.
- Design protected audit storage with required integrity and access controls.
Explanation
Correct Answer
C:Credentials in logs create unnecessary exposure and persistence.
Incorrect Answers
A:Persistent debug output increases sensitive data and operational noise. This addresses a different situation: The proposed debug mode remains enabled in production indefinitely.
B:Unbounded user text can contain sensitive information not needed for diagnostics. This addresses a different situation: The generated handler logs raw user messages containing personal data.
D:Compliance evidence needs defenses against unauthorized alteration. This addresses a different situation: The model recommends storing audit records in an easily modified local file.
Question 52
An API team asks Copilot to add secure logging. The suggested log message includes database connection strings with passwords. What should the developer do before accepting the proposed result?
- Make verbose diagnostic logging time-bound and access-controlled.
- Log a safe connection identifier rather than the connection secret.
- Design protected audit storage with required integrity and access controls.
- Mask authentication headers and omit secrets from application logs.
Explanation
Correct Answer
B:Useful diagnostics rarely require exposing a password-bearing connection string.
Incorrect Answers
A:Persistent debug output increases sensitive data and operational noise. This addresses a different situation: The proposed debug mode remains enabled in production indefinitely.
C:Compliance evidence needs defenses against unauthorized alteration. This addresses a different situation: The model recommends storing audit records in an easily modified local file.
D:Credentials in logs create unnecessary exposure and persistence. This addresses a different situation: Generated logging includes the full Authorization header.
Question 53
An API team asks Copilot to add secure logging. The generated handler logs raw user messages containing personal data. Which response best addresses the stated risk or requirement?
- Mask authentication headers and omit secrets from application logs.
- Design protected audit storage with required integrity and access controls.
- Log a safe connection identifier rather than the connection secret.
- Apply field-level minimization and retention controls before collection.
Explanation
Correct Answer
D:Unbounded user text can contain sensitive information not needed for diagnostics.
Incorrect Answers
A:Credentials in logs create unnecessary exposure and persistence. This addresses a different situation: Generated logging includes the full Authorization header.
B:Compliance evidence needs defenses against unauthorized alteration. This addresses a different situation: The model recommends storing audit records in an easily modified local file.
C:Useful diagnostics rarely require exposing a password-bearing connection string. This addresses a different situation: The suggested log message includes database connection strings with passwords.
Question 54
An API team asks Copilot to add secure logging. The proposed debug mode remains enabled in production indefinitely. What is the most defensible next step under responsible development practices?
- Mask authentication headers and omit secrets from application logs.
- Make verbose diagnostic logging time-bound and access-controlled.
- Apply field-level minimization and retention controls before collection.
- Log a safe connection identifier rather than the connection secret.
Explanation
Correct Answer
B:Persistent debug output increases sensitive data and operational noise.
Incorrect Answers
A:Credentials in logs create unnecessary exposure and persistence. This addresses a different situation: Generated logging includes the full Authorization header.
C:Unbounded user text can contain sensitive information not needed for diagnostics. This addresses a different situation: The generated handler logs raw user messages containing personal data.
D:Useful diagnostics rarely require exposing a password-bearing connection string. This addresses a different situation: The suggested log message includes database connection strings with passwords.
Question 55
An API team asks Copilot to add secure logging. The model recommends storing audit records in an easily modified local file. Which recommendation directly resolves this issue?
- Log a safe connection identifier rather than the connection secret.
- Make verbose diagnostic logging time-bound and access-controlled.
- Apply field-level minimization and retention controls before collection.
- Design protected audit storage with required integrity and access controls.
Explanation
Correct Answer
D:Compliance evidence needs defenses against unauthorized alteration.
Incorrect Answers
A:Useful diagnostics rarely require exposing a password-bearing connection string. This addresses a different situation: The suggested log message includes database connection strings with passwords.
B:Persistent debug output increases sensitive data and operational noise. This addresses a different situation: The proposed debug mode remains enabled in production indefinitely.
C:Unbounded user text can contain sensitive information not needed for diagnostics. This addresses a different situation: The generated handler logs raw user messages containing personal data.
Question 56
A team conducts a threat-model review with an AI assistant. The assistant lists attack names but no affected assets or trust boundaries. What should the developer do before accepting the proposed result?
- Rank threats using a consistent severity method and documented assumptions.
- Convert mitigations into verifiable security tests and review results.
- Define assets, actors, data flows, and trust boundaries before prioritizing threats.
- Review the complete data flow and close the output disclosure path.
Explanation
Correct Answer
C:A threat model requires a concrete system context rather than an unranked buzzword list.
Incorrect Answers
A:Risk prioritization must distinguish scenarios by evidence and consequence. This addresses a different situation: The tool calls every risk critical without considering likelihood or impact.
B:A listed control is not proof that a weakness has been removed. This addresses a different situation: Proposed mitigations are accepted without tests proving they work.
D:Encryption in transit does not prevent leaks from application responses. This addresses a different situation: The model suggests encryption but the service still exposes secrets in error responses.
Question 57
A team conducts a threat-model review with an AI assistant. A generated threat list ignores authorization on a new administrative endpoint. Which response best addresses the stated risk or requirement?
- Review the complete data flow and close the output disclosure path.
- Assess privilege escalation and access-control abuse for that endpoint.
- Convert mitigations into verifiable security tests and review results.
- Define assets, actors, data flows, and trust boundaries before prioritizing threats.
Explanation
Correct Answer
B:Administrative APIs introduce high-impact authorization boundaries.
Incorrect Answers
A:Encryption in transit does not prevent leaks from application responses. This addresses a different situation: The model suggests encryption but the service still exposes secrets in error responses.
C:A listed control is not proof that a weakness has been removed. This addresses a different situation: Proposed mitigations are accepted without tests proving they work.
D:A threat model requires a concrete system context rather than an unranked buzzword list. This addresses a different situation: The assistant lists attack names but no affected assets or trust boundaries.
Question 58
A team conducts a threat-model review with an AI assistant. The tool calls every risk critical without considering likelihood or impact. What is the most defensible next step under responsible development practices?
- Convert mitigations into verifiable security tests and review results.
- Rank threats using a consistent severity method and documented assumptions.
- Assess privilege escalation and access-control abuse for that endpoint.
- Define assets, actors, data flows, and trust boundaries before prioritizing threats.
Explanation
Correct Answer
B:Risk prioritization must distinguish scenarios by evidence and consequence.
Incorrect Answers
A:A listed control is not proof that a weakness has been removed. This addresses a different situation: Proposed mitigations are accepted without tests proving they work.
C:Administrative APIs introduce high-impact authorization boundaries. This addresses a different situation: A generated threat list ignores authorization on a new administrative endpoint.
D:A threat model requires a concrete system context rather than an unranked buzzword list. This addresses a different situation: The assistant lists attack names but no affected assets or trust boundaries.
Question 59
A team conducts a threat-model review with an AI assistant. The model suggests encryption but the service still exposes secrets in error responses. Which recommendation directly resolves this issue?
- Assess privilege escalation and access-control abuse for that endpoint.
- Define assets, actors, data flows, and trust boundaries before prioritizing threats.
- Rank threats using a consistent severity method and documented assumptions.
- Review the complete data flow and close the output disclosure path.
Explanation
Correct Answer
D:Encryption in transit does not prevent leaks from application responses.
Incorrect Answers
A:Administrative APIs introduce high-impact authorization boundaries. This addresses a different situation: A generated threat list ignores authorization on a new administrative endpoint.
B:A threat model requires a concrete system context rather than an unranked buzzword list. This addresses a different situation: The assistant lists attack names but no affected assets or trust boundaries.
C:Risk prioritization must distinguish scenarios by evidence and consequence. This addresses a different situation: The tool calls every risk critical without considering likelihood or impact.
Question 60
A team conducts a threat-model review with an AI assistant. Proposed mitigations are accepted without tests proving they work. Which action is the most appropriate response to this situation?
- Rank threats using a consistent severity method and documented assumptions.
- Convert mitigations into verifiable security tests and review results.
- Assess privilege escalation and access-control abuse for that endpoint.
- Review the complete data flow and close the output disclosure path.
Explanation
Correct Answer
B:A listed control is not proof that a weakness has been removed.
Incorrect Answers
A:Risk prioritization must distinguish scenarios by evidence and consequence. This addresses a different situation: The tool calls every risk critical without considering likelihood or impact.
C:Administrative APIs introduce high-impact authorization boundaries. This addresses a different situation: A generated threat list ignores authorization on a new administrative endpoint.
D:Encryption in transit does not prevent leaks from application responses. This addresses a different situation: The model suggests encryption but the service still exposes secrets in error responses.
GitHub Copilot (GH-300) Practice Tests