Professional Data Engineer free question 9 / 10 · Domain 5: Maintaining and automating data workloads
To size a BigQuery reservation for production aggregation jobs with a deadline, you are testing performance with baselines of 300, 600, and 900 slots. Which statement matches the "Understand reservations" page?
- On-demand projects have a hard cap of 2,000 slots, so for usage before switching you can simply estimate it as that value
- A reservation created for testing can later be moved to a separate production admin project, so the tested baseline can be carried into production as is
- If other reservations in the tested region have idle slots, fewer slots can seem sufficient, so size the production reservation with the capacity it needs on its own
- The slot estimator cannot be used with on-demand pricing, so before you switch you measure with a trial reservation
Show the answer and explanation
Answer: C
Why this is correct
The section "Sizing slot reservations" says that if the region where you test performance has idle slots, a reservation can meet its performance goal with fewer slots than expected, because the reservation used idle slots to cover the slots it needed. If the load of other reservations changes and idle slots decrease, performance can drop. For production loads with a deadline, it says to make the reservation self-reliant in slot capacity, so that changes in idle slots do not directly affect job performance.
Why the other options are wrong
"A reservation created for testing can later be moved to a separate production admin project, so the tested baseline can be carried into production as is" … A note in the section "Specifying an administration project" says that once a reservation or commitment is created, it cannot be moved to a different administration project. To run production in a different administration project, recreate the reservation there. The page recommends limiting the number of administration projects and, if possible, putting all of the organization's reservations in one administration project.
"The slot estimator cannot be used with on-demand pricing, so before you switch you measure with a trial reservation" … The section "Use the slot estimator" on the "Estimate and control costs" page says users of the on-demand pricing model can also see recommendations for the size of a commitment and autoscaling reservation with comparable performance when moving to capacity-based pricing. The "Sizing slot reservations" section says that after you assign slots and run the load for at least 7 days, you can use the slot estimator to analyze performance and model the effect of adding or removing slots.
"On-demand projects have a hard cap of 2,000 slots, so for usage before switching you can simply estimate it as that value" … The same section says on-demand workloads have a soft slot cap of 2,000 slots, and that it is important to check how many slots your project actually uses with the INFORMATION_SCHEMA.JOBS views, Cloud Logging, the Jobs API, or audit logs. It is not a hard cap, and you do not treat that value as your usage.
Key point
The "Slot reservations" section says to create a reservation with enough baseline slots for production loads that have deadlines, and that baseline slots are always available. The capacity of an autoscaling reservation is not necessarily guaranteed. You can put reservations in one administration project and, by setting the baseline to 0 and only a maximum, use an edition almost like fully on-demand (on the "Estimate and control costs" page).