Microsoft DP-800 Practice Test 19
Question 180
Brookfield Labs is responsible for an Azure SQL or Microsoft SQL workload. A web request sends a JSON array of purchased items. Operational evidence: Business logic needs one relational row per array element. What operational condition would provide the earliest useful regression warning?
- Monitor schema drift and invalid JSON
- Monitor unhandled errors and open transactions
- Monitor malformed arrays and conversion errors
- Monitor duplicate rates and tie-breaking edge cases
Explanation
Correct Answer
C:
Business logic needs one relational row per array element. Monitor malformed arrays and conversion errors. OPENJSON can expand an array into relational rows. A WITH schema helps produce the typed fields expected by downstream joins.
Incorrect Answers
A:
“Monitor schema drift and invalid JSON” concerns SQL filter needs one scalar region field; the reported problem instead is Business logic needs one relational row per array element. Monitor malformed arrays and conversion errors. OPENJSON can expand an array into relational rows. A WITH schema helps produce the typed fields expected by downstream joins.
B:
“Monitor unhandled errors and open transactions” concerns An error halfway through leaves risk of partial work; the reported problem instead is Business logic needs one relational row per array element. Monitor malformed arrays and conversion errors. OPENJSON can expand an array into relational rows. A WITH schema helps produce the typed fields expected by downstream joins.
D:
“Monitor duplicate rates and tie-breaking edge cases” concerns Need latest row per device without discarding event history; the reported problem instead is Business logic needs one relational row per array element. Monitor malformed arrays and conversion errors. OPENJSON can expand an array into relational rows. A WITH schema helps produce the typed fields expected by downstream joins.
Question 181
At Cascade Manufacturing, a SQL endpoint must return stable JSON product representations. The observed constraint is: Application currently concatenates JSON strings manually. What initial check best narrows the technical cause without altering business data?
- Review which fields and formats are in scope for redaction
- Review required property names and null handling
- Inspect distribution of transposed and shortened sample names
- Confirm engine version and ordering expectations
Explanation
Correct Answer
B:
Application currently concatenates JSON strings manually. Review required property names and null handling. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
Incorrect Answers
A:
“Review which fields and formats are in scope for redaction” concerns Need a controlled transformation without naive substring edits; the reported problem instead is Application currently concatenates JSON strings manually. Review required property names and null handling. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
C:
“Inspect distribution of transposed and shortened sample names” concerns Basic edit count may not rank transpositions optimally; the reported problem instead is Application currently concatenates JSON strings manually. Review required property names and null handling. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
D:
“Confirm engine version and ordering expectations” concerns Client performs expensive per-row JSON assembly; the reported problem instead is Application currently concatenates JSON strings manually. Review required property names and null handling. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
Question 182
A database engineer at Clearwater Utilities is investigating this case: A SQL endpoint must return stable JSON product representations. The relevant finding is: Application currently concatenates JSON strings manually. Which proposed change is the most suitable response to the observed constraint?
- Use JSON_ARRAYAGG in supported SQL platform to aggregate tags
- Use REGEXP_REPLACE with reviewed expression where supported
- Use JSON_OBJECT for supported structured scalar output
- Use JSON_VALUE with a validated scalar path and appropriate conversion
Explanation
Correct Answer
C:
Application currently concatenates JSON strings manually. Use JSON_OBJECT for supported structured scalar output. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
Incorrect Answers
A:
“Use JSON_ARRAYAGG in supported SQL platform to aggregate tags” concerns Client performs expensive per-row JSON assembly; the reported problem instead is Application currently concatenates JSON strings manually. Use JSON_OBJECT for supported structured scalar output. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
B:
“Use REGEXP_REPLACE with reviewed expression where supported” concerns Need a controlled transformation without naive substring edits; the reported problem instead is Application currently concatenates JSON strings manually. Use JSON_OBJECT for supported structured scalar output. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
D:
“Use JSON_VALUE with a validated scalar path and appropriate conversion” concerns SQL filter needs one scalar region field; the reported problem instead is Application currently concatenates JSON strings manually. Use JSON_OBJECT for supported structured scalar output. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
Question 183
Cedarbridge Health is responsible for an Azure SQL or Microsoft SQL workload. A SQL endpoint must return stable JSON product representations. Operational evidence: Application currently concatenates JSON strings manually. What isolated pilot would provide the strongest evidence before rollout?
- Generate JSON for synthetic strings with quotes and Unicode
- Benchmark synthetic name transpositions against controlled truth set
- Group synthetic tags including nulls and duplicate values
- Inject a constraint violation after synthetic first update
Explanation
Correct Answer
A:
Application currently concatenates JSON strings manually. Generate JSON for synthetic strings with quotes and Unicode. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
Incorrect Answers
B:
“Benchmark synthetic name transpositions against controlled truth set” concerns Basic edit count may not rank transpositions optimally; the reported problem instead is Application currently concatenates JSON strings manually. Generate JSON for synthetic strings with quotes and Unicode. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
C:
“Group synthetic tags including nulls and duplicate values” concerns Client performs expensive per-row JSON assembly; the reported problem instead is Application currently concatenates JSON strings manually. Generate JSON for synthetic strings with quotes and Unicode. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
D:
“Inject a constraint violation after synthetic first update” concerns An error halfway through leaves risk of partial work; the reported problem instead is Application currently concatenates JSON strings manually. Generate JSON for synthetic strings with quotes and Unicode. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
Question 184
At Ashwood Solutions, a SQL endpoint must return stable JSON product representations. The observed constraint is: Application currently concatenates JSON strings manually. Which acceptance result most directly demonstrates the requirement has been satisfied?
- Arrays contain the expected members with documented semantics
- Reported tail latency reflects expected distribution
- Only intended token text is extracted and absent token handled
- Output parses correctly and special characters are escaped
Explanation
Correct Answer
D:
Application currently concatenates JSON strings manually. Output parses correctly and special characters are escaped. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
Incorrect Answers
A:
“Arrays contain the expected members with documented semantics” concerns Client performs expensive per-row JSON assembly; the reported problem instead is Application currently concatenates JSON strings manually. Output parses correctly and special characters are escaped. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
B:
“Reported tail latency reflects expected distribution” concerns Average obscures slow tail requests; the reported problem instead is Application currently concatenates JSON strings manually. Output parses correctly and special characters are escaped. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
C:
“Only intended token text is extracted and absent token handled” concerns A fixed substring offset fails as prose length changes; the reported problem instead is Application currently concatenates JSON strings manually. Output parses correctly and special characters are escaped. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
Question 185
A database engineer at Seabrook University is investigating this case: A SQL endpoint must return stable JSON product representations. The relevant finding is: Application currently concatenates JSON strings manually. What operational condition would provide the earliest useful regression warning?
- Monitor JSON schema changes and portability
- Monitor schema drift and invalid JSON
- Monitor aggregate memory and ordering assumptions
- Monitor downstream schema changes
Explanation
Correct Answer
D:
Application currently concatenates JSON strings manually. Monitor downstream schema changes. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
Incorrect Answers
A:
Monitoring JSON schema changes is useful for detecting malformed structures or portability issues, but it cannot itself reveal whether hand-concatenated product JSON breaks downstream consumers. Monitor the consumers and their expected schema after using a supported JSON constructor rather than manually joining fragments.
B:
“Monitor schema drift and invalid JSON” concerns SQL filter needs one scalar region field; the reported problem instead is Application currently concatenates JSON strings manually. Monitor downstream schema changes. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
C:
“Monitor aggregate memory and ordering assumptions” concerns Client performs expensive per-row JSON assembly; the reported problem instead is Application currently concatenates JSON strings manually. Monitor downstream schema changes. FOR JSON or supported SQL JSON constructors escape values and create a valid output structure more reliably than string concatenation.
Question 186
Atlas Publishing is responsible for an Azure SQL or Microsoft SQL workload. A reporting endpoint needs all product tags as JSON arrays by category. Operational evidence: Client performs expensive per-row JSON assembly. What initial check best narrows the technical cause without altering business data?
- Confirm engine version and ordering expectations
- Inspect stable sorting key and pagination expectations
- Inspect partition and ordering for sensor events
- Check date ordering and treatment of missing dates
Explanation
Correct Answer
A:
Client performs expensive per-row JSON assembly. Confirm engine version and ordering expectations. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
Incorrect Answers
B:
“Inspect stable sorting key and pagination expectations” concerns Offset-only pages skip or repeat records under changes; the reported problem instead is Client performs expensive per-row JSON assembly. Confirm engine version and ordering expectations. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
C:
“Inspect partition and ordering for sensor events” addresses the lag for change detection situation—self-joins create expensive predecessor lookup. The observed failure is: Client performs expensive per-row JSON assembly. Confirm engine version and ordering expectations. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
D:
“Check date ordering and treatment of missing dates” concerns A GROUP BY removes per-day running context; the reported problem instead is Client performs expensive per-row JSON assembly. Confirm engine version and ordering expectations. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
Question 187
At Mountainview Realty, a reporting endpoint needs all product tags as JSON arrays by category. The observed constraint is: Client performs expensive per-row JSON assembly. Which proposed change is the most suitable response to the observed constraint?
- Use supported JSON_CONTAINS or relationalized membership semantics
- Use JSON_ARRAYAGG in supported SQL platform to aggregate tags
- Use REGEXP_REPLACE with reviewed expression where supported
- Use JSON_OBJECT for supported structured scalar output
Explanation
Correct Answer
B:
Client performs expensive per-row JSON assembly. Use JSON_ARRAYAGG in supported SQL platform to aggregate tags. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
Incorrect Answers
A:
“Use supported JSON_CONTAINS or relationalized membership semantics” concerns Text LIKE falsely matches substrings; the reported problem instead is Client performs expensive per-row JSON assembly. Use JSON_ARRAYAGG in supported SQL platform to aggregate tags. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
C:
“Use REGEXP_REPLACE with reviewed expression where supported” concerns Need a controlled transformation without naive substring edits; the reported problem instead is Client performs expensive per-row JSON assembly. Use JSON_ARRAYAGG in supported SQL platform to aggregate tags. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
D:
“Use JSON_OBJECT for supported structured scalar output” concerns Application currently concatenates JSON strings manually; the reported problem instead is Client performs expensive per-row JSON assembly. Use JSON_ARRAYAGG in supported SQL platform to aggregate tags. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
Question 188
A database engineer at Willow Creek Finance is investigating this case: A reporting endpoint needs all product tags as JSON arrays by category. The relevant finding is: Client performs expensive per-row JSON assembly. What isolated pilot would provide the strongest evidence before rollout?
- Load synthetic items including missing optional properties
- Inject a constraint violation after synthetic first update
- Group synthetic tags including nulls and duplicate values
- Generate JSON for synthetic strings with quotes and Unicode
Explanation
Correct Answer
C:
Client performs expensive per-row JSON assembly. Group synthetic tags including nulls and duplicate values. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
Incorrect Answers
A:
“Load synthetic items including missing optional properties” concerns Business logic needs one relational row per array element; the reported problem instead is Client performs expensive per-row JSON assembly. Group synthetic tags including nulls and duplicate values. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
B:
“Inject a constraint violation after synthetic first update” concerns An error halfway through leaves risk of partial work; the reported problem instead is Client performs expensive per-row JSON assembly. Group synthetic tags including nulls and duplicate values. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
D:
“Generate JSON for synthetic strings with quotes and Unicode” concerns Application currently concatenates JSON strings manually; the reported problem instead is Client performs expensive per-row JSON assembly. Group synthetic tags including nulls and duplicate values. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
Question 189
Granite Ridge Technology is responsible for an Azure SQL or Microsoft SQL workload. A reporting endpoint needs all product tags as JSON arrays by category. Operational evidence: Client performs expensive per-row JSON assembly. Which acceptance result most directly demonstrates the requirement has been satisfied?
- Pagination has the documented stable semantics
- Arrays contain the expected members with documented semantics
- Region extraction returns expected scalar or handled null/error
- Reported tail latency reflects expected distribution
Explanation
Correct Answer
B:
Client performs expensive per-row JSON assembly. Arrays contain the expected members with documented semantics. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
Incorrect Answers
A:
“Pagination has the documented stable semantics” concerns Offset-only pages skip or repeat records under changes; the reported problem instead is Client performs expensive per-row JSON assembly. Arrays contain the expected members with documented semantics. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
C:
“Region extraction returns expected scalar or handled null/error” concerns SQL filter needs one scalar region field; the reported problem instead is Client performs expensive per-row JSON assembly. Arrays contain the expected members with documented semantics. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
D:
“Reported tail latency reflects expected distribution” concerns Average obscures slow tail requests; the reported problem instead is Client performs expensive per-row JSON assembly. Arrays contain the expected members with documented semantics. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
Question 190
At Pinecrest Operations, a reporting endpoint needs all product tags as JSON arrays by category. The observed constraint is: Client performs expensive per-row JSON assembly. What operational condition would provide the earliest useful regression warning?
- Track out-of-order arrival effects
- Monitor downstream schema changes
- Monitor false match decisions
- Monitor aggregate memory and ordering assumptions
Explanation
Correct Answer
D:
Client performs expensive per-row JSON assembly. Monitor aggregate memory and ordering assumptions. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
Incorrect Answers
A:
“Track out-of-order arrival effects” addresses the lag for change detection situation—self-joins create expensive predecessor lookup. The observed failure is: Client performs expensive per-row JSON assembly. Monitor aggregate memory and ordering assumptions. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
B:
“Monitor downstream schema changes” concerns Application currently concatenates JSON strings manually; the reported problem instead is Client performs expensive per-row JSON assembly. Monitor aggregate memory and ordering assumptions. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.
C:
“Monitor false match decisions” concerns Exact equality misses likely matches; the reported problem instead is Client performs expensive per-row JSON assembly. Monitor aggregate memory and ordering assumptions. JSON_ARRAYAGG is suited to collecting multiple SQL values into a JSON array on supported engines, reducing application-side per-row assembly.