← All quizzes

Night 18

DynamoDB resilience — PITR + Streams + stub stream Lambda

DynamoDB PITR, on-demand backups, Streams view types, Lambda event source mapping, global tables awareness, DynamoDB vs Aurora for GSA wiki counters

0:00 / ~24m0/15 answered

15 timed scenario questions (~24 min, ~96 sec each). Reinforces night-18-dynamodb-resilience.md and night-18-lab-dynamodb-setup scripts. Answer without peeking at night-18-quiz-answers.json first.

  1. 1.An operator accidentally deletes items from saa-study-gsa-wiki-views. PITR is enabled. What is the correct recovery action?

  2. 2.night-18-lab enables StreamViewType NEW_AND_OLD_IMAGES on saa-study-gsa-wiki-views. The stub Lambda logs old and new viewCount on MODIFY. Which view type would hide the previous count?

  3. 3.You create a DynamoDB stream event source mapping with StartingPosition=LATEST. You then run -BumpView on wiki/iceland. An earlier bump from before the mapping never invoked Lambda. Why?

  4. 4.GSA prod wiki-api increments page views with UpdateItem. night-18-lab uses ADD viewCount :inc. Why is ADD preferred over read-then-SET for hot counters?

  5. 5.A stream processor Lambda fails mid-batch. DynamoDB stream event source mappings retry. What design property keeps audit logging safe?

  6. 6.Compare tonight's stub stream Lambda to Night 17 saa-study-gsa-stats-uploader. What is the trigger difference?

  7. 7.Global Ski Atlas needs wiki read/write in us-east-1 and eu-west-1 with local low latency. Tables are DynamoDB. Which feature fits?

  8. 8.A Lambda in Night 9 private subnets calls DynamoDB in the same Region. NAT Gateway charges are high on GetItem traffic. What reduces DynamoDB egress cost?

  9. 9.night-18-lab uses PAY_PER_REQUEST on saa-study-gsa-wiki-views. Wiki traffic spikes unpredictably on powder days. Why match on-demand billing here?

  10. 10.You need centralized nightly backups for DynamoDB wiki tables, Aurora resort_stats, and EBS volumes under one retention policy. Which service?

  11. 11.Two Regions write the same item key in a global table within the same second. What conflict resolution applies?

  12. 12.resort_stats monthly_runs needs SQL JOIN reports. wiki/iceland viewCount needs millions of atomic increments. Where should each live per GSA split?

  13. 13.The stream processor IAM role needs dynamodb:GetRecords on the stream ARN. What else must the role allow for Lambda to emit logs?

  14. 14.Maximum continuous backup window for DynamoDB PITR on a single-Region table is how long?

  15. 15.night-18-lab teardown deletes saa-study-gsa-wiki-views. Prod WikiPages is untouched. A teammate asks whether teardown affects Night 17 Aurora. What is true?

Answer all 15 questions to submit.